From 2ac2fd4d37a8d6193824bb584d179dbede46d3ee Mon Sep 17 00:00:00 2001 From: vmthattikota Date: Thu, 24 Mar 2016 17:48:15 -0700 Subject: [PATCH] Generating the cpp hbase driver patch --- hbase-native-client/CMakeLists.txt | 157 - hbase-native-client/Makefile.am | 3 + hbase-native-client/Makefile.in | 731 + hbase-native-client/README.md | 53 - hbase-native-client/README.txt | 68 + hbase-native-client/bin/build-all.sh | 41 - hbase-native-client/bin/build-thirdparty.sh | 64 - hbase-native-client/bin/download-thirdparty.sh | 70 - hbase-native-client/bin/hbase-client-env.sh | 47 - hbase-native-client/cmake_modules/FindGTest.cmake | 53 - hbase-native-client/cmake_modules/FindLibEv.cmake | 47 - hbase-native-client/configure | 6202 +++++ hbase-native-client/configure.ac | 32 + hbase-native-client/install-sh | 527 + hbase-native-client/missing | 215 + hbase-native-client/src/Makefile.am | 61 + hbase-native-client/src/Makefile.in | 441 + hbase-native-client/src/async/CMakeLists.txt | 32 - hbase-native-client/src/async/get-test.cc | 59 - hbase-native-client/src/async/hbase_admin.cc | 57 - hbase-native-client/src/async/hbase_admin.h | 69 - hbase-native-client/src/async/hbase_client.cc | 47 - hbase-native-client/src/async/hbase_client.h | 60 - hbase-native-client/src/async/hbase_connection.cc | 37 - hbase-native-client/src/async/hbase_connection.h | 52 - hbase-native-client/src/async/hbase_errno.h | 23 - hbase-native-client/src/async/hbase_get.cc | 61 - hbase-native-client/src/async/hbase_get.h | 73 - hbase-native-client/src/async/hbase_mutations.cc | 111 - hbase-native-client/src/async/hbase_mutations.h | 119 - hbase-native-client/src/async/hbase_result.cc | 37 - hbase-native-client/src/async/hbase_result.h | 44 - hbase-native-client/src/async/hbase_scanner.cc | 59 - hbase-native-client/src/async/hbase_scanner.h | 80 - hbase-native-client/src/async/mutations-test.cc | 102 - hbase-native-client/src/core/BUCK | 66 + hbase-native-client/src/core/CMakeLists.txt | 31 - .../src/core/HBaseNativeClientTestEnv.cc | 43 + .../src/core/SampleNativeClientTest.cc | 28 + hbase-native-client/src/core/admin.cc | 439 +- hbase-native-client/src/core/admin.h | 54 +- hbase-native-client/src/core/binary_comparator.cc | 36 + hbase-native-client/src/core/binary_comparator.h | 30 + .../src/core/byte_array_comparable.cc | 68 + .../src/core/byte_array_comparable.h | 50 + hbase-native-client/src/core/bytes.cc | 435 + hbase-native-client/src/core/bytes.h | 117 + hbase-native-client/src/core/cell.cc | 171 + hbase-native-client/src/core/cell.h | 67 + hbase-native-client/src/core/cell_scanner.cc | 44 + hbase-native-client/src/core/cell_scanner.h | 37 + hbase-native-client/src/core/client.cc | 636 +- hbase-native-client/src/core/client.h | 11 +- .../src/core/column_family_schema.cc | 427 + .../src/core/column_family_schema.h | 273 + hbase-native-client/src/core/compare_filter.cc | 103 + hbase-native-client/src/core/compare_filter.h | 70 + hbase-native-client/src/core/configuration.cc | 117 + hbase-native-client/src/core/configuration.h | 48 + hbase-native-client/src/core/connection.cc | 413 +- hbase-native-client/src/core/connection.h | 80 +- hbase-native-client/src/core/connection_attr.h | 10 +- hbase-native-client/src/core/connection_factory.cc | 37 + hbase-native-client/src/core/connection_factory.h | 35 + hbase-native-client/src/core/consistency.h | 50 + hbase-native-client/src/core/delete.cc | 85 +- hbase-native-client/src/core/delete.h | 30 +- hbase-native-client/src/core/family_filter.cc | 44 + hbase-native-client/src/core/family_filter.h | 31 + hbase-native-client/src/core/filter.cc | 94 + hbase-native-client/src/core/filter.h | 85 + hbase-native-client/src/core/filter_base.cc | 89 + hbase-native-client/src/core/filter_base.h | 44 + hbase-native-client/src/core/get.cc | 213 +- hbase-native-client/src/core/get.h | 83 +- .../src/core/hbase_connection_attr.cc | 41 - .../src/core/hbase_connection_attr.h | 51 - hbase-native-client/src/core/hbase_macros.h | 38 +- hbase-native-client/src/core/hbase_types.h | 83 - hbase-native-client/src/core/hconstants.cc | 191 + hbase-native-client/src/core/hconstants.h | 233 + hbase-native-client/src/core/key_value.cc | 539 + hbase-native-client/src/core/key_value.h | 233 + hbase-native-client/src/core/meta_cache.cc | 65 + hbase-native-client/src/core/meta_cache.h | 44 + hbase-native-client/src/core/mutation.cc | 157 +- hbase-native-client/src/core/mutation.h | 80 +- .../src/core/operation_with_attributes.cc | 87 + .../src/core/operation_with_attributes.h | 50 + hbase-native-client/src/core/pb_request_builder.cc | 443 + hbase-native-client/src/core/pb_request_builder.h | 63 + hbase-native-client/src/core/permission.cc | 42 + hbase-native-client/src/core/permission.h | 46 + hbase-native-client/src/core/protobuf_util.cc | 29 + hbase-native-client/src/core/protobuf_util.h | 24 + hbase-native-client/src/core/put.cc | 108 +- hbase-native-client/src/core/put.h | 43 +- hbase-native-client/src/core/query.cc | 74 + hbase-native-client/src/core/query.h | 54 + hbase-native-client/src/core/region_details.cc | 343 + hbase-native-client/src/core/region_details.h | 76 + hbase-native-client/src/core/region_specifier.cc | 31 + hbase-native-client/src/core/region_specifier.h | 42 + hbase-native-client/src/core/result.cc | 100 + hbase-native-client/src/core/result.h | 49 + hbase-native-client/src/core/return_codes.h | 35 + hbase-native-client/src/core/rpc_client.cc | 71 + hbase-native-client/src/core/rpc_client.h | 46 + hbase-native-client/src/core/scan.cc | 101 + hbase-native-client/src/core/scan.h | 61 + hbase-native-client/src/core/scanner.cc | 2 +- hbase-native-client/src/core/scanner.h | 25 +- .../src/core/server_node_connection.cc | 266 + .../src/core/server_node_connection.h | 58 + hbase-native-client/src/core/table.cc | 221 + hbase-native-client/src/core/table.h | 57 + hbase-native-client/src/core/tableSchema.cc | 23 + hbase-native-client/src/core/tableSchema.h | 50 + hbase-native-client/src/core/table_name.cc | 163 + hbase-native-client/src/core/table_name.h | 59 + hbase-native-client/src/core/table_schema.cc | 240 + hbase-native-client/src/core/table_schema.h | 222 + hbase-native-client/src/core/tag.cc | 36 + hbase-native-client/src/core/tag.h | 43 + hbase-native-client/src/core/test_env.h | 30 + hbase-native-client/src/core/timeRange.cc | 50 + hbase-native-client/src/core/timeRange.h | 47 + hbase-native-client/src/core/util.cc | 41 + hbase-native-client/src/core/util.h | 29 + hbase-native-client/src/rpc/CMakeLists.txt | 17 - .../src/rpc/generated/AccessControl.pb.cc | 4110 +++ .../src/rpc/generated/AccessControl.pb.h | 2561 ++ hbase-native-client/src/rpc/generated/Admin.pb.cc | 9470 +++++++ hbase-native-client/src/rpc/generated/Admin.pb.h | 5463 ++++ .../src/rpc/generated/Aggregate.pb.cc | 726 + .../src/rpc/generated/Aggregate.pb.h | 579 + .../src/rpc/generated/Authentication.pb.cc | 2134 ++ .../src/rpc/generated/Authentication.pb.h | 1513 + hbase-native-client/src/rpc/generated/Cell.pb.cc | 1158 + hbase-native-client/src/rpc/generated/Cell.pb.h | 1220 + hbase-native-client/src/rpc/generated/Client.pb.cc | 12098 ++++++++ hbase-native-client/src/rpc/generated/Client.pb.h | 8580 ++++++ .../src/rpc/generated/ClusterId.pb.cc | 331 + .../src/rpc/generated/ClusterId.pb.h | 220 + .../src/rpc/generated/ClusterStatus.pb.cc | 4610 ++++ .../src/rpc/generated/ClusterStatus.pb.h | 3076 +++ .../src/rpc/generated/Comparator.pb.cc | 2495 ++ .../src/rpc/generated/Comparator.pb.h | 1661 ++ .../src/rpc/generated/Encryption.pb.cc | 520 + .../src/rpc/generated/Encryption.pb.h | 507 + .../src/rpc/generated/ErrorHandling.pb.cc | 1187 + .../src/rpc/generated/ErrorHandling.pb.h | 1004 + hbase-native-client/src/rpc/generated/FS.pb.cc | 644 + hbase-native-client/src/rpc/generated/FS.pb.h | 463 + hbase-native-client/src/rpc/generated/Filter.pb.cc | 8021 ++++++ hbase-native-client/src/rpc/generated/Filter.pb.h | 4948 ++++ hbase-native-client/src/rpc/generated/HBase.pb.cc | 8310 ++++++ hbase-native-client/src/rpc/generated/HBase.pb.h | 5991 ++++ hbase-native-client/src/rpc/generated/HFile.pb.cc | 1078 + hbase-native-client/src/rpc/generated/HFile.pb.h | 773 + .../src/rpc/generated/LoadBalancer.pb.cc | 311 + .../src/rpc/generated/LoadBalancer.pb.h | 167 + .../src/rpc/generated/MapReduce.pb.cc | 652 + .../src/rpc/generated/MapReduce.pb.h | 412 + hbase-native-client/src/rpc/generated/Master.pb.cc | 27428 +++++++++++++++++++ hbase-native-client/src/rpc/generated/Master.pb.h | 14718 ++++++++++ .../src/rpc/generated/MasterProcedure.pb.cc | 5041 ++++ .../src/rpc/generated/MasterProcedure.pb.h | 3495 +++ .../src/rpc/generated/MultiRowMutation.pb.cc | 944 + .../src/rpc/generated/MultiRowMutation.pb.h | 469 + .../src/rpc/generated/Procedure.pb.cc | 2983 ++ .../src/rpc/generated/Procedure.pb.h | 1956 ++ hbase-native-client/src/rpc/generated/Quota.pb.cc | 1747 ++ hbase-native-client/src/rpc/generated/Quota.pb.h | 1112 + hbase-native-client/src/rpc/generated/RPC.pb.cc | 2335 ++ hbase-native-client/src/rpc/generated/RPC.pb.h | 1811 ++ .../src/rpc/generated/RSGroup.pb.cc | 422 + hbase-native-client/src/rpc/generated/RSGroup.pb.h | 297 + .../src/rpc/generated/RSGroupAdmin.pb.cc | 4756 ++++ .../src/rpc/generated/RSGroupAdmin.pb.h | 2629 ++ .../src/rpc/generated/RegionNormalizer.pb.cc | 305 + .../src/rpc/generated/RegionNormalizer.pb.h | 161 + .../src/rpc/generated/RegionServerStatus.pb.cc | 3095 +++ .../src/rpc/generated/RegionServerStatus.pb.h | 1858 ++ .../src/rpc/generated/RowProcessor.pb.cc | 768 + .../src/rpc/generated/RowProcessor.pb.h | 616 + .../src/rpc/generated/SecureBulkLoad.pb.cc | 2039 ++ .../src/rpc/generated/SecureBulkLoad.pb.h | 1396 + .../src/rpc/generated/Snapshot.pb.cc | 1770 ++ .../src/rpc/generated/Snapshot.pb.h | 1282 + .../src/rpc/generated/Tracing.pb.cc | 354 + hbase-native-client/src/rpc/generated/Tracing.pb.h | 199 + .../src/rpc/generated/VisibilityLabels.pb.cc | 2642 ++ .../src/rpc/generated/VisibilityLabels.pb.h | 1706 ++ hbase-native-client/src/rpc/generated/WAL.pb.cc | 4379 +++ hbase-native-client/src/rpc/generated/WAL.pb.h | 3859 +++ .../src/rpc/generated/ZooKeeper.pb.cc | 3510 +++ .../src/rpc/generated/ZooKeeper.pb.h | 2280 ++ hbase-native-client/src/sync/CMakeLists.txt | 24 - hbase-native-client/src/sync/hbase_admin.cc | 51 - hbase-native-client/src/sync/hbase_admin.h | 61 - hbase-native-client/src/sync/hbase_connection.cc | 37 - hbase-native-client/src/sync/hbase_connection.h | 52 - hbase-native-client/src/test/BuildTestClient.sh | 12 + hbase-native-client/src/test/TestClient.cc | 108 + hbase-native-client/src/test/TestClient.h | 19 + hbase-native-client/src/util/Utils.cc | 42 + hbase-native-client/src/util/Utils.h | 29 + hbase-native-client/src/zk/zookeeper.cc | 251 + hbase-native-client/src/zk/zookeeper.h | 38 + hbase-native-client/src/zk/zookeeper2.cc | 37 + 211 files changed, 220116 insertions(+), 2210 deletions(-) delete mode 100644 hbase-native-client/CMakeLists.txt create mode 100755 hbase-native-client/Makefile.am create mode 100644 hbase-native-client/Makefile.in delete mode 100644 hbase-native-client/README.md create mode 100644 hbase-native-client/README.txt delete mode 100755 hbase-native-client/bin/build-all.sh delete mode 100755 hbase-native-client/bin/build-thirdparty.sh delete mode 100755 hbase-native-client/bin/download-thirdparty.sh delete mode 100644 hbase-native-client/bin/hbase-client-env.sh delete mode 100644 hbase-native-client/cmake_modules/FindGTest.cmake delete mode 100644 hbase-native-client/cmake_modules/FindLibEv.cmake create mode 100755 hbase-native-client/configure create mode 100755 hbase-native-client/configure.ac create mode 100755 hbase-native-client/install-sh create mode 100755 hbase-native-client/missing create mode 100755 hbase-native-client/src/Makefile.am create mode 100644 hbase-native-client/src/Makefile.in delete mode 100644 hbase-native-client/src/async/CMakeLists.txt delete mode 100644 hbase-native-client/src/async/get-test.cc delete mode 100644 hbase-native-client/src/async/hbase_admin.cc delete mode 100644 hbase-native-client/src/async/hbase_admin.h delete mode 100644 hbase-native-client/src/async/hbase_client.cc delete mode 100644 hbase-native-client/src/async/hbase_client.h delete mode 100644 hbase-native-client/src/async/hbase_connection.cc delete mode 100644 hbase-native-client/src/async/hbase_connection.h delete mode 100644 hbase-native-client/src/async/hbase_errno.h delete mode 100644 hbase-native-client/src/async/hbase_get.cc delete mode 100644 hbase-native-client/src/async/hbase_get.h delete mode 100644 hbase-native-client/src/async/hbase_mutations.cc delete mode 100644 hbase-native-client/src/async/hbase_mutations.h delete mode 100644 hbase-native-client/src/async/hbase_result.cc delete mode 100644 hbase-native-client/src/async/hbase_result.h delete mode 100644 hbase-native-client/src/async/hbase_scanner.cc delete mode 100644 hbase-native-client/src/async/hbase_scanner.h delete mode 100644 hbase-native-client/src/async/mutations-test.cc create mode 100644 hbase-native-client/src/core/BUCK delete mode 100644 hbase-native-client/src/core/CMakeLists.txt create mode 100644 hbase-native-client/src/core/HBaseNativeClientTestEnv.cc create mode 100644 hbase-native-client/src/core/SampleNativeClientTest.cc create mode 100644 hbase-native-client/src/core/binary_comparator.cc create mode 100644 hbase-native-client/src/core/binary_comparator.h create mode 100644 hbase-native-client/src/core/byte_array_comparable.cc create mode 100644 hbase-native-client/src/core/byte_array_comparable.h create mode 100644 hbase-native-client/src/core/bytes.cc create mode 100644 hbase-native-client/src/core/bytes.h create mode 100644 hbase-native-client/src/core/cell.cc create mode 100644 hbase-native-client/src/core/cell.h create mode 100644 hbase-native-client/src/core/cell_scanner.cc create mode 100644 hbase-native-client/src/core/cell_scanner.h create mode 100644 hbase-native-client/src/core/column_family_schema.cc create mode 100644 hbase-native-client/src/core/column_family_schema.h create mode 100644 hbase-native-client/src/core/compare_filter.cc create mode 100644 hbase-native-client/src/core/compare_filter.h create mode 100644 hbase-native-client/src/core/configuration.cc create mode 100644 hbase-native-client/src/core/configuration.h create mode 100644 hbase-native-client/src/core/connection_factory.cc create mode 100644 hbase-native-client/src/core/connection_factory.h create mode 100644 hbase-native-client/src/core/consistency.h create mode 100644 hbase-native-client/src/core/family_filter.cc create mode 100644 hbase-native-client/src/core/family_filter.h create mode 100644 hbase-native-client/src/core/filter.cc create mode 100644 hbase-native-client/src/core/filter.h create mode 100644 hbase-native-client/src/core/filter_base.cc create mode 100644 hbase-native-client/src/core/filter_base.h delete mode 100644 hbase-native-client/src/core/hbase_connection_attr.cc delete mode 100644 hbase-native-client/src/core/hbase_connection_attr.h delete mode 100644 hbase-native-client/src/core/hbase_types.h create mode 100644 hbase-native-client/src/core/hconstants.cc create mode 100644 hbase-native-client/src/core/hconstants.h create mode 100644 hbase-native-client/src/core/key_value.cc create mode 100644 hbase-native-client/src/core/key_value.h create mode 100644 hbase-native-client/src/core/meta_cache.cc create mode 100644 hbase-native-client/src/core/meta_cache.h create mode 100644 hbase-native-client/src/core/operation_with_attributes.cc create mode 100644 hbase-native-client/src/core/operation_with_attributes.h create mode 100644 hbase-native-client/src/core/pb_request_builder.cc create mode 100644 hbase-native-client/src/core/pb_request_builder.h create mode 100644 hbase-native-client/src/core/permission.cc create mode 100644 hbase-native-client/src/core/permission.h create mode 100644 hbase-native-client/src/core/protobuf_util.cc create mode 100644 hbase-native-client/src/core/protobuf_util.h create mode 100644 hbase-native-client/src/core/query.cc create mode 100644 hbase-native-client/src/core/query.h create mode 100644 hbase-native-client/src/core/region_details.cc create mode 100644 hbase-native-client/src/core/region_details.h create mode 100644 hbase-native-client/src/core/region_specifier.cc create mode 100644 hbase-native-client/src/core/region_specifier.h create mode 100644 hbase-native-client/src/core/result.cc create mode 100644 hbase-native-client/src/core/result.h create mode 100644 hbase-native-client/src/core/return_codes.h create mode 100644 hbase-native-client/src/core/rpc_client.cc create mode 100644 hbase-native-client/src/core/rpc_client.h create mode 100644 hbase-native-client/src/core/scan.cc create mode 100644 hbase-native-client/src/core/scan.h create mode 100644 hbase-native-client/src/core/server_node_connection.cc create mode 100644 hbase-native-client/src/core/server_node_connection.h create mode 100644 hbase-native-client/src/core/table.cc create mode 100644 hbase-native-client/src/core/table.h create mode 100644 hbase-native-client/src/core/tableSchema.cc create mode 100644 hbase-native-client/src/core/tableSchema.h create mode 100644 hbase-native-client/src/core/table_name.cc create mode 100644 hbase-native-client/src/core/table_name.h create mode 100644 hbase-native-client/src/core/table_schema.cc create mode 100644 hbase-native-client/src/core/table_schema.h create mode 100644 hbase-native-client/src/core/tag.cc create mode 100644 hbase-native-client/src/core/tag.h create mode 100644 hbase-native-client/src/core/test_env.h create mode 100644 hbase-native-client/src/core/timeRange.cc create mode 100644 hbase-native-client/src/core/timeRange.h create mode 100644 hbase-native-client/src/core/util.cc create mode 100644 hbase-native-client/src/core/util.h delete mode 100644 hbase-native-client/src/rpc/CMakeLists.txt create mode 100644 hbase-native-client/src/rpc/generated/AccessControl.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/AccessControl.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Admin.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Admin.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Aggregate.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Aggregate.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Authentication.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Authentication.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Cell.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Cell.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Client.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Client.pb.h create mode 100644 hbase-native-client/src/rpc/generated/ClusterId.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/ClusterId.pb.h create mode 100644 hbase-native-client/src/rpc/generated/ClusterStatus.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/ClusterStatus.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Comparator.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Comparator.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Encryption.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Encryption.pb.h create mode 100644 hbase-native-client/src/rpc/generated/ErrorHandling.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/ErrorHandling.pb.h create mode 100644 hbase-native-client/src/rpc/generated/FS.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/FS.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Filter.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Filter.pb.h create mode 100644 hbase-native-client/src/rpc/generated/HBase.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/HBase.pb.h create mode 100644 hbase-native-client/src/rpc/generated/HFile.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/HFile.pb.h create mode 100644 hbase-native-client/src/rpc/generated/LoadBalancer.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/LoadBalancer.pb.h create mode 100644 hbase-native-client/src/rpc/generated/MapReduce.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/MapReduce.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Master.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Master.pb.h create mode 100644 hbase-native-client/src/rpc/generated/MasterProcedure.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/MasterProcedure.pb.h create mode 100644 hbase-native-client/src/rpc/generated/MultiRowMutation.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/MultiRowMutation.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Procedure.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Procedure.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Quota.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Quota.pb.h create mode 100644 hbase-native-client/src/rpc/generated/RPC.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/RPC.pb.h create mode 100644 hbase-native-client/src/rpc/generated/RSGroup.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/RSGroup.pb.h create mode 100644 hbase-native-client/src/rpc/generated/RSGroupAdmin.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/RSGroupAdmin.pb.h create mode 100644 hbase-native-client/src/rpc/generated/RegionNormalizer.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/RegionNormalizer.pb.h create mode 100644 hbase-native-client/src/rpc/generated/RegionServerStatus.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/RegionServerStatus.pb.h create mode 100644 hbase-native-client/src/rpc/generated/RowProcessor.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/RowProcessor.pb.h create mode 100644 hbase-native-client/src/rpc/generated/SecureBulkLoad.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/SecureBulkLoad.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Snapshot.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Snapshot.pb.h create mode 100644 hbase-native-client/src/rpc/generated/Tracing.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/Tracing.pb.h create mode 100644 hbase-native-client/src/rpc/generated/VisibilityLabels.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/VisibilityLabels.pb.h create mode 100644 hbase-native-client/src/rpc/generated/WAL.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/WAL.pb.h create mode 100644 hbase-native-client/src/rpc/generated/ZooKeeper.pb.cc create mode 100644 hbase-native-client/src/rpc/generated/ZooKeeper.pb.h delete mode 100644 hbase-native-client/src/sync/CMakeLists.txt delete mode 100644 hbase-native-client/src/sync/hbase_admin.cc delete mode 100644 hbase-native-client/src/sync/hbase_admin.h delete mode 100644 hbase-native-client/src/sync/hbase_connection.cc delete mode 100644 hbase-native-client/src/sync/hbase_connection.h create mode 100755 hbase-native-client/src/test/BuildTestClient.sh create mode 100644 hbase-native-client/src/test/TestClient.cc create mode 100644 hbase-native-client/src/test/TestClient.h create mode 100644 hbase-native-client/src/util/Utils.cc create mode 100644 hbase-native-client/src/util/Utils.h create mode 100644 hbase-native-client/src/zk/zookeeper.cc create mode 100644 hbase-native-client/src/zk/zookeeper.h create mode 100644 hbase-native-client/src/zk/zookeeper2.cc diff --git a/hbase-native-client/CMakeLists.txt b/hbase-native-client/CMakeLists.txt deleted file mode 100644 index 819f178..0000000 --- a/hbase-native-client/CMakeLists.txt +++ /dev/null @@ -1,157 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -cmake_minimum_required(VERSION 2.6) - -# generate CTest input files -enable_testing() - -# where to find cmake modules -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules") - -# if no build build type is specified, default to debug builds -if (NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Debug) -endif(NOT CMAKE_BUILD_TYPE) - -STRING(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) - -set(CXX_COMMON_FLAGS "-Wall -Wextra -std=c++11") -set(C_COMMON_FLAGS "-Wall -Wextra -std=c11") - -set(CXX_FLAGS_DEBUG "-ggdb -g") -set(C_FLAGS_DEBUG "-ggdb") - -set(CXX_FLAGS_FASTDEBUG "-ggdb -O1") -set(C_FLAGS_FASTDEBUG "-ggdb -O1") - -set(CXX_FLAGS_RELEASE "-O3 -g -DNDEBUG -Wno-strict-aliasing") -set(C_FLAGS_RELEASE "-O3 -g -DNDEBUG -Wno-strict-aliasing") - -# if no build build type is specified, default to debug builds -if (NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Debug) -endif(NOT CMAKE_BUILD_TYPE) - -string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) - -# Set compile flags based on the build type. -message("Configured for ${CMAKE_BUILD_TYPE} build (set with cmake -DCMAKE_BUILD_TYPE={release,debug,...})") -if ("${CMAKE_BUILD_TYPE}" STREQUAL "DEBUG") - set(CMAKE_CXX_FLAGS ${CXX_FLAGS_DEBUG}) - set(CMAKE_C_FLAGS ${C_FLAGS_DEBUG}) -elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "FASTDEBUG") - set(CMAKE_CXX_FLAGS ${CXX_FLAGS_FASTDEBUG}) - set(CMAKE_C_FLAGS ${C_FLAGS_FASTDEBUG}) -elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RELEASE") - set(CMAKE_CXX_FLAGS ${CXX_FLAGS_RELEASE}) - set(CMAKE_C_FLAGS ${C_FLAGS_RELEASE}) -else() - message(FATAL_ERROR "Unknown build type: ${CMAKE_BUILD_TYPE}") -endif () - -set(CMAKE_CXX_FLAGS "${CXX_COMMON_FLAGS} ${CMAKE_CXX_FLAGS}") -set(CMAKE_C_FLAGS "${C_COMMON_FLAGS} ${CMAKE_C_FLAGS}") - - -# set compile output directory -string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWERCASE) -set(BUILD_OUTPUT_ROOT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE_LOWERCASE}/") - -# Link build/latest to the current build directory, to avoid developers -# accidentally running the latest debug build when in fact they're building -# release builds. -file(MAKE_DIRECTORY ${BUILD_OUTPUT_ROOT_DIRECTORY}) -execute_process(COMMAND rm -f ${CMAKE_CURRENT_SOURCE_DIR}/build/latest) -execute_process(COMMAND ln -sf ${BUILD_OUTPUT_ROOT_DIRECTORY} - ${CMAKE_CURRENT_SOURCE_DIR}/build/latest) - -# where to put generated libraries -set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${BUILD_OUTPUT_ROOT_DIRECTORY}") -set(ARCHIVE_OUTPUT_DIRECTORY "${BUILD_OUTPUT_ROOT_DIRECTORY}") -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${BUILD_OUTPUT_ROOT_DIRECTORY}") - -# where to put generated binaries -set(EXECUTABLE_OUTPUT_PATH "${BUILD_OUTPUT_ROOT_DIRECTORY}") - -include_directories(src) - -##################### -# Third Party -##################### - -# find boost headers and libs -set(Boost_DEBUG TRUE) -set(Boost_USE_MULTITHREADED ON) -find_package(Boost REQUIRED COMPONENTS thread system-mt) -include_directories(${Boost_INCLUDE_DIRS}) - -find_package(Protobuf REQUIRED) -include_directories(${PROTOBUF_INCLUDE_DIRS}) -add_library(protobuf STATIC IMPORTED) -set_target_properties(protobuf PROPERTIES IMPORTED_LOCATION "${PROTOBUF_STATIC_LIBRARY}") - -find_package(LibEv REQUIRED) -include_directories(${LIBEV_INCLUDE_DIR}) -add_library(libev STATIC IMPORTED) - - -set(HBASE_LIBS - ${PROTOBUF} - ${LIBEV} - ${Boost_LIBRARIES} -) -######### -# Testing Config -######### - -# find GTest headers and libs -find_package(GTest REQUIRED) -include_directories(${GTEST_INCLUDE_DIR}) -add_library(gtest STATIC IMPORTED) -set_target_properties(gtest PROPERTIES IMPORTED_LOCATION "${GTEST_LIBS}") - -set(HBASE_TEST_LIBS ${HBASE_LIBS} ${GTEST_LIBS}) -set(HBASE_ASYNC_TEST_LIBS ${HBASE_LIBS} ${GTEST_LIBS} hbase-async) -set(HBASE_SYNC_TEST_LIBS ${HBASE_LIBS} ${GTEST_LIBS} hbase-sync) - -function(ADD_HBASE_ASYNC_TEST TEST_NAME) - add_executable(${TEST_NAME} ${TEST_NAME}.cc) - target_link_libraries(${TEST_NAME} ${HBASE_ASYNC_TEST_LIBS}) - add_test(${TEST_NAME} "${EXECUTABLE_OUTPUT_PATH}/${TEST_NAME}") -endfunction() - - -function(ADD_HBASE_SYNC_TEST TEST_NAME) - add_executable(${TEST_NAME} ${TEST_NAME}.cc) - target_link_libraries(${TEST_NAME} ${HBASE_ASYNC_TEST_LIBS}) - add_test(${TEST_NAME} "${EXECUTABLE_OUTPUT_PATH}/${TEST_NAME}") -endfunction() - - -##### -# Actual project definition -##### -add_subdirectory(src/async) -add_subdirectory(src/sync) - -add_subdirectory(src/core) -add_subdirectory(src/rpc) - - -add_library(hbase-async SHARED $ $) -add_library(hbase-sync SHARED $ $) diff --git a/hbase-native-client/Makefile.am b/hbase-native-client/Makefile.am new file mode 100755 index 0000000..1d5794b --- /dev/null +++ b/hbase-native-client/Makefile.am @@ -0,0 +1,3 @@ +AUTOMAKE_OPTIONS = foreign +SUBDIRS = src + diff --git a/hbase-native-client/Makefile.in b/hbase-native-client/Makefile.in new file mode 100644 index 0000000..438bff8 --- /dev/null +++ b/hbase-native-client/Makefile.in @@ -0,0 +1,731 @@ +# Makefile.in generated by automake 1.13.4 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = . +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/configure $(am__configure_deps) install-sh \ + missing +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope distdir dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +CSCOPE = cscope +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__post_remove_distdir = $(am__remove_distdir) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +DIST_TARGETS = dist-gzip +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = foreign +SUBDIRS = src +all: all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: + -rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__post_remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__post_remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__post_remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__post_remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__post_remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__post_remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__post_remove_distdir) + +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__post_remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--refresh check check-am clean clean-cscope clean-generic \ + cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ + dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ + distcheck distclean distclean-generic distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags tags-am uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/hbase-native-client/README.md b/hbase-native-client/README.md deleted file mode 100644 index 0bb4d48..0000000 --- a/hbase-native-client/README.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# hbase-native-client - -Native client for HBase 0.96 - -This is a C library that implements a -HBase client. It's thread safe and libEv -based. - - -## Design Philosphy - -Synchronous and Async versions will both be built -on the same foundation. The core foundation will -be C++. External users wanting a C library will -have to choose either async or sync. These -libraries will be thin veneers ontop of the C++. - -We should try and follow pthreads example as much -as possible: - -* Consistent naming. -* Opaque pointers as types so that binary compat is easy. -* Simple setup when the defaults are good. -* Attr structs when lots of paramters could be needed. - - -## Naming -All public C files will start with hbase_*.{h, cc}. This -is to keep naming conflicts to a minimum. Anything without -the hbase_ prefix is assumed to be implementation private. - -All C apis and typedefs will be prefixed with hb_. - -All typedefs end with _t. diff --git a/hbase-native-client/README.txt b/hbase-native-client/README.txt new file mode 100644 index 0000000..ff7a152 --- /dev/null +++ b/hbase-native-client/README.txt @@ -0,0 +1,68 @@ +Project : Hbase C++ driver + +Steps to setup development environment for building this driver + +All the sources were built using the "g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)" compiler, a C++11 compliant. + +1. Install CentOS 7 in Virtual Box –with good memory allocation +Say, [memory 4GB HDD 20GBto40GB] +2. Download Eclipse JEE mars installer eclipse-inst-linux64 + a. Install eclipse for CPP +3. Install gnu build tools + From a terminal, do a 'sudo yum install autoconf automake libtool curl' +4. Install the git tools +5. To build the protobuf libraries, download protobuf-2.5.0 from github from the link + "https://github.com/google/protobuf/releases/tag/v2.5.0" and extract it to a folder + From a terminal, do the following: + a. cd protobuf-2.5.0 + b. ./autogen.sh + c. ./configure + d. make –j4 + e. make check + f. make install (may require super user privileges to install the library) + g. sudo ldconfig # refresh shared library cache +6. To build the poco libraries + From a terminal, do the following: + a. Yum install openssl libssl-dev + b. Yum install libiodbc2 libiodbc2-dev + c. Download poco-1.6.1 sources + d. Cd poco-x.y + e. ./configure + f. gmake –s + g. gmake –s install (may require super user privileges to install the library) +7. To build the zookeeper libraries + a. Download the zookeeper sources from http://apache.arvixe.com/zookeeper/zookeeper-3.4.6 + From a terminal, do the following: + b. cd zookeeper-3.4.6 + c. ./configure + d. make + e. make install (may require super user privileges to install the library) +8. Fork and Clone the hbase project + From a terminal, do a 'git clone –b master https://github.com/apache/hbase.git' +9. The driver is made available as a git patch file. + From a terminal, do the following: + a. cd + b. Do a 'git apply --stat '. The --stat option shows you + what changes are in the patch. This command does not apply the patch, but shows + you the stats about what it will do. + c. Do a 'git apply --check '. The --check option tells you + whether the patch can be applied without any errors. This command does not apply + the patch either like the one above. It is like performing a dry run. If something + is wrong with the patch this command will tell you. + d. Assuming no errors reported by the command in the previous step, now the patch + can be applied. Do a 'git apply '. + e. The patch updates the '/hbase_native_client' folder. All the + sources can be found in that folder. +10. To build the driver, do the following + a. cd /hbase_native_client + b. ./configure + c. make + d. make install (may require super user privileges to install the library) +11. To run the tests, do the following + a. cd /hbase_native_client/src/test + b. ./BuildTestClient.sh + c. The above command produces a TestClient executable + d. To run the TestClient, do a 'TestClient ' + + + diff --git a/hbase-native-client/bin/build-all.sh b/hbase-native-client/bin/build-all.sh deleted file mode 100755 index a3e45de..0000000 --- a/hbase-native-client/bin/build-all.sh +++ /dev/null @@ -1,41 +0,0 @@ -#! /usr/bin/env bash -# -#/** -# * Copyright The Apache Software Foundation -# * -# * Licensed to the Apache Software Foundation (ASF) under one -# * or more contributor license agreements. See the NOTICE file -# * distributed with this work for additional information -# * regarding copyright ownership. The ASF licenses this file -# * to you under the Apache License, Version 2.0 (the -# * "License"); you may not use this file except in compliance -# * with the License. You may obtain a copy of the License at -# * -# * http://www.apache.org/licenses/LICENSE-2.0 -# * -# * Unless required by applicable law or agreed to in writing, software -# * distributed under the License is distributed on an "AS IS" BASIS, -# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# * See the License for the specific language governing permissions and -# * limitations under the License. -# */ - -set -e -set -x - -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - SOURCE="$(readlink "$SOURCE")" - [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located -done -DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - -source ${DIR}/hbase-client-env.sh - -${DIR}/download-thirdparty.sh -${DIR}/build-thirdparty.sh -cd ${HBASE_DIR} -cmake . -make clean all -make test diff --git a/hbase-native-client/bin/build-thirdparty.sh b/hbase-native-client/bin/build-thirdparty.sh deleted file mode 100755 index 097c1a4..0000000 --- a/hbase-native-client/bin/build-thirdparty.sh +++ /dev/null @@ -1,64 +0,0 @@ -#! /usr/bin/env bash -# -#/** -# * Copyright The Apache Software Foundation -# * -# * Licensed to the Apache Software Foundation (ASF) under one -# * or more contributor license agreements. See the NOTICE file -# * distributed with this work for additional information -# * regarding copyright ownership. The ASF licenses this file -# * to you under the Apache License, Version 2.0 (the -# * "License"); you may not use this file except in compliance -# * with the License. You may obtain a copy of the License at -# * -# * http://www.apache.org/licenses/LICENSE-2.0 -# * -# * Unless required by applicable law or agreed to in writing, software -# * distributed under the License is distributed on an "AS IS" BASIS, -# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# * See the License for the specific language governing permissions and -# * limitations under the License. -# */ - -set -x -set -e - -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - SOURCE="$(readlink "$SOURCE")" - [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located -done -DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - -source ${DIR}/../bin/hbase-client-env.sh - -# On some systems, autotools installs libraries to lib64 rather than lib. Fix -# this by setting up lib64 as a symlink to lib. We have to do this step first -# to handle cases where one third-party library depends on another. -mkdir -p "${HBASE_PREFIX}/lib" -cd ${HBASE_PREFIX} -ln -sf lib "${HBASE_PREFIX}/lib64" - -if [ ! -f gtest ]; then - cd ${HBASE_GTEST_DIR} - cmake . - make -j4 - cd .. - ln -sf ${HBASE_GTEST_DIR} gtest -fi - -if [ ! -f ${HBASE_PREFIX}/lib/libprotobuf.a ]; then - cd ${HBASE_PROTOBUF_DIR} - ./configure --with-pic --disable-shared --prefix=${HBASE_PREFIX} - make -j4 install -fi - -if [ ! -f ${HBASE_PREFIX}/lib/libev.a ]; then - cd ${HBASE_LIBEV_DIR} - ./configure --with-pic --disable-shared --prefix=${HBASE_PREFIX} - make -j4 install -fi - -echo "---------------------" -echo "Thirdparty dependencies built and installed into $HBASE_PREFIX successfully" diff --git a/hbase-native-client/bin/download-thirdparty.sh b/hbase-native-client/bin/download-thirdparty.sh deleted file mode 100755 index db98aae..0000000 --- a/hbase-native-client/bin/download-thirdparty.sh +++ /dev/null @@ -1,70 +0,0 @@ -#! /usr/bin/env bash -# -#/** -# * Copyright The Apache Software Foundation -# * -# * Licensed to the Apache Software Foundation (ASF) under one -# * or more contributor license agreements. See the NOTICE file -# * distributed with this work for additional information -# * regarding copyright ownership. The ASF licenses this file -# * to you under the Apache License, Version 2.0 (the -# * "License"); you may not use this file except in compliance -# * with the License. You may obtain a copy of the License at -# * -# * http://www.apache.org/licenses/LICENSE-2.0 -# * -# * Unless required by applicable law or agreed to in writing, software -# * distributed under the License is distributed on an "AS IS" BASIS, -# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# * See the License for the specific language governing permissions and -# * limitations under the License. -# */ - -set -x -set -e - -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - SOURCE="$(readlink "$SOURCE")" - [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located -done -DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - -source ${DIR}/../bin/hbase-client-env.sh - -mkdir -p ${HBASE_TP_DIR} -cd ${HBASE_TP_DIR} - - -if [ ! -d ${HBASE_GTEST_DIR} ]; then - echo "Fetching gtest" - wget -c http://googletest.googlecode.com/files/gtest-${HBASE_GTEST_VERSION}.zip - unzip gtest-${HBASE_GTEST_VERSION}.zip - rm gtest-${HBASE_GTEST_VERSION}.zip -fi - -if [ ! -d ${HBASE_PROTOBUF_DIR} ]; then - echo "Fetching protobuf" - wget -c http://protobuf.googlecode.com/files/protobuf-${HBASE_PROTOBUF_VERSION}.tar.gz - tar xzf protobuf-${HBASE_PROTOBUF_VERSION}.tar.gz - rm protobuf-${HBASE_PROTOBUF_VERSION}.tar.gz -fi - -if [ ! -d $HBASE_LIBEV_DIR ]; then - echo "Fetching libev" - wget -c http://dist.schmorp.de/libev/libev-${HBASE_LIBEV_VERSION}.tar.gz - tar zxf libev-${HBASE_LIBEV_VERSION}.tar.gz - rm -rf libev-${HBASE_LIBEV_VERSION}.tar.gz -fi - -if [ ! -d $HBASE_PREFIX/bin/cpplint.py ]; then - echo "Fetching cpplint" - mkdir -p $HBASE_PREFIX/bin/ - wget -O $HBASE_PREFIX/bin/cpplint.py http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py - chmod +x $HBASE_PREFIX/bin/cpplint.py -fi - - -echo "---------------" -echo "Thirdparty dependencies downloaded successfully" diff --git a/hbase-native-client/bin/hbase-client-env.sh b/hbase-native-client/bin/hbase-client-env.sh deleted file mode 100644 index 96763da..0000000 --- a/hbase-native-client/bin/hbase-client-env.sh +++ /dev/null @@ -1,47 +0,0 @@ -#! /usr/bin/env bash -# -#/** -# * Copyright The Apache Software Foundation -# * -# * Licensed to the Apache Software Foundation (ASF) under one -# * or more contributor license agreements. See the NOTICE file -# * distributed with this work for additional information -# * regarding copyright ownership. The ASF licenses this file -# * to you under the Apache License, Version 2.0 (the -# * "License"); you may not use this file except in compliance -# * with the License. You may obtain a copy of the License at -# * -# * http://www.apache.org/licenses/LICENSE-2.0 -# * -# * Unless required by applicable law or agreed to in writing, software -# * distributed under the License is distributed on an "AS IS" BASIS, -# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# * See the License for the specific language governing permissions and -# * limitations under the License. -# */ - -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - SOURCE="$(readlink "$SOURCE")" - [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to - # resolve it relative to the path where - # the symlink file was located -done -DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -HBASE_DIR="${DIR}/../" -HBASE_TP_DIR="${HBASE_DIR}/thirdparty/" - -HBASE_PREFIX=$HBASE_TP_DIR/installed - -HBASE_GTEST_VERSION=1.7.0 -HBASE_GTEST_DIR=$HBASE_TP_DIR/gtest-$HBASE_GTEST_VERSION - -HBASE_PROTOBUF_VERSION=2.5.0 -HBASE_PROTOBUF_DIR=$HBASE_TP_DIR/protobuf-$HBASE_PROTOBUF_VERSION - -HBASE_LIBEV_VERSION=4.15 -HBASE_LIBEV_DIR=$HBASE_TP_DIR/libev-$HBASE_LIBEV_VERSION - -# use the compiled tools -export PATH=$HBASE_PREFIX/bin:$PATH diff --git a/hbase-native-client/cmake_modules/FindGTest.cmake b/hbase-native-client/cmake_modules/FindGTest.cmake deleted file mode 100644 index 8d27876..0000000 --- a/hbase-native-client/cmake_modules/FindGTest.cmake +++ /dev/null @@ -1,53 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set( GTEST_INCLUDE_SEARCH - ${CMAKE_SOURCE_DIR}/thirdparty/gtest/include -) - -set( GTEST_LIB_SEARCH - ${CMAKE_SOURCE_DIR}/thirdparty/gtest -) - -find_path(GTEST_INCLUDE - NAMES gtest/gtest.h - PATHS ${GTEST_INCLUDE_SEARCH} - NO_DEFAULT_PATH -) - -find_library(GTEST_LIBRARY - NAMES gtest - PATHS ${GTEST_LIB_SEARCH} - NO_DEFAULT_PATH -) - -find_library(GTEST_LIBRARY_MAIN - NAMES gtest_main - PATHS ${GTEST_LIB_SEARCH} - NO_DEFAULT_PATH -) - -if (GTEST_INCLUDE AND GTEST_LIBRARY AND GTEST_LIBRARY_MAIN) - set(GTEST_LIBS ${GTEST_LIBRARY} ${GTEST_LIBRARY_MAIN}) - set(GTEST_INCLUDE_DIR ${GTEST_INCLUDE}) - set(GTEST_FOUND TRUE) -endif() - -mark_as_advanced( - GTEST_INCLUDE_DIR - GTEST_LIBS -) diff --git a/hbase-native-client/cmake_modules/FindLibEv.cmake b/hbase-native-client/cmake_modules/FindLibEv.cmake deleted file mode 100644 index 5fd3e86..0000000 --- a/hbase-native-client/cmake_modules/FindLibEv.cmake +++ /dev/null @@ -1,47 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set( LIBEV_INCLUDE_SEARCH - ${CMAKE_SOURCE_DIR}/thirdparty/installed/include -) - -set( LIBEV_LIB_SEARCH - ${CMAKE_SOURCE_DIR}/thirdparty/installed/include -) - -find_path(LIBEV_INCLUDE - NAMES ev++.h - PATHS ${LIBEV_INCLUDE_SEARCH} - NO_DEFAULT_PATH -) - -find_library(LIBEV_LIBRARY - NAMES ev - PATHS ${LIBEV_LIB_SEARCH} - NO_DEFAULT_PATH -) - -if (LIBEV_INCLUDE_PATH AND LIBEV_LIBRARY) - set(LIBEV_LIBS ${LIBEV_LIBRARY}) - set(LIBEV_INCLUDE_DIR ${LIBEV_INCLUDE}) - set(LIBEV_FOUND TRUE) -endif() - -mark_as_advanced( - LIBEV_INCLUDE_DIR - LIBEV_LIBS -) diff --git a/hbase-native-client/configure b/hbase-native-client/configure new file mode 100755 index 0000000..0f97bc5 --- /dev/null +++ b/hbase-native-client/configure @@ -0,0 +1,6202 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for CHbaseClient 0.01. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: priya.darshini@hashmapinc.com about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='CHbaseClient' +PACKAGE_TARNAME='chbaseclient' +PACKAGE_VERSION='0.01' +PACKAGE_STRING='CHbaseClient 0.01' +PACKAGE_BUGREPORT='priya.darshini@hashmapinc.com' +PACKAGE_URL='' + +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +EGREP +GREP +CPP +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +ac_ct_CC +CFLAGS +CC +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +CPPFLAGS +LDFLAGS +CXXFLAGS +CXX +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC +CC +CFLAGS +CPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures CHbaseClient 0.01 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/chbaseclient] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of CHbaseClient 0.01:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CC C compiler command + CFLAGS C compiler flags + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +CHbaseClient configure 0.01 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## -------------------------------------------- ## +## Report this to priya.darshini@hashmapinc.com ## +## -------------------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_type + +# ac_fn_c_find_intX_t LINENO BITS VAR +# ----------------------------------- +# Finds a signed integer type with width BITS, setting cache variable VAR +# accordingly. +ac_fn_c_find_intX_t () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 +$as_echo_n "checking for int$2_t... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + # Order is important - never check a type that is potentially smaller + # than half of the expected target width. + for ac_type in int$2_t 'int' 'long int' \ + 'long long int' 'short int' 'signed char'; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + enum { N = $2 / 2 - 1 }; +int +main () +{ +static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + enum { N = $2 / 2 - 1 }; +int +main () +{ +static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) + < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + case $ac_type in #( + int$2_t) : + eval "$3=yes" ;; #( + *) : + eval "$3=\$ac_type" ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if eval test \"x\$"$3"\" = x"no"; then : + +else + break +fi + done +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_find_intX_t + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by CHbaseClient $as_me 0.01, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +#AC_CONFIG_SRCDIR([src/core/admin.cc]) +#AC_CONFIG_HEADERS([config.h]) +am__api_version='1.13' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + + PACKAGE=CHbaseClient + VERSION=0.01 + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + +#AC_ENABLE_SHARED +#AC_DISABLE_STATIC + +# Checks for programs. +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C++ compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +#LT_INIT + +# Checks for libraries. + +# Checks for header files. + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in stddef.h stdint.h stdlib.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + /* See body of main program for 'e'. */ + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + bool e = &s; + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE__BOOL 1 +_ACEOF + + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + +ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" +case $ac_cv_c_int64_t in #( + no|yes) ;; #( + *) + +cat >>confdefs.h <<_ACEOF +#define int64_t $ac_cv_c_int64_t +_ACEOF +;; +esac + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + + +# Checks for library functions. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 +$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } +if ${ac_cv_header_sys_types_h_makedev+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return makedev(0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_header_sys_types_h_makedev=yes +else + ac_cv_header_sys_types_h_makedev=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 +$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } + +if test $ac_cv_header_sys_types_h_makedev = no; then +ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : + +$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h + +fi + + + + if test $ac_cv_header_sys_mkdev_h = no; then + ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : + +$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h + +fi + + + fi +fi + +for ac_func in memset socket +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +ac_config_files="$ac_config_files Makefile src/Makefile" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} +t clear +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +t quote +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +t quote +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` + + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by CHbaseClient $as_me 0.01, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +CHbaseClient config.status 0.01 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + + +eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + diff --git a/hbase-native-client/configure.ac b/hbase-native-client/configure.ac new file mode 100755 index 0000000..6c4181a --- /dev/null +++ b/hbase-native-client/configure.ac @@ -0,0 +1,32 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT([CHbaseClient], [0.01], [priya.darshini@hashmapinc.com]) +#AC_CONFIG_SRCDIR([src/core/admin.cc]) +#AC_CONFIG_HEADERS([config.h]) +AM_INIT_AUTOMAKE(CHbaseClient, 0.01) +#AC_ENABLE_SHARED +#AC_DISABLE_STATIC + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC +#LT_INIT + +# Checks for libraries. + +# Checks for header files. +AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_CHECK_HEADER_STDBOOL +AC_C_INLINE +AC_TYPE_INT64_T +AC_TYPE_SIZE_T + +# Checks for library functions. +AC_HEADER_MAJOR +AC_CHECK_FUNCS([memset socket]) + +AC_OUTPUT(Makefile src/Makefile) diff --git a/hbase-native-client/install-sh b/hbase-native-client/install-sh new file mode 100755 index 0000000..377bb86 --- /dev/null +++ b/hbase-native-client/install-sh @@ -0,0 +1,527 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2011-11-20.07; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# 'make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +nl=' +' +IFS=" "" $nl" + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +no_target_directory= + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/hbase-native-client/missing b/hbase-native-client/missing new file mode 100755 index 0000000..cdea514 --- /dev/null +++ b/hbase-native-client/missing @@ -0,0 +1,215 @@ +#! /bin/sh +# Common wrapper for a few potentially missing GNU programs. + +scriptversion=2012-06-26.16; # UTC + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try '$0 --help' for more information" + exit 1 +fi + +case $1 in + + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; + + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + +Supported PROGRAM values: + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man + +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: unknown '$1' option" + echo 1>&2 "Try '$0 --help' for more information" + exit 1 + ;; + +esac + +# Run the given program, remember its exit status. +"$@"; st=$? + +# If it succeeded, we are done. +test $st -eq 0 && exit 0 + +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch. This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then + msg="probably too old" +elif test $st -eq 127; then + # Program was missing. + msg="missing on your system" +else + # Program was found and executed, but failed. Give up. + exit $st +fi + +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ + case $1 in + aclocal|automake) + echo "The '$1' program is part of the GNU Automake package:" + echo "<$gnu_software_URL/automake>" + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/autoconf>" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + autoconf|autom4te|autoheader) + echo "The '$1' program is part of the GNU Autoconf package:" + echo "<$gnu_software_URL/autoconf/>" + echo "It also requires GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + esac +} + +give_advice () +{ + # Normalize program name to check for. + normalized_program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + + printf '%s\n' "'$1' is $msg." + + configure_deps="'configure.ac' or m4 files included by 'configure.ac'" + case $normalized_program in + autoconf*) + echo "You should only need it if you modified 'configure.ac'," + echo "or m4 files included by it." + program_details 'autoconf' + ;; + autoheader*) + echo "You should only need it if you modified 'acconfig.h' or" + echo "$configure_deps." + program_details 'autoheader' + ;; + automake*) + echo "You should only need it if you modified 'Makefile.am' or" + echo "$configure_deps." + program_details 'automake' + ;; + aclocal*) + echo "You should only need it if you modified 'acinclude.m4' or" + echo "$configure_deps." + program_details 'aclocal' + ;; + autom4te*) + echo "You might have modified some maintainer files that require" + echo "the 'automa4te' program to be rebuilt." + program_details 'autom4te' + ;; + bison*|yacc*) + echo "You should only need it if you modified a '.y' file." + echo "You may want to install the GNU Bison package:" + echo "<$gnu_software_URL/bison/>" + ;; + lex*|flex*) + echo "You should only need it if you modified a '.l' file." + echo "You may want to install the Fast Lexical Analyzer package:" + echo "<$flex_URL>" + ;; + help2man*) + echo "You should only need it if you modified a dependency" \ + "of a man page." + echo "You may want to install the GNU Help2man package:" + echo "<$gnu_software_URL/help2man/>" + ;; + makeinfo*) + echo "You should only need it if you modified a '.texi' file, or" + echo "any other file indirectly affecting the aspect of the manual." + echo "You might want to install the Texinfo package:" + echo "<$gnu_software_URL/texinfo/>" + echo "The spurious makeinfo call might also be the consequence of" + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "want to install GNU make:" + echo "<$gnu_software_URL/make/>" + ;; + *) + echo "You might have modified some files without having the proper" + echo "tools for further handling them. Check the 'README' file, it" + echo "often tells you about the needed prerequisites for installing" + echo "this package. You may also peek at any GNU archive site, in" + echo "case some other package contains this missing '$1' program." + ;; + esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ + -e '2,$s/^/ /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/hbase-native-client/src/Makefile.am b/hbase-native-client/src/Makefile.am new file mode 100755 index 0000000..2ffad26 --- /dev/null +++ b/hbase-native-client/src/Makefile.am @@ -0,0 +1,61 @@ +#use "gcc" to compile source files +CC:=g++ +LD:=g++ + +MODULES = core util rpc/generated zk +SRC_DIR = $(MODULES)# $(addprefix src/,$(MODULES)) +BUILD_DIR = $(addprefix build/,$(MODULES)) + +#flags to pass to the CPP compiler & linker +CPPFLAGS = -g -Wall -std=c++11 -pedantic -fPIC +LDFLAGS = -lprotobuf -lPocoNet -lPocoUtil -lPocoXML -lPocoFoundation -lzookeeper_mt +LINKFLAG = -shared + +#define list of source files and object files +SRC = $(foreach sdir,$(SRC_DIR),$(wildcard $(sdir)/*.cc)) +OBJ = $(patsubst %.cc,build/%.o,$(SRC)) +#OBJS = $(subst build/test/TestClient.o,,${OBJ}) +INCLUDES = $(addprefix -I,$(SRC_DIR)) +#EXE = build/testClient.exe +LIB_DIR = /usr/local +LIB_LIBDIR = $(LIB_DIR)/lib +LIB_INCDIR = $(LIB_DIR)/include +#LIB = /usr/local/lib/libHbaseClient.so +#ARC = /usr/local/lib/libHbaseClient.a +LIB=build/libHbaseClient.so +ARC=build/libHbaseClient.a + +vpath %.cc $(SRC_DIR) + +$(LIB): $(OBJ) +define make-goal +$1/%.o: %.cc + $(CC) $(INCLUDES) -c $$< -o $$@ $(CPPFLAGS) +endef + +.PHONY: all checkdirs clean +all: checkdirs $(LIB) $(ARC) + +#$(EXE): $(OBJ) +# $(LD) $^ -o $@ $(LDFLAGS) + +checkdirs: $(BUILD_DIR) + +install: + cp $(LIB) $(LIB_LIBDIR)/libHbaseClient.so + cp $(ARC) $(LIB_LIBDIR)/libHbaseClient.a + +$(BUILD_DIR): + @mkdir -p $@ + +$(ARC): $(OBJ) + ar rcs $(ARC) $(OBJS) + +$(LIB): $(OBJ) + $(LD) $(LINKFLAG) $^ -o $@ $(LDFLAGS) + +#to clean re-compilable files +clean: + @rm -rf $(BUILD_DIR) $(LIB) $(ARC) + +$(foreach bdir,$(BUILD_DIR),$(eval $(call make-goal,$(bdir)))) diff --git a/hbase-native-client/src/Makefile.in b/hbase-native-client/src/Makefile.in new file mode 100644 index 0000000..ec65e0c --- /dev/null +++ b/hbase-native-client/src/Makefile.in @@ -0,0 +1,441 @@ +# Makefile.in generated by automake 1.13.4 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = src +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ + +#use "gcc" to compile source files +CC := g++ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ + +#flags to pass to the CPP compiler & linker +CPPFLAGS = $(DEBUG_FLAGS) -Wall -std=c++11 -pedantic -fPIC +DEBUG_FLAGS = +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = -lprotobuf -lPocoNet -lPocoUtil -lPocoXML -lPocoFoundation -lzookeeper_mt +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +LD := g++ +MODULES = core util rpc/generated zk +SRC_DIR = $(MODULES)# $(addprefix src/,$(MODULES)) +BUILD_DIR = $(addprefix build/,$(MODULES)) +LINKFLAG = -shared + +#define list of source files and object files +SRC = $(foreach sdir,$(SRC_DIR),$(wildcard $(sdir)/*.cc)) +OBJ = $(patsubst %.cc,build/%.o,$(SRC)) +#OBJS = $(subst build/test/TestClient.o,,${OBJ}) +INCLUDES = $(addprefix -I,$(SRC_DIR)) +#EXE = build/testClient.exe +LIB_DIR = /usr/local +LIB_LIBDIR = $(LIB_DIR)/lib +LIB_INCDIR = $(LIB_DIR)/include +#LIB = /usr/local/lib/libHbaseClient.so +#ARC = /usr/local/lib/libHbaseClient.a +LIB = build/libHbaseClient.so +ARC = build/libHbaseClient.a +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign src/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags-am uninstall uninstall-am + + +vpath %.cc $(SRC_DIR) + +$(LIB): $(OBJ) +define make-goal +$1/%.o: %.cc + $(CC) $(INCLUDES) -c $$< -o $$@ $(CPPFLAGS) +endef + +.PHONY: all checkdirs clean +all: checkdirs $(LIB) $(ARC) + +#$(EXE): $(OBJ) +# $(LD) $^ -o $@ $(LDFLAGS) + +checkdirs: $(BUILD_DIR) + +install: + cp $(LIB) $(LIB_LIBDIR)/libHbaseClient.so + cp $(ARC) $(LIB_LIBDIR)/libHbaseClient.a + +$(BUILD_DIR): + @mkdir -p $@ + +$(ARC): $(OBJ) + ar rcs $(ARC) $(OBJS) + +$(LIB): $(OBJ) + $(LD) $(LINKFLAG) $^ -o $@ $(LDFLAGS) + +#to clean re-compilable files +clean: + @rm -rf $(BUILD_DIR) $(LIB) $(ARC) + +$(foreach bdir,$(BUILD_DIR),$(eval $(call make-goal,$(bdir)))) + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/hbase-native-client/src/async/CMakeLists.txt b/hbase-native-client/src/async/CMakeLists.txt deleted file mode 100644 index b2ed461..0000000 --- a/hbase-native-client/src/async/CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set( ASYNC_SRC - hbase_admin.cc - hbase_client.cc - hbase_connection.cc - hbase_get.cc - hbase_mutations.cc - hbase_result.cc - hbase_scanner.cc -) - - -add_library(hasync OBJECT ${ASYNC_SRC}) - -ADD_HBASE_ASYNC_TEST(mutations-test) -ADD_HBASE_ASYNC_TEST(get-test) diff --git a/hbase-native-client/src/async/get-test.cc b/hbase-native-client/src/async/get-test.cc deleted file mode 100644 index df94ce2..0000000 --- a/hbase-native-client/src/async/get-test.cc +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include - -#include "gtest/gtest.h" -#include "async/hbase_get.h" -#include "async/hbase_client.h" - - -pthread_cond_t cv; -pthread_mutex_t mutex; - -TEST(GetTest, TestPut) { - char tn[] = "T1"; - hb_byte_t row[] = "ROW"; - - hb_client_t client = NULL; - hb_get_t get = NULL; - int32_t s1 = -1; - - pthread_cond_init(&cv, NULL); - pthread_mutex_init(&mutex, NULL); - - s1 = hb_client_create(&client, NULL); - EXPECT_EQ(0, s1); - - s1 = hb_get_create(&get); - EXPECT_EQ(0, s1); - - hb_get_set_table(get, tn, 2); - hb_get_set_row(get, row, 3); - - /* - * TODO: - * This is currently a NO-OP as there is no CB. - */ - hb_get_send(client, get, NULL, NULL); - - hb_client_destroy(client, NULL, NULL); - - EXPECT_EQ(0, s1); -} diff --git a/hbase-native-client/src/async/hbase_admin.cc b/hbase-native-client/src/async/hbase_admin.cc deleted file mode 100644 index 17ff2a7..0000000 --- a/hbase-native-client/src/async/hbase_admin.cc +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "async/hbase_admin.h" - -#include -#include - -#include "core/admin.h" -#include "async/hbase_connection.h" - -int32_t hb_admin_create(hb_admin_t* admin_ptr, - hb_connection_t connection) { - (*admin_ptr) = reinterpret_cast(new Admin()); - return 0; -} - -/* - * Disconnect the admin releasing any internal objects - * or connections created in the background. - */ -int32_t hb_admin_destroy(hb_admin_t admin, - hb_admin_disconnection_cb cb, void * extra) { - if (cb) - cb(0, admin, extra); - free(admin); - return 0; -} - -/* - * See if a table exists. - */ -int32_t hb_admin_table_exists(hb_admin_t admin, - char * name_space, size_t name_space_length, - char * table, size_t table_length, - hb_admin_table_exists_cb cb, void * extra) { - if (cb) - cb(0, admin, name_space, name_space_length, - table, table_length, true, extra); - return 0; -} diff --git a/hbase-native-client/src/async/hbase_admin.h b/hbase-native-client/src/async/hbase_admin.h deleted file mode 100644 index f03a83f..0000000 --- a/hbase-native-client/src/async/hbase_admin.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef ASYNC_HBASE_ADMIN_H_ -#define ASYNC_HBASE_ADMIN_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include - -#include "core/hbase_macros.h" -#include "async/hbase_connection.h" - - -typedef void (* hb_admin_disconnection_cb)( int32_t status, - hb_admin_t admin, void * extra); -typedef void (* hb_admin_table_exists_cb)(int32_t status, hb_admin_t admin, - char * name_space, size_t name_space_length, - char * table, size_t table_length, bool exsists, void * extra); - -/** - * Create a new hb_admin. - * All fields are initialized to the defaults. If you want to set - * connection or other properties, set those before calling any - * RPC functions. - */ -HBASE_API int32_t hb_admin_create(hb_admin_t* admin_ptr, - hb_connection_t connection); - -/* - * Disconnect the admin releasing any internal objects - * or connections created in the background. - */ -HBASE_API int32_t hb_admin_destroy(hb_admin_t admin, - hb_admin_disconnection_cb cb, void * extra); - -/* - * See if a table exists. - */ -HBASE_API int32_t hb_admin_table_exists(hb_admin_t admin, - char * name_space, size_t name_space_length, - char * table, size_t table_length, - hb_admin_table_exists_cb cb, void * extra); - - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // ASYNC_HBASE_ADMIN_H_ diff --git a/hbase-native-client/src/async/hbase_client.cc b/hbase-native-client/src/async/hbase_client.cc deleted file mode 100644 index 98e3dbf..0000000 --- a/hbase-native-client/src/async/hbase_client.cc +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "async/hbase_client.h" - -#include -#include -#include - -#include "core/client.h" -#include "async/hbase_connection.h" - -int32_t hb_client_create(hb_client_t* client_ptr, - hb_connection_t connection) { - (*client_ptr) = reinterpret_cast(new Client()); - if (client_ptr == NULL) - return -1; // TODO(eclark): setup the errno file. - return 0; -} - -int32_t hb_client_destroy(hb_client_t client, - hb_client_disconnection_cb cb, void * extra) { - if (client == NULL) - return -2; - if (cb) { - cb(0, client, extra); - } - free(client); - return 0; -} - diff --git a/hbase-native-client/src/async/hbase_client.h b/hbase-native-client/src/async/hbase_client.h deleted file mode 100644 index 34c3d98..0000000 --- a/hbase-native-client/src/async/hbase_client.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef ASYNC_HBASE_CLIENT_H_ -#define ASYNC_HBASE_CLIENT_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "core/hbase_macros.h" -#include "core/hbase_types.h" - -/* - * Client disconnection callback typedef - * - * This is called after the connections are closed, but just - * before the client is freed. - */ -typedef void (* hb_client_disconnection_cb)( int32_t status, - hb_client_t client, void * extra); - -/** - * Create an hb_client_t. - * - * If connection is null then all defaults will be used. - */ -HBASE_API int32_t hb_client_create(hb_client_t * client_ptr, - hb_connection_t connection); - -/* - * Disconnect the client releasing any internal objects - * or connections created in the background. - */ -HBASE_API int32_t hb_client_destroy(hb_client_t client, - hb_client_disconnection_cb cb, void * extra); - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // ASYNC_HBASE_CLIENT_H_ - - diff --git a/hbase-native-client/src/async/hbase_connection.cc b/hbase-native-client/src/async/hbase_connection.cc deleted file mode 100644 index 57fa4f5..0000000 --- a/hbase-native-client/src/async/hbase_connection.cc +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "async/hbase_connection.h" - -#include "core/connection.h" -#include "core/hbase_types.h" - -extern "C" { -int32_t hb_connection_create(hb_connection_t * connection_ptr, - hb_connection_attr_t connection_attr) { - (*connection_ptr) = reinterpret_cast(new Connection()); - if ((*connection_ptr) == NULL) - return -1; - return 0; -} -int32_t hb_connection_destroy(hb_connection_t connection) { - free(connection); - return 0; -} -} // extern "C" diff --git a/hbase-native-client/src/async/hbase_connection.h b/hbase-native-client/src/async/hbase_connection.h deleted file mode 100644 index 343f36c..0000000 --- a/hbase-native-client/src/async/hbase_connection.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef ASYNC_HBASE_CONNECTION_H_ -#define ASYNC_HBASE_CONNECTION_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "core/hbase_macros.h" -#include "core/hbase_types.h" -#include "core/hbase_connection_attr.h" - -#include - -/** - * Create an hb_connection. - * - * if connection_attr is null everything will be left as default - */ -HBASE_API int32_t hb_connection_create(hb_connection_t * connection_ptr, - hb_connection_attr_t connection_attr); - -/** - * Destroy the connection and free all resources allocated at creation - * time. - */ -HBASE_API int32_t hb_connection_destroy(hb_connection_t connection); - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // ASYNC_HBASE_CONNECTION_H_ - diff --git a/hbase-native-client/src/async/hbase_errno.h b/hbase-native-client/src/async/hbase_errno.h deleted file mode 100644 index 1698bbd..0000000 --- a/hbase-native-client/src/async/hbase_errno.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef ASYNC_HBASE_ERRNO_H_ -#define ASYNC_HBASE_ERRNO_H_ - -#endif // ASYNC_HBASE_ERRNO_H_ diff --git a/hbase-native-client/src/async/hbase_get.cc b/hbase-native-client/src/async/hbase_get.cc deleted file mode 100644 index 32048d8..0000000 --- a/hbase-native-client/src/async/hbase_get.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "async/hbase_get.h" - -#include -#include - -#include "core/get.h" - -int32_t hb_get_create(hb_get_t * get_ptr) { - (*get_ptr) = reinterpret_cast(new Get()); - if ((*get_ptr) == NULL) { - return -1; - } - return 0; -} - -int32_t hb_get_destroy(hb_get_t get) { - free(get); - return 0; -} - -int32_t hb_get_set_row(hb_get_t get, unsigned char * row, - size_t row_length) { - return 0; -} - -int32_t hb_get_set_table(hb_get_t get, - char * table, size_t table_length) { - return 0; -} - -int32_t hb_get_set_namespace(hb_get_t get, - char * name_space, size_t name_space_length) { - return 0; -} - -int32_t hb_get_send(hb_client_t client, - hb_get_t get, hb_get_cb cb, void * extra) { - if (cb) { - cb(0, client, get, NULL, extra); - } - return 0; -} diff --git a/hbase-native-client/src/async/hbase_get.h b/hbase-native-client/src/async/hbase_get.h deleted file mode 100644 index 7d91c08..0000000 --- a/hbase-native-client/src/async/hbase_get.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef ASYNC_HBASE_GET_H_ -#define ASYNC_HBASE_GET_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "core/hbase_macros.h" -#include "core/hbase_types.h" - -/** - * Allocate a new get structure. - * Ownership passes to the caller. - */ -HBASE_API int32_t hb_get_create(hb_get_t * get_ptr); - -/** - * Destroy and free a get structure. - */ -HBASE_API int32_t hb_get_destroy(hb_get_t get); - -/** - * set the row of this get. - */ -HBASE_API int32_t hb_get_set_row(hb_get_t get, hb_byte_t * row, - size_t row_length); - -/** - * Set the table. - */ -HBASE_API int32_t hb_get_set_table(hb_get_t get, - char * table, size_t table_length); - -/** - * Set the namespace this get is targeting. - */ -HBASE_API int32_t hb_get_set_namespace(hb_get_t get, - char * name_space, size_t name_space_length); - -/* - * get call back typedef. - */ -typedef void (* hb_get_cb)(int32_t status, hb_client_t client, - hb_get_t get, hb_result_t results, void * extra); - -HBASE_API int32_t hb_get_send(hb_client_t client, - hb_get_t get, hb_get_cb cb, void * extra); - - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // ASYNC_HBASE_GET_H_ diff --git a/hbase-native-client/src/async/hbase_mutations.cc b/hbase-native-client/src/async/hbase_mutations.cc deleted file mode 100644 index 2456dc0..0000000 --- a/hbase-native-client/src/async/hbase_mutations.cc +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "async/hbase_mutations.h" - -#include - -#include "core/hbase_types.h" -#include "core/mutation.h" -#include "core/put.h" -#include "core/delete.h" - -#include "async/hbase_result.h" - -extern "C" { -int32_t hb_put_create(hb_put_t* put_ptr) { - (*put_ptr) = reinterpret_cast(new Put()); - return 0; -} - -int32_t hb_delete_create(hb_delete_t * delete_ptr) { - (*delete_ptr) = reinterpret_cast(new Delete()); - return 0; -} - -int32_t hb_increment_create(hb_increment_t * increment_ptr) { - return 0; -} - -int32_t hb_append_create(hb_append_t * append_ptr) { - return 0; -} - -int32_t hb_mutation_destroy(hb_mutation_t mutation) { - return 0; -} - -HBASE_API int32_t hb_mutation_set_namespace(hb_mutation_t mutation, - char * name_space, size_t name_space_length) { - Mutation * m = reinterpret_cast(mutation); - m->set_namespace(name_space, name_space_length); - return 0; -} - -HBASE_API int32_t hb_mutation_set_table(hb_mutation_t mutation, - char * table, size_t table_length) { - Mutation * m = reinterpret_cast(mutation); - m->set_namespace(table, table_length); - return 0; -} - -int32_t hb_mutation_set_row(hb_mutation_t mutation, - unsigned char * rk, size_t row_length) { - Mutation * m = reinterpret_cast(mutation); - m->set_row(rk, row_length); - return 0; -} - -int32_t hb_mutation_set_durability(hb_mutation_t mutation, - hb_durability_type durability) { - Mutation * m = reinterpret_cast(mutation); - m->set_durability(durability); - return 0; -} - -int32_t hb_put_add_cell(hb_put_t put, hb_cell_t * cell) { - return 0; -} - -int32_t hb_delete_add_col(hb_increment_t incr, - unsigned char * family, size_t family_length, - unsigned char * qual, size_t qual_length) { - return 0; -} - -int32_t hb_increment_add_value(hb_increment_t incr, - unsigned char * family, size_t family_length, - unsigned char * qual, size_t qual_length, - int64_t ammount) { - return 0; -} - -int32_t hb_append_add_cell(hb_append_t put, hb_cell_t * cell) { - return 0; -} - -int32_t hb_mutation_send(hb_client_t client, - hb_mutation_t mutation, hb_mutation_cb cb, - void * extra) { - if (cb) { - cb(0, client, mutation, NULL, extra); - } - return 0; -} -} // extern "C" diff --git a/hbase-native-client/src/async/hbase_mutations.h b/hbase-native-client/src/async/hbase_mutations.h deleted file mode 100644 index 4000390..0000000 --- a/hbase-native-client/src/async/hbase_mutations.h +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef ASYNC_HBASE_MUTATIONS_H_ -#define ASYNC_HBASE_MUTATIONS_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "core/hbase_types.h" -#include "async/hbase_result.h" - -// Creation methods - -/** - * Create a put. - * Ownership passes to the caller. - */ -HBASE_API int32_t hb_put_create(hb_put_t * put_ptr); - -/** - * Create a delete - * Ownership passes to the caller. - */ -HBASE_API int32_t hb_delete_create(hb_delete_t * delete_ptr); - -/** - * Create an increment - * Ownership passes to the caller. - */ -HBASE_API int32_t hb_increment_create(hb_increment_t * increment_ptr); - -/** - * Create an append - * Ownership passes to the caller. - */ -HBASE_API int32_t hb_append_create(hb_append_t * append_ptr); - -/** - * Destroy the mutation. - * All internal structures are cleaned up. However any backing - * data structures passed in by the user are not cleaned up. - */ -HBASE_API int32_t hb_mutation_destroy(hb_mutation_t mutation); - -// Shared setters. -HBASE_API int32_t hb_mutation_set_namespace(hb_mutation_t mutation, - char * name_space, size_t name_space_length); -HBASE_API int32_t hb_mutation_set_table(hb_mutation_t mutation, - char * table, size_t table_length); -HBASE_API int32_t hb_mutation_set_row(hb_mutation_t mutation, - unsigned char * rk, size_t row_length); -HBASE_API int32_t hb_mutation_set_durability(hb_mutation_t mutation, - hb_durability_type durability); - -// Put Setters etc. -HBASE_API int32_t hb_put_add_cell(hb_put_t put, hb_cell_t * cell); - -// Delete -HBASE_API int32_t hb_delete_add_col(hb_increment_t incr, - unsigned char * family, size_t family_length, - unsigned char * qual, size_t qual_length); - -// Increment -HBASE_API int32_t hb_increment_add_value(hb_increment_t incr, - unsigned char * family, size_t family_length, - unsigned char * qual, size_t qual_length, - int64_t ammount); - -// Append -HBASE_API int32_t hb_append_add_cell(hb_append_t put, hb_cell_t * cell); - -// Now that the mutations are created and populated -// The real meat of the client is below. - -/* - * mutation call back typedef - */ -typedef void (* hb_mutation_cb)(int32_t status, - hb_client_t client, hb_mutation_t mutation, - hb_result_t result, void * extra); - -/* - * Queue a single mutation. This mutation will be - * sent out in the background and can be batched with - * other requests destined for the same server. - * - * The call back will be executed after the response - * is received from the RegionServer. Even if the - * mutation was batched with other requests, - * the call back will be invoked for every mutation - * individually. - */ -HBASE_API int32_t hb_mutation_send(hb_client_t client, - hb_mutation_t mutation, hb_mutation_cb cb, - void * extra); - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // ASYNC_HBASE_MUTATIONS_H_ diff --git a/hbase-native-client/src/async/hbase_result.cc b/hbase-native-client/src/async/hbase_result.cc deleted file mode 100644 index 9351270..0000000 --- a/hbase-native-client/src/async/hbase_result.cc +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "async/hbase_result.h" - -#include "core/hbase_types.h" - -int32_t hb_result_get_cells(hb_result_t result, - hb_cell_t ** cell_ptr, size_t * num_cells) { - return 0; -} - -int32_t hb_result_get_table(hb_result_t result, - char ** table, size_t * table_length) { - return 0; -} - -int32_t hb_result_get_namespace(hb_result_t result, - char ** name_space, size_t * name_space_length) { - return 0; -} diff --git a/hbase-native-client/src/async/hbase_result.h b/hbase-native-client/src/async/hbase_result.h deleted file mode 100644 index eecbbb3..0000000 --- a/hbase-native-client/src/async/hbase_result.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef ASYNC_HBASE_RESULT_H_ -#define ASYNC_HBASE_RESULT_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "core/hbase_macros.h" -#include "core/hbase_types.h" - -HBASE_API int32_t hb_result_destroy(hb_result_t result); - -HBASE_API int32_t hb_result_get_cells(hb_result_t result, - hb_cell_t ** cell_ptr, size_t * num_cells); - -HBASE_API int32_t hb_result_get_table(hb_result_t result, - char ** table, size_t * table_length); -HBASE_API int32_t hb_result_get_namespace(hb_result_t result, - char ** name_space, size_t * name_space_length); - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // ASYNC_HBASE_RESULT_H_ diff --git a/hbase-native-client/src/async/hbase_scanner.cc b/hbase-native-client/src/async/hbase_scanner.cc deleted file mode 100644 index 5a8e555..0000000 --- a/hbase-native-client/src/async/hbase_scanner.cc +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -#include "async/hbase_scanner.h" - -#include - -#include "core/hbase_types.h" -#include "core/scanner.h" - -int32_t hb_scanner_create(hb_scanner_t * scanner_ptr) { - (*scanner_ptr) = reinterpret_cast(new Scanner()); - return (*scanner_ptr != NULL)?0:1; -} - -HBASE_API int32_t hb_scanner_set_table(hb_scanner_t scanner, - char * table, size_t table_length) { - return 0; -} - -HBASE_API int32_t hb_scanner_set_namespace(hb_scanner_t scanner, - char * name_space, size_t name_space_length) { - return 0; -} - -int32_t hb_scanner_set_start_row(hb_scanner_t scanner, - unsigned char * start_row, size_t start_row_length) { - return 0; -} - -int32_t hb_scanner_set_end_row(hb_scanner_t scanner, - unsigned char * end_row, size_t end_row_length) { - return 0; -} - -int32_t hb_scanner_set_cache_size(hb_scanner_t scanner, - size_t cache_size) { - return 0; -} - -int32_t hb_scanner_set_num_versions(hb_scanner_t scanner, - int8_t num_versions) { - return 0; -} diff --git a/hbase-native-client/src/async/hbase_scanner.h b/hbase-native-client/src/async/hbase_scanner.h deleted file mode 100644 index cd3f544..0000000 --- a/hbase-native-client/src/async/hbase_scanner.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef ASYNC_HBASE_SCANNER_H_ -#define ASYNC_HBASE_SCANNER_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "async/hbase_result.h" -#include "core/hbase_types.h" - -HBASE_API int32_t hb_scanner_create(hb_scanner_t * scanner_ptr); - -HBASE_API int32_t hb_scanner_set_table(hb_scanner_t scanner, - char * table, size_t table_length); -HBASE_API int32_t hb_scanner_set_namespace(hb_scanner_t scanner, - char * name_space, size_t name_space_length); - -HBASE_API int32_t hb_scanner_set_start_row(hb_scanner_t scanner, - unsigned char * start_row, size_t start_row_length); -HBASE_API int32_t hb_scanner_set_end_row(hb_scanner_t scanner, - unsigned char * end_row, size_t end_row_length); - -HBASE_API int32_t hb_scanner_set_cache_size(hb_scanner_t scanner, - size_t cache_size); -HBASE_API int32_t hb_scanner_set_batch_size(hb_scanner_t scanner, - size_t batch_size); -HBASE_API int32_t hb_scanner_set_num_versions(hb_scanner_t scanner, - int8_t num_versions); - -/* - * Scanner call back typedef. - * - * This will be called when initinalization of the scanner - * is complete. It will also be called when scanner next - * returns results. - */ -typedef void (* hb_scanner_cb)(int32_t status, - hb_client_t client, - hb_scanner_t scanner, - hb_result_t results, - size_t num_results, - void * extra); -/* - * Get the next results from the scanner - */ -HBASE_API int32_t hb_scanner_next(hb_client_t client, - hb_scanner_t scanner, hb_scanner_cb cb, void * extra); - -/* - * Close the scanner releasing any local and server side - * resources held. The call back is fired just before the - * scanner's memory is freed. - */ -HBASE_API int32_t hb_scanner_destroy(hb_client_t client, - hb_scanner_t scanner, hb_scanner_cb cb, void * extra); - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // ASYNC_HBASE_SCANNER_H_ diff --git a/hbase-native-client/src/async/mutations-test.cc b/hbase-native-client/src/async/mutations-test.cc deleted file mode 100644 index be5898e..0000000 --- a/hbase-native-client/src/async/mutations-test.cc +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include - -#include "gtest/gtest.h" -#include "async/hbase_mutations.h" -#include "async/hbase_client.h" - -pthread_cond_t cv; -pthread_mutex_t mutex; - -bool sent = false; - -TEST(ClientTest, EasyTest) { - EXPECT_EQ(1, 1); -} - -void mutate_cb(int32_t status, - hb_client_t client, hb_mutation_t mutation, - hb_result_t result, void * extra) { - - // Test Stuff. - EXPECT_EQ(status, 0); - EXPECT_TRUE(client != NULL); - EXPECT_TRUE(mutation != NULL); - - pthread_mutex_lock(&mutex); - sent = true; - pthread_cond_signal(&cv); - pthread_mutex_unlock(&mutex); -} - -void wait_send() { - pthread_mutex_lock(&mutex); - while (!sent) { - pthread_cond_wait(&cv, &mutex); - } - pthread_mutex_unlock(&mutex); -} - -TEST(MutationTest, TestPut) { - char tn[] = "T1"; - hb_byte_t row[] = "ROW"; - char fam[] = "D"; - hb_byte_t qual[] = "QUAL"; - hb_byte_t data[] = "Z"; - - hb_client_t client = NULL; - hb_put_t put = NULL; - hb_cell_t cell; - - cell.family = fam; - cell.family_length = 1; - - cell.qual = qual; - cell.qual_length = 4; - - cell.value = data; - cell.value_length = 1; - - int32_t status = -1; - - status = hb_client_create(&client, NULL); - EXPECT_EQ(0, status); - - hb_put_create(&put); - hb_mutation_set_table((hb_mutation_t) put, tn, 2); - hb_mutation_set_row((hb_mutation_t) put, row, 3); - hb_put_add_cell(put, &cell); - - pthread_cond_init(&cv, NULL); - pthread_mutex_init(&mutex, NULL); - - status = hb_mutation_send(client, (hb_mutation_t) put, &mutate_cb, NULL); - EXPECT_EQ(0, status); - - // Now wait a while for things to send. - wait_send(); - EXPECT_EQ(true, sent); - - hb_mutation_destroy((hb_mutation_t *) put); - hb_client_destroy(client, NULL, NULL); - - EXPECT_EQ(0, status); -} diff --git a/hbase-native-client/src/core/BUCK b/hbase-native-client/src/core/BUCK new file mode 100644 index 0000000..ef027a1 --- /dev/null +++ b/hbase-native-client/src/core/BUCK @@ -0,0 +1,66 @@ +## +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +cxx_binary( + name = "core", + headers = [ + "admin.h", + "client.h", + "connection.h", + "connection_attr.h", + "delete.h", + "get.h", + "hbase_macros.h", + "mutation.h", + "put.h", + "scanner.h", + ], + srcs = [ + "admin.cc", + "client.cc", + "connection.cc", + "get.cc", + "mutation.cc", + "put.cc", + "delete.cc", + "scanner.cc", + ], + deps = [ + "//if:if", + "//third-party:folly", + "//third-party:wangle", + ], + visibility = [ + 'PUBLIC', + ], +) + +cxx_test( + name = "core_test", + headers = [ + "test_env.h", + ], + srcs = [ + "HBaseNativeClientTestEnv.cc", + "SampleNativeClientTest.cc", + ], + deps = [ + ":core", + ], + run_test_separately = True, +) diff --git a/hbase-native-client/src/core/CMakeLists.txt b/hbase-native-client/src/core/CMakeLists.txt deleted file mode 100644 index 49f93b9..0000000 --- a/hbase-native-client/src/core/CMakeLists.txt +++ /dev/null @@ -1,31 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set( CORE_SRC - admin.cc - client.cc - connection.cc - get.cc - mutation.cc - put.cc - delete.cc - scanner.cc - hbase_connection_attr.cc -) - - -add_library(hcore OBJECT ${CORE_SRC}) diff --git a/hbase-native-client/src/core/HBaseNativeClientTestEnv.cc b/hbase-native-client/src/core/HBaseNativeClientTestEnv.cc new file mode 100644 index 0000000..ac6a576 --- /dev/null +++ b/hbase-native-client/src/core/HBaseNativeClientTestEnv.cc @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +#if 0 +#include +#include + +namespace { + +class HBaseNativeClientTestEnv : public ::testing::Environment { + public: + void SetUp() override { + init_test_env(); + } + + void TearDown() override { + clean_test_env(); + } +}; + +} // anonymous + +int main(int argc, char** argv) { + testing::InitGoogleTest(&argc, argv); + ::testing::AddGlobalTestEnvironment(new HBaseNativeClientTestEnv()); + return RUN_ALL_TESTS(); +} +#endif diff --git a/hbase-native-client/src/core/SampleNativeClientTest.cc b/hbase-native-client/src/core/SampleNativeClientTest.cc new file mode 100644 index 0000000..20c24c3 --- /dev/null +++ b/hbase-native-client/src/core/SampleNativeClientTest.cc @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +#if 0 +#include "gtest/gtest.h" + +/** + * Sample test. + */ +TEST(SampleTest, sample) { + EXPECT_TRUE(true); +} +#endif diff --git a/hbase-native-client/src/core/admin.cc b/hbase-native-client/src/core/admin.cc index 897e6bf..9ad3371 100644 --- a/hbase-native-client/src/core/admin.cc +++ b/hbase-native-client/src/core/admin.cc @@ -17,4 +17,441 @@ * */ -#include "core/admin.h" +#include "admin.h" + +#include +#include + +#include +#include +#include +#include + +#include "util.h" +#include "pb_request_builder.h" +#include "protobuf_util.h" +#include "../rpc/generated/Master.pb.h" +#include "../rpc/generated/RPC.pb.h" + +Admin::~Admin(){ + +} + +Admin::Admin(Connection *connection):connection_(connection){ + + rpc_client_ = connection_->getRpcClient(); +} + +Admin::Admin(){ + + +} + +void Admin::EnableTable(const std::string &table_name){ + + std::unique_ptr req (ProtoBufRequestBuilder::CreateEnableTableRequest(table_name)); + + std::string master_server_ip(""); + int master_server_port(0); + this->connection_->findMasterServer(master_server_ip, master_server_port); + const std::string user_name(connection_->getUser()); + const std::string service_name("MasterService"); + const std::string method_name("EnableTable"); + hbase::pb::EnableTableResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + std::unique_ptrptr_resp(rpc_client_->Call(service_name, method_name, *req, master_server_ip, master_server_port, + user_name, *def_resp_type, cell_scanner)); + + def_resp_type = ptr_resp.get(); + if(NULL != def_resp_type){ + hbase::pb::EnableTableResponse *resp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << resp->ByteSize() << "]: " << resp->DebugString() << std::endl; + } + TableState::TableOperationStatus op_status = GetProcedureResponse(resp->proc_id()); + while(TableState::RUNNING == op_status){ + usleep(sleep_betwee_statuschk); + op_status = GetProcedureResponse(resp->proc_id()); + } + + }else{ + throw std::string("Exception Received"); + } + return; +} + +void Admin::DisableTable(const std::string &table_name){ + + std::unique_ptr req (ProtoBufRequestBuilder::CreateDisableTableRequest(table_name)); + + std::string master_server_ip(""); + int master_server_port(0); + this->connection_->findMasterServer(master_server_ip, master_server_port); + const std::string user_name(connection_->getUser()); + const std::string service_name("MasterService"); + const std::string method_name("DisableTable"); + hbase::pb::DisableTableResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + std::unique_ptrptr_resp = rpc_client_->Call(service_name, method_name, *req, master_server_ip, master_server_port, + user_name, *def_resp_type, cell_scanner); + + def_resp_type = ptr_resp.get(); + if(NULL != def_resp_type){ + hbase::pb::DisableTableResponse *resp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << resp->ByteSize() << "]: " << resp->DebugString() << std::endl; + } + TableState::TableOperationStatus op_status = GetProcedureResponse(resp->proc_id()); + while(TableState::RUNNING == op_status){ + usleep(sleep_betwee_statuschk); + op_status = GetProcedureResponse(resp->proc_id()); + } + }else{ + throw std::string("Exception Received"); + } + return; +} + +void Admin::CheckTableState(const std::string &table_name){ + + hbase::pb::RequestHeader *rh = new hbase::pb::RequestHeader(); + SetRequestHeader(*rh, "GetTableState", true); + int callId = Connection::GetRpcCallId(); + std::string namespace_value(""); + std::string tablename_value(""); + GetTableAndNamespace(table_name, namespace_value, tablename_value); + + hbase::pb::TableName table_obj; + table_obj.set_namespace_(namespace_value); + table_obj.set_qualifier(tablename_value); + hbase::pb::GetTableStateRequest *reqObj = new hbase::pb::GetTableStateRequest(); + reqObj->set_allocated_table_name(&table_obj); + + int total_size = 0; + total_size += rh->ByteSize(); + total_size += google::protobuf::io::CodedOutputStream::VarintSize32(rh->ByteSize()); + + total_size += reqObj->ByteSize(); + total_size += google::protobuf::io::CodedOutputStream::VarintSize32(reqObj->ByteSize()); + + int buffer_size = total_size + 4; + char *packet = new char[buffer_size]; + ::memset(packet, '\0', buffer_size); + + google::protobuf::io::ArrayOutputStream aos(packet, buffer_size); + google::protobuf::io::CodedOutputStream *coded_output = new google::protobuf::io::CodedOutputStream(&aos); + + unsigned int uiTotalSize = total_size; + swapByteOrder(uiTotalSize); + coded_output->WriteRaw(&uiTotalSize, 4); + coded_output->WriteVarint32(rh->ByteSize()); + bool success = rh->SerializeToCodedStream(coded_output); + coded_output->WriteVarint32(reqObj->ByteSize()); + success = reqObj->SerializeToCodedStream(coded_output); + + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] \n" + << reqObj->DebugString() + << std::endl; + } + int bytesSent = connection_->SendDataToServer(packet, aos.ByteCount()); + int recv_buff_size = 2048; + char recv_buffer[recv_buff_size]; + + int bytesRecvd = connection_->RecvDataFromServer(recv_buffer, recv_buff_size); + + char *poffset = recv_buffer; + unsigned int *pbuffer = (unsigned int *)poffset; + poffset += 4; + swapByteOrder(*pbuffer); + uiTotalSize = *pbuffer; + + google::protobuf::io::ArrayInputStream arrInput(poffset, recv_buff_size-4); + google::protobuf::io::CodedInputStream input(&arrInput); + + hbase::pb::ResponseHeader resp_hdr; + unsigned int resp_hdrMsgSize = 0; + input.ReadVarint32(&resp_hdrMsgSize); + google::protobuf::io::CodedInputStream::Limit limit = input.PushLimit(resp_hdrMsgSize); + success = resp_hdr.ParseFromCodedStream(&input); + input.PopLimit(limit); + if (DEBUG){ + int callIdResp = Connection::GetRpcCallId(); + std::cerr << __LINE__ << ":" << __func__ << " [DBG] " + << " Has Exception: " << (resp_hdr.has_exception() ? "True" : "False") + << " Has Meta Cell Block: " << (resp_hdr.has_cell_block_meta() ? "True" : "False") + << " Response: " << resp_hdr.DebugString() + << " Req:[" <call_id() << "]: Resp:[" << resp_hdr.call_id() << "]" + << std::endl; + } + if(!resp_hdr.has_exception()){ + hbase::pb::GetTableStateResponse respObj; + google::protobuf::uint32 respMsgSize = 0; + input.ReadVarint32(&respMsgSize); + limit = input.PushLimit(respMsgSize); + success = respObj.ParseFromCodedStream(&input); + input.PopLimit(limit); + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] \n" + << respObj.DebugString() + << std::endl; + } + hbase::pb::TableState tableState = respObj.table_state(); + if(tableState.has_state()){ + hbase::pb::TableState_State eState = tableState.state(); + switch(eState){ + case hbase::pb::TableState::DISABLED:{ + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] Table DISABLED" + << std::endl; + } + break; + } + case hbase::pb::TableState::ENABLED:{ + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] Table ENABLED" + << std::endl; + } + break; + } + case hbase::pb::TableState::DISABLING:{ + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] Table DISABLING" + << std::endl; + } + break; + } + case hbase::pb::TableState::ENABLING:{ + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] Table ENABLING" + << std::endl; + } + break; + } + } + } + }else{ + hbase::pb::ExceptionResponse excptResponse = resp_hdr.exception(); + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] " + << " Exception from: " << excptResponse.exception_class_name() + << std::endl; + } + } +} + +bool Admin::IsEnabledTable(const std::string &table_name){ + CheckTableState(table_name); + +} + +bool Admin::IsDisabledTable(const std::string &table_name){ + CheckTableState(table_name); +} + +bool Admin::TableExists(const std::string &table_name){ + CheckTableState(table_name); +} + +void Admin::DeleteTable(const std::string &table_name){ + + + std::unique_ptr req (ProtoBufRequestBuilder::CreateDeleteTableRequest(table_name)); + + std::string master_server_ip(""); + int master_server_port(0); + this->connection_->findMasterServer(master_server_ip, master_server_port); + const std::string user_name(connection_->getUser()); + const std::string service_name("MasterService"); + const std::string method_name("DeleteTable"); + hbase::pb::DeleteTableResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + std::unique_ptrptrResp = rpc_client_->Call(service_name, method_name, *req, master_server_ip, master_server_port, + user_name, *def_resp_type, cell_scanner); + + def_resp_type = ptrResp.get(); + if(NULL != def_resp_type){ + hbase::pb::DeleteTableResponse *resp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << resp->ByteSize() << "]: " << resp->DebugString() << std::endl; + } + + TableState::TableOperationStatus op_status = GetProcedureResponse(resp->proc_id()); + while(TableState::RUNNING == op_status){ + usleep(sleep_betwee_statuschk); + op_status = GetProcedureResponse(resp->proc_id()); + } + + }else{ + throw std::string("Exception Received"); + } + return; +} + +TableState::TableOperationStatus Admin::GetProcedureResponse(const int & procedureId){ + + std::unique_ptr req (ProtoBufRequestBuilder::CreateProcedureRequest(procedureId)); + + TableState::TableOperationStatus tableOpRet = TableState::NOT_FOUND; + std::string master_server_ip(""); + int master_server_port(0); + connection_->findMasterServer(master_server_ip, master_server_port); + const std::string user_name(connection_->getUser()); + const std::string service_name("MasterService"); + const std::string method_name("getProcedureResult"); + hbase::pb::GetProcedureResultResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + std::unique_ptrptrResp(rpc_client_->Call(service_name, method_name, *req, master_server_ip, master_server_port, + user_name, *def_resp_type, cell_scanner)); + + def_resp_type = ptrResp.get(); + if(NULL != def_resp_type){ + hbase::pb::GetProcedureResultResponse *resp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << resp->ByteSize() << "]: " << resp->DebugString() << std::endl; + } + if(resp->has_state()){ + hbase::pb::GetProcedureResultResponse_State respState = resp->state(); + switch(respState){ + case hbase::pb::GetProcedureResultResponse_State_RUNNING:{ + tableOpRet = TableState::RUNNING; + break; + } + case hbase::pb::GetProcedureResultResponse_State_FINISHED:{ + tableOpRet = TableState::FINISHED; + break; + } + case hbase::pb::GetProcedureResultResponse_State_NOT_FOUND:{ + tableOpRet = TableState::NOT_FOUND; + break; + } + default: + tableOpRet = TableState::NOT_FOUND; + } + } + }else{ + throw std::string("Exception Received"); + } + return tableOpRet; +} + +void Admin::ListTables(std::vector &table_list, const std::string ®_ex, const bool &include_sys_tables){ + + std::unique_ptr req (ProtoBufRequestBuilder::CreateListTablesRequest(reg_ex, include_sys_tables)); + + std::string master_server_ip(""); + int master_server_port(0); + this->connection_->findMasterServer(master_server_ip, master_server_port); + const std::string user_name(connection_->getUser()); + const std::string service_name("MasterService"); + const std::string method_name("GetTableDescriptors"); + hbase::pb::GetTableDescriptorsResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + std::unique_ptrptrResp(rpc_client_->Call(service_name, method_name, *req, master_server_ip, master_server_port, + user_name, *def_resp_type, cell_scanner)); + + def_resp_type = ptrResp.get(); + if(NULL != def_resp_type){ + hbase::pb::GetTableDescriptorsResponse *resp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << resp->ByteSize() << "]: " << resp->DebugString() << std::endl; + } + int numOfTables = resp->table_schema_size(); + + for(int i = 0; i < numOfTables; i++){ + + TableName *table_name = nullptr; + if(resp->table_schema(i).has_table_name()){ + hbase::pb::TableName tableObj = resp->table_schema(i).table_name(); + if( tableObj.has_namespace_() && tableObj.has_qualifier() ) + table_name = TableName::createTableNameIfNecessary(tableObj.namespace_(), tableObj.qualifier()); + } + TableSchema tbl_schema(table_name); + for (int j = 0; j < resp->table_schema(i).attributes_size(); j++){ + hbase::pb::BytesBytesPair bytesPair = resp->table_schema(i).attributes(j); + if(bytesPair.has_first() && bytesPair.has_second()){ + tbl_schema.SetValue(bytesPair.first(), bytesPair.second()); + } + } + for (int j = 0; j < resp->table_schema(i).column_families_size(); j++){ + hbase::pb::ColumnFamilySchema pbColFamilySchema = resp->table_schema(i).column_families(j); + ColumnFamilySchema colFamSchema(pbColFamilySchema.has_name() ? pbColFamilySchema.name() : ""); + for(int k = 0; k < pbColFamilySchema.attributes_size(); k++){ + hbase::pb::BytesBytesPair bytesPair = pbColFamilySchema.attributes(k); + if(bytesPair.has_first() && bytesPair.has_second()){ + colFamSchema.SetValue(bytesPair.first(), bytesPair.second()); + } + } + + for(int k = 0; k < pbColFamilySchema.configuration_size(); k++){ + hbase::pb::NameStringPair nameString = pbColFamilySchema.configuration(k); + if(nameString.has_name() && nameString.has_value()){ + colFamSchema.SetConfiguration(nameString.name(), nameString.value()); + } + } + + tbl_schema.AddFamily(colFamSchema); + } + for (int j = 0; j < resp->table_schema(i).configuration_size(); j++){ + hbase::pb::NameStringPair nameString = resp->table_schema(i).configuration(j); + if(nameString.has_name() && nameString.has_value()){ + tbl_schema.SetConfiguration(nameString.name(), nameString.value()); + } + } + + table_list.push_back(tbl_schema); + } + }else{ + throw std::string("Exception Received"); + } + + return; +} + +void Admin::CreateTable(TableSchema &table_schema){ + + std::unique_ptr req (ProtoBufRequestBuilder::CreateTableRequest(table_schema)); + + std::string master_server_ip; + int master_server_port; + connection_->findMasterServer(master_server_ip, master_server_port); + + const std::string user_name(connection_->getUser()); + const std::string service_name("MasterService"); + const std::string method_name("CreateTable"); + hbase::pb::CreateTableResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + std::unique_ptrptrResp(rpc_client_->Call(service_name, method_name, *req, master_server_ip, master_server_port, + user_name, *def_resp_type, cell_scanner)); + + def_resp_type = ptrResp.get(); + if(NULL != def_resp_type){ + hbase::pb::CreateTableResponse *resp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << resp->ByteSize() << "]: " << resp->DebugString() << std::endl; + } + TableState::TableOperationStatus op_status = GetProcedureResponse(resp->proc_id()); + while(TableState::RUNNING == op_status){ + usleep(sleep_betwee_statuschk); + op_status = GetProcedureResponse(resp->proc_id()); + } + + }else{ + throw std::string("Exception Received"); + } + return; + +} diff --git a/hbase-native-client/src/core/admin.h b/hbase-native-client/src/core/admin.h index 624c4ac..cae0b2e 100644 --- a/hbase-native-client/src/core/admin.h +++ b/hbase-native-client/src/core/admin.h @@ -17,9 +17,57 @@ * */ -#ifndef CORE_ADMIN_H_ -#define CORE_ADMIN_H_ +#pragma once + +#include "connection.h" +#include "rpc_client.h" +#include "table_schema.h" + +const int sleep_betwee_statuschk = 400000; + +class Connection; + +namespace TableState{ +enum CurrentTableState{ + ENABLED = 0, + DISABLED, + DISABLING, + ENABLING +}; + +enum CheckForTableState{ + ISENABLED = 0, + ISDISABLED, + ISEXISTS +}; + +enum TableOperationStatus { + NOT_FOUND = 0, + RUNNING, + FINISHED +}; +} class Admin { + public: + Admin (); + Admin (Connection *conn); + virtual ~Admin(); + + void CreateTable(TableSchema &table_schema); + void EnableTable(const std::string &table_name); + void DisableTable(const std::string &table_name); + void DeleteTable(const std::string &table_name); + bool TableExists(const std::string &table_name); + bool IsEnabledTable(const std::string &table_name); + bool IsDisabledTable(const std::string &table_name); + void CheckTableState(const std::string &table_name); + TableState::TableOperationStatus GetProcedureResponse(const int &procedure_id); + void ListTables(std::vector &table_list, const std::string ®_ex = "", const bool &include_sys_tables = false); + std::vector &ListTables(const std::string ®_ex = "", const bool &include_sys_tables = false); + + + private: + std::shared_ptr rpc_client_; + Connection *connection_; }; -#endif // CORE_ADMIN_H_ diff --git a/hbase-native-client/src/core/binary_comparator.cc b/hbase-native-client/src/core/binary_comparator.cc new file mode 100644 index 0000000..6a8d488 --- /dev/null +++ b/hbase-native-client/src/core/binary_comparator.cc @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +#include "binary_comparator.h" + +BinaryComparator::BinaryComparator(const BYTE_ARRAY &byte_array):ByteArrayComparable(byte_array) { + // TODO Auto-generated constructor stub + +} + +BinaryComparator::~BinaryComparator() { + // TODO Auto-generated destructor stub +} + +int BinaryComparator::CompareTo(const BYTE_ARRAY &byte_array, const int &offset, const int &length){ + //return Bytes::Co(this.value, 0, this.value.length, value, offset, length); + + return 0; +} + + diff --git a/hbase-native-client/src/core/binary_comparator.h b/hbase-native-client/src/core/binary_comparator.h new file mode 100644 index 0000000..f24a2e5 --- /dev/null +++ b/hbase-native-client/src/core/binary_comparator.h @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "byte_array_comparable.h" + +class BinaryComparator : public ByteArrayComparable { + + public: + BinaryComparator(const BYTE_ARRAY &byte_array); + virtual ~BinaryComparator(); + int CompareTo(const BYTE_ARRAY &byte_array, const int &offset, const int &length); +}; diff --git a/hbase-native-client/src/core/byte_array_comparable.cc b/hbase-native-client/src/core/byte_array_comparable.cc new file mode 100644 index 0000000..8d29327 --- /dev/null +++ b/hbase-native-client/src/core/byte_array_comparable.cc @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "byte_array_comparable.h" + +ByteArrayComparable::ByteArrayComparable(){ + +} + +ByteArrayComparable::ByteArrayComparable(const BYTE_ARRAY &value) { + + this->value_.insert(this->value_.end(), value.begin(), value.end()); + +} + +ByteArrayComparable::~ByteArrayComparable() { + // TODO Auto-generated destructor stub +} + +ByteArrayComparable *ByteArrayComparable::ParseFrom(const BYTE_ARRAY &pb_bytes) { + throw std::string("ParseFrom called on base ByteArrayComparable, but should be called on derived type"); +} + +int ByteArrayComparable::GetValue(BYTE_ARRAY &value){ + + value.insert(value.end(), this->value_.begin(), this->value_.end()); + return this->value_.size(); +} + +bool ByteArrayComparable::AreSerializedFieldsEqual(ByteArrayComparable &other){ + + BYTE_ARRAY to_compare; + other.GetValue(to_compare); + return Bytes::Equals(this->value_, to_compare); +} + +int ByteArrayComparable::CompareTo(const BYTE_ARRAY & value){ + + return 0;//CompareTo(value, 0, value.size()); + +} + +int ByteArrayComparable::ToByteArray(BYTE_ARRAY &value){ + + return 0; +} + +int ByteArrayComparable::CompareTo(const BYTE_ARRAY &value, const int &offset, const int &length){ + + return 0; +} + diff --git a/hbase-native-client/src/core/byte_array_comparable.h b/hbase-native-client/src/core/byte_array_comparable.h new file mode 100644 index 0000000..d537f41 --- /dev/null +++ b/hbase-native-client/src/core/byte_array_comparable.h @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "bytes.h" + +class ByteArrayComparable { + public: + ByteArrayComparable(); + ByteArrayComparable(const BYTE_ARRAY &value); + virtual ~ByteArrayComparable(); + + int GetValue(BYTE_ARRAY &value); + bool AreSerializedFieldsEqual(ByteArrayComparable &other); + int CompareTo(const BYTE_ARRAY &value); + + static ByteArrayComparable *ParseFrom(const BYTE_ARRAY &pb_bytes); + + virtual int ToByteArray(BYTE_ARRAY &value); + virtual int CompareTo(const BYTE_ARRAY &value, const int &offset, const int &length); + + private: + BYTE_ARRAY value_; +}; + +/* + ComparatorProtos.ByteArrayComparable convert() { + ComparatorProtos.ByteArrayComparable.Builder builder = + ComparatorProtos.ByteArrayComparable.newBuilder(); + if (value != null) builder.setValue(ByteStringer.wrap(value)); + return builder.build(); + } + */ diff --git a/hbase-native-client/src/core/bytes.cc b/hbase-native-client/src/core/bytes.cc new file mode 100644 index 0000000..3aa4c20 --- /dev/null +++ b/hbase-native-client/src/core/bytes.cc @@ -0,0 +1,435 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include +#include + +#include "bytes.h" + +/** + * Size of boolean in bytes + */ +const int Bytes::SIZEOF_BOOLEAN = sizeof(BYTE_TYPE) / sizeof(BYTE_TYPE); +/** + * Size of byte in bytes + */ +const int Bytes::SIZEOF_BYTE = Bytes::SIZEOF_BOOLEAN; +/** + * Size of char in bytes + */ +// For compatibility with Java Bytes implemenation we are taking it here as sizeof(short) +const int Bytes::SIZEOF_CHAR = sizeof(short) / sizeof(BYTE_TYPE); +/** + * Size of double in bytes + */ +const int Bytes::SIZEOF_DOUBLE = sizeof(double) / sizeof(BYTE_TYPE); +/** + * Size of float in bytes + */ +const int Bytes::SIZEOF_FLOAT = sizeof(float) / sizeof(BYTE_TYPE); +/** + * Size of int in bytes + */ +const int Bytes::SIZEOF_INT = sizeof(int) / sizeof(BYTE_TYPE); +/** + * Size of long in bytes + */ +const int Bytes::SIZEOF_LONG = sizeof(long) / sizeof(BYTE_TYPE); +/** + * Size of short in bytes + */ +const int Bytes::SIZEOF_SHORT = sizeof(short) / sizeof(BYTE_TYPE); + +const char Bytes::HEX_CHARS[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', '\0' }; + +Bytes::Bytes():offset_(-1), length_(0) { + + this->byte_array_ = {}; +} + +Bytes::Bytes(const BYTE_ARRAY &bytes):Bytes(bytes, 0, bytes.size()){ + + +} + +Bytes::Bytes(const BYTE_ARRAY &bytes, const int &offset, const int &length){ + + this->byte_array_ = bytes; + this->offset_ = offset; + this->length_ = length; +} + +Bytes::Bytes(const Bytes &cbytes){ + + this->byte_array_ = cbytes.byte_array_; + this->offset_ = cbytes.offset_; + this->length_ = cbytes.length_; + +} + +Bytes& Bytes::operator= (const Bytes &cbytes){ + + this->byte_array_ = cbytes.byte_array_; + this->offset_ = cbytes.offset_; + this->length_ = cbytes.length_; + + return *this; + + +} +const BYTE_ARRAY &Bytes::Get() const{ + + return this->byte_array_; +} + +void Bytes::Set(const BYTE_ARRAY &bytes){ + + this->Set(bytes, 0, bytes.size()); +} + +void Bytes::Set(const BYTE_ARRAY &bytes, const int &offset, const int &length){ + + this->byte_array_ = bytes; + this->offset_ = offset; + this->length_ = length; +} + +const int &Bytes::GetOffset(){ + + return this->offset_; +} + +const int &Bytes::GetLength(){ + + return this->length_; +} + + +Bytes::~Bytes() { + // TODO Auto-generated destructor stub +} + +bool Bytes::ByteCompare(const BYTE_TYPE &left, const BYTE_TYPE &right){ + + return (left == right); +} + +void Bytes::DisplayBytes(const BYTE_ARRAY &bytes){ + + std::cerr << "Byte Array ["; + for (uint i = 0; i < bytes.size(); ++i){ + std::cerr << bytes[i]; + if(i != bytes.size()-1) + std::cerr << " "; + } + std::cerr << "]" << std::endl; +} + +size_t Bytes::strlen(const char *s){ + if (!s || NULL == s) + return 0; + else + return ::strlen(s); +} + +int Bytes::ToBytes(const std::string &str_to_bytes, BYTE_ARRAY &bytes){ + + if(0 == str_to_bytes.size()) + throw "Empty string can't be converted to bytes"; + + bytes.insert(bytes.end(), str_to_bytes.begin(), str_to_bytes.end()); + + + return bytes.size(); +} + +int Bytes::ToBytes(const int &val, BYTE_ARRAY &bytes){ + + for (int i = 0,j = Bytes::SIZEOF_INT-1; i < Bytes::SIZEOF_INT; i++, j--){ + bytes.push_back(static_cast( (val >> (j * 8)) & 0xFF )); + } + return bytes.size(); +} + +int Bytes::ToBytes(const short &val, BYTE_ARRAY &bytes){ + + for (int i = 0,j = Bytes::SIZEOF_SHORT-1; i < Bytes::SIZEOF_SHORT; i++, j--){ + bytes.push_back(static_cast( (val >> (j * 8)) & 0xFF )); + } + + return bytes.size(); +} + +int Bytes::ToBytes(const long &val, BYTE_ARRAY &bytes){ + for (int i = 0,j = Bytes::SIZEOF_LONG-1; i < Bytes::SIZEOF_LONG; i++, j--){ + bytes.push_back(static_cast( (val >> (j * 8)) & 0xFF )); + } + return bytes.size(); +} + +int Bytes::ToString(const BYTE_ARRAY &byte, std::string &bytes_to_str){ + + if(0 == byte.size()) + throw "Empty byte array can't be converted to string"; + + bytes_to_str.insert(bytes_to_str.end(), byte.begin(), byte.end()); + return bytes_to_str.size(); + +} + +std::string Bytes::ToString(const BYTE_ARRAY &byte){ + + std::string bytes_to_str(""); + if(0 == byte.size()) + throw "Empty byte array can't be converted to string"; + + bytes_to_str.insert(bytes_to_str.end(), byte.begin(), byte.end()); + return bytes_to_str; +} + +bool Bytes::Equals(const BYTE_ARRAY &left, const BYTE_ARRAY &right){ + + if(left.size() != right.size()) + return false; + if (std::equal (left.begin(), left.end(), right.begin(), Bytes::ByteCompare)) + return true; + else + return false; + +} + +int Bytes::CopyByteArray( const BYTE_ARRAY &ip_bytes, BYTE_ARRAY &op_bytes, + const int &offset, const int &length){ + int ip_size = ip_bytes.size(); + + if (0 == ip_size) + throw "Can't copy empty byte array"; + + if (offset < 0) + throw "Offset must be >= 0"; + + if(0 == length){ + throw "Cant copy 0 bytes"; + } + + int max_bytes_can_copy = ip_size - offset; + if(length > max_bytes_can_copy){ + throw "Cant copy number of bytes > max_bytes_can_copy"; + } + + op_bytes.resize(length); + BYTE_ARRAY::const_iterator start_itr = ip_bytes.begin() + offset; + BYTE_ARRAY::const_iterator end_itr = start_itr + length; + std::copy(start_itr , end_itr, op_bytes.begin()); + + return op_bytes.size(); +} + +int Bytes::PutInt(BYTE_ARRAY &bytes, const int &offset, const int &val){ + + if( (bytes.size() - offset) < Bytes::SIZEOF_INT) + throw "Not enough room to put an int at offset ";// + offset + " in a " + bytes.length + " byte array"); + + for (int i = 0,j = Bytes::SIZEOF_INT-1; i < Bytes::SIZEOF_INT; i++, j--){ + bytes[offset + i] = static_cast( (val >> (j * 8)) & 0xFF ); + } + + return offset + Bytes::SIZEOF_INT; +} + +int Bytes::PutShort(BYTE_ARRAY &bytes, const int &offset, const short &val){ + + if( (bytes.size() - offset) < Bytes::SIZEOF_SHORT) + throw "Not enough room to put a short at offset ";// + offset + " in a " + bytes.length + " byte array"); + + for (int i = 0,j = Bytes::SIZEOF_SHORT-1; i < Bytes::SIZEOF_SHORT; i++, j--){ + bytes[offset + i] = static_cast( (val >> (j * 8)) & 0xFF ); + } + + return offset + Bytes::SIZEOF_SHORT; +} + +int Bytes::PutLong(BYTE_ARRAY &bytes, const int &offset, const long &val){ + + if ( (bytes.size() - offset) < Bytes::SIZEOF_LONG) + throw "Not enough room to put a long at offset ";// + offset + " in a " + bytes.length + " byte array"); + + for (int i = 0,j = Bytes::SIZEOF_LONG-1; i < Bytes::SIZEOF_LONG; i++, j--){ + bytes[offset + i] = static_cast( (val >> (j * 8)) & 0xFF ); + } + + return offset + SIZEOF_LONG; +} + +int Bytes::PutByte(BYTE_ARRAY &bytes, const int &offset, const BYTE_TYPE &val){ + + if ( (bytes.size() - offset) < Bytes::SIZEOF_BYTE) + throw "Not enough room to put a long at offset ";// + offset + " in a " + bytes.length + " byte array"); + + bytes[offset] = static_cast((val) ); + return offset + Bytes::SIZEOF_BYTE; +} + +int Bytes::PutBytes( BYTE_ARRAY &dst_bytes, const int &dst_offset, + const BYTE_ARRAY &src_bytes, const int &src_offset, const int &src_num_bytes){ + + if(src_num_bytes <= 0) + throw "Cant add bytes <=0"; + if(src_num_bytes > static_cast(src_bytes.size())) + throw "Cant add bytes > source byte size"; + if(static_cast(dst_bytes.size()) < src_num_bytes) + throw "Cant add num bytes > dst byte size" ; + + + BYTE_ARRAY::const_iterator start_itr = src_bytes.begin() + src_offset; + BYTE_ARRAY::const_iterator end_itr = start_itr + src_num_bytes; + BYTE_ARRAY::iterator start_dest_itr = dst_bytes.begin() + dst_offset; + std::copy(start_itr , end_itr, start_dest_itr); + + return dst_offset + src_num_bytes; +} + + +int Bytes::ToInt(const BYTE_ARRAY &bytes){ + return Bytes::ToInt(bytes, 0, SIZEOF_INT); +} + +int Bytes::ToInt(const BYTE_ARRAY &bytes, const int &offset){ + return Bytes::ToInt(bytes, offset, SIZEOF_INT); + +} + +int Bytes::ToInt(const BYTE_ARRAY &bytes, const int &offset, const int &length){ + int int_val = 0; + if (length != SIZEOF_INT || static_cast(offset + length) > bytes.size()) { + throw "WrongLengthOrOffset";//explainWrongLengthOrOffset(bytes, offset, length, SIZEOF_INT); + }else{ + for(int i = offset, j = Bytes::SIZEOF_INT-1; i < (offset + length); i++, j-- ){ + //std::cerr << ( (bytes[0] & 0XFF ) << 24 | (bytes[1] & 0XFF ) << 16 | (bytes[2] & 0XFF ) << 8 | (bytes[3] & 0XFF ) << 0 ); + int_val |= (bytes[i] & 0XFF )<< (j * 8); + } + } + return int_val; +} + +short Bytes::ToShort(const BYTE_ARRAY &bytes){ + return Bytes::ToShort(bytes, 0, SIZEOF_SHORT); +} + +short Bytes::ToShort(const BYTE_ARRAY &bytes, const int &offset){ + return Bytes::ToShort(bytes, offset, SIZEOF_SHORT); + +} + +short Bytes::ToShort(const BYTE_ARRAY &bytes, const int &offset, const int &length){ + short short_val = 0; + if (length != SIZEOF_SHORT || static_cast(offset + length) > bytes.size()) { + throw "WrongLengthOrOffset";//explainWrongLengthOrOffset(bytes, offset, length, SIZEOF_SHORT); + }else{ + for(int i = offset, j = Bytes::SIZEOF_SHORT-1; i < (offset + length); i++, j-- ){ + //std::cerr << ( (bytes[0] & 0XFF ) << 24 | (bytes[1] & 0XFF ) << 16 | (bytes[2] & 0XFF ) << 8 | (bytes[3] & 0XFF ) << 0 ); + short_val |= (bytes[i] & 0XFF )<< (j * 8); + } + } + return short_val; +} + +long Bytes::ToLong(const BYTE_ARRAY &bytes){ + return Bytes::ToLong(bytes, 0, SIZEOF_LONG); +} + +long Bytes::ToLong(const BYTE_ARRAY &bytes, const int &offset){ + return Bytes::ToLong(bytes, offset, SIZEOF_LONG); + +} + +long Bytes::ToLong(const BYTE_ARRAY &bytes, const int &offset, const int &length){ + + long long_val = 0L; + const char *pCurrent = &bytes[offset]; + Poco::UInt64 *pts = (Poco::UInt64*)pCurrent; + long_val = *pts; + long_val = Poco::ByteOrder::flipBytes(long_val); + + return long_val; +} + +unsigned long Bytes::ToULong(const BYTE_ARRAY &bytes){ + return Bytes::ToULong(bytes, 0, SIZEOF_LONG); +} + +unsigned long Bytes::ToULong(const BYTE_ARRAY &bytes, const int &offset){ + return Bytes::ToULong(bytes, offset, SIZEOF_LONG); + +} + +unsigned long Bytes::ToULong(const BYTE_ARRAY &bytes, const int &offset, const int &length){ + + unsigned long long_val = 0L; + const char *pCurrent = &bytes[offset]; + Poco::UInt64 *pts = (Poco::UInt64*)pCurrent; + long_val = *pts; + long_val = Poco::ByteOrder::flipBytes(long_val); + + return long_val; +} + +std::string Bytes::ToHex(const BYTE_ARRAY &bytes){ + return Bytes::ToHex(bytes, 0, bytes.size()); +} + +std::string Bytes::ToHex(const BYTE_ARRAY &bytes, const int &offset, const int &length){ + + if(length > (std::numeric_limits< int >::max() / 2)){ + + throw "Illegal Argument Exception"; + } + + int num_chars = length * 2; + std::string hex_str; + hex_str.resize(num_chars); + for (int i = 0; i < num_chars; i += 2){ + BYTE_TYPE d = bytes[offset + i/2]; + hex_str[i] = HEX_CHARS[(d >> 4) & 0x0F]; + hex_str[i+1] = HEX_CHARS[d & 0x0F]; + } + return hex_str; +} + + +BYTE_ARRAY Bytes::ToBytes(const std::string &str_to_bytes){ + + BYTE_ARRAY bytes; + if(0 == str_to_bytes.size()) + throw "Empty string can't be converted to bytes"; + + bytes.insert(bytes.end(), str_to_bytes.begin(), str_to_bytes.end()); + + return bytes; +} + +BYTE_ARRAY Bytes::ToBytes(const bool &val){ + + BYTE_ARRAY bytes; + for (int i = 0,j = Bytes::SIZEOF_BOOLEAN; i < Bytes::SIZEOF_BOOLEAN; i++, j--){ + bytes.push_back(static_cast( (val >> (j * 8)) & 0xFF )); + } + + return bytes; +} diff --git a/hbase-native-client/src/core/bytes.h b/hbase-native-client/src/core/bytes.h new file mode 100644 index 0000000..0eb772f --- /dev/null +++ b/hbase-native-client/src/core/bytes.h @@ -0,0 +1,117 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include +#include +#include + +#include +#include + +using byte = char; +using BYTE_TYPE = char; +using BYTE_ARRAY = std::vector; +using ByteBuffer = std::vector; + +class Bytes { + public: + + static const int SIZEOF_BOOLEAN; + static const int SIZEOF_BYTE; + static const int SIZEOF_CHAR; + static const int SIZEOF_DOUBLE; + static const int SIZEOF_FLOAT; + static const int SIZEOF_INT; + static const int SIZEOF_LONG; + static const int SIZEOF_SHORT; + static const char HEX_CHARS[]; + + Bytes(); + Bytes(const Bytes &bytes); + Bytes& operator= (const Bytes &bytes); + + Bytes(const BYTE_ARRAY &bytes); + Bytes(const BYTE_ARRAY &bytes, const int &offset, const int &length); + const BYTE_ARRAY &Get() const; + void Set(const BYTE_ARRAY &bytes); + void Set(const BYTE_ARRAY &bytes, const int &offset, const int &length); + const int &GetOffset(); + const int &GetLength(); + + virtual ~Bytes(); + + static void DisplayBytes(const BYTE_ARRAY &bytes); + static size_t strlen(const char *); + + static BYTE_ARRAY ToBytes(const std::string &val); + static BYTE_ARRAY ToBytes(const bool &val); + + + static int ToBytes(const std::string &val, BYTE_ARRAY &bytes); + static int ToBytes(const int &val, BYTE_ARRAY &bytes); + static int ToBytes(const short &val, BYTE_ARRAY &bytes); + static int ToBytes(const long &val, BYTE_ARRAY &bytes); + + static int ToString(const BYTE_ARRAY &byte, std::string &bytes_to_str); + static std::string ToString(const BYTE_ARRAY &byte); + static char ToByte(const BYTE_ARRAY &bytes); + + static int ToInt(const BYTE_ARRAY &bytes); + static int ToInt(const BYTE_ARRAY &bytes, const int &offset); + static int ToInt(const BYTE_ARRAY &bytes, const int &offset, const int &length); + + static short ToShort(const BYTE_ARRAY &bytes); + static short ToShort(const BYTE_ARRAY &bytes, const int &offset); + static short ToShort(const BYTE_ARRAY &bytes, const int &offset, const int &length); + + static long ToLong(const BYTE_ARRAY &bytes); + static long ToLong(const BYTE_ARRAY &bytes, const int &offset); + static long ToLong(const BYTE_ARRAY &bytes, const int &offset, const int &length); + + static unsigned long ToULong(const BYTE_ARRAY &bytes); + static unsigned long ToULong(const BYTE_ARRAY &bytes, const int &offset); + static unsigned long ToULong(const BYTE_ARRAY &bytes, const int &offset, const int &length); + + static float ToFloat(const BYTE_ARRAY &bytes); + static double ToDouble(const BYTE_ARRAY &bytes); + + static std::string ToHex(const BYTE_ARRAY &bytes); + static std::string ToHex(const BYTE_ARRAY &bytes, const int &offset, const int &length); + + static int PutInt(BYTE_ARRAY &bytes, const int &offset, const int &val); + static int PutShort(BYTE_ARRAY &bytes, const int &offset, const short &val); + static int PutLong(BYTE_ARRAY &bytes, const int &offset, const long &val); + static int PutByte(BYTE_ARRAY &bytes, const int &offset, const BYTE_TYPE &val); + static int PutBytes(BYTE_ARRAY &bytes, const int &from_index, const BYTE_ARRAY &bytes_to_put, + const int &offset, const int &num_bytes); + + + static bool Equals(const BYTE_ARRAY &left, const BYTE_ARRAY &right); + static int CopyByteArray( const BYTE_ARRAY &ip_bytes, BYTE_ARRAY &op_bytes, + const int &offset, const int &length); + private: + static bool ByteCompare(const BYTE_TYPE &left, const BYTE_TYPE &right); + + BYTE_ARRAY byte_array_; + int offset_; + int length_; +}; diff --git a/hbase-native-client/src/core/cell.cc b/hbase-native-client/src/core/cell.cc new file mode 100644 index 0000000..de3f312 --- /dev/null +++ b/hbase-native-client/src/core/cell.cc @@ -0,0 +1,171 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "cell.h" + +Cell::Cell(const std::string &row, const std::string &family, const std::string &qualifier, + const long ×tamp, const std::string &value, const std::string &tags, const CellType::cellType &cellType): + row(row), family(family), qualifier(qualifier), timestamp(timestamp), value(value), tags(tags), + cellType(cellType){ + this->qualifier = (0 == this->qualifier.length() ? "" : this->qualifier); + this->value = (0 == this->value.length() ? "" : this->value); + + key_value_ = new KeyValue( Bytes::ToBytes(row), Bytes::ToBytes(family), + (0 == this->qualifier.length() ? HBaseConstants::HConstants::EMPTY_BYTE_ARRAY : Bytes::ToBytes(qualifier)), + timestamp, static_cast(cellType), + (0 == this->value.length() ? HBaseConstants::HConstants::EMPTY_BYTE_ARRAY : Bytes::ToBytes(value))); + +} + +Cell::Cell(): row(""), family(""), qualifier(""), timestamp(HBaseConstants::HConstants::LATEST_TIMESTAMP), + value(""), tags(""), cellType(CellType::UNKNOWN), key_value_(nullptr){ + +} + +Cell::Cell(const Cell &cell){ + this->row = cell.row; + this->family = cell.family; + this->qualifier = cell.qualifier; + this->timestamp = cell.timestamp; + this->value = cell.value; + this->tags = cell.tags; + this->cellType = cell.cellType; + this->key_value_ = cell.key_value_; +} + +void Cell::Display(){ + + std::cerr << "[DBG] Cell Contents: " + << " Row: " << (row.size() > 0 ? row : "EMPTY") + << "; Family: " << (family.size() > 0 ? family : "EMPTY") + << "; Qualifer: " << (qualifier.size() > 0 ? qualifier : "EMPTY") + << "; Tags: " << (tags.size() > 0 ? tags : "EMPTY") + << "; Value: " << (value.size() > 0 ? value : "EMPTY") + << "; Timestamp: " << timestamp + << "; CellType: " << static_cast(cellType) + << std::endl; + //this->DisplayKeyValueDetails(); +} + +const CellType::cellType &Cell::TypeByte(){ + return this->cellType; +} + +const std::string &Cell::Row(){ + return this->row; +} + +const std::string &Cell::Family(){ + return this->family; +} + +const std::string &Cell::Qualifier(){ + return this->qualifier; +} + +const std::string &Cell::Value(){ + return this->value; +} + +const long &Cell::Timestamp(){ + return this->timestamp; +} + + +byte * Cell::CreateCell(const byte row[], const byte family[], const byte qualifier[], const long ×tamp, const CellType::cellType &cellType, const byte value[]){ + byte *keyValue = NULL; + + + int rowLength = Bytes::strlen(row); + int familyLength = Bytes::strlen(family); + int qualifierLength = Bytes::strlen(qualifier); + int keyLength = rowLength + familyLength + qualifierLength + 64 + 4; + int valueLength = Bytes::strlen(value); + + /*std::cerr << "rowLength " << rowLength << "; " << sizeof(rowLength) << std::endl; + std::cerr << "familyLength " << familyLength << "; " << sizeof(familyLength) << std::endl; + std::cerr << "qualifierLength " << qualifierLength << "; " << sizeof(qualifierLength) << std::endl; + std::cerr << "keyLength " << keyLength << "; " << sizeof(keyLength) << std::endl; + std::cerr << "valueLength " << valueLength << "; " << sizeof(valueLength) << std::endl; + */ + int sizeOfKV = keyLength+valueLength+rowLength+familyLength+qualifierLength+64+4+valueLength; + keyValue = new byte[sizeOfKV]; + //memset(keyValue, 0, sizeOfKV); + int pos = 0; + //std::cerr << "pos " << pos << std::endl; + keyValue[pos++] = keyLength; + //std::cerr << "pos " << pos << std::endl; + keyValue[pos++]= valueLength; + //std::cerr << "pos " << pos << std::endl; + keyValue[pos++]= rowLength; + //std::cerr << "pos " << pos << std::endl; + for (int i = 0 ; i < rowLength; i++) + keyValue[pos++] = row[i]; + //std::cerr << "pos " << pos << std::endl; + keyValue[pos++]= familyLength; + for (int i = 0 ; i < familyLength; i++) + keyValue[pos++] = family[i]; + //std::cerr << "pos " << pos << std::endl; + for (int i = 0 ; i < qualifierLength; i++) + keyValue[pos++] = qualifier[i]; + //std::cerr << "pos " << pos << std::endl; + keyValue[pos++] = timestamp; + //pos += 64; + //std::cerr << "pos " << pos << std::endl; + keyValue[pos++] = cellType; + for (int i = 0 ; i < valueLength; i++) + keyValue[pos++] = value[i]; + //std::cerr << "pos " << pos << std::endl; + //std::cerr << "keyValue " << keyValue << "; " << Byte::HByte::strlen(keyValue) << ";" << sizeof(keyValue) << std::endl; + + //key + //std::cerr << "row " << row << "; " << Byte::HByte::strlen(row) << std::endl; + //std::cerr << "family " << family << "; " << Byte::HByte::strlen(family) << std::endl; + //std::cerr << "qualifier " << qualifier << "; " << Byte::HByte::strlen(qualifier) << std::endl; + //std::cerr << "value " << value << "; " << Byte::HByte::strlen(value) << std::endl; + //int keyLength = + + return keyValue; + +} + +void Cell::DisplayKeyValueDetails(){ + + BYTE_ARRAY tmp_rowbytes; + Bytes::CopyByteArray( this->key_value_->GetRowArray(), tmp_rowbytes, this->key_value_->GetRowOffset(), this->key_value_->GetRowLength()); + + BYTE_ARRAY tmp_fambytes; + Bytes::CopyByteArray( this->key_value_->GetFamilyArray(), tmp_fambytes, this->key_value_->GetFamilyOffset(), this->key_value_->GetFamilyLength()); + + + BYTE_ARRAY tmp_qualbytes; + Bytes::CopyByteArray( this->key_value_->GetQualifierArray(), tmp_qualbytes, this->key_value_->GetQualifierOffset(), this->key_value_->GetQualifierLength()); + + + BYTE_ARRAY tmp_valbytes; + Bytes::CopyByteArray( this->key_value_->GetValueArray(), tmp_valbytes, this->key_value_->GetValueOffset(), this->key_value_->GetValueLength()); + + + Bytes::DisplayBytes(tmp_rowbytes); + Bytes::DisplayBytes(tmp_fambytes); + Bytes::DisplayBytes(tmp_qualbytes); + std::cerr << "Timestamp " << this->key_value_->GetTimestamp() << std::endl; + std::cerr << "Type " << static_cast(this->key_value_->GetTypeByte()) << std::endl; + Bytes::DisplayBytes(tmp_valbytes); +} diff --git a/hbase-native-client/src/core/cell.h b/hbase-native-client/src/core/cell.h new file mode 100644 index 0000000..2d8cf2e --- /dev/null +++ b/hbase-native-client/src/core/cell.h @@ -0,0 +1,67 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include + +#include "bytes.h" +#include "hconstants.h" +#include "key_value.h" + +namespace CellType { +enum cellType{ + UNKNOWN = -1, + MINIMUM = 0, + PUT = 4, + DELETE = 8, + DELETE_COLUMN = 12, + DELETE_FAMILY = 14, + DELETE_FAMILYVERSION = 16, + MAXIMUM = 255 +} ; +} + +class Cell{ + +private: + std::string row; + std::string family; + std::string qualifier; + long timestamp; + std::string value; + std::string tags; + CellType::cellType cellType; + + KeyValue *key_value_; + void DisplayKeyValueDetails(); +public: + Cell(); + Cell (const std::string &row, const std::string &family, const std::string &qualifier, + const long ×tamp, const std::string &value, const std::string &tags, const CellType::cellType &cellType); + Cell(const Cell &cell); + void Display(); + const std::string &Row(); + const std::string &Family(); + const std::string &Qualifier(); + const std::string &Value(); + const CellType::cellType &TypeByte(); + const long &Timestamp(); + static byte * CreateCell(const byte row[], const byte family[], const byte qualifier[], const long ×tamp, const CellType::cellType &cellType, const byte value[]); +}; diff --git a/hbase-native-client/src/core/cell_scanner.cc b/hbase-native-client/src/core/cell_scanner.cc new file mode 100644 index 0000000..e18b9f5 --- /dev/null +++ b/hbase-native-client/src/core/cell_scanner.cc @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "cell_scanner.h" + +CellScanner::CellScanner() { + cell_block_data_ = (char *)0; + data_length_ = 0; +} + +CellScanner::~CellScanner() { + +} + +void CellScanner::SetData(char *cell_block_data, int data_length) { + cell_block_data_ = cell_block_data; + data_length_ = data_length; +} + +char* CellScanner::GetData() { + return cell_block_data_; +} + +int CellScanner::GetDataLength() { + return data_length_; +} + diff --git a/hbase-native-client/src/core/cell_scanner.h b/hbase-native-client/src/core/cell_scanner.h new file mode 100644 index 0000000..53764b2 --- /dev/null +++ b/hbase-native-client/src/core/cell_scanner.h @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#pragma once + +class CellScanner { + +public: + CellScanner(); + virtual ~CellScanner(); + +public: + void SetData(char *cell_block_data, int data_length); + char* GetData(); + int GetDataLength(); + +private: + char *cell_block_data_; + int data_length_; +}; diff --git a/hbase-native-client/src/core/client.cc b/hbase-native-client/src/core/client.cc index 91c235c..d9974be 100644 --- a/hbase-native-client/src/core/client.cc +++ b/hbase-native-client/src/core/client.cc @@ -16,5 +16,639 @@ * limitations under the License. * */ +//! Get Connection +/* Start with a fresh TAble + * create Table + * is_enabled{ + * disable + * } + * is_disabled{ + * enable + * } + * Put + * Get + * Delete + * List Tables + * IF table exists { + * disable Table + * delete Table + * } + */ + +#include +#include +#include + +#include + +#include "hconstants.h" + +#include "family_filter.h" +#include "binary_comparator.h" + +#include "configuration.h" +#include "connection.h" +#include "connection_factory.h" + +#include "key_value.h" +#include "table_name.h" + +#include "bytes.h" +#include "get.h" +#include "put.h" +#include "delete.h" +#include "table.h" +#include "cell.h" +#include "result.h" + +#include "table_schema.h" +#include "column_family_schema.h" +#include "admin.h" + +#include "client.h" + +#include "Utils.h" +#include "tag.h" + + +const std::string GET_COLFAMILY("colfam1"); +const std::string GET_COLQUALIFIER("col-1"); + +const std::string GET_COLFAMILY3("colfam3"); + +Connection* GetConnection(const char *xmlPath) { + + std::string inputFile(xmlPath); + Configuration *hBaseConfig = new Configuration(inputFile); + Connection *connection = ConnectionFactory::CreateConnection(hBaseConfig); + const std::string &zkQuorum = hBaseConfig->getValue("hbase.zookeeper.quorum"); + std::cerr << "Quorum is " << zkQuorum << std::endl; + connection->set_zk_quorum(zkQuorum.c_str()); + connection->InitZK(); + return connection; +} + +void Test_Find_Master_Server(Connection &connection) { + std::string master_server_ip; + int master_server_port; + connection.findMasterServer(master_server_ip, master_server_port); + + std::cerr << "Master Server IP : " << master_server_ip << std::endl; + std::cerr << "Master Server Port: " << master_server_port << std::endl; + +} + +void Test_Put(Connection &connection, std::unique_ptr &table, const BYTE_ARRAY &rowKey){ + + Put put(rowKey); + BYTE_ARRAY family; + BYTE_ARRAY family3; + BYTE_ARRAY qualifier; + BYTE_ARRAY value; + + + Bytes::ToBytes(GET_COLFAMILY, family); + Bytes::ToBytes(GET_COLFAMILY3, family3); + + Bytes::ToBytes(GET_COLQUALIFIER, qualifier); + Bytes::ToBytes("Test From C++ client:CF:col-1", value); + put.AddColumn(family, qualifier, value); + put.AddColumn(family3, qualifier, value); + + + qualifier.clear(); + value.clear(); + Bytes::ToBytes("qual1", qualifier); + Bytes::ToBytes("Test From C++ client:CF:qual1", value); + put.AddColumn(family, qualifier, value); + put.AddColumn(family3, qualifier, value); + + qualifier.clear(); + value.clear(); + Bytes::ToBytes("qual2", qualifier); + Bytes::ToBytes("Test From C++ client:CF:qual2", value); + put.AddColumn(family, qualifier, 1455059962217, value); + put.AddColumn(family3, qualifier, value); + + qualifier.clear(); + value.clear(); + Bytes::ToBytes("qual3", qualifier); + Bytes::ToBytes("Test From C++ client:CF:qual3", value); + put.AddColumn(family, qualifier, 1454850000000, value); + put.AddColumn(family3, qualifier, value); + + value.clear(); + Bytes::ToBytes("Only value for testing", value); + const std::string val("Only value for testing"); + put.AddColumn(family3, HBaseConstants::HConstants::EMPTY_BYTE_ARRAY, Bytes::ToBytes(val)); + + table->put(put); +} + +void Test_Get(Connection &connection, std::unique_ptr
&table, const BYTE_ARRAY &rowKey){ + + Get get(rowKey); + BYTE_ARRAY get_family; + BYTE_ARRAY get_family3; + + BYTE_ARRAY get_qual; + BYTE_ARRAY null_bytes; + + Bytes::ToBytes(GET_COLFAMILY, get_family); + Bytes::ToBytes(GET_COLQUALIFIER, get_qual); + Bytes::ToBytes(GET_COLFAMILY3, get_family3); + + //get.AddColumn(get_family, null_bytes); + //Get get1 = get.AddFamily(get_family); + //Get get2 = get.AddFamily(get_family); + //get.AddColumn(get_family, get_qual); + get.AddFamily(get_family); + get.AddFamily(get_family3); + + //std::cerr << "Coming Here" << std::endl; + BinaryComparator *comparator = new BinaryComparator(get_family3); + //std::cerr << "Coming Here1" << std::endl; + FamilyFilter family_filter(CompareFilter::CompareOp::EQUAL, *comparator); + //std::cerr << "Coming Here2" << std::endl; + //Filter *filter = &family_filter; + //std::cerr << "Coming Here3" << std::endl; + //get.SetFilter(*filter); + //get.SetFilter(family_filter); + //std::cerr << "Coming Here4" << std::endl; + + /* + CompareFilter::CompareOp compare_operator = CompareFilter::CompareOp::EQUAL; + BinaryComparator *binary_comparator = new BinaryComparator(get_family3); + + FamilyFilter *family_filter = new FamilyFilter(compare_operator, *binary_comparator); + get.SetFilter(*family_filter); + //get.DisplayObj(); + */ + //get.SetMaxResultsPerColumnFamily(2); + std::auto_ptrresult(table->get(get)); + + std::cerr << "listCells " << std::endl; + std::vector cells = result->ListCells(); + for (uint i = 0; i < cells.size(); i++){ + cells[i].Display(); + } + cells.clear(); + std::cerr << "getColumnCells " << std::endl; + result->GetColumnCells(GET_COLFAMILY, GET_COLQUALIFIER, cells); + for (uint i = 0; i < cells.size(); i++){ + cells[i].Display(); + } + std::unique_ptrvalue(result->GetValue(GET_COLFAMILY, GET_COLQUALIFIER)); + //const std::string *ptr = value.get(); + if(value.get()) + std::cerr << "getValue:: " << *(value.get()) << std::endl; + + std::cerr << "getColumnLatestCell " << std::endl; + result->GetColumnLatestCell(GET_COLFAMILY, GET_COLQUALIFIER)->Display(); + std::cerr<< std::endl; + std::unique_ptrrow(result->GetRow()); + if(row.get()) + std::cerr << "getRow " << *(row.get()) << std::endl; +} + + +void Test_Delete(Connection &connection, std::unique_ptr
&table, const BYTE_ARRAY &rowKey){ + + Delete deleteObj(rowKey); + table->deleteRow(deleteObj); + +} + + +void Test_EnableTable(Connection &connection, std::unique_ptr &admin, const std::string &tableName){ + + admin->EnableTable(tableName); +} + +void Test_DisableTable(Connection &connection, std::unique_ptr &admin, const std::string &tableName){ + + admin->DisableTable(tableName); +} + +void Test_CreateTable(Connection &connection, std::unique_ptr &admin, const std::string &tableName){ + + std::vector column_families; + column_families.push_back(GET_COLFAMILY); + column_families.push_back("colfam2"); + column_families.push_back("colfam3"); + column_families.push_back("colfam4"); + + TableName *table_name = TableName::valueOf(tableName); + TableSchema table_schema(table_name); + for(unsigned int num = 0; num < column_families.size(); num++){ + ColumnFamilySchema *column_family_schema = new ColumnFamilySchema(column_families[num]); + table_schema.AddFamily(*column_family_schema); + } + + admin->CreateTable(table_schema); +} + +void Test_DeleteTable(Connection &connection, std::unique_ptr &admin, const std::string &tableName){ + + admin->DeleteTable(tableName); +} + +void Test_ListTables(Connection &connection, std::unique_ptr &admin, const std::string &table_name_to_be_listed){ + + bool passed_show_table_values = false; + if(table_name_to_be_listed.size() > 0) + passed_show_table_values = true; + + std::vector hbaseTableList; + admin->ListTables(hbaseTableList); + + for (unsigned int i = 0; i < hbaseTableList.size(); i++){ + std::string table_list_name = hbaseTableList[i].GetTableName().GetName(); + if( (passed_show_table_values) && (table_name_to_be_listed != table_list_name) ){ + continue; + } + std::cerr << "[" << table_list_name << "==>"; + const std::map &table_metadata = hbaseTableList[i].GetMetadata(); + + std::cerr << "{"; + for (const auto & table_metadata_values : table_metadata){ + std::cerr << Bytes::ToString(table_metadata_values.first->Get()) << "::"; + std::cerr<< Bytes::ToString(table_metadata_values.second->Get()) << "|"; + } + std::cerr << "}" << std::endl; + const std::map &family_map = hbaseTableList[i].GetFamily(); + for (const auto & col_family : family_map){ + if(col_family.second.GetName().size() > 0) + std::cerr << "[ "<< col_family.second.GetNameAsString() << "==>"; + + std::cerr << "{"; + const std::map &col_family_metadata = col_family.second.GetValues(); + for (const auto & col_family_values : col_family_metadata){ + std::cerr << Bytes::ToString(col_family_values.first->Get()) << "::"; + std::cerr << Bytes::ToString(col_family_values.second->Get()) << "|"; + } + std::cerr << "}\n{"; + const std::map &col_family_config = col_family.second.GetConfiguration(); + for (const auto & config_map : col_family_config){ + std::cerr << config_map.first << "::" << config_map.second << "|"; + } + std::cerr << "}]" << std::endl; + } + + const std::map &table_config_map = hbaseTableList[i].GetConfiguration(); + for (const auto & config_map : table_config_map){ + std::cerr << config_map.first << "::" << config_map.second << std::endl; + } + + std::cerr << "]" << std::endl; + } + hbaseTableList.clear(); +} + +int CreateKeyValue(BYTE_ARRAY &bytes){ + + BYTE_ARRAY rowbytes; + Bytes::ToBytes("row", rowbytes); + + BYTE_ARRAY fambytes; + Bytes::ToBytes("family", fambytes); + + BYTE_ARRAY qualbytes; + Bytes::ToBytes("qualifier", qualbytes); + + BYTE_ARRAY valbytes; + Bytes::ToBytes("value", valbytes); + + std::vector tags; + + BYTE_TYPE key_type = static_cast(KeyValue::KEY_TYPE::Maximum); + + int bytes_size = KeyValue::CreateByteArray( bytes, rowbytes, 0, rowbytes.size(), fambytes, 0, fambytes.size(), + qualbytes, 0, qualbytes.size(), HBaseConstants::HConstants::LATEST_TIMESTAMP, key_type, + valbytes, 0, valbytes.size(), + tags); + + KeyValue *key_value = nullptr; + key_value = new KeyValue(rowbytes, fambytes, qualbytes, HBaseConstants::HConstants::LATEST_TIMESTAMP, valbytes); + BYTE_ARRAY tmp_rowbytes; + Bytes::CopyByteArray( key_value->GetRowArray(), tmp_rowbytes, key_value->GetRowOffset(), key_value->GetRowLength()); + + BYTE_ARRAY tmp_fambytes; + Bytes::CopyByteArray( key_value->GetFamilyArray(), tmp_fambytes, key_value->GetFamilyOffset(), key_value->GetFamilyLength()); + + + BYTE_ARRAY tmp_qualbytes; + Bytes::CopyByteArray( key_value->GetQualifierArray(), tmp_qualbytes, key_value->GetQualifierOffset(), key_value->GetQualifierLength()); + + + BYTE_ARRAY tmp_valbytes; + Bytes::CopyByteArray( key_value->GetValueArray(), tmp_valbytes, key_value->GetValueOffset(), key_value->GetValueLength()); + + + Bytes::DisplayBytes(tmp_rowbytes); + Bytes::DisplayBytes(tmp_fambytes); + Bytes::DisplayBytes(tmp_qualbytes); + std::cerr << "Timestamp " << key_value->GetTimestamp() << std::endl; + std::cerr << "Type " << static_cast(key_value->GetTypeByte()) << std::endl; + Bytes::DisplayBytes(tmp_valbytes); + + return bytes_size; +} + +void Extract_Put_KeyValues(const KeyValue *key_value){ + + BYTE_ARRAY tmp_rowbytes; + Bytes::CopyByteArray( key_value->GetRowArray(), tmp_rowbytes, key_value->GetRowOffset(), key_value->GetRowLength()); + + BYTE_ARRAY tmp_fambytes; + Bytes::CopyByteArray( key_value->GetFamilyArray(), tmp_fambytes, key_value->GetFamilyOffset(), key_value->GetFamilyLength()); + + + BYTE_ARRAY tmp_qualbytes; + Bytes::CopyByteArray( key_value->GetQualifierArray(), tmp_qualbytes, key_value->GetQualifierOffset(), key_value->GetQualifierLength()); + + + BYTE_ARRAY tmp_valbytes; + Bytes::CopyByteArray( key_value->GetValueArray(), tmp_valbytes, key_value->GetValueOffset(), key_value->GetValueLength()); + + + Bytes::DisplayBytes(tmp_rowbytes); + Bytes::DisplayBytes(tmp_fambytes); + Bytes::DisplayBytes(tmp_qualbytes); + std::cerr << "Timestamp " << key_value->GetTimestamp() << std::endl; + std::cerr << "Type " << static_cast(key_value->GetTypeByte()) << std::endl; + Bytes::DisplayBytes(tmp_valbytes); + +} + +void ParseDetailsFromKeyValue(BYTE_ARRAY &bytes){ + + Bytes::DisplayBytes(bytes); + std::cerr << "bytes.size()" << bytes.size() << std::endl; + + + int offset = 0; + char *pCurrent = &bytes[offset]; + unsigned int *pSize = (unsigned int*) pCurrent; + unsigned int key_length = *pSize; + Utils::swapByteOrder(key_length); + offset += Bytes::SIZEOF_INT; + pCurrent += Bytes::SIZEOF_INT; + + pSize = (unsigned int*) pCurrent; + unsigned int value_length = *pSize; + Utils::swapByteOrder(value_length); + offset += Bytes::SIZEOF_INT; + pCurrent += Bytes::SIZEOF_INT; + + unsigned short *pRowLength = (unsigned short *) &bytes[offset]; + unsigned short row_length = *pRowLength; + Utils::swapByteOrder2Bytes(row_length); + offset += Bytes::SIZEOF_SHORT; + pCurrent += Bytes::SIZEOF_SHORT; + + BYTE_ARRAY row; + row.resize(row_length); + Bytes::PutBytes(row, 0, bytes, offset, row_length); + Bytes::DisplayBytes(row); + offset += row_length; + pCurrent += row_length; + + unsigned char column_family_length = bytes[offset]; //1 byte + offset += Bytes::SIZEOF_BYTE; + pCurrent += Bytes::SIZEOF_BYTE; + + BYTE_ARRAY column; + column.resize(static_cast(column_family_length)); + Bytes::PutBytes(column, 0, bytes, offset, column_family_length); + Bytes::DisplayBytes(column); + offset += column_family_length; + pCurrent += column_family_length; + + + int family_length_offset = KeyValue::ROW_KEY_OFFSET + row_length; + int column_family_offset = family_length_offset + Bytes::SIZEOF_BYTE; + int column_qualifier_offset = column_family_offset + column_family_length; + int column_qualifier_length = key_length - (row_length + column_family_length + KeyValue::KEY_INFRASTRUCTURE_SIZE); + int timestamp_offset = column_qualifier_offset + column_qualifier_length; + + BYTE_ARRAY column_qualifier; + column_qualifier.resize(column_qualifier_length); + Bytes::PutBytes(column_qualifier, 0, bytes, column_qualifier_offset, column_qualifier_length); + Bytes::DisplayBytes(column_qualifier); + offset += column_qualifier_length; + pCurrent += column_qualifier_length; + + Poco::UInt64 *pts = (Poco::UInt64*)pCurrent; + unsigned long timestamp = *pts; + timestamp = Poco::ByteOrder::flipBytes(timestamp); + offset += Bytes::SIZEOF_LONG; + pCurrent += offset; + std::cerr << "Timestamp[" << timestamp << "]" << std::endl; + + unsigned char key_type = static_cast(bytes[offset]); //1 byte + offset += Bytes::SIZEOF_BYTE; + pCurrent += Bytes::SIZEOF_BYTE; + std::cerr << "key_type[" << static_cast(key_type) << "]" << std::endl; + + BYTE_ARRAY value; + value.resize(value_length); + Bytes::PutBytes(value, 0, bytes, offset, value_length); + Bytes::DisplayBytes(value); + offset += value_length; + pCurrent += value_length; + + std::cerr << "key_length:- " << key_length << std::endl; + std::cerr << "value_length:- " << value_length << std::endl; + std::cerr << "row_length:- " << row_length << std::endl; + std::cerr << "column_family_length:- " << column_family_length << std::endl; + std::cerr << "column_qualifier_length:- " << column_qualifier_length << std::endl; + + std::cerr << "ROW_KEY_OFFSET:- " << KeyValue::ROW_KEY_OFFSET << std::endl; + std::cerr << "family_length_offset:- " << family_length_offset << std::endl; + std::cerr << "column_family_offset:- " << column_family_offset << std::endl; + std::cerr << "column_qualifier_offset:- " << column_qualifier_offset << std::endl; + std::cerr << "timestamp_offset:- " << timestamp_offset << std::endl; +} + +void Test_Meta_Cache(Connection* conn) { + std::string tableName("testtable-mr"); + + std::unique_ptr
table( + conn->getTable(TableName::valueOf(tableName))); + + std::string rowKey("row-11225"); + BYTE_ARRAY row; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-124523"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-136782"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-149386"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-161640"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-174242"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-186840"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-199100"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-21134"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-223611"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-235871"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-248475"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-260731"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-273330"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-285931"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + rowKey = "row-248475"; + Bytes::ToBytes(rowKey, row); + Test_Get(*conn, table, row); + row.clear(); + + table->close(); +} +#if 0 +int main (int argc, char *argv[]){ + try{ + if (argc < 2) { + std::cerr << "No hbase-site.xml specified" << std::endl; + return 255; + } + /* + BYTE_ARRAY key_value; + CreateKeyValue(key_value); + ParseDetailsFromKeyValue(key_value); + KeyValue *put_key_value = new KeyValue(key_value, 0, key_value.size()); + Extract_Put_KeyValues(put_key_value); + delete put_key_value; + */ + std::string tableName("testtablev"); + std::string rowKey("row-1"); + + std::string delTableName("testtable.sudeep"); + std::string delRowKey("rowdelete"); + + Connection *conn = GetConnection(argv[1]); + Connection &connection = *conn; + + // Test_Meta_Cache(conn); + + std::unique_ptr
table(connection.getTable(TableName::valueOf(delTableName))); + std::unique_ptradmin(connection.getAdmin()); + + BYTE_ARRAY row; + Bytes::ToBytes(rowKey, row); + //Test_ListTables(connection, admin); + Test_CreateTable(connection, admin, delTableName); + //Test_ListTables(connection); + Test_Put(connection, table, row); + Test_Get(connection, table, row); + Test_Get(connection, table, row); + Test_Get(connection, table, row); + Test_DisableTable(connection, admin, delTableName); + Test_DeleteTable(connection, admin, delTableName); + //Test_ListTables(connection); + /* + exit(EXIT_SUCCESS); + */if (0) { + //Test_ListTables(connection, admin); + sleep(SLEEP_TIME); + + Test_CreateTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_ListTables(connection, admin); + sleep(SLEEP_TIME); + + Test_Put(connection, table, row); + sleep(SLEEP_TIME); + + Test_Get(connection, table, row); + sleep(SLEEP_TIME); + + Test_Delete(connection, table, row); + sleep(SLEEP_TIME); + + Test_DisableTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_EnableTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_DisableTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_DeleteTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + // Test_ListTables(connection, admin); + sleep(SLEEP_TIME); + } + + + table->close(); -#include "core/client.h" + if(!conn->isClosed()) + conn->close(); + }catch(const char *err){ + std::cerr << "exception:- " << err << std::endl; + }catch(const std::string &err){ + std::cerr << "exception:- " << err << std::endl; + }catch(...){ + std::cerr << "Unknown exception" << std::endl; + } +} +#endif diff --git a/hbase-native-client/src/core/client.h b/hbase-native-client/src/core/client.h index 68348a8..b36b1d4 100644 --- a/hbase-native-client/src/core/client.h +++ b/hbase-native-client/src/core/client.h @@ -17,9 +17,10 @@ * */ -#ifndef CORE_CLIENT_H_ -#define CORE_CLIENT_H_ +#pragma once -class Client { -}; -#endif // CORE_CLIENT_H_ +//#include + +//#include "if/Cell.pb.h" + +class Client {}; diff --git a/hbase-native-client/src/core/column_family_schema.cc b/hbase-native-client/src/core/column_family_schema.cc new file mode 100644 index 0000000..e8aac54 --- /dev/null +++ b/hbase-native-client/src/core/column_family_schema.cc @@ -0,0 +1,427 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include + +#include "configuration.h" +#include "column_family_schema.h" + +const BYTE_TYPE ColumnFamilySchema::COLUMN_DESCRIPTOR_VERSION = static_cast(11); +const std::string ColumnFamilySchema::COMPRESSION = "COMPRESSION"; +const std::string ColumnFamilySchema::COMPRESSION_COMPACT = "COMPRESSION_COMPACT"; +// To be removed, it is not used anymore +const std::string ColumnFamilySchema::ENCODE_ON_DISK = "ENCODE_ON_DISK"; +const std::string ColumnFamilySchema::DATA_BLOCK_ENCODING = "DATA_BLOCK_ENCODING"; +const std::string ColumnFamilySchema::BLOCKCACHE = "BLOCKCACHE"; +const std::string ColumnFamilySchema::CACHE_DATA_ON_WRITE = "CACHE_DATA_ON_WRITE"; +const std::string ColumnFamilySchema::CACHE_INDEX_ON_WRITE = "CACHE_INDEX_ON_WRITE"; +const std::string ColumnFamilySchema::CACHE_BLOOMS_ON_WRITE = "CACHE_BLOOMS_ON_WRITE"; +const std::string ColumnFamilySchema::EVICT_BLOCKS_ON_CLOSE = "EVICT_BLOCKS_ON_CLOSE"; +const std::string ColumnFamilySchema::CACHE_DATA_IN_L1 = "CACHE_DATA_IN_L1"; +const std::string ColumnFamilySchema::PREFETCH_BLOCKS_ON_OPEN = "PREFETCH_BLOCKS_ON_OPEN"; +const std::string ColumnFamilySchema::BLOCKSIZE = "BLOCKSIZE"; +const std::string ColumnFamilySchema::LENGTH = "LENGTH"; +const std::string ColumnFamilySchema::TTL = "TTL"; +const std::string ColumnFamilySchema::BLOOMFILTER = "BLOOMFILTER"; +const std::string ColumnFamilySchema::FOREVER = "FOREVER"; +const std::string ColumnFamilySchema::REPLICATION_SCOPE = "REPLICATION_SCOPE"; +const BYTE_ARRAY ColumnFamilySchema::REPLICATION_SCOPE_BYTES = Bytes::ToBytes(ColumnFamilySchema::REPLICATION_SCOPE); +const std::string ColumnFamilySchema::MIN_VERSIONS = "MIN_VERSIONS"; +const std::string ColumnFamilySchema::KEEP_DELETED_CELLS = "KEEP_DELETED_CELLS"; +const std::string ColumnFamilySchema::COMPRESS_TAGS = "COMPRESS_TAGS"; +const std::string ColumnFamilySchema::ENCRYPTION = "ENCRYPTION"; +const std::string ColumnFamilySchema::ENCRYPTION_KEY = "ENCRYPTION_KEY"; +const std::string ColumnFamilySchema::IS_MOB = "IS_MOB"; +const BYTE_ARRAY ColumnFamilySchema::IS_MOB_BYTES = Bytes::ToBytes(ColumnFamilySchema::IS_MOB); +const std::string ColumnFamilySchema::MOB_THRESHOLD = "MOB_THRESHOLD"; +const BYTE_ARRAY ColumnFamilySchema::MOB_THRESHOLD_BYTES = Bytes::ToBytes(ColumnFamilySchema::MOB_THRESHOLD); +const long ColumnFamilySchema::DEFAULT_MOB_THRESHOLD = 100 * 1024; // 100k +const std::string ColumnFamilySchema::DFS_REPLICATION = "DFS_REPLICATION"; +const short ColumnFamilySchema::DEFAULT_DFS_REPLICATION = 0; +const std::string ColumnFamilySchema::DEFAULT_COMPRESSION = + HBaseConstants::EnumToString::ToString(HBaseConstants::COMPRESSION_ALGORITHM::NONE); +const bool ColumnFamilySchema::DEFAULT_ENCODE_ON_DISK = true; +/** Default data block encoding algorithm. */ +const std::string ColumnFamilySchema::DEFAULT_DATA_BLOCK_ENCODING = + HBaseConstants::EnumToString::ToString(HBaseConstants::DATA_BLOCK_ENCODING::NONE); +//TODO we need to get it from conf file. what is the defined path ??? +const int ColumnFamilySchema::DEFAULT_VERSIONS = 1; //HBaseConfiguration.create().getInt("hbase.column.max.version", 1); +const int ColumnFamilySchema::DEFAULT_MIN_VERSIONS = 0; +const bool ColumnFamilySchema::DEFAULT_IN_MEMORY = false; +const HBaseConstants::KEEP_DELETED_CELLS ColumnFamilySchema::DEFAULT_KEEP_DELETED = HBaseConstants::KEEP_DELETED_CELLS::FALSE; +const bool ColumnFamilySchema::DEFAULT_BLOCKCACHE = true; +const bool ColumnFamilySchema::DEFAULT_CACHE_DATA_ON_WRITE = false; +const bool ColumnFamilySchema::DEFAULT_CACHE_DATA_IN_L1 = false; +const bool ColumnFamilySchema::DEFAULT_CACHE_INDEX_ON_WRITE = false; +const int ColumnFamilySchema::DEFAULT_BLOCKSIZE = HBaseConstants::HConstants::DEFAULT_BLOCKSIZE; +const std::string ColumnFamilySchema::DEFAULT_BLOOMFILTER = + HBaseConstants::EnumToString::ToString(HBaseConstants::BLOOM_TYPE::ROW); +const bool ColumnFamilySchema::DEFAULT_CACHE_BLOOMS_ON_WRITE = false; +const int ColumnFamilySchema::DEFAULT_TTL = HBaseConstants::HConstants::FOREVER; +const int ColumnFamilySchema::DEFAULT_REPLICATION_SCOPE = HBaseConstants::HConstants::REPLICATION_SCOPE_LOCAL; +const bool ColumnFamilySchema::DEFAULT_EVICT_BLOCKS_ON_CLOSE = false; +const bool ColumnFamilySchema::DEFAULT_COMPRESS_TAGS = true; +const bool ColumnFamilySchema::DEFAULT_PREFETCH_BLOCKS_ON_OPEN = false; +const int ColumnFamilySchema::UNINITIALIZED = -1; + +const std::string ColumnFamilySchema::VERSIONS = "VERSIONS"; +const std::string ColumnFamilySchema::IN_MEMORY = "IN_MEMORY"; + +const std::map ColumnFamilySchema::DEFAULT_VALUES = ColumnFamilySchema::PopulateDefaultValues(); + +#if 0 +{ + {ColumnFamilySchema::BLOOMFILTER, ColumnFamilySchema::DEFAULT_BLOOMFILTER}, + {ColumnFamilySchema::REPLICATION_SCOPE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_REPLICATION_SCOPE)}, + {ColumnFamilySchema::VERSIONS, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_VERSIONS)}, + {ColumnFamilySchema::MIN_VERSIONS, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_MIN_VERSIONS)}, + {ColumnFamilySchema::COMPRESSION, ColumnFamilySchema::DEFAULT_COMPRESSION}, + {ColumnFamilySchema::TTL, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_TTL)}, + {ColumnFamilySchema::BLOCKSIZE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_BLOCKSIZE)}, + {ColumnFamilySchema::IN_MEMORY, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_IN_MEMORY)}, + {ColumnFamilySchema::BLOCKCACHE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_BLOCKCACHE)}, + {ColumnFamilySchema::KEEP_DELETED_CELLS, Poco::NumberFormatter::format(static_cast(ColumnFamilySchema::DEFAULT_KEEP_DELETED))}, + {ColumnFamilySchema::DATA_BLOCK_ENCODING, ColumnFamilySchema::DEFAULT_DATA_BLOCK_ENCODING}, + {ColumnFamilySchema::CACHE_DATA_ON_WRITE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_CACHE_DATA_ON_WRITE)}, + {ColumnFamilySchema::CACHE_DATA_IN_L1, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_CACHE_DATA_IN_L1)}, + {ColumnFamilySchema::CACHE_INDEX_ON_WRITE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_CACHE_INDEX_ON_WRITE)}, + {ColumnFamilySchema::CACHE_BLOOMS_ON_WRITE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_CACHE_BLOOMS_ON_WRITE)}, + {ColumnFamilySchema::EVICT_BLOCKS_ON_CLOSE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_EVICT_BLOCKS_ON_CLOSE)}, + {ColumnFamilySchema::PREFETCH_BLOCKS_ON_OPEN, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_PREFETCH_BLOCKS_ON_OPEN)}, + +}; +#endif + +const std::vector RESERVED_KEYWORDS = ColumnFamilySchema::PopulateStaticVals(); + +std::vector ColumnFamilySchema::PopulateStaticVals(){ + + std::vector reserved_keywords; + for(const auto &key_value : ColumnFamilySchema::DEFAULT_VALUES){ + reserved_keywords.push_back(Bytes::ToBytes(key_value.first)); + } + reserved_keywords.push_back(Bytes::ToBytes(ColumnFamilySchema::ENCRYPTION)); + reserved_keywords.push_back(Bytes::ToBytes(ColumnFamilySchema::ENCRYPTION_KEY)); + reserved_keywords.push_back(ColumnFamilySchema::IS_MOB_BYTES); + reserved_keywords.push_back(ColumnFamilySchema::MOB_THRESHOLD_BYTES); + + return reserved_keywords; +} + +std::map ColumnFamilySchema::PopulateDefaultValues(){ + + std::map default_values; + default_values.insert(std::pair(ColumnFamilySchema::BLOOMFILTER, ColumnFamilySchema::DEFAULT_BLOOMFILTER)); + default_values.insert(std::pair(ColumnFamilySchema::REPLICATION_SCOPE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_REPLICATION_SCOPE))); + default_values.insert(std::pair(ColumnFamilySchema::VERSIONS, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_VERSIONS))); + default_values.insert(std::pair(ColumnFamilySchema::MIN_VERSIONS, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_MIN_VERSIONS))); + default_values.insert(std::pair(ColumnFamilySchema::COMPRESSION, ColumnFamilySchema::DEFAULT_COMPRESSION)); + default_values.insert(std::pair(ColumnFamilySchema::TTL, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_TTL))); + default_values.insert(std::pair(ColumnFamilySchema::BLOCKSIZE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_BLOCKSIZE))); + default_values.insert(std::pair(ColumnFamilySchema::IN_MEMORY, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_IN_MEMORY))); + default_values.insert(std::pair(ColumnFamilySchema::BLOCKCACHE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_BLOCKCACHE))); + default_values.insert(std::pair(ColumnFamilySchema::KEEP_DELETED_CELLS, Poco::NumberFormatter::format(static_cast(ColumnFamilySchema::DEFAULT_KEEP_DELETED)))); + default_values.insert(std::pair(ColumnFamilySchema::DATA_BLOCK_ENCODING, ColumnFamilySchema::DEFAULT_DATA_BLOCK_ENCODING)); + default_values.insert(std::pair(ColumnFamilySchema::CACHE_DATA_ON_WRITE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_CACHE_DATA_ON_WRITE))); + default_values.insert(std::pair(ColumnFamilySchema::CACHE_DATA_IN_L1, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_CACHE_DATA_IN_L1))); + default_values.insert(std::pair(ColumnFamilySchema::CACHE_INDEX_ON_WRITE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_CACHE_INDEX_ON_WRITE))); + default_values.insert(std::pair(ColumnFamilySchema::CACHE_BLOOMS_ON_WRITE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_CACHE_BLOOMS_ON_WRITE))); + default_values.insert(std::pair(ColumnFamilySchema::EVICT_BLOCKS_ON_CLOSE, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_EVICT_BLOCKS_ON_CLOSE))); + default_values.insert(std::pair(ColumnFamilySchema::PREFETCH_BLOCKS_ON_OPEN, Poco::NumberFormatter::format(ColumnFamilySchema::DEFAULT_PREFETCH_BLOCKS_ON_OPEN))); + return default_values; +} + +ColumnFamilySchema::ColumnFamilySchema() { + // TODO Auto-generated constructor stub + +} + +ColumnFamilySchema::ColumnFamilySchema(const std::string &family_name):ColumnFamilySchema(Bytes::ToBytes(family_name)){ + +} + + +ColumnFamilySchema::ColumnFamilySchema(const BYTE_ARRAY &family_name){ + + if(IsLegalFamilyName(family_name)){ + this->family_name_ = family_name; + SetMaxVersions(ColumnFamilySchema::DEFAULT_VERSIONS); + SetMinVersions(ColumnFamilySchema::DEFAULT_MIN_VERSIONS); + SetKeepDeletedCells(ColumnFamilySchema::DEFAULT_KEEP_DELETED); + SetInMemory(ColumnFamilySchema::DEFAULT_IN_MEMORY); + SetBlockCacheEnabled(ColumnFamilySchema::DEFAULT_BLOCKCACHE); + SetTimeToLive(ColumnFamilySchema::DEFAULT_TTL); + SetCompressionType(HBaseConstants::COMPRESSION_ALGORITHM::NONE); + SetDataBlockEncoding(HBaseConstants::DATA_BLOCK_ENCODING::NONE); + SetBloomFilterType(HBaseConstants::BLOOM_TYPE::ROW); + SetBlocksize(ColumnFamilySchema::DEFAULT_BLOCKSIZE); + SetScope(ColumnFamilySchema::DEFAULT_REPLICATION_SCOPE); + } +} + +ColumnFamilySchema::~ColumnFamilySchema() { + // TODO Auto-generated destructor stub +} + +bool ColumnFamilySchema::IsLegalFamilyName(const BYTE_ARRAY &family_name){ + + if (0 == family_name.size()) + throw "Family name can not be empty"; + + if ('.' == family_name[0]) { + throw "Family names cannot start with a period: "; + } + + for (unsigned int i = 0; i < family_name.size(); i++) { + if ( (family_name[i] >= 0 && family_name[i] <= 31) || family_name[i] == ':' || family_name[i] == '\\' || family_name[i] == '/') { + std::string throw_str(""); + throw_str += "Illegal character <"; + throw_str += family_name[i]; + throw_str += ">. Family names cannot contain control characters or colons: "; + //throw_str += Bytes::ToString(family_name)); + throw throw_str; + } + } + BYTE_ARRAY recovered_edit = Bytes::ToBytes(HBaseConstants::HConstants::RECOVERED_EDITS_DIR); + if (Bytes::Equals(recovered_edit, family_name)) { + std::string throw_str(""); + throw_str += "Family name cannot be: "; + throw_str += HBaseConstants::HConstants::RECOVERED_EDITS_DIR; + } + return true; +} + +ColumnFamilySchema ColumnFamilySchema::SetMaxVersions(const int &max_versions){ + + if (max_versions <= 0) { + // TODO: Allow maxVersion of 0 to be the way you say "Keep all versions". + // Until there is support, consider 0 or < 0 -- a configuration error. + throw std::string("Maximum versions must be positive"); + } + if (max_versions < this->GetMinVersions()) { + throw std::string("Maximum versions must be >= minimum versions"); + /* + Set MaxVersion to " + maxVersions + + " while minVersion is " + this.getMinVersions() + + ". "); + */ + } + this->SetValue(ColumnFamilySchema::VERSIONS, Poco::NumberFormatter::format(max_versions)); + cached_max_versions_ = max_versions; + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetMinVersions(const int &min_versions){ + + this->SetValue(ColumnFamilySchema::MIN_VERSIONS, Poco::NumberFormatter::format(min_versions)); + return *this; + +} + +ColumnFamilySchema ColumnFamilySchema::SetKeepDeletedCells(const HBaseConstants::KEEP_DELETED_CELLS &keep_deleted_cells){ + + this->SetValue(ColumnFamilySchema::KEEP_DELETED_CELLS, HBaseConstants::EnumToString::ToString(keep_deleted_cells)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetInMemory(const bool &set_in_memory){ + + this->SetValue(ColumnFamilySchema::IN_MEMORY, Poco::NumberFormatter::format(set_in_memory)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetBlockCacheEnabled(const bool &set_block_cache){ + + this->SetValue(ColumnFamilySchema::BLOCKCACHE, Poco::NumberFormatter::format(set_block_cache)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetTimeToLive(const int &ttl){ + + this->SetValue(ColumnFamilySchema::TTL, Poco::NumberFormatter::format(ttl)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetCompressionType(const HBaseConstants::COMPRESSION_ALGORITHM &compression_algorithm){ + + this->SetValue(ColumnFamilySchema::COMPRESSION, HBaseConstants::EnumToString::ToString(compression_algorithm)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetDataBlockEncoding(const HBaseConstants::DATA_BLOCK_ENCODING &data_block_encoding){ + + this->SetValue(ColumnFamilySchema::DATA_BLOCK_ENCODING, HBaseConstants::EnumToString::ToString(data_block_encoding)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetBloomFilterType(const HBaseConstants::BLOOM_TYPE &bloom_type){ + + this->SetValue(ColumnFamilySchema::BLOOMFILTER, HBaseConstants::EnumToString::ToString(bloom_type)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetBlocksize(const int &default_blocksize){ + + this->SetValue(ColumnFamilySchema::BLOCKSIZE, Poco::NumberFormatter::format(default_blocksize)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetScope(const int &replication_scope){ + + this->SetValue(ColumnFamilySchema::REPLICATION_SCOPE, Poco::NumberFormatter::format(replication_scope)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetValue(const std::string &key, const std::string &value) { + + if(0 == value.size()){ + this->RemoveValue(key); + }else{ + + this->SetValue(Bytes::ToBytes(key), Bytes::ToBytes(value)); + } + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::SetValue(const BYTE_ARRAY &key, const BYTE_ARRAY &value) { + + BYTE_ARRAY max_versions_bytes; + Bytes::ToBytes(ColumnFamilySchema::VERSIONS, max_versions_bytes); + if(Bytes::Equals(key, max_versions_bytes)){ + this->cached_max_versions_ = ColumnFamilySchema::UNINITIALIZED; + } + Bytes key_to_set(key); + bool found = false; + for(std::map::iterator itr_bytes = this->column_metadata_values_.begin(); itr_bytes != this->column_metadata_values_.end(); ++itr_bytes){ + if(Bytes::Equals(key, itr_bytes->first->Get())){ + found = true; + itr_bytes->second->Set(value); + break; + } + } + if(!found){ + Bytes value_to_set(value); + this->column_metadata_values_.insert(std::pair(new Bytes(key), new Bytes(value))); + } + + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::RemoveValue(const std::string &key){ + + this->RemoveValue(Bytes::ToBytes(key)); + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::RemoveValue(const BYTE_ARRAY &key){ + + std::map::iterator itr_bytes = this->column_metadata_values_.begin(); + for( ; itr_bytes != this->column_metadata_values_.end(); ++itr_bytes){ + if(Bytes::Equals(key, itr_bytes->first->Get())){ + delete (itr_bytes->second); + this->column_metadata_values_.erase(itr_bytes); + break; + } + } + return *this; +} + + +/** + * @return The minimum number of versions to keep. + */ +int ColumnFamilySchema::GetMinVersions() { + + int min_versions; + std::string value = GetValue(ColumnFamilySchema::MIN_VERSIONS); + min_versions = (0 == value.size()) ? 0 : atoi(value.c_str()); + + return min_versions; +} + +/** + * @param key The key. + * @return The value as a string. + */ +std::string ColumnFamilySchema::GetValue(const std::string &key) { + + std::string value_str(""); + BYTE_ARRAY value = GetValue(Bytes::ToBytes(key)); + if (value.size() > 0) + Bytes::ToString(value, value_str); + return value_str; +} + +/** + * @param key The key. + * @return The value. + */ +BYTE_ARRAY ColumnFamilySchema::GetValue(const BYTE_ARRAY &key) { + + BYTE_ARRAY set_bytes; + for(const auto &key_value : this->column_metadata_values_){ + if(Bytes::Equals(key, key_value.first->Get())){ + set_bytes = key_value.first->Get(); + break; + } + } + + return set_bytes; +} + +const BYTE_ARRAY &ColumnFamilySchema::GetName() const{ + return this->family_name_; +} + +const std::string ColumnFamilySchema::GetNameAsString() const{ + return Bytes::ToString(this->family_name_); +} + +const std::map &ColumnFamilySchema::GetValues() const{ + return this->column_metadata_values_; +} + +const std::map &ColumnFamilySchema::GetConfiguration() const{ + return this->column_configuration_; +} + +ColumnFamilySchema ColumnFamilySchema::SetConfiguration(const std::string &key, const std::string &value){ + + if(0 == value.size()){ + this->RemoveConfiguration(key); + }else{ + this->column_configuration_[key] = value; + } + + return *this; +} + +ColumnFamilySchema ColumnFamilySchema::RemoveConfiguration(const std::string &key){ + + try { + + this->column_configuration_.erase(this->column_configuration_.at(key)); + + }catch(const std::out_of_range &oor){ + + std::cerr << "Cant remove Key " << key << "from column configuration" << std::endl; + } + + return *this; +} diff --git a/hbase-native-client/src/core/column_family_schema.h b/hbase-native-client/src/core/column_family_schema.h new file mode 100644 index 0000000..8c25eed --- /dev/null +++ b/hbase-native-client/src/core/column_family_schema.h @@ -0,0 +1,273 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include +#include + +#include "bytes.h" +#include "hconstants.h" + +class ColumnFamilySchema { + private: + // For future backward compatibility + + // Version 3 was when column names become byte arrays and when we picked up + // Time-to-live feature. Version 4 was when we moved to byte arrays, HBASE-82. + // Version 5 was when bloom filter descriptors were removed. + // Version 6 adds metadata as a map where keys and values are byte[]. + // Version 7 -- add new compression and hfile blocksize to HColumnDescriptor (HBASE-1217) + // Version 8 -- reintroduction of bloom filters, changed from boolean to enum + // Version 9 -- add data block encoding + // Version 10 -- change metadata to standard type. + // Version 11 -- add column family level configuration. + static const BYTE_TYPE COLUMN_DESCRIPTOR_VERSION; + + public: + + + // These constants are used as FileInfo keys + static const std::string COMPRESSION; + static const std::string COMPRESSION_COMPACT; + static const std::string ENCODE_ON_DISK; + static const std::string DATA_BLOCK_ENCODING; + /** + * Key for the BLOCKCACHE attribute. + * A more exact name would be CACHE_DATA_ON_READ because this flag sets whether or not we + * cache DATA blocks. We always cache INDEX and BLOOM blocks; caching these blocks cannot be + * disabled. + */ + static const std::string BLOCKCACHE; + static const std::string CACHE_DATA_ON_WRITE; + static const std::string CACHE_INDEX_ON_WRITE; + static const std::string CACHE_BLOOMS_ON_WRITE; + static const std::string EVICT_BLOCKS_ON_CLOSE; + /** + * Key for cache data into L1 if cache is set up with more than one tier. + * To set in the shell, do something like this: + * hbase(main):003:0> create 't', + * {NAME; 'true'}} + */ + static const std::string CACHE_DATA_IN_L1; + + /** + * Key for the PREFETCH_BLOCKS_ON_OPEN attribute. + * If set, all INDEX, BLOOM, and DATA blocks of HFiles belonging to this + * family will be loaded into the cache as soon as the file is opened. These + * loads will not count as cache misses. + */ + static const std::string PREFETCH_BLOCKS_ON_OPEN; + + /** + * Size of storefile/hfile 'blocks'. Default is {@link #DEFAULT_BLOCKSIZE}. + * Use smaller block sizes for faster random-access at expense of larger + * indices (more memory consumption). + */ + static const std::string BLOCKSIZE; + static const std::string LENGTH; + static const std::string TTL; + static const std::string BLOOMFILTER; + static const std::string FOREVER; + static const std::string REPLICATION_SCOPE; + static const BYTE_ARRAY REPLICATION_SCOPE_BYTES; + static const std::string MIN_VERSIONS; + /** + * Retain all cells across flushes and compactions even if they fall behind + * a delete tombstone. To see all retained cells, do a 'raw' scan; see + * Scan#setRaw or pass RAW; true attribute in the shell. + */ + static const std::string KEEP_DELETED_CELLS; + static const std::string COMPRESS_TAGS; + + static const std::string ENCRYPTION; + static const std::string ENCRYPTION_KEY; + + static const std::string IS_MOB; + static const BYTE_ARRAY IS_MOB_BYTES; + static const std::string MOB_THRESHOLD; + static const BYTE_ARRAY MOB_THRESHOLD_BYTES; + static const long DEFAULT_MOB_THRESHOLD; // 100k + + static const std::string DFS_REPLICATION; + static const short DEFAULT_DFS_REPLICATION; + + /** + * Default compression type. + */ + static const std::string DEFAULT_COMPRESSION; + + /** + * Default value of the flag that enables data block encoding on disk, as + * opposed to encoding in cache only. We encode blocks everywhere by default, + * as long as {@link #DATA_BLOCK_ENCODING} is not NONE. + */ + static const bool DEFAULT_ENCODE_ON_DISK; + + /** Default data block encoding algorithm. */ + static const std::string DEFAULT_DATA_BLOCK_ENCODING; + + /** + * Default number of versions of a record to keep. + */ + static const int DEFAULT_VERSIONS; + + /** + * Default is not to keep a minimum of versions. + */ + static const int DEFAULT_MIN_VERSIONS; + + /** + * Default setting for whether to try and serve this column family from memory or not. + */ + static const bool DEFAULT_IN_MEMORY; + + /** + * Default setting for preventing deleted from being collected immediately. + */ + static const HBaseConstants::KEEP_DELETED_CELLS DEFAULT_KEEP_DELETED; + + /** + * Default setting for whether to use a block cache or not. + */ + static const bool DEFAULT_BLOCKCACHE; + + /** + * Default setting for whether to cache data blocks on write if block caching + * is enabled. + */ + static const bool DEFAULT_CACHE_DATA_ON_WRITE; + + /** + * Default setting for whether to cache data blocks in L1 tier. Only makes sense if more than + * one tier in operations: i.e. if we have an L1 and a L2. This will be the cases if we are + * using BucketCache. + */ + static const bool DEFAULT_CACHE_DATA_IN_L1; + + /** + * Default setting for whether to cache index blocks on write if block + * caching is enabled. + */ + static const bool DEFAULT_CACHE_INDEX_ON_WRITE; + + /** + * Default size of blocks in files stored to the filesytem (hfiles). + */ + static const int DEFAULT_BLOCKSIZE; + + /** + * Default setting for whether or not to use bloomfilters. + */ + static const std::string DEFAULT_BLOOMFILTER; + + /** + * Default setting for whether to cache bloom filter blocks on write if block + * caching is enabled. + */ + static const bool DEFAULT_CACHE_BLOOMS_ON_WRITE; + + /** + * Default time to live of cell contents. + */ + static const int DEFAULT_TTL; + + /** + * Default scope. + */ + static const int DEFAULT_REPLICATION_SCOPE; + + /** + * Default setting for whether to evict cached blocks from the blockcache on + * close. + */ + static const bool DEFAULT_EVICT_BLOCKS_ON_CLOSE; + + /** + * Default compress tags along with any type of DataBlockEncoding. + */ + static const bool DEFAULT_COMPRESS_TAGS; + + /* + * Default setting for whether to prefetch blocks into the blockcache on open. + */ + static const bool DEFAULT_PREFETCH_BLOCKS_ON_OPEN; + static const std::string VERSIONS; + static const std::string IN_MEMORY; + + ColumnFamilySchema(); + ColumnFamilySchema(const std::string &family_name); + ColumnFamilySchema(const BYTE_ARRAY &family_name); + virtual ~ColumnFamilySchema(); + + bool IsLegalFamilyName(const BYTE_ARRAY &family_name); + ColumnFamilySchema SetMaxVersions(const int &max_versions); + ColumnFamilySchema SetMinVersions(const int &min_versions); + ColumnFamilySchema SetKeepDeletedCells(const HBaseConstants::KEEP_DELETED_CELLS &keep_deleted_cells); + ColumnFamilySchema SetInMemory(const bool &set_in_memory); + ColumnFamilySchema SetBlockCacheEnabled(const bool &set_block_cache); + ColumnFamilySchema SetTimeToLive(const int &ttl); + ColumnFamilySchema SetCompressionType(const HBaseConstants::COMPRESSION_ALGORITHM &compression_algorithm); + ColumnFamilySchema SetDataBlockEncoding(const HBaseConstants::DATA_BLOCK_ENCODING &data_block_encoding); + ColumnFamilySchema SetBloomFilterType(const HBaseConstants::BLOOM_TYPE &bloom_type); + ColumnFamilySchema SetBlocksize(const int &default_blocksize); + ColumnFamilySchema SetScope(const int &replication_scope); + + ColumnFamilySchema SetValue(const std::string &key, const std::string &value); + ColumnFamilySchema SetValue(const BYTE_ARRAY &key, const BYTE_ARRAY &value); + ColumnFamilySchema RemoveValue(const std::string &key); + ColumnFamilySchema RemoveValue(const BYTE_ARRAY &key); + + ColumnFamilySchema SetConfiguration(const std::string &key, const std::string &value); + ColumnFamilySchema RemoveConfiguration(const std::string &key); + + std::string GetValue(const std::string &key); + BYTE_ARRAY GetValue(const BYTE_ARRAY &key); + int GetMinVersions(); + const BYTE_ARRAY &GetName() const; + const std::string GetNameAsString() const; + const std::map &GetValues() const; + const std::map &GetConfiguration() const; + + static std::vector PopulateStaticVals(); + static std::map PopulateDefaultValues(); + + private: + static const std::map DEFAULT_VALUES; + static const std::vector RESERVED_KEYWORDS; + static const int UNINITIALIZED; + + // Column family name + BYTE_ARRAY family_name_; + // Column metadata + std::map column_metadata_values_; + /** + * A map which holds the configuration specific to the column family. + * The keys of the map have the same names as config keys and override the defaults with + * cf-specific settings. Example usage may be for compactions, etc. + */ + std::map column_configuration_; + /* + * Cache the max versions rather than calculate it every time. + */ + int cached_max_versions_; + +}; + diff --git a/hbase-native-client/src/core/compare_filter.cc b/hbase-native-client/src/core/compare_filter.cc new file mode 100644 index 0000000..68887a8 --- /dev/null +++ b/hbase-native-client/src/core/compare_filter.cc @@ -0,0 +1,103 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "compare_filter.h" + +CompareFilter::CompareFilter( const CompareOp &compare_op, + const ByteArrayComparable &comparator): + compare_op_(compare_op), + comparator_(comparator){ +} + +CompareFilter::CompareFilter() { + // TODO Auto-generated destructor stub +} + +CompareFilter::~CompareFilter() { + // TODO Auto-generated destructor stub +} + +const CompareFilter::CompareOp & CompareFilter::GetOperator(){ + + return this->compare_op_; +} + +const ByteArrayComparable & CompareFilter::GetComparator(){ + + return this->comparator_; +} + +bool CompareFilter::FilterRowKey(const Cell &first_row_cell){ + // Impl in FilterBase might do unnecessary copy for Off heap backed Cells. + return false; +} + +bool CompareFilter::CompareRow(const CompareOp &compare_op, const ByteArrayComparable &comparator, const Cell &cell){ + + if(CompareOp::NO_OP == compare_op) + return true; + int compare_result = 0; + return this->Compare(compare_op, compare_result); +} + +bool CompareFilter::compareFamily(const CompareOp &compare_op, const ByteArrayComparable &comparator, const Cell &cell){ + + if(CompareOp::NO_OP == compare_op) + return true; + int compare_result = 0; + return this->Compare(compare_op, compare_result); +} + +bool CompareFilter::compareQualifier(const CompareOp &compare_op, const ByteArrayComparable &comparator, const Cell &cell){ + + if(CompareOp::NO_OP == compare_op) + return true; + int compare_result = 0; + return this->Compare(compare_op, compare_result); +} + +bool CompareFilter::compareValue(const CompareOp &compare_op, const ByteArrayComparable &comparator, const Cell &cell){ + + if(CompareOp::NO_OP == compare_op) + return true; + int compare_result = 0; + return this->Compare(compare_op, compare_result); + + +} + +bool CompareFilter::Compare(const CompareOp &compare_op, const int &compare_result){ + + switch(compare_op){ + case CompareOp::LESS: + return compare_result <= 0; + case CompareOp::LESS_OR_EQUAL: + return compare_result < 0; + case CompareOp::EQUAL: + return compare_result != 0; + case CompareOp::NOT_EQUAL: + return compare_result == 0; + case CompareOp::GREATER_OR_EQUAL: + return compare_result > 0; + case CompareOp::GREATER: + return compare_result >= 0; + default: + throw std::string("Unknown Compare op ");// + compareOp.name()); + } +} diff --git a/hbase-native-client/src/core/compare_filter.h b/hbase-native-client/src/core/compare_filter.h new file mode 100644 index 0000000..b3076e0 --- /dev/null +++ b/hbase-native-client/src/core/compare_filter.h @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "byte_array_comparable.h" +#include "cell.h" +#include "filter_base.h" + +class CompareFilter : public FilterBase { + public: + enum class CompareOp{ + /** less than */ + LESS, + /** less than or equal to */ + LESS_OR_EQUAL, + /** equals */ + EQUAL, + /** not equal */ + NOT_EQUAL, + /** greater than or equal to */ + GREATER_OR_EQUAL, + /** greater than */ + GREATER, + /** no operation */ + NO_OP + }; + CompareFilter(); + CompareFilter(const CompareOp &compare_op, const ByteArrayComparable &comparator); + const CompareFilter::CompareOp & GetOperator(); + const ByteArrayComparable & GetComparator(); + virtual ~CompareFilter(); + bool FilterRowKey(const Cell &first_row_cell); + // TODO + // public static ArrayList extractArguments(ArrayList filterArguments) + // FilterProtos.CompareFilter convert() + // boolean areSerializedFieldsEqual(Filter o) + // public String toString() + //virtual void Convert(); + + protected: + + bool CompareRow(const CompareOp &compare_op, const ByteArrayComparable &comparator, const Cell &cell); + bool compareFamily(const CompareOp &compare_op, const ByteArrayComparable &comparator, const Cell &cell); + bool compareQualifier(const CompareOp &compare_op, const ByteArrayComparable &comparator, const Cell &cell); + bool compareValue(const CompareOp &compare_op, const ByteArrayComparable &comparator, const Cell &cell); + + CompareOp compare_op_; + ByteArrayComparable comparator_; + + private: + bool Compare(const CompareOp &compare_op, const int &compare_result); + +}; diff --git a/hbase-native-client/src/core/configuration.cc b/hbase-native-client/src/core/configuration.cc new file mode 100644 index 0000000..f757c11 --- /dev/null +++ b/hbase-native-client/src/core/configuration.cc @@ -0,0 +1,117 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "configuration.h" + +#include + +Configuration::Configuration() { + +} + +Configuration::Configuration(std::string &configFile) { + + if(0 == configFile.length()) + throw "No configuration file provided.\n"; + std::ifstream in(configFile.c_str()); + Poco::XML::InputSource src(in); + + Poco::XML::DOMParser parser; + Poco::AutoPtr pDoc = parser.parse(&src); + + Poco::XML::NodeIterator it(pDoc, Poco::XML::NodeFilter::SHOW_ELEMENT); + Poco::XML::Node* pNode = it.nextNode(); + + while (pNode){ + std::string nodeName(""); + std::string nodeValue(""); + if("property" == pNode->nodeName() && pNode->hasChildNodes()){ + pNode = it.nextNode(); + if("name" == pNode->nodeName() && pNode->hasChildNodes()){ + nodeName = pNode->firstChild()->getNodeValue(); + pNode = it.nextNode(); + if("value" == pNode->nodeName() && pNode->hasChildNodes()){ + nodeValue = pNode->firstChild()->getNodeValue(); + } + } + if(nodeValue.length() > 0){ + hbaseConfig.insert(std::pair(nodeName, nodeValue)); + } + }else + pNode = it.nextNode(); + } + ReplaceConfVariables(); +} + +void Configuration::ReplaceConfVariables(){ + bool isConfigVar = true; + std::vector confVarsNotFound; + for (std::map::iterator itr = hbaseConfig.begin(); itr != hbaseConfig.end() ; ++itr){ + size_t pos = itr->second.find("${"); + if(std::string::npos != pos){ + size_t posNext = itr->second.find("}", pos+1); + if(std::string::npos != posNext){ + std::string actualValue(itr->second.substr(pos+2, posNext-pos-2)); + std::cerr << "Key:" << itr->first << "; Value: " << itr->second; + if(hbaseConfig[actualValue].length() > 0){ + std::cerr << " has to be replaced by actualValue of: " << actualValue << "; Map Value: " << hbaseConfig[actualValue] << std::endl; + hbaseConfig[itr->first] = itr->second.replace(pos, posNext+1, hbaseConfig[actualValue]); + std::cerr << " Changed Key:" << itr->first << "; Changed Value: " << itr->second << std::endl; + }else{ + std::cerr << " has to be replaced by actualValue of: " << actualValue << " which is not found in Map. Lets skip it for now."<< std::endl; + confVarsNotFound.push_back(actualValue); + } + } + } + } + return; +} +void Configuration::Display(){ + + for (std::map::const_iterator itr = hbaseConfig.begin(); itr != hbaseConfig.end(); ++itr){ + std::cout << itr->first << ":" << itr->second << std::endl; + } + +} + +const std::string Configuration::getValue(const std::string &key){ + + std::string config_value(""); + if("hbase.zookeeper.quorum" == key){ + Poco::StringTokenizer zk_clients(this->hbaseConfig[key], ",", Poco::StringTokenizer::TOK_IGNORE_EMPTY); + std::string zk_quorum_str(""); + for(auto client : zk_clients ){ + //std::cerr << "Client is " << client << std::endl; + config_value += client; + config_value += ":"; + config_value += this->hbaseConfig["hbase.zookeeper.property.clientPort"]; + config_value += ","; + } + }else{ + config_value = this->hbaseConfig[key]; + } + return config_value; +} + + +Configuration::~Configuration() { + + +} + diff --git a/hbase-native-client/src/core/configuration.h b/hbase-native-client/src/core/configuration.h new file mode 100644 index 0000000..7201942 --- /dev/null +++ b/hbase-native-client/src/core/configuration.h @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include + +#include +#include +#include +#include +#include +#include + +#include + +/* + * + */ +class Configuration { + +private: + std::map hbaseConfig; + void ReplaceConfVariables(); +public: + Configuration(std::string &configFile); + Configuration(); + void Display(); + virtual ~Configuration(); + const std::string getValue(const std::string &key); +}; diff --git a/hbase-native-client/src/core/connection.cc b/hbase-native-client/src/core/connection.cc index 099f31d..f2c5741 100644 --- a/hbase-native-client/src/core/connection.cc +++ b/hbase-native-client/src/core/connection.cc @@ -15,8 +15,415 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "core/connection.h" +#include +#include + +#include "connection.h" +#include "cell.h" +#include "util.h" +#include "pb_request_builder.h" +#include "region_details.h" + + +#include "../rpc/generated/RPC.pb.h" +#include "../rpc/generated/Master.pb.h" +#include "../util/Utils.h" + +#include +#include +#include +#include +#include +#include + +using namespace Poco::Net; + +int Connection::rpcCallId = 122; + +int Connection::SetRpcCallId(){ + return Connection::rpcCallId++; +} + +int Connection::GetRpcCallId(){ + return Connection::rpcCallId; +} + +Connection::Connection(Configuration *configuration) :callId(30), socket(NULL), + rpc_client_(std::make_shared()) { + configuration_ = configuration; + meta_region_server_port_ = -1; + master_server_port_ = -1; + use_meta_cache_ = true; + user_ = "anonymous"; +} + +Connection::~Connection() { + //std::cerr <<"Connection destroyed"; + if (NULL != socket) { + socket->shutdownReceive(); + socket->shutdownSend(); + socket->close(); + } +} + +void Connection::set_zk_quorum(const char *zk_q) { this->zk_quorum_ = zk_q; } + +void Connection::endian_byte_swapper(char* dest, char const* src) +{ + // Use bit manipulations instead of accessing individual bytes from memory, much faster. + uint* p_dest = reinterpret_cast< uint* >(dest); + uint const* const p_src = reinterpret_cast< uint const* >(src); + *p_dest = (*p_src >> 24) | ((*p_src & 0x00ff0000) >> 8) | ((*p_src & 0x0000ff00) << 8) | (*p_src << 24); +} + +void Connection::InitZK() { + zk_ = new Zookeeper(zk_quorum_); + zk_->Connect(); + while(!zk_->IsConnected()) { + ::sleep(3); + } + closed = false; +} + +std::shared_ptr Connection::getRpcClient() { + return rpc_client_; +} + +void Connection::init(const std::string & hostName, unsigned long portNo, + const std::string &serviceName) { + // SocketAddress sa("192.166.4.22", 16000); + SocketAddress sa(hostName, portNo); + + socket = new StreamSocket(); + socket->connect(sa); + + //Create Preamble + //HConstants.RPC_HEADER + //HConstants.RPC_CURRENT_VERSION + //AuthMethod.code (SIMPLE which is 80) + + //public static final byte[] RPC_HEADER = new byte[] { 'H', 'B', 'a', 's' }; + //public static final byte RPC_CURRENT_VERSION = 0; + + char *preamble = new char[6]; + int i = 0; + preamble[i++] = 'H'; + preamble[i++] = 'B'; + preamble[i++] = 'a'; + preamble[i++] = 's'; + preamble[i++] = 0; + preamble[i++] = 80; + + int available = socket->impl()->available(); + + socket->sendBytes((const void *)preamble, 6); + + hbase::pb::ConnectionHeader *conHeader = new hbase::pb::ConnectionHeader(); + std::string service_name(serviceName); + conHeader->set_service_name(service_name); + + hbase::pb::UserInformation *userInfo = new hbase::pb::UserInformation(); + std::string *effective_user = new std::string(user_); + // userInfo->set_effective_user(effective_user); + + userInfo->set_allocated_effective_user(effective_user); + conHeader->set_allocated_user_info(userInfo); + + std::string codecClass("org.apache.hadoop.hbase.codec.KeyValueCodec"); + conHeader->set_allocated_cell_block_codec_class(&codecClass); + + hbase::pb::VersionInfo *versionInfo = new hbase::pb::VersionInfo(); + std::string version("2.0.0-SNAPSHOT"); + versionInfo->set_allocated_version(&version); + versionInfo->set_version_major(2); + versionInfo->set_version_minor(0); + std::string versionUrl("git://localhost.localdomain/home/vmthattikota/source_control/hbase"); + versionInfo->set_allocated_url(&versionUrl); + std::string revision("b5dcf5d412ad10b52601a671383d933129ee5c5e"); + versionInfo->set_allocated_revision(&revision); + std::string user("vmthattikota"); + versionInfo->set_allocated_user(&user); + std::string date("Tue Jan 26 12:46:34 PST 2016"); + versionInfo->set_allocated_date(&date); + // std::string srcChecksum("8ea4d527deda8c1248f37b073e0b5453"); + std::string srcChecksum("e0e165015da2a07fb5aa2ac3dfb61de6"); + versionInfo->set_allocated_src_checksum(&srcChecksum); + + conHeader->set_allocated_version_info(versionInfo); + + int totalSize = conHeader->ByteSize(); + // totalSize += google::protobuf::io::CodedOutputStream::VarintSize32(conHeader->ByteSize()); + // totalSize += 4; + // totalSize += sizeof(google::protobuf::uint32); + + int bufferSize = totalSize + 4; + google::protobuf::uint8 *packet = new google::protobuf::uint8[bufferSize]; + ::memset(packet, '\0', bufferSize); + + google::protobuf::io::ArrayOutputStream aos(packet, bufferSize); + google::protobuf::io::CodedOutputStream *coded_output = new google::protobuf::io::CodedOutputStream(&aos); + + unsigned int uiTotalSize = totalSize; + swapByteOrder(uiTotalSize); + coded_output->WriteRaw(&uiTotalSize, 4); + bool success = conHeader->SerializeToCodedStream(coded_output); + + int bytesSent = socket->sendBytes(packet, aos.ByteCount()); +} + +bool Connection::isMasterRunning() +{ + int available = socket->impl()->available(); + + hbase::pb::RequestHeader *rh = new hbase::pb::RequestHeader(); + rh->set_call_id(Connection::rpcCallId++); + std::string *methodName = new std::string("IsMasterRunning"); + rh->set_allocated_method_name(methodName); + rh->set_request_param(true); + + hbase::pb::IsMasterRunningRequest *imrr = new hbase::pb::IsMasterRunningRequest(); + int totalSize = 0; + totalSize += rh->ByteSize(); + totalSize += google::protobuf::io::CodedOutputStream::VarintSize32(rh->ByteSize()); + + totalSize += imrr->ByteSize(); + totalSize += google::protobuf::io::CodedOutputStream::VarintSize32(imrr->ByteSize()); + + int bufferSize = totalSize + 4; + char *packet = new char[bufferSize]; + ::memset(packet, '\0', bufferSize); + + google::protobuf::io::ArrayOutputStream aos(packet, bufferSize); + google::protobuf::io::CodedOutputStream *coded_output = new google::protobuf::io::CodedOutputStream(&aos); + + unsigned int uiTotalSize = totalSize; + swapByteOrder(uiTotalSize); + coded_output->WriteRaw(&uiTotalSize, 4); + + coded_output->WriteVarint32(rh->ByteSize()); + bool success = rh->SerializeToCodedStream(coded_output); + coded_output->WriteVarint32(imrr->ByteSize()); + success = imrr->SerializeToCodedStream(coded_output); + + int bytesSent = socket->sendBytes(packet, aos.ByteCount()); + + char *buffer = new char[2048]; + char *pOffset = buffer; + int bytesReceived; + + int remBufferSize = 2048; + // while ((bytesReceived = socket->receiveBytes(pOffset, remBufferSize)) != 0) + // { + // pOffset += bytesReceived; + // remBufferSize -= bytesReceived; + // } + + bytesReceived = socket->receiveBytes(pOffset, remBufferSize); + unsigned int *pBuffer = (unsigned int *)pOffset; + pOffset += 4; + swapByteOrder(*pBuffer); + uiTotalSize = *pBuffer; + + google::protobuf::io::ArrayInputStream arr(pOffset, remBufferSize - 4); + google::protobuf::io::CodedInputStream input(&arr); + + hbase::pb::ResponseHeader msg1; + unsigned int message1_size = 0; + input.ReadVarint32(&message1_size); + google::protobuf::io::CodedInputStream::Limit limit = input.PushLimit(message1_size); + success = msg1.ParseFromCodedStream(&input); + input.PopLimit(limit); + + hbase::pb::IsMasterRunningResponse msg2; + unsigned int message2_size = 0; + input.ReadVarint32(&message2_size); + limit = input.PushLimit(message2_size); + success = msg2.ParseFromCodedStream(&input); + input.PopLimit(limit); + + return true; +} + +int Connection::SendDataToServer(char *sendBuffer, int sendByteSize){ + int bytesSent = socket->sendBytes(sendBuffer, sendByteSize); + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] Bytes Sent: " << bytesSent << std::endl; + //std::cerr << __LINE__ << ":" << __func__ << " [DBG] Packet: " << sendBuffer << std::endl; + } + return bytesSent; +} + +int Connection::RecvDataFromServer(char *recvBuffer, int recvByteSize){ + int bytesReceived = socket->receiveBytes(recvBuffer, recvByteSize); + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] Bytes Rcvd: " << recvByteSize << std::endl; + //std::cerr << __LINE__ << ":" << __func__ << " [DBG] Packet: " << recvByteSize << std::endl; + } + return bytesReceived; +} + +//TODO Error habdling reqd +int Connection::RecvDataFromServer(std::vector &vectNwPkt, int recvByteSize){ + + //std::cerr << __LINE__ << ":" << __func__ << " [DBG] " << recvByteSize << " Bytes Size" << std::endl; + try{ + while(true){ + char sockBuffer[recvByteSize]; + int bytesReceived = socket->receiveBytes(&sockBuffer, recvByteSize); + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] " << bytesReceived << "/" + << recvByteSize << " Bytes Recvd" << std::endl; + } + vectNwPkt.insert (vectNwPkt.end(), sockBuffer, sockBuffer+bytesReceived); + //usleep(40000); + if( (bytesReceived < recvByteSize) || (0 == bytesReceived) ){ + break; + } + } + //actualBuffRecvd = ; + }catch(...){ + std::cerr << "Exception on recv" << std::endl; + } + return vectNwPkt.size(); +} + +void Connection::findMetaRegionServer(std::string &metaRegionServerName, int &port) { + if (-1 == meta_region_server_port_) { + zk_->LocateHBaseMeta(meta_region_server_ip_, meta_region_server_port_); + } + + metaRegionServerName = meta_region_server_ip_; + port = meta_region_server_port_; + + std::cerr << "[DBG] " << "MetaRegionServer Location: " + << metaRegionServerName << std::endl; + std::cerr << "[DBG] " << "MetaRegionServer IP: " << port << std::endl; +} + +void Connection::findTheRegionServerForTheTable(const std::string &tableName, + std::string &rowKey, std::string &tableRegionInfo, + std::string &tableRegionIP, int & tableRsPort) { + + std::shared_ptr pTN(TableName::valueOf(tableName)); + RegionDetails* pRegionDetails = nullptr; + + if (use_meta_cache_) { + pRegionDetails = meta_cache_.LookupRegion(*pTN.get(), rowKey); + } + + if (nullptr == pRegionDetails) { + std::string metaRegionServerName(""); + int mrsPort = 0; + + findMetaRegionServer(metaRegionServerName, mrsPort); + + std::string regionId("99999999999999"); + std::string startKey = rowKey; + std::string metaKey = tableName + "," + startKey + "," + regionId; + + Scan scan; + bool reversed = true; + scan.setReversed(reversed); + scan.setStartRow(metaKey); + bool small = true; + scan.setSmall(small); + int caching = 1; + scan.setCaching(caching); + int maxVersions = 1; + scan.setMaxVersions(maxVersions); + + int numberOfRows = 1; + bool closeScanner = true; + + std::string regionName("hbase:meta,,1"); + + std::string serviceName("ClientService"); + + pRegionDetails = locateRegionInMeta(metaRegionServerName, + mrsPort, regionName, scan, numberOfRows, closeScanner); + + if (use_meta_cache_) { + meta_cache_.CacheRegion(*pTN, pRegionDetails); + } + } + + tableRsPort = pRegionDetails->getRegionServerPort(); + tableRegionIP = pRegionDetails->getRegionServerIpAddr(); + tableRegionInfo = const_cast(pRegionDetails->getRegionName()); + + std::cerr << "[DBG] " << "RegionServer Info: " << tableRegionInfo + << std::endl; + std::cerr << "[DBG] " << "Table RegionServer Location: " << tableRegionIP + << std::endl; + std::cerr << "[DBG] " << "Table RegionServer IP: " << tableRsPort + << std::endl; +} + +void Connection::findMasterServer(std::string &master_server_name, int &master_server_port) { + master_server_name = ""; + master_server_port = 0; + + if (-1 == master_server_port_) { + this->zk_->LocateHBaseMaster(master_server_ip_, master_server_port_); + } + + master_server_port = master_server_port_; + master_server_name = master_server_ip_; +} + +RegionDetails* Connection::locateRegionInMeta(std::string &meta_region_ip, int & meta_region_port, + std::string ®ionName, Scan & scan, int &numberOfRows, bool &closeScanner) { + + std::unique_ptr scanRequest(ProtoBufRequestBuilder::CreateScanRequestForMetaLookup(regionName, + scan, numberOfRows, closeScanner)); + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Byte Size::-> " << scanRequest->ByteSize() << std::endl; + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Get Req ::-> " << scanRequest->DebugString() << std::endl; + + hbase::pb::ScanResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + + CellScanner cell_scanner; + + const std::string user_name(user_); + const std::string service_name("ClientService"); + const std::string method_name("Scan"); + // rpc_client_->Call(service_name, method_name, *scanRequest, regionIP, port, + // user_name, *def_resp_type, cell_scanner); + + rpc_client_->Call(service_name, method_name, *scanRequest, + meta_region_ip, meta_region_port, + user_name, *def_resp_type, cell_scanner); + + char *cellBlock = cell_scanner.GetData(); + int size = cell_scanner.GetDataLength(); + + ByteBuffer region_data(cellBlock, cellBlock + size); + RegionDetails* pRegionDetails = RegionDetails::Parse(region_data); +// port = pRegionDetails->getRegionServerPort(); +// regionIP = pRegionDetails->getRegionServerIpAddr(); +// regionInfo = const_cast(pRegionDetails->getRegionName()); + return pRegionDetails; +} + +Admin * Connection::getAdmin(){ + Admin *admin = new Admin(this); + return admin; +} + +void Connection::close(){ + + delete zk_; + closed = true; + +} + +bool Connection::isClosed(){ + + return this->closed; +} + +Table * Connection::getTable(TableName *tableName){ + Table *table = new Table(tableName, this); + return table; -void Connection::set_zk_quorum(char * zk_q) { - this->zk_quorum = zk_q; } diff --git a/hbase-native-client/src/core/connection.h b/hbase-native-client/src/core/connection.h index 463b7b5..204f32b 100644 --- a/hbase-native-client/src/core/connection.h +++ b/hbase-native-client/src/core/connection.h @@ -15,12 +15,80 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef CORE_CONNECTION_H_ -#define CORE_CONNECTION_H_ + +#pragma once + +#include +#include "scan.h" +#include "rpc_client.h" +#include "../zk/zookeeper.h" + +#include "table.h" +#include "admin.h" +#include "configuration.h" +#include "table_name.h" +#include "region_details.h" +#include "meta_cache.h" + +#include +#include + +const int SOCKET_RECV_BYTESIZE = 1360; + +class Table; +class Admin; class Connection { - char * zk_quorum; - public: - void set_zk_quorum(char * zk_q); + +private: + std::string zk_quorum_; + Poco::Net::StreamSocket *socket; + unsigned long callId; + static int rpcCallId; + std::shared_ptr rpc_client_; + Zookeeper *zk_; + bool closed; + Configuration *configuration_; + std::string user_; + std::string meta_region_server_ip_; + int meta_region_server_port_; + std::string master_server_ip_; + int master_server_port_; + bool use_meta_cache_; + MetaCache meta_cache_; + +public: + Connection(Configuration *configuration); + std::shared_ptr getRpcClient(); + virtual ~Connection(); + void InitZK(); + void set_zk_quorum(const char *zk_q); + void init(const std::string & hostName, unsigned long portNo, const std::string &serviceName); + const std::string & getUser() { return user_; } + + void findMetaRegionServer(std::string &metaRegionServerName, int &port); + void findTheRegionServerForTheTable(const std::string &tableName, std::string &rowKey, + std::string &tableRegionInfo, std::string &tableRegionIP, int & tableRsPort); + RegionDetails* locateRegionInMeta(std::string &meta_region_ip, int & meta_region_port, + std::string ®ionName, Scan & scan, int &numberOfRows, bool &closeScanner); + void findMasterServer(std::string &masterServerName, int &port); + + static int SetRpcCallId(); + static int GetRpcCallId(); + +private: + void endian_byte_swapper(char* dest, char const* src); + char *getQualifier(char *pSrc); + +public: + bool isMasterRunning(); + + Table *getTable(const std::string &tableName); + Table *getTable(TableName *); + Admin *getAdmin(); + int SendDataToServer(char *packet, int packetByteSize); + int RecvDataFromServer(char *recvBuffer, int recvByteSize); + int RecvDataFromServer(std::vector &vectNwPkt, int recvByteSize = SOCKET_RECV_BYTESIZE); + void close(); + bool isClosed(); }; -#endif // CORE_CONNECTION_H_ diff --git a/hbase-native-client/src/core/connection_attr.h b/hbase-native-client/src/core/connection_attr.h index a7c229e..a312005 100644 --- a/hbase-native-client/src/core/connection_attr.h +++ b/hbase-native-client/src/core/connection_attr.h @@ -17,14 +17,8 @@ * */ -#ifndef CORE_CONNECTION_ATTR_H_ -#define CORE_CONNECTION_ATTR_H_ +#pragma once #include "core/hbase_macros.h" -#include "core/hbase_types.h" - -class ConnectionAttr { -}; - -#endif // CORE_CONNECTION_ATTR_H_ +class ConnectionAttr {}; diff --git a/hbase-native-client/src/core/connection_factory.cc b/hbase-native-client/src/core/connection_factory.cc new file mode 100644 index 0000000..a11b10e --- /dev/null +++ b/hbase-native-client/src/core/connection_factory.cc @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "connection_factory.h" + + +//ConnectionFactory::ConnectionFactory() {} +//ConnectionFactory::ConnectionFactory(const ConnectionFactory&) {} +//ConnectionFactory&ConnectionFactory::operator=(const ConnectionFactory&) {} + +Connection* ConnectionFactory::CreateConnection() { + Configuration *pConfiguration = new Configuration(); + return CreateConnection(pConfiguration); +} + +Connection* ConnectionFactory::CreateConnection(Configuration *conf) { + Connection *connection = new Connection(conf); + return connection; +} + +// static Connection* CreateConnection(Configuration &conf, ExecutorService pool); diff --git a/hbase-native-client/src/core/connection_factory.h b/hbase-native-client/src/core/connection_factory.h new file mode 100644 index 0000000..4ad3d41 --- /dev/null +++ b/hbase-native-client/src/core/connection_factory.h @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "connection.h" +#include "configuration.h" + +class ConnectionFactory { +public: + static Connection* CreateConnection(); + static Connection* CreateConnection(Configuration *conf); +// static Connection* CreateConnection(Configuration &conf, ExecutorService pool); + +private: + ConnectionFactory(); + ConnectionFactory(const ConnectionFactory&); + ConnectionFactory& operator=(const ConnectionFactory&); +}; diff --git a/hbase-native-client/src/core/consistency.h b/hbase-native-client/src/core/consistency.h new file mode 100644 index 0000000..6a1e009 --- /dev/null +++ b/hbase-native-client/src/core/consistency.h @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#ifndef HBASE_CORE_CONSISTENCY_H_ +#define HBASE_CORE_CONSISTENCY_H_ + + +enum Consistency{ + // developer note: Do not reorder. Client.proto#Consistency depends on this order + /** + * Strong consistency is the default consistency model in HBase, + * where reads and writes go through a single server which serializes + * the updates, and returns all data that was written and ack'd. + */ + STRONG, + + /** + * Timeline consistent reads might return values that may not see + * the most recent updates. Write transactions are always performed + * in strong consistency model in HBase which guarantees that transactions + * are ordered, and replayed in the same order by all copies of the data. + * In timeline consistency, the get and scan requests can be answered from data + * that may be stale. + *
+ * The client may still observe transactions out of order if the requests are + * responded from different servers. + */ + TIMELINE +}; + + + +#endif /* HBASE_CORE_CONSISTENCY_H_ */ diff --git a/hbase-native-client/src/core/delete.cc b/hbase-native-client/src/core/delete.cc index 695f5bf..8974195 100644 --- a/hbase-native-client/src/core/delete.cc +++ b/hbase-native-client/src/core/delete.cc @@ -16,7 +16,88 @@ * limitations under the License. */ -#include "core/delete.h" +#include "delete.h" -Delete::~Delete() { +Delete::Delete(const BYTE_ARRAY &row){ + + Mutation::CheckRow(row); + this->row_ = row; + Bytes::ToString(this->row_, this->row_str_); +} + +Delete::~Delete() {} + +const byte *Delete::getRow(){ + return this->row.c_str(); +} + + +const std::map > & Delete::getFamily(){ + return this->familyMap; +} + +Delete& Delete::addColumn(const byte *family, const byte *qualifier, const long ×tamp){ + + if (ts < 0) + throw std::string("Illegal TS value"); + + std::string columnFamily(family); + std::string columnQualifier(qualifier); + + Cell delObj(this->row, columnFamily, columnQualifier, ts, "", "",CellType::DELETE_COLUMN); + delObj.Display(); + this->familyMap[columnFamily].push_back(delObj); + return *this; + +} + +Delete& Delete::addColumn(const byte * family, const byte * qualifier){ + this->addColumn( family, qualifier,this->ts); + return *this; } + +Delete& Delete::addColumns(const byte *family, const byte *qualifier, const long ×tamp){ + if (ts < 0) + throw std::string("Illegal TS value"); + + std::string columnFamily(family); + std::string columnQualifier(qualifier); + + Cell delObj(this->row, columnFamily, columnQualifier, ts, "", "",CellType::DELETE_COLUMN); + delObj.Display(); + this->familyMap[columnFamily].push_back(delObj); + return *this; +} + +Delete& Delete::addColumns(const byte *family, const byte *qualifier){ + this->addColumns( family, qualifier,this->ts); + return *this; +} + +Delete& Delete::addFamily(const byte *family, const long ×tamp){ + if (ts < 0) + throw std::string("Illegal TS value"); + + std::string columnFamily(family); + Cell delObj(this->row, columnFamily, "", ts, "", "",CellType::DELETE_FAMILY); + delObj.Display(); + this->familyMap[columnFamily].push_back(delObj); + return *this; +} + +Delete& Delete::addFamily(const byte *family){ + this->addFamily( family,this->ts); + return *this; +} + +Delete& Delete::addFamilyVersion(const byte *family, const long ×tamp){ + if (ts < 0) + throw std::string("Illegal TS value"); + + std::string columnFamily(family); + Cell delObj(this->row, columnFamily, "", ts, "", "",CellType::DELETE_FAMILYVERSION); + delObj.Display(); + this->familyMap[columnFamily].push_back(delObj); + return *this; +} + diff --git a/hbase-native-client/src/core/delete.h b/hbase-native-client/src/core/delete.h index 5740fd9..e05c5f8 100644 --- a/hbase-native-client/src/core/delete.h +++ b/hbase-native-client/src/core/delete.h @@ -17,13 +17,29 @@ * */ -#ifndef CORE_DELETE_H_ -#define CORE_DELETE_H_ +#pragma once -#include "core/mutation.h" +#include "bytes.h" +#include "cell.h" +#include "key_value.h" +#include "mutation.h" -class Delete: public Mutation { - public: - ~Delete(); + +class Delete : public Mutation { +private: + std::string row; + std::map > familyMap; +public: + Delete(const byte *row); + Delete(const BYTE_ARRAY &row); + const byte *getRow(); + const std::map > & getFamily(); + virtual ~Delete(); + Delete& addColumn(const byte * family, const byte * qualifier); + Delete& addColumn(const byte *family, const byte *qualifier, const long ×tamp); + Delete& addColumns(const byte *family, const byte *qualifier); + Delete& addColumns(const byte *family, const byte *qualifier, const long ×tamp); + Delete& addFamily(const byte *family); + Delete& addFamily(const byte *family, const long ×tamp); + Delete& addFamilyVersion(const byte *family, const long ×tamp); }; -#endif // CORE_DELETE_H_ diff --git a/hbase-native-client/src/core/family_filter.cc b/hbase-native-client/src/core/family_filter.cc new file mode 100644 index 0000000..65ecf7b --- /dev/null +++ b/hbase-native-client/src/core/family_filter.cc @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "family_filter.h" + +FamilyFilter::FamilyFilter(const CompareOp &compare_op, + const ByteArrayComparable &comparator): + CompareFilter(compare_op, comparator){ + +} + +FamilyFilter::FamilyFilter() { + // TODO Auto-generated destructor stub +} + +FamilyFilter::~FamilyFilter() { + // TODO Auto-generated destructor stub +} + +Filter::ReturnCode FamilyFilter::FilterKeyValue(const Cell &cell) { + int family_length = 0;//cell.GetFamilyLength(); + if (family_length > 0) { + // if (compareFamily(this.compareOp, this.comparator, v)) { + // return ReturnCode.NEXT_ROW; + //} + } + return Filter::ReturnCode::INCLUDE; +} diff --git a/hbase-native-client/src/core/family_filter.h b/hbase-native-client/src/core/family_filter.h new file mode 100644 index 0000000..d6f5a33 --- /dev/null +++ b/hbase-native-client/src/core/family_filter.h @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright o::wnership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "byte_array_comparable.h" +#include "compare_filter.h" + +class FamilyFilter : public CompareFilter { + public: + FamilyFilter(); + FamilyFilter(const CompareOp &compare_op, const ByteArrayComparable &comparator); + virtual ~FamilyFilter(); + Filter::ReturnCode FilterKeyValue(const Cell &cell); +}; diff --git a/hbase-native-client/src/core/filter.cc b/hbase-native-client/src/core/filter.cc new file mode 100644 index 0000000..c83dc98 --- /dev/null +++ b/hbase-native-client/src/core/filter.cc @@ -0,0 +1,94 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "filter.h" + +Filter::Filter():reversed_(false) { + // TODO Auto-generated constructor stub + +} + +Filter::~Filter() { + // TODO Auto-generated destructor stub +} + +Filter *Filter::ParseFrom(const BYTE_ARRAY pb_bytes){ + + Filter *filter = NULL; + return filter; +} + + +void Filter::Reset(){ + + return; +} + +bool Filter::FilterAllRemaining(){ + + return true; +} + +bool Filter::FilterKeyValue(){ + + return true; +} + +void Filter::Filter::FilterRowCells(std::vector key_values){ + + return; +} + +bool Filter::HasFilterRow(){ + + return true; +} + +bool Filter::FilterRow(){ + + return true; +} + +Cell *Filter::GetNextCellHint(const Cell ¤t_cell){ + + Cell *cell = NULL; + return cell; +} + +bool Filter::IsFamilyEssential(const BYTE_ARRAY &name){ + + return true; +} + +bool Filter::AreSerializedFieldsEqual(const Filter &other){ + + return true; +} + +void Filter::SetReversed(const bool &reversed){ + this->reversed_ = reversed; + return; +} + +bool Filter::IsReversed(){ + + return this->reversed_; +} + + diff --git a/hbase-native-client/src/core/filter.h b/hbase-native-client/src/core/filter.h new file mode 100644 index 0000000..1045179 --- /dev/null +++ b/hbase-native-client/src/core/filter.h @@ -0,0 +1,85 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "bytes.h" +#include "cell.h" + +/* + * + */ +class Filter { + public: + enum class ReturnCode{ + /** + * Include the Cell + */ + INCLUDE, + /** + * Include the Cell and seek to the next column skipping older versions. + */ + INCLUDE_AND_NEXT_COL, + /** + * Skip this Cell + */ + SKIP, + /** + * Skip this column. Go to the next column in this row. + */ + NEXT_COL, + /** + * Done with columns, skip to next row. Note that filterRow() will + * still be called. + */ + NEXT_ROW, + /** + * Seek to next key which is given as hint by the filter. + */ + SEEK_NEXT_USING_HINT, + /** + * Include KeyValue and done with row, seek to next. + */ + INCLUDE_AND_SEEK_NEXT_ROW, + }; + + Filter(); + virtual ~Filter(); + + static Filter *ParseFrom(const BYTE_ARRAY pb_bytes); + + virtual void Reset(); + virtual bool FilterAllRemaining(); + virtual bool FilterKeyValue(); + virtual void FilterRowCells(std::vector key_values); + virtual bool HasFilterRow(); + virtual bool FilterRow(); + virtual Cell *GetNextCellHint(const Cell ¤t_cell); + virtual bool IsFamilyEssential(const BYTE_ARRAY &name); + virtual bool AreSerializedFieldsEqual(const Filter &other); + + void SetReversed(const bool &reversed); + bool IsReversed(); + + // TODO + // abstract public Cell transformCell(final Cell v) throws IOException; + // abstract public ReturnCode filterKeyValue(final Cell v) throws IOException; + protected: + bool reversed_; +}; diff --git a/hbase-native-client/src/core/filter_base.cc b/hbase-native-client/src/core/filter_base.cc new file mode 100644 index 0000000..52e9518 --- /dev/null +++ b/hbase-native-client/src/core/filter_base.cc @@ -0,0 +1,89 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "filter_base.h" +#include "return_codes.h" + +Filter *FilterBase::CreateFilterFromArguments(){ + + Filter *filter = NULL; + throw UNDEFINED_API; + return filter; +} + +FilterBase::FilterBase() { + // TODO Auto-generated constructor stub + +} + +FilterBase::~FilterBase() { + // TODO Auto-generated destructor stub +} + +void FilterBase::Reset(){ + + return; +} + +bool FilterBase::FilterRowKey(const Cell &first_row_cell){ + return false; +} + +bool FilterBase::FilterAllRemaining(){ + + return false; +} + +bool FilterBase::FilterKeyValue(){ + + return true; +} + +void FilterBase::FilterBase::FilterRowCells(std::vector key_values){ + + return; +} + +bool FilterBase::HasFilterRow(){ + + return false; +} + +bool FilterBase::FilterRow(){ + + return false; +} + +Cell *FilterBase::GetNextCellHint(const Cell ¤t_cell){ + + Cell *cell = NULL; + return cell; +} + +bool FilterBase::IsFamilyEssential(const BYTE_ARRAY &name){ + + return true; +} + +bool FilterBase::AreSerializedFieldsEqual(const Filter &other){ + + return true; +} + + diff --git a/hbase-native-client/src/core/filter_base.h b/hbase-native-client/src/core/filter_base.h new file mode 100644 index 0000000..122c572 --- /dev/null +++ b/hbase-native-client/src/core/filter_base.h @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "filter.h" + +class FilterBase : public Filter { + public: + FilterBase(); + virtual ~FilterBase(); + + static Filter *CreateFilterFromArguments(); + virtual void Reset(); + virtual bool FilterRowKey(const Cell &first_row_cell); + virtual bool FilterAllRemaining(); + virtual bool FilterKeyValue(); + virtual void FilterRowCells(std::vector key_values); + virtual bool HasFilterRow(); + virtual bool FilterRow(); + virtual Cell *GetNextCellHint(const Cell ¤t_cell); + virtual bool IsFamilyEssential(const BYTE_ARRAY &name); + virtual bool AreSerializedFieldsEqual(const Filter &other); + + // TODO + // abstract public ReturnCode filterKeyValue(final Cell v) throws IOException; + // abstract public Cell transformCell(final Cell v) throws IOException; +}; diff --git a/hbase-native-client/src/core/get.cc b/hbase-native-client/src/core/get.cc index 9e11332..a1e3b17 100644 --- a/hbase-native-client/src/core/get.cc +++ b/hbase-native-client/src/core/get.cc @@ -17,4 +17,215 @@ * */ -#include "core/get.h" +#include "get.h" + +Get::~Get(){ + +} + +Get::Get (const BYTE_ARRAY &row): row_str_(""), max_versions_(1), cache_blocks_(true), + store_limit_(-1), store_offset_(0), check_existence_only_(false), + closest_row_before_(false), consistency_(STRONG), tr_(TimeRange()) { + + Mutation::CheckRow(row); + Bytes::CopyByteArray(row, row_, 0, row.size()); + Bytes::ToString(row_, row_str_); + this->family_map_.clear(); +} + +Get::Get(const Get &cget){ + + this->row_ = cget.row_; + this->row_str_ = cget.row_str_; + this->max_versions_ = cget.max_versions_; + this->cache_blocks_ = cget.cache_blocks_; + this->store_limit_ = cget.store_limit_; + this->store_offset_ = cget.store_offset_; + this->check_existence_only_ = cget.check_existence_only_; + this->closest_row_before_ = cget.closest_row_before_; + + //TODO Need Copy Constructors for below 2 lines in + this->consistency_ = cget.consistency_; + this->tr_ = cget.tr_; + this->family_map_ = cget.family_map_; +} + +Get& Get::operator= (const Get &cget){ + + this->row_ = cget.row_; + this->row_str_ = cget.row_str_; + this->max_versions_ = cget.max_versions_; + this->cache_blocks_ = cget.cache_blocks_; + this->store_limit_ = cget.store_limit_; + this->store_offset_ = cget.store_offset_; + this->check_existence_only_ = cget.check_existence_only_; + this->closest_row_before_ = cget.closest_row_before_; + + //TODO Need Copy Constructors for below 2 lines in + this->consistency_ = cget.consistency_; + this->tr_ = cget.tr_; + this->family_map_ = cget.family_map_; + return *this; +} + +Get Get::AddFamily(const BYTE_ARRAY &family){ + + bool family_found = false; + for (auto& key_value : this->family_map_) { + if(Bytes::Equals(key_value.first, family)){ + family_found = true; + // Remove any other set qualifiers + key_value.second.clear(); + key_value.second.push_back(HBaseConstants::HConstants::EMPTY_BYTE_ARRAY); + } + } + if(!family_found){ + this->family_map_[family].push_back(HBaseConstants::HConstants::EMPTY_BYTE_ARRAY); + } + return *this; +} + +Get Get::AddColumn(const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier){ + + if(0 == qualifier.size()){ + this->family_map_[family].push_back(HBaseConstants::HConstants::EMPTY_BYTE_ARRAY); + }else{ + this->family_map_[family].push_back(qualifier); + } + + return *this; +} +const BYTE_ARRAY &Get::GetRow(){ + + return this->row_; +} + +const std::string &Get::GetRowAsString(){ + + return this->row_str_; +} + + +Consistency & Get::GetConsistency(){ + + return this->consistency_; +} + +void Get::SetConsistency(const Consistency &consistency){ + + this->consistency_ = consistency; +} + + +void Get::DisplayObj(){ + + std::cerr << __LINE__ << __func__ << " [DBG] "<< "row: "; + Bytes::DisplayBytes(this->row_); + std::cerr << "Family==>" << std::endl; + for (const auto& family_qual : this->family_map_) { + Bytes::DisplayBytes(family_qual.first); + std::cerr << "Qualifiers==>" << std::endl; + for (const auto& qual : family_qual.second){ + Bytes::DisplayBytes(qual); + } + } + std::cerr << std::endl; +} + +bool Get::HasFamilies(){ + + return !this->family_map_.empty(); +} + +const std::map > & Get::GetFamily(){ + + return this->family_map_; +} + +const int & Get::GetMaxVersions(){ + + return this->max_versions_; +} + +void Get::SetMaxVersions(){ + + this->max_versions_ = std::numeric_limits< int >::max(); +} + +void Get::SetMaxVersions(const int &max_versions){ + + if(max_versions <= 0) + throw std::string("max_versions must be positive"); + + this->max_versions_ = max_versions; +} + +const bool & Get::GetCacheBlocks(){ + + return this->cache_blocks_; +} + +void Get::SetCacheBlocks(const bool &cache_blocks){ + + this->cache_blocks_ = cache_blocks; +} + +const int & Get::GetMaxResultsPerColumnFamily(){ + + return this->store_limit_; +} + +void Get::SetMaxResultsPerColumnFamily(const int &store_limit){ + this->store_limit_ = store_limit; + return; +} + +const int Get::NumFamilies(){ + + return this->family_map_.size(); +} + +void Get::SetTimeRange(const long &min_timestamp, const long &max_timestamp){ + + this->tr_ = TimeRange(min_timestamp, max_timestamp); +} + +void Get::SetTimeStamp(const long ×tamp){ + + this->tr_ = TimeRange(timestamp, timestamp+1); +} + + +const TimeRange & Get::GetTimeRange(){ + + return this->tr_; +} + +int Get::GetAcl(BYTE_ARRAY &attr_value){ + + return Query::GetAcl(attr_value); +} + +Get Get::SetAcl(const std::string &user, Permission &permissions){ + + Query::SetAcl(user, permissions); + return *this; +} + +Get Get::SetAcl(const std::map &permissions){ + + Query::SetAcl(permissions); + return *this; +} + +Filter *Get::GetFilter(){ + + return Query::GetFilter(); +} + +Get Get::SetFilter(const Filter &filter){ + + Query::SetFilter(filter); + return *this; +} + diff --git a/hbase-native-client/src/core/get.h b/hbase-native-client/src/core/get.h index 3a9fd28..be02b43 100644 --- a/hbase-native-client/src/core/get.h +++ b/hbase-native-client/src/core/get.h @@ -17,10 +17,83 @@ * */ -#ifndef CORE_GET_H_ -#define CORE_GET_H_ +#pragma once -class Get { -}; +#include + +#include +#include +#include +#include + + +#include "bytes.h" +#include "consistency.h" +#include "filter.h" +#include "hconstants.h" +#include "mutation.h" +#include "permission.h" +#include "query.h" +#include "return_codes.h" +#include "timeRange.h" + +class Get : public Query { + public: + Get(const BYTE_ARRAY &row); + Get(const Get &cget); + Get & operator= (const Get &cget); + virtual ~Get(); + + + const int & GetMaxVersions(); + void SetMaxVersions(); + void SetMaxVersions(const int &); + + const bool & GetCacheBlocks(); + void SetCacheBlocks(const bool &); + + const int & GetMaxResultsPerColumnFamily(); + void SetMaxResultsPerColumnFamily(const int &storeLimit); + + void DisplayObj(); + const std::map > & GetFamilyStr(); + const std::map > & GetFamily(); + const int NumFamilies(); -#endif // CORE_GET_H_ + const TimeRange & GetTimeRange(); + void SetTimeRange(const long &minTimeStamp, const long &maxTimeStamp); + void SetTimeStamp(const long ×tamp); + + Get AddFamily(const BYTE_ARRAY &family); + Get AddColumn(const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier); + + const BYTE_ARRAY &GetRow(); + const std::string &GetRowAsString(); + + bool HasFamilies(); + + Consistency & GetConsistency(); + void SetConsistency(const Consistency &); + + Filter *GetFilter(); + Get SetFilter(const Filter &filter); + + int GetAcl(BYTE_ARRAY &attr_value); + Get SetAcl(const std::map &permissions); + Get SetAcl(const std::string &user, Permission &permissions); + + private: + BYTE_ARRAY row_; + std::string row_str_; + int max_versions_; + bool cache_blocks_; + int store_limit_; + int store_offset_; + bool check_existence_only_; + bool closest_row_before_; + std::map > family_map_; + + + Consistency consistency_; + TimeRange tr_; +}; diff --git a/hbase-native-client/src/core/hbase_connection_attr.cc b/hbase-native-client/src/core/hbase_connection_attr.cc deleted file mode 100644 index 61940e8..0000000 --- a/hbase-native-client/src/core/hbase_connection_attr.cc +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "core/hbase_connection_attr.h" - -#include "core/hbase_macros.h" -#include "core/hbase_types.h" -#include "core/connection_attr.h" - -extern "C" { -int32_t hb_connection_attr_create(hb_connection_attr_t * attr_ptr) { - (*attr_ptr) = new ConnectionAttr(); - return (attr_ptr == NULL)?-1:0; -} - -int32_t hb_connection_attr_set_zk_quorum(hb_connection_t connection, - char * zk_quorum) { - return 0; -} - -int32_t hb_connection_attr_set_zk_root(hb_connection_t connection, - char * zk_root) { - return 0; -} -} diff --git a/hbase-native-client/src/core/hbase_connection_attr.h b/hbase-native-client/src/core/hbase_connection_attr.h deleted file mode 100644 index c73c818..0000000 --- a/hbase-native-client/src/core/hbase_connection_attr.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef CORE_HBASE_CONNECTION_ATTR_H_ -#define CORE_HBASE_CONNECTION_ATTR_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "core/hbase_macros.h" -#include "core/hbase_types.h" - -#include - -HBASE_API int32_t hb_connection_attr_create(hb_connection_attr_t * attr_ptr); - -/** - * Set the zk quorum of a connection that will be created. - */ -HBASE_API int32_t hb_connection_attr_set_zk_quorum(hb_connection_t connection, - char * zk_quorum); - -/** - * Set the zk root of a connection that will be created. - */ -HBASE_API int32_t hb_connection_attr_set_zk_root(hb_connection_t connection, - char * zk_root); - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // CORE_HBASE_CONNECTION_ATTR_H_ - diff --git a/hbase-native-client/src/core/hbase_macros.h b/hbase-native-client/src/core/hbase_macros.h index 71765c8..48304f0 100644 --- a/hbase-native-client/src/core/hbase_macros.h +++ b/hbase-native-client/src/core/hbase_macros.h @@ -17,8 +17,7 @@ * */ -#ifndef CORE_HBASE_MACROS_H_ -#define CORE_HBASE_MACROS_H_ +#pragma once #ifdef __cplusplus extern "C" { @@ -35,26 +34,23 @@ extern "C" { * this library, this compiler flag should not be used. */ #if defined _WIN32 || defined __CYGWIN__ - #ifdef _LIBHBASE_IMPLEMENTATION_ - #define API __declspec(dllexport) - #else - #ifdef _LIBHBASE_TEST_ - #define HBASE_API - #else - #define HBASE_API __declspec(dllimport) - #endif - #endif +#ifdef _LIBHBASE_IMPLEMENTATION_ +#define API __declspec(dllexport) #else - #if __GNUC__ >= 4 - #define HBASE_API __attribute__ ((visibility ("default"))) - #else - #define HBASE_API - #endif +#ifdef _LIBHBASE_TEST_ +#define HBASE_API +#else +#define HBASE_API __declspec(dllimport) +#endif +#endif +#else +#if __GNUC__ >= 4 +#define HBASE_API __attribute__((visibility("default"))) +#else +#define HBASE_API +#endif #endif #ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // CORE_HBASE_MACROS_H_ - +} // extern "C" +#endif // __cplusplus diff --git a/hbase-native-client/src/core/hbase_types.h b/hbase-native-client/src/core/hbase_types.h deleted file mode 100644 index 8889b92..0000000 --- a/hbase-native-client/src/core/hbase_types.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef CORE_HBASE_TYPES_H_ -#define CORE_HBASE_TYPES_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include - -typedef unsigned char hb_byte_t; - -/* - * Base kv type. - */ -typedef struct { - hb_byte_t* row; - size_t row_length; - - char * family; - size_t family_length; - - hb_byte_t* qual; - size_t qual_length; - - hb_byte_t* value; - size_t value_length; - - uint64_t timestamp; -} hb_cell_t; - -typedef enum { - DELETE_ONE_VERSION, - DELETE_MULTIPLE_VERSIONS, - DELETE_FAMILY, - DELETE_FAMILY_VERSION -} hb_delete_type; - -typedef enum { - USE_DEFAULT, - SKIP_WAL, - ASYNC_WAL, - SYNC_WAL, - HSYNC_WAL -} hb_durability_type; - -typedef void* hb_admin_t; -typedef void* hb_client_t; -typedef void* hb_connection_attr_t; -typedef void* hb_connection_t; -typedef void* hb_get_t; -typedef void* hb_mutation_t; -typedef void* hb_put_t; -typedef void* hb_delete_t; -typedef void* hb_increment_t; -typedef void* hb_append_t; -typedef void* hb_result_t; -typedef void* hb_scanner_t; - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // CORE_HBASE_TYPES_H_ diff --git a/hbase-native-client/src/core/hconstants.cc b/hbase-native-client/src/core/hconstants.cc new file mode 100644 index 0000000..80ca1fd --- /dev/null +++ b/hbase-native-client/src/core/hconstants.cc @@ -0,0 +1,191 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "hconstants.h" + +const int HBaseConstants::HConstants::DEFAULT_BLOCKSIZE = 64 * 1024; +/** Used as a magic return value while optimized index key feature enabled(HBASE-7845) */ +const int HBaseConstants::HConstants::INDEX_KEY_MAGIC = -2; +/* + * Name of directory that holds recovered edits written by the wal log + * splitting code, one per region + */ +const std::string HBaseConstants::HConstants::RECOVERED_EDITS_DIR = "recovered.edits"; +/** + * The first four bytes of Hadoop RPC connections + */ +const char HBaseConstants::HConstants::RPC_HEADER[] = { 'H', 'B', 'a', 's', '\0'}; +const char HBaseConstants::HConstants::RPC_CURRENT_VERSION = 0; +const int HBaseConstants::HConstants::MAX_ROW_LENGTH = std::numeric_limits< short >::max(); +const long HBaseConstants::HConstants::NO_NONCE = 0; +const long HBaseConstants::HConstants::LATEST_TIMESTAMP = std::numeric_limits< long >::max(); +/** + * An empty instance. + */ +const BYTE_ARRAY HBaseConstants::HConstants::EMPTY_BYTE_ARRAY {}; + +const ByteBuffer HBaseConstants::HConstants::EMPTY_BYTE_BUFFER;// = ByteBuffer.wrap(EMPTY_BYTE_ARRAY); +const long HBaseConstants::HConstants::DEFAULT_MAX_FILE_SIZE = 10 * 1024 * 1024 * 1024L; +const int HBaseConstants::HConstants::FOREVER = std::numeric_limits< int >::max(); +const int HBaseConstants::HConstants::REPLICATION_SCOPE_LOCAL = 0; +const int HBaseConstants::HConstants::REPLICATION_SCOPE_GLOBAL = 1; + +const std::string HBaseConstants::HConstants::NAME = "NAME"; +const std::string HBaseConstants::HConstants::VERSIONS("VERSIONS"); +const std::string HBaseConstants::HConstants::IN_MEMORY = "IN_MEMORY"; +const std::string HBaseConstants::HConstants::METADATA = "METADATA"; +const std::string HBaseConstants::HConstants::CONFIGURATION = "CONFIGURATION"; + + +/** + * Configuration option that toggles whether EXEC permission checking is + * performed during coprocessor endpoint invocations. + */ +const std::string HBaseConstants::AccessControlConstants::EXEC_PERMISSION_CHECKS_KEY = "hbase.security.exec.permission.checks"; +/** Default setting for hbase.security.exec.permission.checks; false */ +const bool HBaseConstants::AccessControlConstants::DEFAULT_EXEC_PERMISSION_CHECKS = false; + +/** + * Configuration or CF schema option for early termination of access checks + * if table or CF permissions grant access. Pre-0.98 compatible behavior + */ +const std::string HBaseConstants::AccessControlConstants::CF_ATTRIBUTE_EARLY_OUT = "hbase.security.access.early_out"; +/** Default setting for hbase.security.access.early_out */ +const bool HBaseConstants::AccessControlConstants::DEFAULT_ATTRIBUTE_EARLY_OUT = true; + +// Operation attributes for cell level security + +/** Cell level ACL */ +const std::string HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL = "acl"; +/** Cell level ACL evaluation strategy */ +const std::string HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL_STRATEGY = "acl.strategy"; +/** Default cell ACL evaluation strategy: Table and CF first, then ACL */ +const char * HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL_STRATEGY_DEFAULT = "0"; +/** Alternate cell ACL evaluation strategy: Cell ACL first, then table and CF */ +const char * HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL_STRATEGY_CELL_FIRST = "1"; + +const std::string HBaseConstants::EnumToString::ToString(const HBaseConstants::BLOOM_TYPE &enum_type){ + std::string enum_string; + switch(enum_type){ + case HBaseConstants::BLOOM_TYPE::NONE: + enum_string = "NONE"; + break; + case HBaseConstants::BLOOM_TYPE::ROW: + enum_string = "ROW"; + break; + case HBaseConstants::BLOOM_TYPE::ROWCOL: + enum_string = "ROWCOL"; + break; + default: + enum_string = "NONE"; + break; + } + return enum_string; +} + +const std::string HBaseConstants::EnumToString::ToString(const HBaseConstants::DATA_BLOCK_ENCODING &enum_type){ + std::string enum_string; + switch(enum_type){ + case HBaseConstants::DATA_BLOCK_ENCODING::DIFF: + enum_string = "DIFF"; + break; + case HBaseConstants::DATA_BLOCK_ENCODING::FAST_DIFF: + enum_string = "FAST_DIFF"; + break; + case HBaseConstants::DATA_BLOCK_ENCODING::NONE: + enum_string = "NONE"; + break; + case HBaseConstants::DATA_BLOCK_ENCODING::PREFIX: + enum_string = "PREFIX"; + break; + case HBaseConstants::DATA_BLOCK_ENCODING::PREFIX_TREE: + enum_string = "PREFIX_TREE"; + break; + default: + enum_string = "NONE"; + break; + } + return enum_string; +} + +const std::string HBaseConstants::EnumToString::ToString(const HBaseConstants::COMPRESSION_ALGORITHM &enum_type){ + + std::string enum_string; + switch(enum_type){ + case HBaseConstants::COMPRESSION_ALGORITHM::GZ: + enum_string = "GZ"; + break; + case HBaseConstants::COMPRESSION_ALGORITHM::LZ4: + enum_string = "LZ4"; + break; + case HBaseConstants::COMPRESSION_ALGORITHM::LZO: + enum_string = "LZO"; + break; + case HBaseConstants::COMPRESSION_ALGORITHM::NONE: + enum_string = "NONE"; + break; + case HBaseConstants::COMPRESSION_ALGORITHM::SNAPPY: + enum_string = "SNAPPY"; + break; + default: + enum_string = "NONE"; + break; + } + return enum_string; +} + +const std::string HBaseConstants::EnumToString::ToString(const HBaseConstants::KEEP_DELETED_CELLS &enum_type){ + + std::string enum_string; + switch(enum_type){ + case HBaseConstants::KEEP_DELETED_CELLS::FALSE: + enum_string = "FALSE"; + break; + case HBaseConstants::KEEP_DELETED_CELLS::TRUE: + enum_string = "TRUE"; + break; + case HBaseConstants::KEEP_DELETED_CELLS::TTL: + enum_string = "TTL"; + break; + } + return enum_string; +} + +const std::string HBaseConstants::EnumToString::ToString(const HBaseConstants::DURABILITY_TYPE &enum_type){ + + std::string enum_string; + switch(enum_type){ + case HBaseConstants::DURABILITY_TYPE::ASYNC_WAL: + enum_string = "ASYNC_WAL"; + break; + case HBaseConstants::DURABILITY_TYPE::FSYNC_WAL: + enum_string = "FSYNC_WAL"; + break; + case HBaseConstants::DURABILITY_TYPE::SKIP_WAL: + enum_string = "SKIP_WAL"; + break; + case HBaseConstants::DURABILITY_TYPE::SYNC_WAL: + enum_string = "SYNC_WAL"; + break; + case HBaseConstants::DURABILITY_TYPE::USE_DEFAULT: + enum_string = "USE_DEFAULT"; + break; + } + return enum_string; +} diff --git a/hbase-native-client/src/core/hconstants.h b/hbase-native-client/src/core/hconstants.h new file mode 100644 index 0000000..6aea510 --- /dev/null +++ b/hbase-native-client/src/core/hconstants.h @@ -0,0 +1,233 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include +#include +#include +#include + + +#include "bytes.h" + +namespace HBaseConstants { +class HConstants { + public: + /** + * Default block size for an HFile. + */ + static const int DEFAULT_BLOCKSIZE; + /** Used as a magic return value while optimized index key feature enabled(HBASE-7845) */ + static const int INDEX_KEY_MAGIC; + /* + * Name of directory that holds recovered edits written by the wal log + * splitting code, one per region + */ + static const std::string RECOVERED_EDITS_DIR; + /** + * The first four bytes of Hadoop RPC connections + */ + static const char RPC_HEADER[]; + static const char RPC_CURRENT_VERSION; + /** + * Max length a row can have because of the limitation in TFile. + */ + static const int MAX_ROW_LENGTH; + static const long NO_NONCE; + /** + * Timestamp to use when we want to refer to the latest cell. + * This is the timestamp sent by clients when no timestamp is specified on + * commit. + */ + static const long LATEST_TIMESTAMP; + /** + * An empty instance. + */ + static const BYTE_ARRAY EMPTY_BYTE_ARRAY; + + static const ByteBuffer EMPTY_BYTE_BUFFER; + + /** Default maximum file size */ + static const long DEFAULT_MAX_FILE_SIZE; + + /** + * Unlimited time-to-live. + */ + static const int FOREVER; + + /** + * Scope tag for locally scoped data. + * This data will not be replicated. + */ + static const int REPLICATION_SCOPE_LOCAL; + + /** + * Scope tag for globally scoped data. + * This data will be replicated to all peers. + */ + static const int REPLICATION_SCOPE_GLOBAL; + //TODO: although the following are referenced widely to format strings for + // the shell. They really aren't a part of the public API. It would be + // nice if we could put them somewhere where they did not need to be + // public. They could have package visibility + static const std::string NAME; + static const std::string VERSIONS; + static const std::string IN_MEMORY; + static const std::string METADATA; + static const std::string CONFIGURATION; + +}; + + +class AccessControlConstants { + + public: + /** + * Configuration option that toggles whether EXEC permission checking is + * performed during coprocessor endpoint invocations. + */ + static const std::string EXEC_PERMISSION_CHECKS_KEY; + /** Default setting for hbase.security.exec.permission.checks; false */ + static const bool DEFAULT_EXEC_PERMISSION_CHECKS; + + /** + * Configuration or CF schema option for early termination of access checks + * if table or CF permissions grant access. Pre-0.98 compatible behavior + */ + static const std::string CF_ATTRIBUTE_EARLY_OUT; + /** Default setting for hbase.security.access.early_out */ + static const bool DEFAULT_ATTRIBUTE_EARLY_OUT; + + // Operation attributes for cell level security + /** Cell level ACL */ + static const std::string OP_ATTRIBUTE_ACL; + /** Cell level ACL evaluation strategy */ + static const std::string OP_ATTRIBUTE_ACL_STRATEGY; + /** Default cell ACL evaluation strategy: Table and CF first, then ACL */ + static const char * OP_ATTRIBUTE_ACL_STRATEGY_DEFAULT; + /** Alternate cell ACL evaluation strategy: Cell ACL first, then table and CF */ + static const char * OP_ATTRIBUTE_ACL_STRATEGY_CELL_FIRST; +}; + +/** + * Ways to keep cells marked for delete around. + */ +/* + * Don't change the TRUE/FALSE labels below, these have to be called + * this way for backwards compatibility. + */ +enum class KEEP_DELETED_CELLS { + /** Deleted Cells are not retained. */ + FALSE, + /** + * Deleted Cells are retained until they are removed by other means + * such TTL or VERSIONS. + * If no TTL is specified or no new versions of delete cells are + * written, they are retained forever. + */ + TRUE, + /** + * Deleted Cells are retained until the delete marker expires due to TTL. + * This is useful when TTL is combined with MIN_VERSIONS and one + * wants to keep a minimum number of versions around but at the same + * time remove deleted cells after the TTL. + */ + TTL +}; + +enum class BLOOM_TYPE { + /** + * Bloomfilters disabled + */ + NONE, + /** + * Bloom enabled with Table row as Key + */ + ROW, + /** + * Bloom enabled with Table row & column (family+qualifier) as Key + */ + ROWCOL +}; + +enum class DATA_BLOCK_ENCODING { + + /** Disable data block encoding. */ + NONE = 0, + // id 1 is reserved for the BITSET algorithm to be added later + PREFIX = 2, + DIFF = 3, + FAST_DIFF = 4, + // COPY_KEY(5, "org.apache.hadoop.hbase.io.encoding.CopyKeyDataBlockEncoder"), + PREFIX_TREE = 6 +}; + +enum class COMPRESSION_ALGORITHM { + LZO, + GZ, + NONE, + SNAPPY, + LZ4 +}; + +enum class DURABILITY_TYPE { + /* Developer note: Do not rename the enum field names. They are serialized in HTableDescriptor */ + /** + * If this is for tables durability, use HBase's global default value (SYNC_WAL). + * Otherwise, if this is for mutation, use the table's default setting to determine durability. + * This must remain the first option. + */ + USE_DEFAULT, + /** + * Do not write the Mutation to the WAL + */ + SKIP_WAL, + /** + * Write the Mutation to the WAL asynchronously + */ + ASYNC_WAL, + /** + * Write the Mutation to the WAL synchronously. + * The data is flushed to the filesystem implementation, but not necessarily to disk. + * For HDFS this will flush the data to the designated number of DataNodes. + * See HADOOP-6313 + */ + SYNC_WAL, + /** + * Write the Mutation to the WAL synchronously and force the entries to disk. + * (Note: this is currently not supported and will behave identical to {@link #SYNC_WAL}) + * See HADOOP-6313 + */ + FSYNC_WAL +}; + +class EnumToString { + + public: + static const std::string ToString(const HBaseConstants::BLOOM_TYPE &enum_type); + static const std::string ToString(const HBaseConstants::DATA_BLOCK_ENCODING &enum_type); + static const std::string ToString(const HBaseConstants::COMPRESSION_ALGORITHM &enum_type); + static const std::string ToString(const HBaseConstants::KEEP_DELETED_CELLS &enum_type); + static const std::string ToString(const HBaseConstants::DURABILITY_TYPE &enum_type); +}; + + +} diff --git a/hbase-native-client/src/core/key_value.cc b/hbase-native-client/src/core/key_value.cc new file mode 100644 index 0000000..6fb3952 --- /dev/null +++ b/hbase-native-client/src/core/key_value.cc @@ -0,0 +1,539 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include +#include + +#include "hconstants.h" +#include "key_value.h" + + + +const byte KeyValue::COLUMN_FAMILY_DELIMITER = ':'; + +const int KeyValue::KEY_LENGTH_SIZE = Bytes::SIZEOF_INT; + + +const int KeyValue::ROW_LENGTH_SIZE = Bytes::SIZEOF_SHORT; +const int KeyValue::FAMILY_LENGTH_SIZE = Bytes::SIZEOF_BYTE; +const int KeyValue::TIMESTAMP_SIZE = Bytes::SIZEOF_LONG; +const int KeyValue::TYPE_SIZE = Bytes::SIZEOF_BYTE; +const int KeyValue::TIMESTAMP_TYPE_SIZE = TIMESTAMP_SIZE + TYPE_SIZE; +const int KeyValue::KEY_INFRASTRUCTURE_SIZE = ROW_LENGTH_SIZE + FAMILY_LENGTH_SIZE + TIMESTAMP_TYPE_SIZE; + +const int KeyValue::VALUE_LENGTH_SIZE = Bytes::SIZEOF_INT; +const int KeyValue::KEYVALUE_INFRASTRUCTURE_SIZE = KeyValue::KEY_LENGTH_SIZE /*keylength*/ + KeyValue::VALUE_LENGTH_SIZE /*valuelength*/; + +const int KeyValue::ROW_OFFSET = KeyValue::KEYVALUE_INFRASTRUCTURE_SIZE; +const int KeyValue::ROW_KEY_OFFSET = ROW_OFFSET + ROW_LENGTH_SIZE; + +const int KeyValue::TAGS_LENGTH_SIZE = Bytes::SIZEOF_SHORT; +const int KeyValue::KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE = ROW_OFFSET + TAGS_LENGTH_SIZE; + +KeyValue::KeyValue():offset_(-1), length_(-1), seqid_(0) { + +} + +KeyValue::KeyValue(const KeyValue& ckey_value){ + + //std::cerr << "KV::Copy Constr" << std::endl; + this->offset_ = ckey_value.offset_; + this->length_ = ckey_value.length_; + Bytes::CopyByteArray(ckey_value.bytes_, this->bytes_, this->offset_, this->length_); + this->seqid_ = ckey_value.seqid_; +} + +KeyValue& KeyValue::operator= (const KeyValue &ckey_value){ + + //std::cerr << "KV::Assign Constr" << std::endl; + this->offset_ = ckey_value.offset_; + this->length_ = ckey_value.length_; + Bytes::CopyByteArray(ckey_value.bytes_, this->bytes_, this->offset_, this->length_); + this->seqid_ = ckey_value.seqid_; + + return *this; + +} + +KeyValue::KeyValue(const BYTE_ARRAY &bytes): KeyValue(bytes, 0){ + +} + +KeyValue::KeyValue(const BYTE_ARRAY &bytes, const int &offset):KeyValue(bytes, offset, GetLength(bytes, offset)){ + +} + +KeyValue::KeyValue( const BYTE_ARRAY &bytes, const int &offset, const int &length):offset_(offset), length_(length), seqid_(0){ + + Bytes::CopyByteArray(bytes, this->bytes_, this->offset_, this->length_); +} + + +KeyValue::KeyValue(const BYTE_ARRAY &bytes, const int &offset, const int &length, const long &ts): + KeyValue(bytes, offset, length, null_bytes_, 0, 0, null_bytes_, 0, 0, ts, + static_cast(KeyValue::KEY_TYPE::Maximum), null_bytes_, 0, 0, null_tags_){ + +} + + +KeyValue::KeyValue(const BYTE_ARRAY &row, const long ×tamp): + KeyValue(row, null_bytes_, null_bytes_, timestamp, static_cast(KeyValue::KEY_TYPE::Maximum), null_bytes_){ + +} + +KeyValue::KeyValue(const BYTE_ARRAY &row, const long ×tamp, const BYTE_TYPE &type): + KeyValue(row, null_bytes_, null_bytes_, timestamp, type, null_bytes_){ + +} + +KeyValue::KeyValue(const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier): + KeyValue(row, family, qualifier, HBaseConstants::HConstants::LATEST_TIMESTAMP, static_cast(KeyValue::KEY_TYPE::Maximum)) { + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const BYTE_ARRAY &value): + KeyValue(row, family, qualifier, + HBaseConstants::HConstants::LATEST_TIMESTAMP, static_cast(KeyValue::KEY_TYPE::Put), value){ + + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_TYPE &type): + KeyValue(row, family, qualifier, timestamp, type, null_bytes_){ + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_ARRAY &value):KeyValue(row, family, qualifier, + timestamp, static_cast(KeyValue::KEY_TYPE::Put), value){ + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_ARRAY &value, const Tag *tag_ptr): + KeyValue(row, family, qualifier, timestamp, value, null_tags_){ + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_ARRAY &value, const std::vector &tags): + KeyValue( row, 0, row.size(), family, 0, family.size(), qualifier, 0, qualifier.size(), + timestamp, static_cast(KeyValue::KEY_TYPE::Put), value, 0, value.size(), tags){ + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_TYPE &type, const BYTE_ARRAY &value): + KeyValue(row, 0, row.size(), family, 0, family.size(), qualifier, 0, qualifier.size(), timestamp, type, value, 0, value.size()){ + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_TYPE &type, const BYTE_ARRAY &value, + const std::vector &tags):offset_(-1), length_(-1), seqid_(0) { + + KeyValue( row, family, qualifier, 0, qualifier.size(), timestamp, type, value, 0, value.size(), tags); +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const int &qoffset, const int &qlength, const long ×tamp, + const BYTE_TYPE &type, const BYTE_ARRAY &value, const int &voffset, + const int & vlength, const std::vector &tags):offset_(-1), length_(-1), seqid_(0) { + KeyValue(row, 0, row.size(), family, 0, family.size(), qualifier, qoffset, qlength, timestamp, type, value, voffset, vlength, tags); + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_TYPE &type, const BYTE_ARRAY &value, + const BYTE_ARRAY &tag_bytes): + KeyValue(row, family, qualifier, 0, qualifier.size(), timestamp, type, value, 0, value.size(), null_tags_){ + +} + +KeyValue::KeyValue( BYTE_ARRAY &buffer, const int &boffset, + const BYTE_ARRAY &row, const int &roffset, const int &rlength, + const BYTE_ARRAY &family, const int &foffset, const int &flength, + const BYTE_ARRAY &qualifier, const int &qoffset, const int &qlength, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &voffset, const int &vlength, + const BYTE_ARRAY &tag_bytes):offset_(-1), length_(-1), seqid_(0) { + /*this.bytes = buffer; + this.length = writeByteArray(buffer, boffset, + row, roffset, rlength, + family, foffset, flength, qualifier, qoffset, qlength, + timestamp, type, value, voffset, vlength, tags); + this.offset = boffset; + */ +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const int &row_offset, const int &row_length, + const BYTE_ARRAY &family, const int &family_offset, const int &family_length, + const BYTE_ARRAY &qualifier, const int &qualifier_offset, const int &qualifier_length, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &value_offset, const int &value_length, + const BYTE_ARRAY &tag_bytes, const int &tagsOffset, const int &tagsLength):offset_(-1), length_(-1), seqid_(0){ + + + this->length_ = CreateByteArray( this->bytes_, row, row_offset, row_length, + family, family_offset, family_length, + qualifier, qualifier_offset, qualifier_length, + timestamp, type, value, value_offset, value_length, tag_bytes, tagsOffset, tagsLength); + this->offset_ = 0; +} + +KeyValue::KeyValue( const int &rlength, const int &flength, const int &qlength, const long ×tamp, const BYTE_TYPE &type, + const int &vlength):offset_(-1), length_(-1), seqid_(0) { + KeyValue(rlength, flength, qlength, timestamp, type, vlength, 0); +} + +KeyValue::KeyValue( const int &rlength, const int &flength, const int &qlength, + const long ×tamp, const BYTE_TYPE &type, const int &vlength, + const int &tags_length):offset_(-1), length_(-1), seqid_(0) { + /* + this.bytes = createEmptyByteArray(rlength, flength, qlength, timestamp, type, vlength, tags_length); + this.length = bytes.length; + this.offset = 0; + */ +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const int &roffset, const int &rlength, + const BYTE_ARRAY &family, const int &foffset, const int &flength, + const BYTE_ARRAY &qualifier, const int &qoffset, const int &qlength, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &voffset, const int &vlength): + KeyValue( row, roffset, rlength, family, foffset, flength, qualifier, + qoffset, qlength, timestamp, type, value, voffset, vlength, null_tags_){ + +} + +KeyValue::KeyValue( const BYTE_ARRAY &row, const int &row_offset, const int &row_length, + const BYTE_ARRAY &family, const int &family_offset, const int &family_length, + const BYTE_ARRAY &qualifier, const int &qualifier_offset, const int &qualifier_length, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &value_offset, const int &value_length, + const std::vector &tags):offset_(-1), length_(-1), seqid_(0){ + + this->length_ = CreateByteArray( this->bytes_, row, row_offset, row_length, + family, family_offset, family_length, + qualifier, qualifier_offset, qualifier_length, + timestamp, type, value, value_offset, value_length, tags); + this->offset_ = 0; + +} + +int KeyValue::WriteByteArray(BYTE_ARRAY &key_value, const int &boffset, + const BYTE_ARRAY &row, const int &roffset, const int &rlength, + const BYTE_ARRAY &family, const int &foffset, const int &flength, + const BYTE_ARRAY &qualifier, const int &qoffset, const int &qlength, + const long timestamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &voffset, const int &vlength, const BYTE_ARRAY &tags) { +#if 0 + //checkParameters(row, rlength, family, flength, qlength, vlength); + + // Calculate length of tags area + int tagsLength = 0; + if (tags != null && tags.length > 0) { + for (Tag t: tags) { + tagsLength += t.getLength(); + } + } + //checkForTagsLength(tagsLength); + int key_length = (int) getKeyDataStructureSize(rlength, flength, qlength); + int keyValueLength = (int) getKeyValueDataStructureSize(rlength, flength, qlength, vlength, + tagsLength); + if (keyValueLength > buffer.length - boffset) { + throw new IllegalArgumentException("Buffer size " + (buffer.length - boffset) + " < " + + keyValueLength); + } +#endif + int key_length = static_cast(GetKeyDataStructureSize(rlength, flength, qlength)); + int key_value_length = static_cast(GetKeyValueDataStructureSize( rlength, flength, qlength, vlength, tags.size())); + key_value.resize(key_value_length); + // Write key, value and key row length. + int pos = boffset; + pos = Bytes::PutInt(key_value, pos, key_length); + pos = Bytes::PutInt(key_value, pos, vlength); + pos = Bytes::PutShort(key_value, pos, (short)(rlength & 0x0000ffff)); + pos = Bytes::PutBytes(key_value, pos, row, roffset, rlength); + pos = Bytes::PutByte(key_value, pos, (byte) (flength & 0x0000ff)); + if (flength != 0) { + pos = Bytes::PutBytes(key_value, pos, family, foffset, flength); + } + if (qlength != 0) { + pos = Bytes::PutBytes(key_value, pos, qualifier, qoffset, qlength); + } + pos = Bytes::PutLong(key_value, pos, timestamp); + pos = Bytes::PutByte(key_value, pos, type); + if (value.size()> 0) { + pos = Bytes::PutBytes(key_value, pos, value, voffset, vlength); + } +#if 0 + // Write the number of tags. If it is 0 then it means there are no tags. + if (tags_length > 0) { + pos = Bytes::PutAsShort(key_value, pos, tags_length); + for (Tag t : tags) { + pos = Bytes::PutBytes(key_value, pos, t.getBuffer(), t.getOffset(), t.getLength()); + } + } +#endif + return key_value_length; +} + +int KeyValue::CreateByteArray( BYTE_ARRAY &key_value, + const BYTE_ARRAY &row, const int &row_offset, const int &row_length, + const BYTE_ARRAY &family, const int &family_offset, const int &family_length, + const BYTE_ARRAY &qualifier, const int &qualifier_offset, const int &qualifier_length, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &value_offset, const int &value_length, + const std::vector &tags){ + + int key_length = static_cast(GetKeyDataStructureSize(row_length, family_length, qualifier_length)); + int key_value_length = static_cast(GetKeyValueDataStructureSize( row_length, family_length, qualifier_length, + value_length, tags.size())); + key_value.resize(key_value_length); + + int pos = 0; + pos = Bytes::PutInt(key_value, pos, key_length); + pos = Bytes::PutInt(key_value, pos, value_length); + pos = Bytes::PutShort(key_value, pos, static_cast(row_length & 0x0000ffff)); + pos = Bytes::PutBytes(key_value, pos, row, row_offset, row_length); + pos = Bytes::PutByte(key_value, pos, static_cast(family_length & 0x0000FF)); + if(family_length != 0) { + pos = Bytes::PutBytes(key_value, pos, family, family_offset, family_length); + } + if (qualifier_length > 0) { + pos = Bytes::PutBytes(key_value, pos, qualifier, qualifier_offset, qualifier_length); + } + pos = Bytes::PutLong(key_value, pos, timestamp); + pos = Bytes::PutByte(key_value, pos, type); + if (value_length > 0) { + pos = Bytes::PutBytes(key_value, pos, value, value_offset, value_length); + } + + return key_value.size(); + +} + +int KeyValue::CreateByteArray( BYTE_ARRAY &key_value, + const BYTE_ARRAY &row, const int &row_offset, const int &row_length, + const BYTE_ARRAY &family, const int &family_offset, const int &family_length, + const BYTE_ARRAY &qualifier, const int &qualifier_offset, const int &qualifier_length, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &value_offset, const int &value_length, + const BYTE_ARRAY &tag_bytes, const int &tag_offset, const int &tag_length){ + + int key_length = static_cast(GetKeyDataStructureSize(row_length, family_length, qualifier_length)); + int key_value_length = static_cast(GetKeyValueDataStructureSize( row_length, family_length, qualifier_length, + value_length, tag_length)); + key_value.resize(key_value_length); + + int pos = 0; + pos = Bytes::PutInt(key_value, pos, key_length); + pos = Bytes::PutInt(key_value, pos, value_length); + pos = Bytes::PutShort(key_value, pos, static_cast(row_length & 0x0000ffff)); + pos = Bytes::PutBytes(key_value, pos, row, row_offset, row_length); + pos = Bytes::PutByte(key_value, pos, static_cast(family_length & 0x0000FF)); + if(family_length != 0) { + pos = Bytes::PutBytes(key_value, pos, family, family_offset, family_length); + } + if (qualifier_length > 0) { + pos = Bytes::PutBytes(key_value, pos, qualifier, qualifier_offset, qualifier_length); + } + pos = Bytes::PutLong(key_value, pos, timestamp); + pos = Bytes::PutByte(key_value, pos, type); + if (value_length > 0) { + pos = Bytes::PutBytes(key_value, pos, value, value_offset, value_length); + } + + return key_value.size(); +} + +KeyValue::~KeyValue() { +} + + +long KeyValue::GetKeyValueDataStructureSize( const int &rlength, + const int & flength, + const int & qlength, + const int & vlength, + const int &tagsLength){ + + long kv_ds_size = 0L; + kv_ds_size = GetKeyDataStructureSize(rlength, flength, qlength) + vlength; + if (0 == tagsLength) { + kv_ds_size += KeyValue::KEYVALUE_INFRASTRUCTURE_SIZE; + }else{ + kv_ds_size += KeyValue::KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE + tagsLength; + } + return kv_ds_size; +} + + +long KeyValue::GetKeyDataStructureSize( const int & rlength, + const int & flength, + const int & qlength) { + return KeyValue::KEY_INFRASTRUCTURE_SIZE + rlength + flength + qlength; +} + +void KeyValue::SetSequenceId(const long &sequence_id){ + + this->seqid_ = sequence_id; +} + + +void KeyValue::DisplayBytes(){ + + //Bytes::DisplayBytes(this->bytes_); + std::cerr << "Hex Vals:: " << Bytes::ToHex(this->bytes_) << std::endl; + +} + +int KeyValue::GetLength(const BYTE_ARRAY &bytes, const int &offset){ + + int klength = KeyValue::ROW_OFFSET + Bytes::ToInt(bytes, offset); + int vlength = Bytes::ToInt(bytes, offset + Bytes::SIZEOF_INT); + return klength + vlength; +} + +const int KeyValue::GetKeyOffset() const{ + return this->offset_ + KeyValue::ROW_OFFSET; +} + +const int KeyValue::GetKeyLength() const{ + + return Bytes::ToInt(this->bytes_, this->offset_); +} + + +const BYTE_ARRAY &KeyValue::GetRowArray() const{ + return this->bytes_; +} + +const int KeyValue::GetRowOffset() const{ + + return this->offset_ + KeyValue::ROW_KEY_OFFSET; +} + +const int KeyValue::GetRowLength() const{ + + return Bytes::ToShort(this->bytes_, GetKeyOffset()); +} +////// + +////// +const BYTE_ARRAY &KeyValue::GetFamilyArray() const{ + return this->bytes_; +} + +const int KeyValue::GetFamilyOffset() const{ + + return GetFamilyOffset(GetRowLength()); +} + +const int KeyValue::GetFamilyOffset(const int &row_length) const{ + + return this->offset_ + KeyValue::ROW_KEY_OFFSET + row_length + KeyValue::FAMILY_LENGTH_SIZE; +} + +const BYTE_TYPE KeyValue::GetFamilyLength() const{ + + return GetFamilyLength(GetFamilyOffset()); +} + +const BYTE_TYPE KeyValue::GetFamilyLength(const int &foffset) const{ + + return this->bytes_[foffset-1]; +} + +const BYTE_ARRAY &KeyValue::GetQualifierArray() const{ + + return this->bytes_; +} + +const int KeyValue::GetQualifierOffset() const{ + + return GetQualifierOffset(GetFamilyOffset()); +} + +const int KeyValue::GetQualifierOffset(const int &foffset) const{ + + return foffset + GetFamilyLength(foffset); +} + +const int KeyValue::GetQualifierLength() const{ + + return GetQualifierLength(GetRowLength(),GetFamilyLength()); + +} + +const int KeyValue::GetQualifierLength(const int &rlength, const int &flength) const{ + + return GetKeyLength() - static_cast(GetKeyDataStructureSize(rlength, flength, 0)); +} + +const int KeyValue::GetTimestampOffset() { + + return GetTimestampOffset(GetKeyLength()); +} + +const int KeyValue::GetTimestampOffset(const int &key_length) const{ + return GetKeyOffset() + key_length - KeyValue::TIMESTAMP_TYPE_SIZE; +} + +const unsigned long KeyValue::GetTimestamp() const{ + + return GetTimestamp(GetKeyLength()); +} + +const unsigned long KeyValue::GetTimestamp(const int &key_length) const{ + + int ts_offset = GetTimestampOffset(key_length); + return Bytes::ToULong(this->bytes_, ts_offset); +} + +const BYTE_TYPE KeyValue::GetTypeByte() const{ + + return this->bytes_[this->offset_ + GetKeyLength() - 1 + KeyValue::ROW_OFFSET]; +} + +const long KeyValue::GetSequenceId(){ + + return this->seqid_; +} + +const BYTE_ARRAY &KeyValue::GetValueArray() const{ + + return this->bytes_; +} + +const int KeyValue::GetValueOffset() const{ + + int voffset = GetKeyOffset() + GetKeyLength(); + return voffset; +} + +const int KeyValue::GetValueLength() const{ + + int vlength = Bytes::ToInt(this->bytes_, this->offset_ + KeyValue::KEY_LENGTH_SIZE); + return vlength; +} + + diff --git a/hbase-native-client/src/core/key_value.h b/hbase-native-client/src/core/key_value.h new file mode 100644 index 0000000..d9402a6 --- /dev/null +++ b/hbase-native-client/src/core/key_value.h @@ -0,0 +1,233 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "bytes.h" +#include "tag.h" + +class KeyValue { + public: + enum class KEY_TYPE{ + Minimum = static_cast(0), + Put = static_cast(4), + Delete = static_cast(8), + DeleteFamilyVersion = static_cast(10), + DeleteColumn = static_cast(12), + DeleteFamily = static_cast(14), + // Maximum is used when searching; you look from maximum on down. + Maximum = static_cast(255) + }; + const static byte COLUMN_FAMILY_DELIMITER; + + /** Size of the key length field in bytes*/ + const static int KEY_LENGTH_SIZE; + /** Size of the row length field in bytes */ + const static int ROW_LENGTH_SIZE; + /** Size of the family length field in bytes */ + const static int FAMILY_LENGTH_SIZE; + /** Size of the timestamp field in bytes */ + const static int TIMESTAMP_SIZE; + /** Size of the key type field in bytes */ + const static int TYPE_SIZE; + // Size of the timestamp and type byte on end of a key -- a long + a byte. + const static int TIMESTAMP_TYPE_SIZE; + // Size of the length shorts and bytes in key. + const static int KEY_INFRASTRUCTURE_SIZE; + // How far into the key the row starts at. First thing to read is the short + // that says how long the row is. + const static int ROW_OFFSET; + const static int ROW_KEY_OFFSET; + // Size of the length ints in a KeyValue datastructure. + const static int KEYVALUE_INFRASTRUCTURE_SIZE; + /** Size of the tags length field in bytes */ + const static int TAGS_LENGTH_SIZE; + const static int KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE; + + const static int VALUE_LENGTH_SIZE; + + KeyValue(); + KeyValue(const KeyValue& ckey_value); + KeyValue& operator= (const KeyValue &ckey_value); + + KeyValue( const BYTE_ARRAY &bytes); + KeyValue( const BYTE_ARRAY &bytes, const int &offset); + KeyValue( const BYTE_ARRAY &bytes, const int &offset, const int &length); + KeyValue( const BYTE_ARRAY &bytes, const int &offset, const int &length, const long &ts); + + KeyValue( const BYTE_ARRAY &row, const long ×tamp); + KeyValue(const BYTE_ARRAY &row, const long ×tamp, const BYTE_TYPE &type); + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier); + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const BYTE_ARRAY &value); + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_TYPE &type); + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_ARRAY &value); + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_ARRAY &value, const Tag *tag_ptr); + + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_ARRAY &value, const std::vector &tags); + + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_TYPE &type, const BYTE_ARRAY &value); + + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_TYPE &type, const BYTE_ARRAY &value, + const std::vector &tags); + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const int &qoffset, const int &qlength, const long ×tamp, + const BYTE_TYPE &type, const BYTE_ARRAY &value, const int &voffset, + const int & vlength, const std::vector &tags); + + KeyValue( const BYTE_ARRAY &row, const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long ×tamp, const BYTE_TYPE &type, const BYTE_ARRAY &value, + const BYTE_ARRAY &tag_bytes); + + KeyValue( BYTE_ARRAY &buffer, const int &boffset, + const BYTE_ARRAY &row, const int &roffset, const int &rlength, + const BYTE_ARRAY &family, const int &foffset, const int &flength, + const BYTE_ARRAY &qualifier, const int &qoffset, const int &qlength, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &voffset, const int &vlength, + const BYTE_ARRAY &tag_bytes); + + KeyValue( const BYTE_ARRAY &row, const int &row_offset, const int &row_length, + const BYTE_ARRAY &family, const int &family_offset, const int &family_length, + const BYTE_ARRAY &qualifier, const int &qualifier_offset, const int &qualifier_length, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &value_offset, const int &value_length, + const BYTE_ARRAY &tag_bytes, const int &tagsOffset, const int &tagsLength); + + KeyValue( const int &rlength, const int &flength, const int &qlength, + const long ×tamp, const BYTE_TYPE &type, const int &vlength); + + KeyValue( const int &rlength, const int &flength, const int &qlength, + const long ×tamp, const BYTE_TYPE &type, const int &vlength, + const int &tags_length); + + KeyValue( const BYTE_ARRAY &row, const int &roffset, const int &rlength, + const BYTE_ARRAY &family, const int &foffset, const int &flength, + const BYTE_ARRAY &qualifier, const int &qoffset, const int &qlength, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &voffset, const int &vlength); + + KeyValue( const BYTE_ARRAY &row, const int &row_offset, const int &row_length, + const BYTE_ARRAY &family, const int &family_offset, const int &family_length, + const BYTE_ARRAY &qualifier, const int &qualifier_offset, const int &qualifier_length, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &value_offset, const int &value_length, + const std::vector &tags); + + const int GetKeyOffset() const; + const int GetKeyLength() const; + + + const BYTE_ARRAY &GetRowArray() const; + const int GetRowOffset() const; + const int GetRowLength() const; + + const BYTE_ARRAY &GetFamilyArray() const; + const int GetFamilyOffset() const; + const BYTE_TYPE GetFamilyLength() const; + + const BYTE_ARRAY &GetQualifierArray() const; + const int GetQualifierOffset() const; + const int GetQualifierLength() const; + + const int GetTimestampOffset(); + const unsigned long GetTimestamp() const; + + const BYTE_TYPE GetTypeByte() const; + + const long GetSequenceId(); + + const BYTE_ARRAY &GetValueArray() const; + const int GetValueOffset() const; + const int GetValueLength() const; + + + + virtual ~KeyValue(); + void SetSequenceId(const long &sequence_id); + + + void DisplayBytes(); + + + static long GetKeyValueDataStructureSize( const int &rlength, const int &flength, + const int &qlength, const int &vlength, const int &tagsLength = 0); + + static long GetKeyDataStructureSize( const int & rlength, const int & flength, const int & qlength); + static int CreateByteArray( BYTE_ARRAY &key_value, + const BYTE_ARRAY &row, const int &row_offset, const int &row_length, + const BYTE_ARRAY &family, const int &family_offset, const int &family_length, + const BYTE_ARRAY &qualifier, const int &qualifier_offset, const int &qualifier_length, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &value_offset, const int &value_length, + const std::vector &tags); + static int CreateByteArray( BYTE_ARRAY &key_value, + const BYTE_ARRAY &row, const int &row_offset, const int &row_length, + const BYTE_ARRAY &family, const int &family_offset, const int &family_length, + const BYTE_ARRAY &qualifier, const int &qualifier_offset, const int &qualifier_length, + const long ×tamp, const BYTE_TYPE &type, + const BYTE_ARRAY &value, const int &value_offset, const int &value_length, + const BYTE_ARRAY &tag_bytes, const int &tag_offset, const int &tag_length); + static int WriteByteArray( BYTE_ARRAY &buffer, const int &boffset, + const BYTE_ARRAY &row, const int &roffset, const int &rlength, + const BYTE_ARRAY &family, const int &foffset, const int &flength, + const BYTE_ARRAY &qualifier, const int &qoffset, const int &qlength, + const long timestamp, const BYTE_TYPE & type, + const BYTE_ARRAY &value, const int &voffset, const int &vlength, const BYTE_ARRAY &tag_bytes); + + + protected: + int offset_; // offset into bytes buffer KV starts at + int length_; // length of the KV starting from offset. + BYTE_ARRAY bytes_; // an immutable byte array that contains the KV + BYTE_ARRAY null_bytes_; + std::vector null_tags_; + + + + private: + const static int MAX_TAGS_LENGTH; + long seqid_; + + const int GetFamilyOffset(const int &row_length) const; + const BYTE_TYPE GetFamilyLength(const int &foffset) const; + + const int GetQualifierOffset(const int &foffset) const; + const int GetQualifierLength(const int &rlength, const int &flength) const; + + const int GetTimestampOffset(const int &key_length) const; + const unsigned long GetTimestamp(const int &key_length) const; + + static int GetLength(const BYTE_ARRAY &bytes, const int &offset); + + + +}; + + +/* +static final KeyValue LOWESTKEY = + new KeyValue(HConstants.EMPTY_BYTE_ARRAY, HConstants.LATEST_TIMESTAMP) + */ diff --git a/hbase-native-client/src/core/meta_cache.cc b/hbase-native-client/src/core/meta_cache.cc new file mode 100644 index 0000000..1acc7b3 --- /dev/null +++ b/hbase-native-client/src/core/meta_cache.cc @@ -0,0 +1,65 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "meta_cache.h" + +MetaCache::MetaCache() { + +} + +MetaCache::~MetaCache() { + +} + +RegionDetails* MetaCache::LookupRegion(TableName &table_name, + std::string &row_key) { + + std::map::iterator it; + + it = cache_.find(table_name); + if (it == cache_.end()) { + return nullptr; + } + + RegionList ®ion_list = it->second; + for (auto rd : region_list) { + if (row_key >= rd->getStartKey() && + row_key <= rd->getEndKey()) { + return rd; + } + } + + return nullptr; +} + +void MetaCache::CacheRegion(TableName &table_name, + RegionDetails *region_details) { + + std::map::iterator it; + + it = cache_.find(table_name); + + if (it != cache_.end()) { + it->second.insert(region_details); + } else { + RegionList region_list; + region_list.insert(region_details); + cache_.insert(std::make_pair(table_name, region_list)); + } +} diff --git a/hbase-native-client/src/core/meta_cache.h b/hbase-native-client/src/core/meta_cache.h new file mode 100644 index 0000000..8367098 --- /dev/null +++ b/hbase-native-client/src/core/meta_cache.h @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include + +#include "region_details.h" +#include "table_name.h" + +using RegionList = std::set; + +class MetaCache { +public: + MetaCache(); + virtual ~MetaCache(); + +public: + RegionDetails* LookupRegion(TableName &table_name, std::string &row_key); + void CacheRegion(TableName &table_name, RegionDetails *region_details); + +private: + + std::map cache_; +}; + +#pragma once diff --git a/hbase-native-client/src/core/mutation.cc b/hbase-native-client/src/core/mutation.cc index 4855076..87615b3 100644 --- a/hbase-native-client/src/core/mutation.cc +++ b/hbase-native-client/src/core/mutation.cc @@ -17,26 +17,157 @@ * */ -#include "core/mutation.h" +#include "mutation.h" -void Mutation::set_namespace(char * name_space, size_t name_space_length) { - this->name_space = name_space; - this->name_space_length = name_space_length; +/** + * The attribute for storing the list of clusters that have consumed the change. + */ +const std::string Mutation::CONSUMED_CLUSTER_IDS = "_cs.id"; + +/** + * The attribute for storing TTL for the result of the mutation. + */ +const std::string Mutation::OP_ATTRIBUTE_TTL = "_ttl"; +const std::map Mutation::DURABILITY_TYPE_TO_STRING = +{ + {HBaseConstants::DURABILITY_TYPE::USE_DEFAULT, "USE_DEFAULT"}, + {HBaseConstants::DURABILITY_TYPE::SKIP_WAL, "SKIP_WAL"}, + {HBaseConstants::DURABILITY_TYPE::ASYNC_WAL, "ASYNC_WAL"}, + {HBaseConstants::DURABILITY_TYPE::SYNC_WAL, "SYNC_WAL"}, + {HBaseConstants::DURABILITY_TYPE::FSYNC_WAL, "FSYNC_WAL"} +}; + +Mutation::~Mutation() { + +} + +Mutation::Mutation(): row(""), + ts(HBaseConstants::HConstants::LATEST_TIMESTAMP), + durability_(HBaseConstants::DURABILITY_TYPE::USE_DEFAULT){ + +} + +Mutation::Mutation(const Mutation& cmutation){ + + this->row_ = cmutation.row_; + this->ts_ = cmutation.ts_; + this->family_map_ = cmutation.family_map_; +} + +Mutation& Mutation::operator= (const Mutation &cmutation){ + + this->row_ = cmutation.row_; + this->ts_ = cmutation.ts_; + this->family_map_ = cmutation.family_map_; + + return *this; + +} +int Mutation::GetAcl(BYTE_ARRAY &attr_value){ + //Mutation::OP_ATTRIBUTE_TTL + return GetAttribute(HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL, attr_value); } -void Mutation::set_table(char * table, size_t table_length) { - this->table = table; - this->table_length = table_length; +Mutation Mutation::SetAcl(const std::string &user, Permission perms) { + BYTE_ARRAY attr_value; + SetAttribute(HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL, attr_value); + //ProtobufUtil.toUsersAndPermissions(user, perms).toByteArray()); + return *this; } -void Mutation::set_row(unsigned char * row, size_t row_length) { - this->row = row; - this->row_length = row_length; +Mutation Mutation::SetAcl(const std::map &perms) { + BYTE_ARRAY attr_value; + std::map::const_iterator itr; + for(itr = perms.begin(); itr != perms.end(); ++itr){ + //attr_value + } + SetAttribute(HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL, attr_value); + return *this; } -void Mutation::set_durability(hb_durability_type durability) { - this->durability = durability; +const long Mutation::GetTtl(BYTE_ARRAY &attr_value){ + + long ttl = HBaseConstants::HConstants::LATEST_TIMESTAMP; + int attr_size = GetAttribute(Mutation::OP_ATTRIBUTE_TTL, attr_value); + if(attr_size > 0){ + //convert byte array to long + } + return ttl; } -Mutation::~Mutation() { +Mutation Mutation::SetTtl(const long &ttl){ + + BYTE_ARRAY attr_value; + // convert long to Byte Array + SetAttribute(Mutation::OP_ATTRIBUTE_TTL, attr_value); + return *this; +} + + +ReturnCodes Mutation::CheckRow(const BYTE_ARRAY &row){ + + int row_length = row.size(); + if (0 == row_length) { + throw std::string("Row length can't be 0"); + } + if (row_length > HBaseConstants::HConstants::MAX_ROW_LENGTH) { + throw std::string("Row length > HBaseConstants::HConstants::MAX_ROW_LENGTH"); + } + return ReturnCodes::SUCCESS; +} + +KeyValue *Mutation::CreatePutKeyValue( const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long &ts, const BYTE_ARRAY &value){ + KeyValue *key_value = nullptr; + key_value = new KeyValue(this->row_, family, qualifier, ts, value); + return key_value; +} + +const std::string &Mutation::GetRowAsString(){ + + if(0 == this->row_str_.size()){ + Bytes::ToString(this->row_, this->row_str_); + } + return this->row_str_; } + +const FAMILY_MAP &Mutation::GetFamilyMap(){ + + return this->family_map_; +} + +void Mutation::DisplayRow(){ + + Bytes::DisplayBytes(this->row_); + std::cerr << "TS" << this->ts_ << std::endl; + for(const auto &family : this->family_map_){ + std::string col_str; + Bytes::ToString(family.first, col_str); + std::cerr <<"Family Set" << std::endl; + for(const auto &key_value : family.second){ + BYTE_ARRAY qualifier; + BYTE_ARRAY value; + const long ×tamp = key_value.GetTimestamp(); + std::cerr <<"TS Set" << timestamp << std::endl; + Bytes::CopyByteArray( key_value.GetQualifierArray(), qualifier, + key_value.GetQualifierOffset(), key_value.GetQualifierLength()); + Bytes::DisplayBytes(qualifier); + /* + + Bytes::CopyByteArray( key_value.GetValueArray(), value, + key_value.GetValueOffset(), key_value.GetValueLength()); + std::string qual_str; + std::string value_str; + Bytes::ToString(qualifier, qual_str); + Bytes::ToString(value, value_str); + qualifier.clear(); + value.clear(); + std::cerr <<"Qual Set" << std::endl; + std::cerr <<"Val Set" << std::endl; + */ + + } + } + +} + diff --git a/hbase-native-client/src/core/mutation.h b/hbase-native-client/src/core/mutation.h index e35d595..c13984f 100644 --- a/hbase-native-client/src/core/mutation.h +++ b/hbase-native-client/src/core/mutation.h @@ -17,32 +17,76 @@ * */ -#ifndef CORE_MUTATION_H_ -#define CORE_MUTATION_H_ +#pragma once -#include +#include "bytes.h" +#include "hconstants.h" +#include "key_value.h" +#include "operation_with_attributes.h" +#include "permission.h" +#include "return_codes.h" -#include "core/hbase_types.h" -class Mutation { - char * name_space; - size_t name_space_length; +#include +#include - char * table; - size_t table_length; +using FAMILY_MAP = std::map>; - unsigned char * row; - size_t row_length; - hb_durability_type durability; +enum class DELETE_TYPE { + DELETE_ONE_VERSION, + DELETE_MULTIPLE_VERSIONS, + DELETE_FAMILY, + DELETE_FAMILY_VERSION +}; + +class Mutation : public OperationWithAttributes { + public: - void set_namespace(char * name_space, size_t name_space_length); - void set_table(char * table, size_t table_length); - void set_row(unsigned char * row, size_t row_length); - void set_durability(hb_durability_type durability); + + Mutation(); + Mutation(const Mutation& cmutation); + Mutation& operator= (const Mutation &cmutation); virtual ~Mutation(); -}; -#endif // CORE_MUTATION_H_ + int GetAcl(BYTE_ARRAY &attr_value); + Mutation SetAcl(const std::string &user, Permission perms); + Mutation SetAcl(const std::map &perms); + + const long GetTtl(BYTE_ARRAY &attr_value); + Mutation SetTtl(const long &ttl); + + KeyValue *CreatePutKeyValue( const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long &ts, const BYTE_ARRAY &value); + const std::string &GetRowAsString(); + const FAMILY_MAP &GetFamilyMap(); + void DisplayRow(); + + static ReturnCodes CheckRow(const BYTE_ARRAY &row); + static const std::map DURABILITY_TYPE_TO_STRING; + + protected: + + std::string row; + long ts; + + BYTE_ARRAY row_; + long ts_; + HBaseConstants::DURABILITY_TYPE durability_; + FAMILY_MAP family_map_; + std::string row_str_; + + private: + + /** + * The attribute for storing the list of clusters that have consumed the change. + */ + static const std::string CONSUMED_CLUSTER_IDS; + + /** + * The attribute for storing TTL for the result of the mutation. + */ + static const std::string OP_ATTRIBUTE_TTL; +}; diff --git a/hbase-native-client/src/core/operation_with_attributes.cc b/hbase-native-client/src/core/operation_with_attributes.cc new file mode 100644 index 0000000..6f3ca84 --- /dev/null +++ b/hbase-native-client/src/core/operation_with_attributes.cc @@ -0,0 +1,87 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "operation_with_attributes.h" + +#include + +const std::string OperationWithAttributes::ID_ATRIBUTE = "_operation.attributes.id"; + +OperationWithAttributes::OperationWithAttributes() { + // TODO Auto-generated constructor stub + +} + +OperationWithAttributes::~OperationWithAttributes() { + // TODO Auto-generated destructor stub +} + + +int OperationWithAttributes::GetAttribute(const std::string & name, BYTE_ARRAY &attr_value){ + + int attr_size = 0; + if(attributes_.end() != attributes_.find(name)){ + attr_size = attributes_[name].size(); + } + return attr_size; +} + +const OperationWithAttributes::ATTRIBUTE_MAP& OperationWithAttributes::GetAttributesMap(){ + + return attributes_; +} + +const long OperationWithAttributes::GetAttributeSize(){ + + return attributes_.size(); // total of num map elements + num of keys + vector size in Java + +} + +OperationWithAttributes OperationWithAttributes::SetAttribute(const std::string & name, const BYTE_ARRAY & value){ + + if (0 == value.size()) { + if(attributes_.size() > 0){ + attributes_[name].clear(); + attributes_.erase(name); + } + } else { + BYTE_ARRAY attr_value; + attr_value.insert (attr_value.end(), value.begin(), value.end()); + attributes_[name] = attr_value; + } + return *this; +} + +OperationWithAttributes OperationWithAttributes::SetId(const std::string & id){ + BYTE_ARRAY id_value; + id_value.insert(id_value.end(), id.begin(), id.end()); + SetAttribute(OperationWithAttributes::ID_ATRIBUTE, id_value); + return *this; +} + +const int OperationWithAttributes::GetId(std::string &id_string){ + BYTE_ARRAY id_value; + int attr_size = GetAttribute(OperationWithAttributes::ID_ATRIBUTE, id_value); + id_string = ""; + if(id_value.size() > 0){ + id_string.insert(id_string.end(), id_value.begin(), id_value.end()); + } + return attr_size; +} + diff --git a/hbase-native-client/src/core/operation_with_attributes.h b/hbase-native-client/src/core/operation_with_attributes.h new file mode 100644 index 0000000..74d9d91 --- /dev/null +++ b/hbase-native-client/src/core/operation_with_attributes.h @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include +#include + +#include "bytes.h" + + +/* + * + */ +class OperationWithAttributes { + public: + typedef std::map ATTRIBUTE_MAP; + // used for uniquely identifying an operation + static const std::string ID_ATRIBUTE; + + OperationWithAttributes(); + virtual ~OperationWithAttributes(); + int GetAttribute(const std::string & name, BYTE_ARRAY &attr_value); + const OperationWithAttributes::ATTRIBUTE_MAP& GetAttributesMap(); + const long GetAttributeSize(); + OperationWithAttributes SetAttribute(const std::string & name, const BYTE_ARRAY & value); + OperationWithAttributes SetId(const std::string & id); + const int GetId(std::string &id_string); + + private: + // An opaque blob of attributes + ATTRIBUTE_MAP attributes_; +}; diff --git a/hbase-native-client/src/core/pb_request_builder.cc b/hbase-native-client/src/core/pb_request_builder.cc new file mode 100644 index 0000000..bdd3a84 --- /dev/null +++ b/hbase-native-client/src/core/pb_request_builder.cc @@ -0,0 +1,443 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "pb_request_builder.h" +#include "family_filter.h" +#include "binary_comparator.h" +#include "compare_filter.h" + +ProtoBufRequestBuilder::ProtoBufRequestBuilder() { + +} + +ProtoBufRequestBuilder::~ProtoBufRequestBuilder() { + +} + +std::unique_ptrProtoBufRequestBuilder::CreateScanRequestForMetaLookup(std::string ®ionName,Scan & scan, + int &numberOfRows, bool &closeScanner) { + + hbase::pb::ScanRequest *scanRequest = new hbase::pb::ScanRequest(); + + scanRequest->set_number_of_rows(numberOfRows); + scanRequest->set_close_scanner(closeScanner); + + hbase::pb::RegionSpecifier *regionSpecifier = new hbase::pb::RegionSpecifier(); + hbase::pb::RegionSpecifier_RegionSpecifierType rsType = + hbase::pb::RegionSpecifier_RegionSpecifierType_REGION_NAME; + + regionSpecifier->set_value(regionName); + regionSpecifier->set_type(rsType); + + scanRequest->set_allocated_region(regionSpecifier); + + hbase::pb::Scan *scanPb = new hbase::pb::Scan(); + scanPb->set_cache_blocks(scan.getCacheBlocks()); + + if (scan.isSmall()) { + scanPb->set_small(scan.isSmall()); + } + + scanPb->set_max_versions(scan.getMaxVersions()); + scanPb->set_start_row(scan.getStartRow()); + + if (scan.isReversed()) { + scanPb->set_reversed(scan.isReversed()); + } + + if (scan.getCaching() > 0) { + scanPb->set_caching(scan.getCaching()); + } + + scanRequest->set_allocated_scan(scanPb); + scanRequest->set_client_handles_partials(true); + scanRequest->set_client_handles_heartbeats(true); + scanRequest->set_track_scan_metrics(false); + + google::protobuf::Message *message = dynamic_cast(scanRequest); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; +} + +void ProtoBufRequestBuilder::CreateRegionSpecifier(const std::string ®ionName, hbase::pb::RegionSpecifier ®Obj){ + + regObj.set_type(hbase::pb::RegionSpecifier_RegionSpecifierType_REGION_NAME); + regObj.set_value(regionName); + +} + +std::unique_ptr ProtoBufRequestBuilder::CreateGetRequest(Get &get, const std::string ®ionName){ + + hbase::pb::RegionSpecifier *regionSpecifier = new hbase::pb::RegionSpecifier(); + ProtoBufRequestBuilder::CreateRegionSpecifier(regionName, *regionSpecifier); + + BYTE_ARRAY row_bytes; + row_bytes = get.GetRow(); + std::string row_str; + Bytes::ToString(row_bytes, row_str); + hbase::pb::Get *getObj = new hbase::pb::Get(); + + const std::map> & family_map = get.GetFamily(); + for (const auto& key_value : family_map) { + hbase::pb::Column *colObj = getObj->add_column(); + std::string col_str; + Bytes::ToString(key_value.first, col_str); + colObj->set_family(col_str); + for (const auto& qual : key_value.second){ + if(qual.size() > 0){ + std::string qual_str; + Bytes::ToString(qual, qual_str); + colObj->add_qualifier(qual_str); + } + } + } + + getObj->set_row(get.GetRowAsString()); + getObj->set_max_versions(get.GetMaxVersions()); + getObj->set_cache_blocks(get.GetCacheBlocks()); + if(-1 != get.GetMaxResultsPerColumnFamily()) + getObj->set_store_limit(get.GetMaxResultsPerColumnFamily()); + + + + + hbase::pb::ByteArrayComparable *comparable = new hbase::pb::ByteArrayComparable(); + comparable->set_value("colfam3"); + hbase::pb::BinaryComparator *bin_comparator = new hbase::pb::BinaryComparator(); + bin_comparator->set_allocated_comparable(comparable); + + hbase::pb::Comparator *comparator = new hbase::pb::Comparator(); + comparator->set_name("org.apache.hadoop.hbase.filter.BinaryComparator"); + comparator->set_serialized_comparator(bin_comparator->SerializeAsString()); + + hbase::pb::CompareFilter *comp_filter = new hbase::pb::CompareFilter(); + comp_filter->set_compare_op(hbase::pb::CompareType::EQUAL); + comp_filter->set_allocated_comparator(comparator); + + hbase::pb::Filter *filter = new hbase::pb::Filter(); + filter->set_name("org.apache.hadoop.hbase.filter.FamilyFilter"); + filter->set_serialized_filter(comp_filter->SerializeAsString()); + + //getObj->set_allocated_filter(filter); + + hbase::pb::GetRequest *req = new hbase::pb::GetRequest(); + req->set_allocated_get(getObj); + req->set_allocated_region(regionSpecifier); + + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + + return ptr; +} + +std::unique_ptrProtoBufRequestBuilder::CreatePutRequest(Put &put, const std::string ®ionName){ + // PUT is a simple mutatin request + // We are using Multi method because its the same way done in Java + // TODO Is there a case wherein PUT will be called for a rowkey spread out in multiple regions ???? + hbase::pb::MultiRequest *req = new hbase::pb::MultiRequest(); + + int totalRegions = 1; + int totalNumActions = 1; + for(int regActionNum = 0; regActionNum < totalRegions; regActionNum++ ){ + hbase::pb::RegionSpecifier *regionSpecifier = new hbase::pb::RegionSpecifier(); + ProtoBufRequestBuilder::CreateRegionSpecifier(regionName, *regionSpecifier); + hbase::pb::RegionAction *regAction = req->add_regionaction(); + regAction->set_atomic(true); + regAction->set_allocated_region(regionSpecifier); + int actionNum = 0; + for (actionNum = 0; actionNum < totalNumActions; actionNum++) { + hbase::pb::MutationProto *mutate = new hbase::pb::MutationProto(); + mutate->set_row(put.GetRowAsString()); + mutate->set_mutate_type(hbase::pb::MutationProto_MutationType_PUT); + mutate->set_durability(hbase::pb::MutationProto_Durability_USE_DEFAULT); + mutate->set_timestamp(HBaseConstants::HConstants::LATEST_TIMESTAMP); + const FAMILY_MAP & family_map = put.GetFamilyMap(); + for(const auto &family : family_map){ + hbase::pb::MutationProto_ColumnValue *colObj = mutate->add_column_value(); + std::string col_str; + Bytes::ToString(family.first, col_str); + colObj->set_family(col_str); + for(const auto &key_value : family.second){ + hbase::pb::MutationProto_ColumnValue_QualifierValue *colQual = colObj->add_qualifier_value(); + BYTE_ARRAY qualifier; + BYTE_ARRAY value; + + std::string qual_str; + std::string value_str; + + const long ×tamp = key_value.GetTimestamp(); + if(key_value.GetQualifierLength() > 0){ + Bytes::CopyByteArray( key_value.GetQualifierArray(), qualifier, + key_value.GetQualifierOffset(), key_value.GetQualifierLength()); + Bytes::ToString(qualifier, qual_str); + qualifier.clear(); + colQual->set_qualifier(qual_str); + } + + if(key_value.GetValueLength() > 0){ + Bytes::CopyByteArray( key_value.GetValueArray(), value, + key_value.GetValueOffset(), key_value.GetValueLength()); + Bytes::ToString(value, value_str); + value.clear(); + colQual->set_value(value_str); + } + colQual->set_timestamp(timestamp); + }//for multiple Qualifiers + }//for multiple Columnfamilies + //! Attributes are used in phase 2. + /* + std::map attributeMap = put.getAttributes(); + for(std::map::iterator itr = attributeMap.begin(); itr != attributeMap.end(); ++itr){ + hbase::pb::NameBytesPair *nameBytesPair = mutate->add_attribute(); + nameBytesPair->set_name(itr->first); + nameBytesPair->set_value(itr->second); + }*/ + hbase::pb::Action *action = regAction->add_action(); + action->set_index(actionNum); + action->set_allocated_mutation(mutate); + } + } + + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; +} + +hbase::pb::MutationProto_DeleteType toDeleteType(CellType::cellType type) +{ + switch (type) { + case CellType::DELETE: + return hbase::pb::MutationProto_DeleteType_DELETE_ONE_VERSION; + case CellType::DELETE_COLUMN: + return hbase::pb::MutationProto_DeleteType_DELETE_MULTIPLE_VERSIONS; + case CellType::DELETE_FAMILY: + return hbase::pb::MutationProto_DeleteType_DELETE_FAMILY; + case CellType::DELETE_FAMILYVERSION: + return hbase::pb::MutationProto_DeleteType_DELETE_FAMILY_VERSION; + default: + return hbase::pb::MutationProto_DeleteType_DELETE_ONE_VERSION; + } +} + +std::unique_ptrProtoBufRequestBuilder::CreateDeleteRequest(Delete &deleteObj, const std::string ®ionName){ + + hbase::pb::RegionSpecifier *regionSpecifier = new hbase::pb::RegionSpecifier(); + ProtoBufRequestBuilder::CreateRegionSpecifier(regionName, *regionSpecifier); + + hbase::pb::MutationProto *mutationProto = new hbase::pb::MutationProto(); + mutationProto->set_row(deleteObj.GetRowAsString()); + mutationProto->set_mutate_type(hbase::pb::MutationProto_MutationType_DELETE); + //column type in phase 2 + mutationProto->set_durability(hbase::pb::MutationProto_Durability_USE_DEFAULT); + mutationProto->set_timestamp(HBaseConstants::HConstants::LATEST_TIMESTAMP); + + std::map > familyMap = deleteObj.getFamily(); + + for(std::map >::iterator itr = familyMap.begin(); itr != familyMap.end(); ++itr){ + hbase::pb::MutationProto_ColumnValue *colFamily = mutationProto->add_column_value(); + colFamily->set_family(itr->first); + + //for repeated Qualifier + for (unsigned int cellNum = 0; cellNum < itr->second.size(); cellNum++){ + + hbase::pb::MutationProto_ColumnValue_QualifierValue *colQual = colFamily->add_qualifier_value(); + + colQual->set_qualifier(itr->second[cellNum].Qualifier()); + colQual->set_timestamp(itr->second[cellNum].Timestamp()); + colQual->set_delete_type(toDeleteType(itr->second[cellNum].TypeByte())); + + }//for multiple Qualifiers + + }//for multiple Columnfamilies + + hbase::pb::MutateRequest *req = new hbase::pb::MutateRequest(); + req->set_allocated_region(regionSpecifier); + req->set_allocated_mutation(mutationProto); + + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; +} + +void ProtoBufRequestBuilder::CreateTableName(const std::string &tableName, hbase::pb::TableName &tableObj){ + + std::string nameSpaceValue(""); + std::string tableNameValue(""); + GetTableAndNamespace(tableName, nameSpaceValue, tableNameValue); + + tableObj.set_namespace_(nameSpaceValue); + tableObj.set_qualifier(tableNameValue); +} + +std::unique_ptr ProtoBufRequestBuilder::CreateEnableTableRequest(const std::string &table){ + + hbase::pb::TableName *tableName = new hbase::pb::TableName(); + ProtoBufRequestBuilder::CreateTableName(table, *tableName); + + hbase::pb::EnableTableRequest *req = new hbase::pb::EnableTableRequest(); + req->set_allocated_table_name(tableName); + + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; +} + +std::unique_ptr ProtoBufRequestBuilder::CreateDisableTableRequest(const std::string &table){ + + hbase::pb::TableName *tableName = new hbase::pb::TableName(); + ProtoBufRequestBuilder::CreateTableName(table, *tableName); + + hbase::pb::DisableTableRequest *req = new hbase::pb::DisableTableRequest(); + req->set_allocated_table_name(tableName); + + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; +} + +std::unique_ptr ProtoBufRequestBuilder::CreateProcedureRequest(const int & procedureId){ + + hbase::pb::GetProcedureResultRequest *req = new hbase::pb::GetProcedureResultRequest(); + req->set_proc_id(procedureId); + + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; +} + +std::unique_ptr ProtoBufRequestBuilder::CreateTableRequest(const TableSchema &table_schema){ + + hbase::pb::TableName *tableName = new hbase::pb::TableName(); + const TableName &table_name = table_schema.GetTableName(); + ProtoBufRequestBuilder::CreateTableName(table_name.GetName(), *tableName); + + hbase::pb::TableSchema *tabSchema = new hbase::pb::TableSchema(); + + tabSchema->set_allocated_table_name(tableName); + + const std::map &table_metadata = table_schema.GetMetadata(); + for (const auto & table_metadata_values : table_metadata){ + hbase::pb::BytesBytesPair *tableAttr = tabSchema->add_attributes(); + tableAttr->set_first(Bytes::ToString(table_metadata_values.first->Get())); + tableAttr->set_second(Bytes::ToString(table_metadata_values.second->Get())); + } + + const std::map &family_map = table_schema.GetFamily(); + for (const auto & col_family : family_map){ + hbase::pb::ColumnFamilySchema *colFamSchema = tabSchema->add_column_families(); + colFamSchema->set_name(col_family.second.GetNameAsString()); + + const std::map &value_map = col_family.second.GetValues(); + for (const auto & col_family_values : value_map){ + hbase::pb::BytesBytesPair *colFamAttr = colFamSchema->add_attributes(); + colFamAttr->set_first(Bytes::ToString(col_family_values.first->Get())); + colFamAttr->set_second(Bytes::ToString(col_family_values.second->Get())); + } + + const std::map &config_map = col_family.second.GetConfiguration(); + for (const auto & col_family_config : config_map){ + hbase::pb::NameStringPair *colFamConfig = colFamSchema->add_configuration(); + colFamConfig->set_name(col_family_config.first); + colFamConfig->set_value(col_family_config.second); + } + } + + const std::map &table_config_map = table_schema.GetConfiguration(); + for (const auto & table_config : table_config_map){ + hbase::pb::NameStringPair *tableConfig = tabSchema->add_configuration(); + tableConfig->set_name(table_config.first); + tableConfig->set_value(table_config.second); + } + + hbase::pb::CreateTableRequest *req = new hbase::pb::CreateTableRequest(); + req->set_allocated_table_schema(tabSchema); + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; +} + +std::unique_ptr ProtoBufRequestBuilder::CreateDeleteTableRequest(const std::string &table){ + + hbase::pb::TableName *tableName = new hbase::pb::TableName(); + ProtoBufRequestBuilder::CreateTableName(table, *tableName); + + hbase::pb::DeleteTableRequest *req = new hbase::pb::DeleteTableRequest(); + req->set_allocated_table_name(tableName); + + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; + +} + +std::unique_ptr ProtoBufRequestBuilder::CreateListTablesRequest(const std::string ®Ex, const bool &includeSysTables){ + + hbase::pb::GetTableDescriptorsRequest *req = new hbase::pb::GetTableDescriptorsRequest(); + if(regEx.length() > 0){ + std::string *regExTables = new std::string(regEx); + req->set_allocated_regex(regExTables); + } + req->set_include_sys_tables(includeSysTables); + + + google::protobuf::Message *message = dynamic_cast(req); + std::unique_ptr ptr(message); + + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << ptr->ByteSize() << "]: " << ptr->DebugString() << std::endl; + } + return ptr; +} diff --git a/hbase-native-client/src/core/pb_request_builder.h b/hbase-native-client/src/core/pb_request_builder.h new file mode 100644 index 0000000..aea2c7a --- /dev/null +++ b/hbase-native-client/src/core/pb_request_builder.h @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include + +#include "../rpc/generated/HBase.pb.h" +#include "../rpc/generated/Client.pb.h" +#include "../rpc/generated/Master.pb.h" +#include "../rpc/generated/Filter.pb.h" + + +#include "scan.h" +#include "get.h" +#include "put.h" +#include "delete.h" +#include "table_schema.h" + +// For CreateTableName +#include "util.h" + +class ProtoBufRequestBuilder { +public: + + ProtoBufRequestBuilder(); + virtual ~ProtoBufRequestBuilder(); + +public: + static std::unique_ptr CreateScanRequestForMetaLookup(std::string ®ionName, Scan & scan, int &numberOfRows, bool &closeScanner); + + static void CreateRegionSpecifier(const std::string ®ionName, hbase::pb::RegionSpecifier ®Obj); + static std::unique_ptr CreateGetRequest(Get &get, const std::string ®ionName); + static std::unique_ptr CreatePutRequest(Put &put, const std::string ®ionName); + static std::unique_ptr CreateDeleteRequest(Delete &deleteObj, const std::string ®ionName); + + static void CreateTableName(const std::string &tableName, hbase::pb::TableName &tableObj); + static std::unique_ptr CreateEnableTableRequest(const std::string &tableName); + static std::unique_ptr CreateDisableTableRequest(const std::string &tableName); + static std::unique_ptr CreateTableRequest(const TableSchema &table_schema); + static std::unique_ptr CreateDeleteTableRequest(const std::string &tableName); + static std::unique_ptr CreateListTablesRequest(const std::string ®Ex, const bool &includeSysTables); + + static std::unique_ptr CreateProcedureRequest(const int & procedureId); + +}; diff --git a/hbase-native-client/src/core/permission.cc b/hbase-native-client/src/core/permission.cc new file mode 100644 index 0000000..8c32edd --- /dev/null +++ b/hbase-native-client/src/core/permission.cc @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "permission.h" + +Permission::ACTION_BY_CODE Permission::actionMap; + +void Permission::InitActionMap(){ + + Permission::actionMap['R'] = Permission::READ; + Permission::actionMap['W'] = Permission::WRITE; + Permission::actionMap['X'] = Permission::EXEC; + Permission::actionMap['C'] = Permission::CREATE; + Permission::actionMap['A'] = Permission::ADMIN; +} + +Permission::Permission() { + // TODO Auto-generated constructor stub + +} + +Permission::~Permission() { + // TODO Auto-generated destructor stub +} + diff --git a/hbase-native-client/src/core/permission.h b/hbase-native-client/src/core/permission.h new file mode 100644 index 0000000..fac77b8 --- /dev/null +++ b/hbase-native-client/src/core/permission.h @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include + +#include "bytes.h" +/* + * + */ +class Permission { + public: + typedef enum { + READ, + WRITE, + EXEC, + CREATE, + ADMIN + }ActionType; + + typedef std::map ACTION_BY_CODE; + static ACTION_BY_CODE actionMap; + Permission(); + virtual ~Permission(); + + private: + static void InitActionMap(); +}; + diff --git a/hbase-native-client/src/core/protobuf_util.cc b/hbase-native-client/src/core/protobuf_util.cc new file mode 100644 index 0000000..f953207 --- /dev/null +++ b/hbase-native-client/src/core/protobuf_util.cc @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "protobuf_util.h" +#include "connection.h" + +void SetRequestHeader(hbase::pb::RequestHeader &rh, const std::string &methodName, const bool &requestParam){ + rh.set_call_id(Connection::SetRpcCallId()); + std::string *method_name = new std::string(methodName); + rh.set_allocated_method_name(method_name); + rh.set_request_param(requestParam); + return; +} diff --git a/hbase-native-client/src/core/protobuf_util.h b/hbase-native-client/src/core/protobuf_util.h new file mode 100644 index 0000000..4db49d7 --- /dev/null +++ b/hbase-native-client/src/core/protobuf_util.h @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "../rpc/generated/RPC.pb.h" + +void SetRequestHeader(hbase::pb::RequestHeader &rh, const std::string &methodName, const bool &requestParam); diff --git a/hbase-native-client/src/core/put.cc b/hbase-native-client/src/core/put.cc index 8bedc8b..31ffd84 100644 --- a/hbase-native-client/src/core/put.cc +++ b/hbase-native-client/src/core/put.cc @@ -16,7 +16,111 @@ * limitations under the License. */ -#include "core/put.h" +#include "put.h" +#include -Put::~Put() { +Put::~Put() {} + +Put::Put(const BYTE_ARRAY &row): Put(row, HBaseConstants::HConstants::LATEST_TIMESTAMP){ + +} + +Put::Put(const BYTE_ARRAY &row, const long ×tamp): Put(row, 0, row.size(), timestamp){ + +} + +Put::Put(const BYTE_ARRAY &row, const int &row_offset, const int &row_length): Put(row, 0, row.size(), HBaseConstants::HConstants::LATEST_TIMESTAMP){ + +} + +Put::Put(const BYTE_ARRAY &row, const int &row_offset, const int &row_length, const long &ts){ + + if (ts < 0) { + throw "Timestamp cannot be negative. ts"; + } + Mutation::CheckRow(row); + this->row_ = row; + this->ts_ = ts; + Bytes::ToString(this->row_, this->row_str_); +} + +Put::Put(const Put& cPut){ + + this->row_ = cPut.row_; + this->ts_ = cPut.ts_; + this->family_map_ = cPut.family_map_; + +} + +Put& Put::operator= (const Put &cPut){ + + this->row_ = cPut.row_; + this->ts_ = cPut.ts_; + this->family_map_ = cPut.family_map_; + return *this; + +} + +Put Put::Add(const KeyValue &key_value){ + + BYTE_ARRAY row; + Bytes::CopyByteArray(key_value.GetRowArray(), row, key_value.GetRowOffset(), key_value.GetRowLength()); + BYTE_ARRAY family; + Bytes::CopyByteArray(key_value.GetFamilyArray(), row, key_value.GetFamilyOffset(), key_value.GetFamilyLength()); + if(!Bytes::Equals(this->row_, row)){ + throw "Key Value being inserted for a row different then which "; + } + this->family_map_[family].push_back(key_value); + return *this; +} + +Put Put::AddColumn(const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, const BYTE_ARRAY &value){ + //Bytes::DisplayBytes(value); + return AddColumn(family, qualifier, this->ts_, value); +} + +Put Put::AddColumn(const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long &ts, const BYTE_ARRAY &value){ + + if (ts < 0) + throw std::string("Illegal TS value"); + + KeyValue *key_value = nullptr; + key_value = CreatePutKeyValue(family, qualifier, ts, value); + this->family_map_[family].push_back(*key_value); + delete key_value; + return *this; +} + +int Put::GetAcl(BYTE_ARRAY &attr_value){ + + return Mutation::GetAcl(attr_value); +} + +Put Put::SetAcl(const std::string &user, Permission perms) { + + Mutation::SetAcl(user, perms); + return *this; +} + +Put Put::SetAcl(const std::map &perms) { + + Mutation::SetAcl(perms); + return *this; +} + +const long Put::GetTtl(BYTE_ARRAY &attr_value){ + + return Mutation::GetTtl(attr_value); +} + +Put Put::SetTtl(const long &ttl){ + + Mutation::SetTtl(ttl); + return *this; +} + +int Put::Get(const byte family[], const byte qualifier[], std::vector &cellList){ + + return 0; } diff --git a/hbase-native-client/src/core/put.h b/hbase-native-client/src/core/put.h index 7bca3e3..90820f5 100644 --- a/hbase-native-client/src/core/put.h +++ b/hbase-native-client/src/core/put.h @@ -17,13 +17,44 @@ * */ -#ifndef CORE_PUT_H_ -#define CORE_PUT_H_ +#pragma once -#include "core/mutation.h" +#include -class Put: public Mutation { +#include +#include +#include +#include + +#include "bytes.h" +#include "cell.h" +#include "consistency.h" +#include "hconstants.h" +#include "mutation.h" +#include "query.h" +#include "return_codes.h" + +class Put : public Mutation { public: - ~Put(); + virtual ~Put(); + Put(const BYTE_ARRAY &row); + Put(const BYTE_ARRAY &row, const long ×tamp); + Put(const BYTE_ARRAY &row, const int &row_offset, const int &row_length); + Put(const BYTE_ARRAY &row, const int &row_offset, const int &row_length, const long &ts); + Put(const Put& cPut); + Put&operator= (const Put &cPut); + + Put Add(const KeyValue &key_value); + Put AddColumn(const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, const BYTE_ARRAY &value); + Put AddColumn(const BYTE_ARRAY &family, const BYTE_ARRAY &qualifier, + const long &ts, const BYTE_ARRAY &value); + + int GetAcl(BYTE_ARRAY &attr_value); + Put SetAcl(const std::string &user, Permission perms); + Put SetAcl(const std::map &perms); + + const long GetTtl(BYTE_ARRAY &attr_value); + Put SetTtl(const long &ttl); + + int Get(const byte family[], const byte qualifier[], std::vector &cellList); }; -#endif // CORE_PUT_H_ diff --git a/hbase-native-client/src/core/query.cc b/hbase-native-client/src/core/query.cc new file mode 100644 index 0000000..1f1712e --- /dev/null +++ b/hbase-native-client/src/core/query.cc @@ -0,0 +1,74 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "query.h" + +const std::string Query::ISOLATION_LEVEL = "_isolationlevel_"; + +Query::Query(): + target_replicaid_(-1), + consistency_(STRONG), + filter_(nullptr) { + + // TODO Auto-generated constructor stub +} + +Query::~Query() { + + // TODO Auto-generated destructor stub +} + +int Query::GetAcl(BYTE_ARRAY &attr_value){ + + return GetAttribute(HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL, attr_value); +} + +//! TODO +Query Query::SetAcl(const std::string &user, Permission perms) { + + BYTE_ARRAY attr_value; + SetAttribute(HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL, attr_value); + //ProtobufUtil.toUsersAndPermissions(user, perms).toByteArray()); + return *this; +} + +//! TODO +Query Query::SetAcl(const std::map &perms) { + + BYTE_ARRAY attr_value; + std::map::const_iterator itr; + for(itr = perms.begin(); itr != perms.end(); ++itr){ + //attr_value + } + SetAttribute(HBaseConstants::AccessControlConstants::OP_ATTRIBUTE_ACL, attr_value); + return *this; +} + +Filter *Query::GetFilter(){ + + return this->filter_; +} + +Query Query::SetFilter(const Filter &filter){ + + std::cerr << "In SetFilter" << std::endl; + this->filter_ = const_cast(&filter); + return *this; +} diff --git a/hbase-native-client/src/core/query.h b/hbase-native-client/src/core/query.h new file mode 100644 index 0000000..bd4da8c --- /dev/null +++ b/hbase-native-client/src/core/query.h @@ -0,0 +1,54 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include + +#include "bytes.h" +#include "consistency.h" +#include "filter.h" +#include "hconstants.h" +#include "operation_with_attributes.h" +#include "permission.h" +#include "timeRange.h" + +class Filter; +class Query : public OperationWithAttributes { + public: + Query(); + virtual ~Query(); + + int GetAcl(BYTE_ARRAY &attr_value); + Query SetAcl(const std::string &user, Permission perms); + Query SetAcl(const std::map &perms); + Filter *GetFilter(); + Query SetFilter(const Filter &filter); + + + protected: + int target_replicaid_; + Consistency consistency_; + Filter *filter_; + std::map columnfamily_timerange_map; + + private: + static const std::string ISOLATION_LEVEL; + +}; diff --git a/hbase-native-client/src/core/region_details.cc b/hbase-native-client/src/core/region_details.cc new file mode 100644 index 0000000..ba538f2 --- /dev/null +++ b/hbase-native-client/src/core/region_details.cc @@ -0,0 +1,343 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "region_details.h" +#include "../rpc/generated/RPC.pb.h" +#include "../util/Utils.h" + +#include +#include +#include + +#include +#include +#include +#include + + +RegionDetails::RegionDetails() { + +} + +RegionDetails::~RegionDetails() { + +} + +RegionDetails * RegionDetails::Parse(const ByteBuffer &byte_buffer) { + const char *pData = byte_buffer.data(); + int size = byte_buffer.size(); + + const char *pCurrent = pData; + int totalRead = 0; + + hbase::pb::RegionInfo ri; + + RegionDetails *region_details = new RegionDetails(); + + while (totalRead < size) { + unsigned int *pSize = (unsigned int*) pCurrent; + unsigned int cellSize = *pSize; + Utils::swapByteOrder(cellSize); + pCurrent = pCurrent + 4; + totalRead += 4; + + pSize = (unsigned int*) pCurrent; + unsigned int keyLength = *pSize; + Utils::swapByteOrder(keyLength); + pCurrent += 4; + totalRead += 4; + + pSize = (unsigned int*) pCurrent; + unsigned int valueLength = *pSize; + Utils::swapByteOrder(valueLength); + pCurrent += 4; + totalRead += 4; + +// char *key = new char[keyLength]; + std::unique_ptr key_ptr(new char[keyLength]); + char *key = key_ptr.get(); + std::memcpy(key, pCurrent, keyLength); + pCurrent += keyLength; + totalRead += keyLength; + + int row_offset = 2; + + unsigned short rowLength; //2 bytes + char *pRow; + unsigned char columnFamilyLength; //1 byte + char *pColumnFamily; + char *pColumnQualifier; + char *keyType; //byte 1 byte + + char *pCellData = key; + unsigned short *pRowLength = (unsigned short *) pCellData; + rowLength = *pRowLength; + Utils::swapByteOrder2Bytes(rowLength); + pCellData += 2; + +// pRow = new char[rowLength + 1]; + std::unique_ptr row_ptr(new char[rowLength + 1]); + pRow = row_ptr.get(); + std::memcpy(pRow, pCellData, rowLength); + pRow[rowLength] = '\0'; + region_details->setRegionName(pRow); +// regionInfo = pRow; + pCellData += rowLength; + int family_length_offset = row_offset + rowLength; + + columnFamilyLength = *pCellData; + pCellData += 1; +// pColumnFamily = new char[columnFamilyLength + 1]; + std::unique_ptr cf_ptr(new char[columnFamilyLength + 1]); + pColumnFamily = cf_ptr.get(); + std::memcpy(pColumnFamily, pCellData, columnFamilyLength); + pColumnFamily[columnFamilyLength] = '\0'; + pCellData += columnFamilyLength; + + int column_family_offset = family_length_offset + 1; + int column_qualifier_offset = column_family_offset + columnFamilyLength; + int timestamp_offset = keyLength - (8 + 1); + + int column_qualifier_length = timestamp_offset + - column_qualifier_offset; +// pColumnQualifier = new char[column_qualifier_length + 1]; + std::unique_ptr cq_ptr(new char[column_qualifier_length + 1]); + pColumnQualifier = cq_ptr.get(); + std::memcpy(pColumnQualifier, pCellData, column_qualifier_length); + pColumnQualifier[column_qualifier_length] = '\0'; + pCellData += column_qualifier_length; + + int timestamp_length = 8; + Poco::UInt64 *pts = (Poco::UInt64*) pCellData; + Poco::UInt64 ts = *pts; + ts = Poco::ByteOrder::flipBytes(ts); + pCellData += timestamp_length; + + int keyType_length = 1; +// keyType = new char[keyType_length + 1]; + std::unique_ptr kt_ptr(new char[keyType_length + 1]); + keyType = kt_ptr.get(); + std::memcpy(keyType, pCellData, keyType_length); + keyType[keyType_length] = '\0'; + pCellData += keyType_length; + +// char *value = new char[valueLength + 1]; + std::unique_ptr vl_ptr(new char[valueLength + 1]); + char *value = vl_ptr.get(); + std::memcpy(value, pCurrent, valueLength); + value[valueLength] = '\0'; + pCurrent += valueLength; + totalRead += valueLength; + + // char *pQualifier = getQualifier(pCellData); + if (std::strcmp(pColumnQualifier, "regioninfo") == 0) { + + char *pValue = value; + char PB_MAGIC[4] = { 'P', 'B', 'U', 'F' }; + for (int i = 0; i < 4; i++) { + if ((*pValue++) == PB_MAGIC[i]) { + continue; + } else { + throw new std::string("Expecting a protobuf Region here"); + } + } + + google::protobuf::io::ArrayInputStream arr(pValue, valueLength - 4); + google::protobuf::io::CodedInputStream input(&arr); + + bool success = ri.ParseFromCodedStream(&input); + region_details->setRegionId(ri.region_id()); + region_details->setStartKey(ri.start_key()); + region_details->setEndKey(ri.end_key()); + region_details->setOffline(ri.offline()); + region_details->setSplit(ri.split()); + region_details->setReplicaId(ri.replica_id()); + + const hbase::pb::TableName &tn = ri.table_name(); + TableName *pTableName = TableName::createTableNameIfNecessary( + tn.namespace_(), tn.qualifier()); + region_details->setTableName(pTableName); +#if DEBUG + std::cerr << "Region Info: " << server_start_code << std::endl; + ri.PrintDebugString(); +#endif + } else if (std::strcmp(pColumnQualifier, "seqnumDuringOpen") == 0) { + + } else if (std::strcmp(pColumnQualifier, "serverstartcode") == 0) { + Poco::UInt64 *pServer_start_code = (Poco::UInt64*) value; + unsigned long server_start_code = *pServer_start_code; + region_details->setServerStartCode( + Poco::ByteOrder::flipBytes(server_start_code)); +#if DEBUG + std::cerr << "Server start code: " << server_start_code << std::endl; +#endif + } else if (std::strcmp(pColumnQualifier, "server") == 0) { + std::string lRegionIP = value; + + int counter = 0; + const char *pIPAddress = lRegionIP.c_str(); + while (true) { + if (*pIPAddress != ':') { + counter++; + } else { +// char *pIP = new char[counter + 1]; + std::unique_ptr ip_ptr(new char[counter + 1]); + char *pIP = ip_ptr.get(); + std::memcpy(pIP, lRegionIP.c_str(), counter); + pIP[counter] = '\0'; + region_details->setRegionServerIpAddr(pIP); + + pIPAddress++; + int numBytes = lRegionIP.length() - counter; +// char *pPort = new char[numBytes + 1]; + std::unique_ptr port_ptr(new char[numBytes + 1]); + char *pPort = port_ptr.get(); + std::memcpy(pPort, pIPAddress, numBytes); + pPort[numBytes] = '\0'; + unsigned int port = std::atol(pPort); + region_details->setRegionServerPort(port); + break; + } + pIPAddress += 1; + } + +#if DEBUG + std::cerr << "RegionServer IP: " << regionIP << std::endl; + std::cerr << "RegionServer Port: " << port << std::endl; +#endif + + } + } + + return region_details; +} + +const std::string& RegionDetails::getEndKey() const { + return end_key_; +} + +void RegionDetails::setEndKey(const std::string& endKey) { + end_key_ = endKey; +} + +bool RegionDetails::isOffline() const { + return offline_; +} + +void RegionDetails::setOffline(bool offline) { + offline_ = offline; +} + +unsigned long RegionDetails::getRegionId() const { + return region_id_; +} + +void RegionDetails::setRegionId(unsigned long regionId) { + region_id_ = regionId; +} + +const std::string& RegionDetails::getRegionName() const { + return region_name_; +} + +void RegionDetails::setRegionName(const std::string& regionName) { + region_name_ = regionName; +} + +void RegionDetails::setRegionName(const char* regionName) { + region_name_ = regionName; +} + +const std::string& RegionDetails::getRegionServerIpAddr() const { + return region_server_ip_addr_; +} + +void RegionDetails::setRegionServerIpAddr( + const std::string& regionServerIpAddr) { + region_server_ip_addr_ = regionServerIpAddr; +} + +void RegionDetails::setRegionServerIpAddr(const char* regionServerIpAddr) { + region_server_ip_addr_ = regionServerIpAddr; +} + +int RegionDetails::getRegionServerPort() const { + return region_server_port_; +} + +void RegionDetails::setRegionServerPort(int regionServerPort) { + region_server_port_ = regionServerPort; +} + +unsigned int RegionDetails::getReplicaId() const { + return replica_id_; +} + +void RegionDetails::setReplicaId(unsigned int replicaId) { + replica_id_ = replicaId; +} + +bool RegionDetails::isSplit() const { + return split_; +} + +void RegionDetails::setSplit(bool split) { + split_ = split; +} + +const std::string& RegionDetails::getStartKey() const { + return start_key_; +} + +void RegionDetails::setStartKey(const std::string& startKey) { + start_key_ = startKey; +} + +const TableName& RegionDetails::getTableName() const { + return *table_name_; +} + +void RegionDetails::setTableName(const TableName* tableName) { + table_name_ = const_cast (tableName); +} + +unsigned long RegionDetails::getServerStartCode() const { + return server_start_code_; +} + +void RegionDetails::setServerStartCode(unsigned long serverStartCode) { + server_start_code_ = serverStartCode; +} + +bool RegionDetails::operator < (const RegionDetails & rhs) const { + if (this->start_key_ < rhs.start_key_) + return true; + + if (this->start_key_ > rhs.start_key_) + return false; + + if (this->end_key_ < rhs.end_key_) + return true; + + if (this->end_key_ > rhs.end_key_) + return false; + + return false; +} diff --git a/hbase-native-client/src/core/region_details.h b/hbase-native-client/src/core/region_details.h new file mode 100644 index 0000000..ba9b47e --- /dev/null +++ b/hbase-native-client/src/core/region_details.h @@ -0,0 +1,76 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "table_name.h" +#include "bytes.h" + +class RegionDetails { +public: + RegionDetails(); + ~RegionDetails(); + +public: + static RegionDetails* Parse(const ByteBuffer &byte_buffer); + const std::string& getEndKey() const; + void setEndKey(const std::string& endKey); + bool isOffline() const; + void setOffline(bool offline); + unsigned long getRegionId() const; + void setRegionId(unsigned long regionId); + const std::string& getRegionName() const; + void setRegionName(const std::string& regionName); + void setRegionName(const char* regionName); + const std::string& getRegionServerIpAddr() const; + void setRegionServerIpAddr(const std::string& regionServerIpAddr); + void setRegionServerIpAddr(const char* regionServerIpAddr); + int getRegionServerPort() const; + void setRegionServerPort(int regionServerPort); + unsigned int getReplicaId() const; + void setReplicaId(unsigned int replicaId); + bool isSplit() const; + void setSplit(bool split); + const std::string& getStartKey() const; + void setStartKey(const std::string& startKey); + const TableName& getTableName() const; + void setTableName(const TableName* tableName); + unsigned long getServerStartCode() const; + void setServerStartCode(unsigned long serverStartCode); + +public: + bool operator < (const RegionDetails & rhs) const; + +private: + std::string region_server_ip_addr_; + int region_server_port_; + // region_name consists of three components + //[table_name],[region_start_key],[region_id] + std::string region_name_; + + unsigned long region_id_; + TableName* table_name_; + std::string start_key_; + std::string end_key_; + bool offline_; + bool split_; + unsigned int replica_id_; + + unsigned long server_start_code_; +}; diff --git a/hbase-native-client/src/core/region_specifier.cc b/hbase-native-client/src/core/region_specifier.cc new file mode 100644 index 0000000..070c1a2 --- /dev/null +++ b/hbase-native-client/src/core/region_specifier.cc @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "region_specifier.h" + +RegionSpecifier::RegionSpecifier() { + // TODO Auto-generated constructor stub + +} + +RegionSpecifier::~RegionSpecifier() { + // TODO Auto-generated destructor stub +} + diff --git a/hbase-native-client/src/core/region_specifier.h b/hbase-native-client/src/core/region_specifier.h new file mode 100644 index 0000000..5e01398 --- /dev/null +++ b/hbase-native-client/src/core/region_specifier.h @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +/* + * + */ +namespace RegionSpecifierType{ +enum RegType{ + // ,,. + REGION_NAME = 1, + // hash of ,, + ENCODED_REGION_NAME +}; +} +class RegionSpecifier { +private: + + RegionSpecifierType::RegType regSpecifierType; + std::string regionValue; +public: + RegionSpecifier(); + virtual ~RegionSpecifier(); +}; diff --git a/hbase-native-client/src/core/result.cc b/hbase-native-client/src/core/result.cc new file mode 100644 index 0000000..f83d785 --- /dev/null +++ b/hbase-native-client/src/core/result.cc @@ -0,0 +1,100 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "result.h" + +Result::Result(): empty_(true), + exists_(false), + stale_(false), + partial_(false), + readonly_(false) { + // TODO Auto-generated constructor stub +} + +Result::~Result() { + // TODO Auto-generated destructor stub +} + + +Result::Result(const bool &readonly):readonly_(readonly){ + +} + +Result::Result (std::vector &cells, const bool &exists, const bool &stale, const bool &partial): + empty_(cells.empty()), + exists_(exists), + stale_(stale), + partial_(partial), + readonly_(false){ + this->cells_.insert (this->cells_.end(), cells.begin(), cells.end()); + +} + +const std::vector &Result::ListCells(){ + return this->cells_; +} + +void Result::GetColumnCells(const std::string &family, const std::string & qualifier, std::vector &columnCells){ + + for(unsigned int i = 0; i < this->cells_.size(); i++){ + if(cells_[i].Family() == family && cells_[i].Qualifier() == qualifier) + columnCells.push_back(cells_[i]); + } + return; +} + +const std::string *Result::GetValue(const std::string &family, const std::string & qualifier){ + + std::string *result = NULL; + for(unsigned int i = 0; i < this->cells_.size(); i++){ + if(this->cells_[i].Family() == family && this->cells_[i].Qualifier() == qualifier) + result = new std::string(this->cells_[i].Value()); + } + return result; +} + +Cell *Result::GetColumnLatestCell(const std::string &family, const std::string & qualifier){ + + Cell *cell = NULL; + if(this->IsEmpty()) + cell = new Cell(); + else{ + for(unsigned int i = 0; i < this->cells_.size(); i++){ + if(this->cells_[i].Family() == family && this->cells_[i].Qualifier() == qualifier) + cell = new Cell(this->cells_[i]); + } + } + return cell; +} + + +const std::string *Result::GetRow(){ + + std::string *result(NULL); + if("" == this->row_ || 0 == this->row_.length()){ + this->row_ = (0 == this->cells_.size()) ? "" : this->cells_[0].Row(); + } + result = new std::string(this->row_); + return result; +} + +const bool Result::IsEmpty(){ + + return this->empty_; +} diff --git a/hbase-native-client/src/core/result.h b/hbase-native-client/src/core/result.h new file mode 100644 index 0000000..9b889ae --- /dev/null +++ b/hbase-native-client/src/core/result.h @@ -0,0 +1,49 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "cell.h" +#include "cell_scanner.h" + +#include +#include + +class Result { + +private: + bool empty_; + bool exists_; + bool stale_; + bool partial_; + bool readonly_; + std::string row_; + std::vector cells_; +public: + Result(); + Result(const bool &readonly); + Result (std::vector &cells, const bool &exists, const bool &stale, const bool &partial); + virtual ~Result(); + const std::vector &ListCells(); + void GetColumnCells(const std::string &family, const std::string & qualifier, std::vector &columnCells); + const std::string *GetValue(const std::string &family, const std::string & qualifier); + Cell *GetColumnLatestCell(const std::string &family, const std::string & qualifier); + const std::string *GetRow(); + const bool IsEmpty(); +}; diff --git a/hbase-native-client/src/core/return_codes.h b/hbase-native-client/src/core/return_codes.h new file mode 100644 index 0000000..2787c88 --- /dev/null +++ b/hbase-native-client/src/core/return_codes.h @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#pragma once + +#define DEBUG 1 + +#include +#include +#include +#include + +const std::string UNDEFINED_API("Undefined API Implementation"); + +enum class ReturnCodes { + SUCCESS = 0, + FAILURE = -1 +}; diff --git a/hbase-native-client/src/core/rpc_client.cc b/hbase-native-client/src/core/rpc_client.cc new file mode 100644 index 0000000..64bcfdf --- /dev/null +++ b/hbase-native-client/src/core/rpc_client.cc @@ -0,0 +1,71 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include +#include + +#include +#include + +#include "rpc_client.h" + +RpcClient::RpcClient() { + +} + +RpcClient::~RpcClient() { + for (std::map::iterator it=connections_.begin(); + it!=connections_.end(); ++it) { + delete it->second; + connections_.erase(it); + } +// std::cout << it->first << " => " << it->second << '\n'; + +} + +std::unique_ptr RpcClient::Call( + const std::string &service_name, + const std::string &method_name, + const google::protobuf::Message ¶m, + const std::string &host_name, const int &port, + const std::string &user_name, + google::protobuf::Message &default_response_type, + CellScanner &cell_scanner) { + + std::size_t val1 = Poco::hash(host_name); + std::size_t val2 = Poco::hash(port); + std::size_t val3 = Poco::hash(service_name); + std::size_t val4 = Poco::hash(user_name); + + std::size_t val = val1 ^ val2 ^ val3 ^ val4; + + std::map::iterator it = connections_.find(val); + ServerNodeConnection *ptrsnc; + + if (it != connections_.end()) { + ptrsnc = it->second; + } else { + ptrsnc = new ServerNodeConnection(host_name, port, service_name, user_name); + std::pair kvPair(val, ptrsnc); + connections_.insert(kvPair); + } + + return ptrsnc->CallMethod(method_name, param, default_response_type, cell_scanner); +} + diff --git a/hbase-native-client/src/core/rpc_client.h b/hbase-native-client/src/core/rpc_client.h new file mode 100644 index 0000000..887119b --- /dev/null +++ b/hbase-native-client/src/core/rpc_client.h @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include + +#include + +#include "server_node_connection.h" +#include "cell_scanner.h" + +class RpcClient { +public: + RpcClient(); + ~RpcClient(); + +public: + std::unique_ptr Call( + const std::string &service_name, + const std::string &method_name, + const google::protobuf::Message ¶m, + const std::string &host_name, const int &port, + const std::string &user_name, + google::protobuf::Message &default_response_type, + CellScanner &cell_scanner); + +private: + std::map connections_; +}; diff --git a/hbase-native-client/src/core/scan.cc b/hbase-native-client/src/core/scan.cc new file mode 100644 index 0000000..8e641d3 --- /dev/null +++ b/hbase-native-client/src/core/scan.cc @@ -0,0 +1,101 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "scan.h" + + +Scan::Scan() { + +} + +Scan::~Scan() { + +} + +void Scan::setReversed(bool &reversed) { + reversed_ = reversed; +} + +void Scan::setStartRow(std::string & rowKey) { + rowKey_ = rowKey; +} + +void Scan::setSmall(bool &isSmall) { + small_ = isSmall; +} + +void Scan::setCaching(int &cache) { + cache_ = cache; +} + +void Scan::setConsistency(std::string & consistency) { + consistency_ = consistency; +} + +void Scan::setCacheBlocks(bool & cacheBlocks) { + cacheBlocks_ = cacheBlocks; +} + +void Scan::setAllowPartialResults(bool & allowPartialResults) { + allowPartialResults_ = allowPartialResults; +} + +void Scan::setLoadColumnFamiliesOnDemandValue(bool & loadColumnFamiliesOnDemandValue) { + loadColumnFamiliesOnDemandValue_ = loadColumnFamiliesOnDemandValue; +} + +void Scan::setMaxVersions(int & maxVersions) { + maxVersions_ = maxVersions; +} + +bool & Scan::isReversed() { + return reversed_; +} + +std::string & Scan::getStartRow() { + return rowKey_; +} + +bool & Scan::isSmall() { + return small_; +} + +int & Scan::getCaching() { + return cache_; +} + +std::string & Scan::getConsistency() { + return consistency_; +} + +bool & Scan::getCacheBlocks() { + return cacheBlocks_; +} + +bool & Scan::getAllowPartialResults() { + return allowPartialResults_; +} + +bool & Scan::getLoadColumnFamiliesOnDemandValue() { + return loadColumnFamiliesOnDemandValue_; +} + +int & Scan::getMaxVersions() { + return maxVersions_; +} diff --git a/hbase-native-client/src/core/scan.h b/hbase-native-client/src/core/scan.h new file mode 100644 index 0000000..8ac913b --- /dev/null +++ b/hbase-native-client/src/core/scan.h @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include + +class Scan { +public: + Scan(); + ~Scan(); + +public: + void setReversed(bool &reversed); + void setStartRow(std::string & rowKey); + void setSmall(bool &isSmall); + void setCaching(int &cache); + void setConsistency(std::string & consistency); + void setCacheBlocks(bool & cacheBlocks); + void setAllowPartialResults(bool & allowPartialResults); + void setLoadColumnFamiliesOnDemandValue(bool & loadColumnFamiliesOnDemandValue); + void setMaxVersions(int & maxVersions); + + bool & isReversed(); + std::string & getStartRow(); + bool & isSmall(); + int & getCaching(); + std::string & getConsistency(); + bool & getCacheBlocks(); + bool & getAllowPartialResults(); + bool & getLoadColumnFamiliesOnDemandValue(); + int & getMaxVersions(); + + +private: + bool reversed_; + std::string rowKey_; + bool small_; + int cache_; + std::string consistency_; + bool cacheBlocks_; + bool allowPartialResults_; + bool loadColumnFamiliesOnDemandValue_; + int maxVersions_; +}; diff --git a/hbase-native-client/src/core/scanner.cc b/hbase-native-client/src/core/scanner.cc index a10e444..2410a20 100644 --- a/hbase-native-client/src/core/scanner.cc +++ b/hbase-native-client/src/core/scanner.cc @@ -17,4 +17,4 @@ * */ -#include "core/scanner.h" +#include "scanner.h" diff --git a/hbase-native-client/src/core/scanner.h b/hbase-native-client/src/core/scanner.h index 257583b..f2090f4 100644 --- a/hbase-native-client/src/core/scanner.h +++ b/hbase-native-client/src/core/scanner.h @@ -17,9 +17,24 @@ * */ -#ifndef CORE_SCANNER_H_ -#define CORE_SCANNER_H_ +#pragma once -class Scanner { -}; -#endif // CORE_SCANNER_H_ +class Scanner {}; + + +#if 0 +Scan addColumn(byte[] family, byte[] qualifier) +Scan addFamily(byte[] family) +Consistency getConsistency() +byte[] getStartRow() +byte[] getStopRow() +Scan setConsistency(Consistency consistency) +Scan setStartRow(byte[] startRow) +Scan setStopRow(byte[] stopRow) + + +-- void close() +-- Table getTable(TableName tableName) +-- boolean isClosed() +-- Admin getAdmin() +#endif diff --git a/hbase-native-client/src/core/server_node_connection.cc b/hbase-native-client/src/core/server_node_connection.cc new file mode 100644 index 0000000..562ef0e --- /dev/null +++ b/hbase-native-client/src/core/server_node_connection.cc @@ -0,0 +1,266 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "server_node_connection.h" + +#include "../rpc/generated/RPC.pb.h" +#include "../rpc/generated/Master.pb.h" + +#include "../util/Utils.h" + +#include "return_codes.h" +#include + +#include +#include +#include +#include +#include + +using namespace Poco::Net; + +::google::protobuf::uint32 ServerNodeConnection::rpc_call_id_ = 0; + +ServerNodeConnection::ServerNodeConnection(const std::string &host_name, + const int &port, const std::string &service_name, + const std::string &user_name):socket_(new StreamSocket()) { + connected_ = false; + host_name_ = host_name; + user_name_ = user_name; + port_ = port; + service_name_ = service_name; +} + +ServerNodeConnection::~ServerNodeConnection() { + if (connected_) { + delete socket_; + socket_ = NULL; + } +} + +void ServerNodeConnection::EnsureConnected() { + if (connected_) { + return; + } + + SocketAddress sa(host_name_, port_); + + socket_ = new StreamSocket(); + socket_->connect(sa); + socket_->setKeepAlive(true); + + //Create Preamble + //HConstants.RPC_HEADER + //HConstants.RPC_CURRENT_VERSION + //AuthMethod.code (SIMPLE which is 80) + + //public static final byte[] RPC_HEADER = new byte[] { 'H', 'B', 'a', 's' }; + //public static final byte RPC_CURRENT_VERSION = 0; + + char *preamble = new char[6]; + int i = 0; + preamble[i++] = 'H'; + preamble[i++] = 'B'; + preamble[i++] = 'a'; + preamble[i++] = 's'; + preamble[i++] = 0; + preamble[i++] = 80; + + socket_->sendBytes((const void *)preamble, 6); + delete []preamble; + + std::unique_ptr conHeader(new hbase::pb::ConnectionHeader()); + std::string service_name(service_name_); + conHeader->set_service_name(service_name); + + hbase::pb::UserInformation *userInfo = new hbase::pb::UserInformation(); + std::string *effective_user = new std::string(user_name_); + // userInfo->set_effective_user(effective_user); + + userInfo->set_allocated_effective_user(effective_user); + conHeader->set_allocated_user_info(userInfo); + + std::string *codecClass = new std::string("org.apache.hadoop.hbase.codec.KeyValueCodec"); + conHeader->set_allocated_cell_block_codec_class(codecClass); + + hbase::pb::VersionInfo *versionInfo = new hbase::pb::VersionInfo(); + std::string version("2.0.0-SNAPSHOT"); +// versionInfo->set_allocated_version(&version); + versionInfo->set_version(version); + versionInfo->set_version_major(2); + versionInfo->set_version_minor(0); + std::string versionUrl("git://localhost.localdomain/home/vmthattikota/source_control/hbase"); + versionInfo->set_url(versionUrl); + std::string revision("b5dcf5d412ad10b52601a671383d933129ee5c5e"); + versionInfo->set_revision(revision); + std::string user(user_name_); + versionInfo->set_user(user); + std::string date("Tue Jan 26 12:46:34 PST 2016"); + versionInfo->set_date(date); + // std::string srcChecksum("8ea4d527deda8c1248f37b073e0b5453"); + std::string srcChecksum("e0e165015da2a07fb5aa2ac3dfb61de6"); + versionInfo->set_src_checksum(srcChecksum); + + conHeader->set_allocated_version_info(versionInfo); + + int totalSize = conHeader->ByteSize(); + + int bufferSize = totalSize + 4; + google::protobuf::uint8 *packet = new google::protobuf::uint8[bufferSize]; + ::memset(packet, '\0', bufferSize); + + google::protobuf::io::ArrayOutputStream aos(packet, bufferSize); + google::protobuf::io::CodedOutputStream *coded_output = new google::protobuf::io::CodedOutputStream(&aos); + + unsigned int uiTotalSize = totalSize; + Utils::swapByteOrder(uiTotalSize); + coded_output->WriteRaw(&uiTotalSize, 4); + bool success = conHeader->SerializeToCodedStream(coded_output); + + int bytesSent = socket_->sendBytes(packet, aos.ByteCount()); + delete []packet; + if (bytesSent != bufferSize) { + throw "Incorrect bytes sent"; + } + + connected_ = true; +} + +std::unique_ptr ServerNodeConnection:: + CallMethod(const std::string &method_name, + const google::protobuf::Message ¶m, + google::protobuf::Message &default_response_type, + CellScanner &cell_scanner) { + + EnsureConnected(); + hbase::pb::RequestHeader *rh = new hbase::pb::RequestHeader(); + rh->set_call_id(ServerNodeConnection::rpc_call_id_++); + std::string *methodName = new std::string(method_name); + rh->set_allocated_method_name(methodName); + rh->set_request_param(true); + + int totalSize = 0; + totalSize += rh->ByteSize(); + totalSize += google::protobuf::io::CodedOutputStream::VarintSize32(rh->ByteSize()); + + totalSize += param.ByteSize(); + totalSize += google::protobuf::io::CodedOutputStream::VarintSize32(param.ByteSize()); + + int bufferSize = totalSize + 4; + char *packet = new char[bufferSize]; + ::memset(packet, '\0', bufferSize); + + google::protobuf::io::ArrayOutputStream aos(packet, bufferSize); + google::protobuf::io::CodedOutputStream *coded_output = new google::protobuf::io::CodedOutputStream(&aos); + + unsigned int uiTotalSize = totalSize; + Utils::swapByteOrder(uiTotalSize); + coded_output->WriteRaw(&uiTotalSize, 4); + coded_output->WriteVarint32(rh->ByteSize()); + bool success = rh->SerializeToCodedStream(coded_output); + coded_output->WriteVarint32(param.ByteSize()); + success = param.SerializeToCodedStream(coded_output); + + int bytesSent = socket_->sendBytes(packet, aos.ByteCount()); + if (DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Request:[" << bytesSent << "]: "; + std::cerr << rh->DebugString() << param.DebugString() << std::endl; + } + + int recvBuffSize = 1360; + char recvBuffer[recvBuffSize]; + //! Changed by Sudeep S to receive data in a vetor of chracters + //! At present in list tables we are receiving data in packets of 1360 bytes + //! TODO will have to chekc why this is happening + //char *pOffset = recvBuffer; + //int bytesReceived = socket_->receiveBytes(recvBuffer, recvBuffSize); + + std::vector vectNwPkt; + int bytesReceived = 0; + while(true){ + bytesReceived = socket_->receiveBytes(recvBuffer, recvBuffSize); + vectNwPkt.insert (vectNwPkt.end(), recvBuffer, recvBuffer+bytesReceived); + if (DEBUG){ + std::cerr << __LINE__ << ":" << __func__ << " [DBG] " << bytesReceived << "/" + << recvBuffSize << " Bytes Recvd" << std::endl; + } + if( (bytesReceived < recvBuffSize) || (0 == bytesReceived) ){ + break; + } + } + int totalBytesReceived = vectNwPkt.size(); + char *pOffset = &vectNwPkt[0]; + + unsigned int *pBuffer = (unsigned int *)pOffset; + pOffset += 4; + Utils::swapByteOrder(*pBuffer); + uiTotalSize = *pBuffer; + + google::protobuf::io::ArrayInputStream arrInput(pOffset, totalBytesReceived-4); + google::protobuf::io::CodedInputStream input(&arrInput); + + hbase::pb::ResponseHeader resp_header; + + unsigned int message1_size = 0; + input.ReadVarint32(&message1_size); + google::protobuf::io::CodedInputStream::Limit limit = input.PushLimit(message1_size); + success = resp_header.ParseFromCodedStream(&input); + input.PopLimit(limit); + if (DEBUG) { + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: " + << " Has Exception: " << (resp_header.has_exception() ? resp_header.exception().stack_trace() : "No Exception") + << " Has Meta Cell Block: " << (resp_header.has_cell_block_meta() ? "True" : "False") + << std::endl; + } + + google::protobuf::Message *pmsg = (google::protobuf::Message *)0; + + if (!resp_header.has_exception()) { + pmsg = default_response_type.New(); +// hbase::pb::ScanResponse scanResp; + google::protobuf::uint32 message_size = 0; + input.ReadVarint32(&message_size); + limit = input.PushLimit(message_size); + success = pmsg->ParseFromCodedStream(&input); + input.PopLimit(limit); + if (DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << bytesReceived << "]: "; + std::cerr << resp_header.DebugString() << pmsg->DebugString() << std::endl; + } + + char *cellBlock = NULL; + + if (resp_header.has_cell_block_meta()) { + hbase::pb::CellBlockMeta cbMeta = resp_header.cell_block_meta(); + int size = cbMeta.length(); + + cellBlock = new char[size]; + std::memset(cellBlock, '\0', size); + bool success = input.ReadRaw(cellBlock, size); + cell_scanner.SetData(cellBlock, size); + } + + std::unique_ptr msg (pmsg); + return msg; + } + vectNwPkt.clear(); + std::unique_ptr msg; + return msg; +} diff --git a/hbase-native-client/src/core/server_node_connection.h b/hbase-native-client/src/core/server_node_connection.h new file mode 100644 index 0000000..23edd15 --- /dev/null +++ b/hbase-native-client/src/core/server_node_connection.h @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include + +#include +#include + +#include "cell_scanner.h" + +class ServerNodeConnection { +public: + ServerNodeConnection(const std::string &host_name, + const int &port, const std::string &service_name, + const std::string &user_name); + ~ServerNodeConnection(); + +public: + std::unique_ptr + CallMethod( + const std::string &method_name, + const google::protobuf::Message ¶m, + google::protobuf::Message &default_response_type, + CellScanner &cell_scanner); + +private: + void EnsureConnected(); + +private: + bool connected_; + std::string host_name_; + int port_; + std::string service_name_; + std::string user_name_; + + Poco::Net::StreamSocket *socket_; + + static ::google::protobuf::uint32 rpc_call_id_; +}; diff --git a/hbase-native-client/src/core/table.cc b/hbase-native-client/src/core/table.cc new file mode 100644 index 0000000..67e79dc --- /dev/null +++ b/hbase-native-client/src/core/table.cc @@ -0,0 +1,221 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include +#include "table.h" + +#include "pb_request_builder.h" + +Table::Table(TableName *tableName, Connection *connection):tableName(tableName), +connection_(connection), +cleanupConnectionOnClose(false), isClosed(false) { + rpcClient_ = connection->getRpcClient(); +} + + +Table::Table(const Table &table){ + + std::cerr << "Copy" << std::endl; + this->tableName = table.tableName; +} + +Table& Table::operator=(const Table &table){ + + std::cerr << "Assignment" << std::endl; + return *this; + +} + +Result *Table::get(Get &get){ + Result *result = NULL; + std::vector cells; + std::string row = get.GetRowAsString(); + std::string tableRegionInfo(""); + std::string tableRegionIP; + int tableRsPort = 0; + int counter = 1; + while (tableRegionInfo == ""){ + connection_->findTheRegionServerForTheTable(tableName->GetName(), row, tableRegionInfo, tableRegionIP, tableRsPort); + if(tableRegionInfo == "") + usleep(2000*(counter+=1)); + } + std::unique_ptr req(ProtoBufRequestBuilder::CreateGetRequest(get, tableRegionInfo)); + + hbase::pb::GetResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + const std::string user_name(connection_->getUser()); + const std::string service_name("ClientService"); + const std::string method_name("Get"); + + std::unique_ptrptrResp(rpcClient_->Call(service_name, method_name, *req, tableRegionIP, tableRsPort, user_name, + *def_resp_type, cell_scanner)); + + def_resp_type = ptrResp.get(); + if(NULL != def_resp_type){ + hbase::pb::GetResponse *resp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << resp->ByteSize() << "]: " << resp->DebugString() << std::endl; + } + hbase::pb::Result resultObj = resp->result(); + + if (DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: \n" + << resultObj.DebugString() + /* << " Result Associated Cell Count: " << (resultObj.has_associated_cell_count() ? "True" : "False") + << "; Exists: " << (resultObj.has_exists() ? "True" : "False") + << "; Stale: " << (resultObj.has_partial() ? "True" : "False") + << "; Partial: " << (resultObj.has_stale() ? "True" : "False") + */<< "; Cell Size: " << resultObj.cell_size() + << std::endl; + } + + if (resultObj.has_exists()) { + if ( (resultObj.cell_size() > 0) || + (resultObj.has_associated_cell_count() && resultObj.associated_cell_count() > 0) ) { + throw "bad proto: exists with cells is no allowed ";//new IllegalArgumentException("bad proto: exists with cells is no allowed " + proto); + } + if (resultObj.stale()) { + //return resultObj.exists() ? EMPTY_RESULT_EXISTS_TRUE_STALE :EMPTY_RESULT_EXISTS_FALSE_STALE; + } + //return resultObj.exists() ? EMPTY_RESULT_EXISTS_TRUE : EMPTY_RESULT_EXISTS_FALSE; + } + int cellSize = resultObj.cell_size(); + + std::vector cells; + for (int var = 0; var < cellSize; ++var) { + const hbase::pb::Cell &cell = resultObj.cell(var); + if(cell.has_cell_type()){ + cells.push_back(Cell( cell.row(), cell.family(), cell.qualifier(), + cell.timestamp(), cell.value(), cell.tags(), + static_cast(cell.cell_type()))); + } + } + result = new Result(cells, resultObj.has_exists(), resultObj.has_stale(), resultObj.has_partial()); + }else{ + throw std::string("Exception Received"); + } + return result; +} + +bool Table::put(Put &put){ + + std::string row = put.GetRowAsString(); + std::string tableRegionInfo(""); + std::string tableRegionIP; + int tableRsPort = 0; + int counter = 1; + while (tableRegionInfo == ""){ + connection_->findTheRegionServerForTheTable(tableName->GetName(), row, tableRegionInfo, tableRegionIP, tableRsPort); + if(tableRegionInfo == "") + usleep(2000*(counter+=1)); + } + + std::unique_ptr putReq(ProtoBufRequestBuilder::CreatePutRequest(put, tableRegionInfo)); + + hbase::pb::MultiResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + const std::string user_name(connection_->getUser()); + const std::string service_name("ClientService"); + const std::string method_name("Multi"); + + std::unique_ptrptrResp(rpcClient_->Call(service_name, method_name, *putReq, tableRegionIP, tableRsPort, user_name, + *def_resp_type, cell_scanner)); + + def_resp_type = ptrResp.get(); + if(NULL != def_resp_type){ + hbase::pb::MultiResponse *putResp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << putResp->ByteSize() << "]: " << putResp->DebugString() << std::endl; + } + if(putResp->has_processed()) + std::cerr << std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Put processed[" << putResp->processed() << "]" << std::endl; + }else{ + throw std::string("Exception Received"); + } + return true; +} + +bool Table::deleteRow(Delete &deleteObj){ + + std::string row = deleteObj.GetRowAsString(); + std::string tableRegionInfo; + std::string tableRegionIP; + int tableRsPort = 0; + int counter = 1; + while (tableRegionInfo == ""){ + connection_->findTheRegionServerForTheTable(tableName->GetName(), row, tableRegionInfo, tableRegionIP, tableRsPort); + usleep(2000*(counter+=1)); + } + + std::unique_ptr deleteReq(std::move(ProtoBufRequestBuilder::CreateDeleteRequest(deleteObj, tableRegionInfo))); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << deleteReq->ByteSize() << "]: " << deleteReq->DebugString() << std::endl; + } + + hbase::pb::MutateResponse response_type; + google::protobuf::Message *def_resp_type = &response_type; + CellScanner cell_scanner; + + const std::string user_name(connection_->getUser()); + const std::string service_name("ClientService"); + const std::string method_name("Mutate"); + + + std::unique_ptr ptrResp(rpcClient_->Call(service_name, method_name, *deleteReq, tableRegionIP, tableRsPort, user_name, + *def_resp_type, cell_scanner)); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << ptrResp->ByteSize() << "]: " << ptrResp->DebugString() << std::endl; + } + + def_resp_type = ptrResp.get(); + if(NULL != def_resp_type){ + hbase::pb::MutateResponse *mutateResp = dynamic_cast(def_resp_type); + if(DEBUG){ + std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: Response:[" << mutateResp->ByteSize() << "]: " << mutateResp->DebugString() << std::endl; + } + if(mutateResp->has_processed()) + std::cerr << std::cerr << "[" << __LINE__ << ":" << __func__ << "] DBG: " << mutateResp->processed(); + + if(mutateResp->has_result()){ + hbase::pb::Result resultObj = mutateResp->result(); + } + }else{ + throw std::string("Exception Received"); + } + return true; +} + +void Table::close(){ + if(cleanupConnectionOnClose) + if(NULL != connection_) + connection_->close(); + isClosed = true; + return; +} + +TableName *Table::getName(){ + if(nullptr == this->tableName) + return nullptr; + else + return this->tableName; +} diff --git a/hbase-native-client/src/core/table.h b/hbase-native-client/src/core/table.h new file mode 100644 index 0000000..b08e344 --- /dev/null +++ b/hbase-native-client/src/core/table.h @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "table_name.h" +#include "get.h" +#include "put.h" +#include "delete.h" +#include "result.h" + +#include "rpc_client.h" +#include "connection.h" + +#include +#include +#include +#include +#include + +class Connection; + +class Table{ +private: + + TableName *tableName; + Connection *connection_; + std::shared_ptr rpcClient_; + bool cleanupConnectionOnClose; + bool isClosed; +public: + Table(TableName *tableName, Connection *connection); + Table(const Table &); + Table& operator=(const Table &); + + Result *get(Get &get); + bool put(Put &put); + bool deleteRow(Delete &deleteObj); + void close(); + TableName *getName(); +}; diff --git a/hbase-native-client/src/core/tableSchema.cc b/hbase-native-client/src/core/tableSchema.cc new file mode 100644 index 0000000..c1e1408 --- /dev/null +++ b/hbase-native-client/src/core/tableSchema.cc @@ -0,0 +1,23 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "tableSchema.h" + + + diff --git a/hbase-native-client/src/core/tableSchema.h b/hbase-native-client/src/core/tableSchema.h new file mode 100644 index 0000000..12560f5 --- /dev/null +++ b/hbase-native-client/src/core/tableSchema.h @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include +#include + +/* + * + */ +typedef struct { + std::string colFamily; + std::map colFamAttributes; + std::map colFamConfiguration; +}ColumnFamilySchemaOld; + + + + +class TableSchemaOld { +public: + typedef struct { + std::string nameSpace; + std::string qualifier; + }TableName; + TableName tableName; + std::map tableAttributes; + std::vector colFamily; + std::map tableConfig; + TableSchemaOld(); + virtual ~TableSchemaOld(); +}; diff --git a/hbase-native-client/src/core/table_name.cc b/hbase-native-client/src/core/table_name.cc new file mode 100644 index 0000000..07be68d --- /dev/null +++ b/hbase-native-client/src/core/table_name.cc @@ -0,0 +1,163 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "table_name.h" + +const std::string TableName::NAMESPACE_DELIM = ":"; +const std::string TableName::DEFAULT_NAMESPACE = "default"; +const std::string TableName::SYSTEM_NAMESPACE = "hbase"; +const std::string TableName::OLD_META_STR = ".META."; +const std::string TableName::OLD_ROOT_STR = "-ROOT-"; + +TableName* TableName::valueOf(const std::string& tableName){ + + TableName *tableNameObj = NULL; + size_t pos = tableName.find(NAMESPACE_DELIM, 0); + if(std::string::npos != pos){ + tableNameObj = createTableNameIfNecessary(tableName.substr(0, pos), tableName.substr(pos+1)); + }else{ + tableNameObj = createTableNameIfNecessary(TableName::DEFAULT_NAMESPACE, tableName); + } + return tableNameObj; +} + +TableName* TableName::createTableNameIfNecessary(const std::string & nameSpace, const std::string &qualifier){ + + //TODO check in tablecache as in Java if not present call construuctor and add in cache + TableName *tableNameObj = new TableName(nameSpace, qualifier); + return tableNameObj; +} + +void TableName::isLegalFulyQualifiedTableName(const std::string &fullyQfdTableName){ + if(0 == fullyQfdTableName.length()) + throw std::string("Full Qualified Table Name name must not be empty"); + +} + +void TableName::isLegalNameSpaceName(const std::string &nameSpace){ + + if(0 == nameSpace.length()) + throw std::string("Namespace name must not be empty"); + for(int i =0; i < nameSpace.length(); i++){ + if (std::isalnum(nameSpace[i]) || '_' == nameSpace[i]) { + continue; + }else + throw std::string("Invalid character in namespace encountered"); + /* + * throw new IllegalArgumentException("Illegal character <" + namespaceName[i] + + * "> at " + i + ". Namespaces can only contain " + + * "'alphanumeric characters': i.e. [a-zA-Z_0-9]: " + Bytes.toString(namespaceName, + * start, end)); + * + */ + } +} + +void TableName::isLegalTableQualifierName(const std::string &qualifier){ + if(0 == qualifier.length()) + throw std::string("Qualifier name must not be empty"); + if ('.' == qualifier[0] || '-' == qualifier[0]){ + + } + for (int i =0; i < qualifier.length(); i++){ + if (std::isalnum(qualifier[i]) || '_' == qualifier[i] || '-' == qualifier[i] || '.' == qualifier[i]) { + continue; + }else + throw std::string("Invalid character in qualifier encountered"); + } + +} + +TableName::TableName() { + +} + +TableName::TableName(const TableName &ctableName){ + + std::cerr <<"Copy Table" << std::endl; + this->nameSpace = ctableName.nameSpace; + this->qualifier = ctableName.qualifier; + this->systemTable = ctableName.systemTable; + this->name = ctableName.name; +} + +TableName& TableName::operator= (const TableName &ctableName){ + + std::cerr <<"Assign Table" << std::endl; + this->nameSpace = ctableName.nameSpace; + this->qualifier = ctableName.qualifier; + this->systemTable = ctableName.systemTable; + this->name = ctableName.name; + + return *this; + +} + +TableName::TableName(const std::string & nameSpace, const std::string &qualifier): + nameSpace(nameSpace), + qualifier(qualifier), + systemTable(false), + name(""){ + + if(TableName::OLD_ROOT_STR == this->qualifier) + throw std::string("Deprecated"); + if(TableName::OLD_META_STR == this->qualifier) + throw std::string("No longer exists Meta table is renamed now"); + if(this->nameSpace == TableName::DEFAULT_NAMESPACE){ + this->name = this->qualifier; + }else{ + if(this->nameSpace == TableName::SYSTEM_NAMESPACE){ + this->systemTable = true; + }else { + this->name = this->nameSpace; + this->name += TableName::NAMESPACE_DELIM; + } + this->name += this->qualifier; + } + isLegalNameSpaceName(this->nameSpace); + isLegalTableQualifierName(this->qualifier); +} + +TableName::~TableName() { + // TODO Auto-generated destructor stub + //std::cerr << "Now you callibe TableName destructor" << std::endl; +} + +bool TableName::operator <(const TableName & rhs) const { + + if (this->name < rhs.name ) + return true; + + if (this->name > rhs.name) + return false; + + if (this->qualifier < rhs.qualifier) + return true; + + if (this->qualifier > rhs.qualifier) + return false; + + return false; +} + +const std::string &TableName::GetName() const{ + + return this->name; +} diff --git a/hbase-native-client/src/core/table_name.h b/hbase-native-client/src/core/table_name.h new file mode 100644 index 0000000..1899768 --- /dev/null +++ b/hbase-native-client/src/core/table_name.h @@ -0,0 +1,59 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include + +class TableName { + public: + TableName(); + + private: + std::string nameSpace; + std::string qualifier; + bool systemTable; + std::string name; //nameSpace+:+qualifier + + TableName(const std::string & nameSpace, const std::string &tableName); + public: + static TableName* valueOf(const std::string &); + static TableName* createTableNameIfNecessary(const std::string & nameSpace, const std::string &tableName); + static void isLegalFulyQualifiedTableName(const std::string &fullyQfdTableName); + static void isLegalNameSpaceName(const std::string &nameSpace); + static void isLegalTableQualifierName(const std::string &qualifier); + + TableName(const TableName &ctableName); + TableName& operator= (const TableName &ctableName); + virtual ~TableName(); + void GetTableNameAsString(); + void GetQualifierNameAsString(); + const std::string &GetName() const; + public: + bool operator <(const TableName & rhs) const; + + const static std::string NAMESPACE_DELIM; + const static std::string DEFAULT_NAMESPACE; + const static std::string SYSTEM_NAMESPACE; + const static std::string OLD_META_STR; + const static std::string OLD_ROOT_STR; + +}; + diff --git a/hbase-native-client/src/core/table_schema.cc b/hbase-native-client/src/core/table_schema.cc new file mode 100644 index 0000000..1b496bf --- /dev/null +++ b/hbase-native-client/src/core/table_schema.cc @@ -0,0 +1,240 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include + +#include "table_schema.h" + +const std::string TableSchema::SPLIT_POLICY = "SPLIT_POLICY"; +const std::string TableSchema::OWNER = "OWNER"; +const std::string TableSchema::MAX_FILESIZE = "MAX_FILESIZE"; +const std::string TableSchema::READONLY = "READONLY"; +const std::string TableSchema::COMPACTION_ENABLED = "COMPACTION_ENABLED"; +const std::string TableSchema::MEMSTORE_FLUSHSIZE = "MEMSTORE_FLUSHSIZE"; +const std::string TableSchema::FLUSH_POLICY = "FLUSH_POLICY"; +const std::string TableSchema::IS_ROOT = "IS_ROOT"; +const std::string TableSchema::IS_META = "IS_META"; +const std::string TableSchema::DEFERRED_LOG_FLUSH = "DEFERRED_LOG_FLUSH"; +const std::string TableSchema::DURABILITY = "DURABILITY"; +const std::string TableSchema::REGION_REPLICATION = "REGION_REPLICATION"; +const std::string TableSchema::REGION_MEMSTORE_REPLICATION = "REGION_MEMSTORE_REPLICATION"; +const std::string TableSchema::NORMALIZATION_ENABLED = "NORMALIZATION_ENABLED"; + +const bool TableSchema::DEFAULT_READONLY = false; +const bool TableSchema::DEFAULT_COMPACTION_ENABLED = true; +const bool TableSchema::DEFAULT_NORMALIZATION_ENABLED = false; +const long TableSchema::DEFAULT_MEMSTORE_FLUSH_SIZE = 1024*1024*128L; +const int TableSchema::DEFAULT_REGION_REPLICATION = 1; +const bool TableSchema::DEFAULT_REGION_MEMSTORE_REPLICATION = true; +const HBaseConstants::DURABILITY_TYPE TableSchema::DEFAULT_DURABLITY = HBaseConstants::DURABILITY_TYPE::USE_DEFAULT; + +const BYTE_ARRAY TableSchema::OWNER_KEY = Bytes::ToBytes(TableSchema::OWNER); +const BYTE_ARRAY TableSchema::MAX_FILESIZE_KEY = Bytes::ToBytes(TableSchema::MAX_FILESIZE); +const BYTE_ARRAY TableSchema::READONLY_KEY = Bytes::ToBytes(TableSchema::READONLY); +const BYTE_ARRAY TableSchema::COMPACTION_ENABLED_KEY = Bytes::ToBytes(TableSchema::COMPACTION_ENABLED); +const BYTE_ARRAY TableSchema::MEMSTORE_FLUSHSIZE_KEY = Bytes::ToBytes(TableSchema::MEMSTORE_FLUSHSIZE); +const BYTE_ARRAY TableSchema::IS_ROOT_KEY = Bytes::ToBytes(TableSchema::IS_ROOT); +const BYTE_ARRAY TableSchema::IS_META_KEY = Bytes::ToBytes(TableSchema::IS_META); +const BYTE_ARRAY TableSchema::DEFERRED_LOG_FLUSH_KEY = Bytes::ToBytes(TableSchema::DEFERRED_LOG_FLUSH); +const BYTE_ARRAY TableSchema::DURABILITY_KEY = Bytes::ToBytes(TableSchema::DURABILITY); +const BYTE_ARRAY TableSchema::REGION_REPLICATION_KEY = Bytes::ToBytes(TableSchema::REGION_REPLICATION); +const BYTE_ARRAY TableSchema::REGION_MEMSTORE_REPLICATION_KEY = Bytes::ToBytes(TableSchema::REGION_MEMSTORE_REPLICATION); +const BYTE_ARRAY TableSchema::NORMALIZATION_ENABLED_KEY = Bytes::ToBytes(TableSchema::NORMALIZATION_ENABLED); + +const BYTE_ARRAY TableSchema::FALSE = Bytes::ToBytes(false); +const BYTE_ARRAY TableSchema::TRUE = Bytes::ToBytes(true); +const bool TableSchema::DEFAULT_DEFERRED_LOG_FLUSH = false; + +const std::map TableSchema::DEFAULT_VALUES = TableSchema::PopulateDefaultValues(); +const std::vector RESERVED_KEYWORDS = TableSchema::PopulateStaticVals(); + +std::vector TableSchema::PopulateStaticVals(){ + + std::vector reserved_keywords; + for(const auto &key_value : TableSchema::DEFAULT_VALUES){ + reserved_keywords.push_back(Bytes::ToBytes(key_value.first)); + } + + reserved_keywords.push_back(TableSchema::IS_ROOT_KEY); + reserved_keywords.push_back(TableSchema::IS_META_KEY); + + return reserved_keywords; +} + +std::map TableSchema::PopulateDefaultValues(){ + + std::map default_values; + default_values.insert(std::pair(TableSchema::MAX_FILESIZE, Poco::NumberFormatter::format(HBaseConstants::HConstants::DEFAULT_MAX_FILE_SIZE) )); + default_values.insert(std::pair(TableSchema::READONLY, Poco::NumberFormatter::format(TableSchema::DEFAULT_READONLY))); + default_values.insert(std::pair(TableSchema::MEMSTORE_FLUSHSIZE, Poco::NumberFormatter::format(TableSchema::DEFAULT_MEMSTORE_FLUSH_SIZE))); + default_values.insert(std::pair(TableSchema::DURABILITY, Mutation::DURABILITY_TYPE_TO_STRING.at(HBaseConstants::DURABILITY_TYPE::USE_DEFAULT))); + default_values.insert(std::pair(TableSchema::REGION_REPLICATION, Poco::NumberFormatter::format(TableSchema::DEFAULT_REGION_REPLICATION))); + default_values.insert(std::pair(TableSchema::NORMALIZATION_ENABLED, Poco::NumberFormatter::format(TableSchema::DEFAULT_NORMALIZATION_ENABLED))); + return default_values; +} + +TableSchema::TableSchema() { + // TODO Auto-generated constructor stub + + +} + +TableSchema::TableSchema(TableName *table_name):table_name_(table_name){ + +} + +TableSchema::TableSchema(const TableSchema &ctable_schema){ + + this->table_name_ = ctable_schema.table_name_; + this->table_metadata_values_ = ctable_schema.table_metadata_values_; + this->table_configuration_ = ctable_schema.table_configuration_; + this->families_ = ctable_schema.families_; + +} + +TableSchema& TableSchema::operator= (const TableSchema &ctable_schema){ + + this->table_name_ = ctable_schema.table_name_; + this->table_metadata_values_ = ctable_schema.table_metadata_values_; + this->table_configuration_ = ctable_schema.table_configuration_; + this->families_ = ctable_schema.families_; + + return *this; + +} + +TableSchema::~TableSchema() { + // TODO Auto-generated destructor stub + +} + + +TableSchema TableSchema::AddFamily(const ColumnFamilySchema &family) { + + if (family.GetName().size() <= 0) { + throw "Family name cannot be null or empty"; + } + for(const auto &key_value : this->families_){ + if(Bytes::Equals(key_value.first, family.GetName())){ + std::string return_str(""); + return_str += "Family '"; + return_str += family.GetNameAsString(); + return_str += "' already exists so cannot be added"; + throw return_str; + } + } + this->families_.insert(std::pair(family.GetName(), family)); + return *this; +} + +const std::map &TableSchema::GetFamily() const{ + + return this->families_; +} + +const TableName &TableSchema::GetTableName() const{ + + return *(this->table_name_); +} + +const std::map &TableSchema::GetMetadata() const{ + return this->table_metadata_values_; +} + +const std::map &TableSchema::GetConfiguration() const{ + return this->table_configuration_; +} + +TableSchema TableSchema::SetValue(const std::string &key, const std::string &value) { + + if(0 == value.size()){ + this->RemoveValue(key); + }else{ + + this->SetValue(Bytes::ToBytes(key), Bytes::ToBytes(value)); + } + return *this; +} + +TableSchema TableSchema::SetValue(const BYTE_ARRAY &key, const BYTE_ARRAY &value) { + + Bytes key_to_set(key); + bool found = false; + for(std::map::iterator itr_bytes = this->table_metadata_values_.begin(); itr_bytes != this->table_metadata_values_.end(); ++itr_bytes){ + if(Bytes::Equals(key, itr_bytes->first->Get())){ + found = true; + itr_bytes->second->Set(value); + break; + } + } + if(!found){ + Bytes *key_to_set = new Bytes(key); + Bytes *value_to_set = new Bytes(value); + this->table_metadata_values_.insert(std::pair(key_to_set, value_to_set)); + } + + return *this; +} + +TableSchema TableSchema::RemoveValue(const std::string &key){ + + this->RemoveValue(Bytes::ToBytes(key)); + return *this; +} + +TableSchema TableSchema::RemoveValue(const BYTE_ARRAY &key){ + + std::map::iterator itr_bytes = this->table_metadata_values_.begin(); + for( ; itr_bytes != this->table_metadata_values_.end(); ++itr_bytes){ + if(Bytes::Equals(key, itr_bytes->first->Get())){ + delete(itr_bytes->second); + this->table_metadata_values_.erase(itr_bytes); + break; + } + } + + return *this; +} + + +TableSchema TableSchema::SetConfiguration(const std::string &key, const std::string &value){ + + if(0 == value.size()){ + this->RemoveConfiguration(key); + }else{ + this->table_configuration_[key] = value; + } + + return *this; +} + +TableSchema TableSchema::RemoveConfiguration(const std::string &key){ + + try { + + this->table_configuration_.erase(this->table_configuration_.at(key)); + + }catch(const std::out_of_range &oor){ + + std::cerr << "Cant remove Key " << key << "from column configuration" << std::endl; + } + + return *this; +} + diff --git a/hbase-native-client/src/core/table_schema.h b/hbase-native-client/src/core/table_schema.h new file mode 100644 index 0000000..e2d9a1d --- /dev/null +++ b/hbase-native-client/src/core/table_schema.h @@ -0,0 +1,222 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include +#include +#include + +#include "bytes.h" +#include "column_family_schema.h" +#include "hconstants.h" +#include "mutation.h" +#include "table_name.h" + +class TableSchema { + public: + static const std::string SPLIT_POLICY; + + /** + * INTERNAL Used by HBase Shell interface to access this metadata + * attribute which denotes the maximum size of the store file after which + * a region split occurs + * + * @see #getMaxFileSize() + */ + static const std::string MAX_FILESIZE; + + static const std::string OWNER; + static const BYTE_ARRAY OWNER_KEY; + + /** + * INTERNAL Used by rest interface to access this metadata + * attribute which denotes if the table is Read Only + * + * @see #isReadOnly() + */ + static const std::string READONLY; + + /** + * INTERNAL Used by HBase Shell interface to access this metadata + * attribute which denotes if the table is compaction enabled + * + * @see #isCompactionEnabled() + */ + static const std::string COMPACTION_ENABLED; + + /** + * INTERNAL Used by HBase Shell interface to access this metadata + * attribute which represents the maximum size of the memstore after which + * its contents are flushed onto the disk + * + * @see #getMemStoreFlushSize() + */ + static const std::string MEMSTORE_FLUSHSIZE; + + static const std::string FLUSH_POLICY; + + /** + * INTERNAL Used by rest interface to access this metadata + * attribute which denotes if the table is a -ROOT- region or not + * + * @see #isRootRegion() + */ + static const std::string IS_ROOT; + + /** + * INTERNAL Used by rest interface to access this metadata + * attribute which denotes if it is a catalog table, either + * hbase:meta or -ROOT- + * + * @see #isMetaRegion() + */ + static const std::string IS_META; + + /** + * INTERNAL Used by HBase Shell interface to access this metadata + * attribute which denotes if the deferred log flush option is enabled. + * @deprecated Use {@link #DURABILITY} instead. + */ + static const std::string DEFERRED_LOG_FLUSH; + + /** + * INTERNAL {@link Durability} setting for the table. + */ + static const std::string DURABILITY; + + /** + * INTERNAL number of region replicas for the table. + */ + static const std::string REGION_REPLICATION; + + /** + * INTERNAL flag to indicate whether or not the memstore should be replicated + * for read-replicas (CONSISTENCY => TIMELINE). + */ + static const std::string REGION_MEMSTORE_REPLICATION; + + /** + * INTERNAL Used by shell/rest interface to access this metadata + * attribute which denotes if the table should be treated by region normalizer. + * + * @see #isNormalizationEnabled() + */ + static const std::string NORMALIZATION_ENABLED; + + + /** + * Constant that denotes whether the table is READONLY by default and is false + */ + static const bool DEFAULT_READONLY; + + /** + * Constant that denotes whether the table is compaction enabled by default + */ + static const bool DEFAULT_COMPACTION_ENABLED; + + /** + * Constant that denotes whether the table is normalized by default. + */ + static const bool DEFAULT_NORMALIZATION_ENABLED; + + /** + * Constant that denotes the maximum default size of the memstore after which + * the contents are flushed to the store files + */ + static const long DEFAULT_MEMSTORE_FLUSH_SIZE; + + static const int DEFAULT_REGION_REPLICATION; + + static const bool DEFAULT_REGION_MEMSTORE_REPLICATION; + + std::map tableAttributes; + std::vector colFamily; + std::map tableConfig; + + TableSchema(); + TableSchema(TableName *table_name); + TableSchema(const TableSchema &ctable_schema); + TableSchema& operator= (const TableSchema &ctable_schema); + virtual ~TableSchema(); + TableSchema AddFamily(const ColumnFamilySchema &family); + + TableSchema SetValue(const std::string &key, const std::string &value); + TableSchema SetValue(const BYTE_ARRAY &key, const BYTE_ARRAY &value); + TableSchema RemoveValue(const std::string &key); + TableSchema RemoveValue(const BYTE_ARRAY &key); + + TableSchema SetConfiguration(const std::string &key, const std::string &value); + TableSchema RemoveConfiguration(const std::string &key); + + const std::map &GetFamily() const; + const TableName &GetTableName() const; + const std::map &GetMetadata() const; + const std::map &GetConfiguration() const; + + static std::map PopulateDefaultValues(); + static std::vector PopulateStaticVals(); + + private: + + static const BYTE_ARRAY MAX_FILESIZE_KEY; + static const BYTE_ARRAY READONLY_KEY; + static const BYTE_ARRAY COMPACTION_ENABLED_KEY; + static const BYTE_ARRAY MEMSTORE_FLUSHSIZE_KEY; + static const BYTE_ARRAY IS_ROOT_KEY; + static const BYTE_ARRAY IS_META_KEY; + static const BYTE_ARRAY DEFERRED_LOG_FLUSH_KEY; + static const BYTE_ARRAY DURABILITY_KEY; + static const BYTE_ARRAY REGION_REPLICATION_KEY; + static const BYTE_ARRAY REGION_MEMSTORE_REPLICATION_KEY; + static const BYTE_ARRAY NORMALIZATION_ENABLED_KEY; + /** Default durability for HTD is USE_DEFAULT, which defaults to HBase-global default value */ + static const HBaseConstants::DURABILITY_TYPE DEFAULT_DURABLITY; + /* + * The below are ugly but better than creating them each time till we + * replace booleans being saved as std::strings with plain booleans. Need a + * migration script to do this. TODO. + */ + static const BYTE_ARRAY FALSE; + static const BYTE_ARRAY TRUE; + static const bool DEFAULT_DEFERRED_LOG_FLUSH; + + static const std::map DEFAULT_VALUES; + static const std::vector RESERVED_KEYWORDS; + + TableName *table_name_; + /** + * A map which holds the metadata information of the table. This metadata + * includes values like IS_ROOT, IS_META, DEFERRED_LOG_FLUSH, SPLIT_POLICY, + * MAX_FILE_SIZE, READONLY, MEMSTORE_FLUSHSIZE etc... + */ + std::map table_metadata_values_; + /** + * A map which holds the configuration specific to the table. + * The keys of the map have the same names as config keys and override the defaults with + * table-specific settings. Example usage may be for compactions, etc. + */ + std::map table_configuration_; + /** + * Maps column family name to the respective ColumnFamilySchemas + */ + std::map families_; + +}; diff --git a/hbase-native-client/src/core/tag.cc b/hbase-native-client/src/core/tag.cc new file mode 100644 index 0000000..698d317 --- /dev/null +++ b/hbase-native-client/src/core/tag.cc @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "tag.h" +#include + +const int Tag::TYPE_LENGTH_SIZE = Bytes::SIZEOF_BYTE; +const int Tag::TAG_LENGTH_SIZE = Bytes::SIZEOF_SHORT; +const int Tag::INFRASTRUCTURE_SIZE = Tag::TYPE_LENGTH_SIZE + Tag::TAG_LENGTH_SIZE; +const int Tag::MAX_TAG_LENGTH = (2 * std::numeric_limits< short >::max()) + 1 - Tag::TAG_LENGTH_SIZE; + +Tag::Tag() { + // TODO Auto-generated constructor stub + +} + +Tag::~Tag() { + // TODO Auto-generated destructor stub +} + diff --git a/hbase-native-client/src/core/tag.h b/hbase-native-client/src/core/tag.h new file mode 100644 index 0000000..cc19b30 --- /dev/null +++ b/hbase-native-client/src/core/tag.h @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include "bytes.h" + +class Tag { + + public: + + const static int TYPE_LENGTH_SIZE; + const static int TAG_LENGTH_SIZE; + const static int INFRASTRUCTURE_SIZE; + const static int MAX_TAG_LENGTH; + + Tag(); + virtual ~Tag(); + + private: + + BYTE_TYPE type; + BYTE_ARRAY bytes; + int offset_; + int length_; + +}; diff --git a/hbase-native-client/src/core/test_env.h b/hbase-native-client/src/core/test_env.h new file mode 100644 index 0000000..5796ae1 --- /dev/null +++ b/hbase-native-client/src/core/test_env.h @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include + +inline void init_test_env() { + // start local HBase cluster to be reused by all tests + system("scripts/start_local_hbase_and_wait.sh"); +} + +inline void clean_test_env() { + // shutdown local HBase cluster + system("scripts/stop_local_hbase_and_wait.sh"); +} diff --git a/hbase-native-client/src/core/timeRange.cc b/hbase-native-client/src/core/timeRange.cc new file mode 100644 index 0000000..88fb5a2 --- /dev/null +++ b/hbase-native-client/src/core/timeRange.cc @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "timeRange.h" +#include "hconstants.h" + +TimeRange::TimeRange():minTimeStamp(0L), maxTimeStamp(std::numeric_limits< long >::max()), allTime(true){ + +} + +TimeRange::~TimeRange() { + +} + +TimeRange::TimeRange(const long &minTimeStamp){ + + this->minTimeStamp = minTimeStamp; + this->maxTimeStamp = std::numeric_limits< long >::max(); + this->allTime = false; +} + +TimeRange::TimeRange(const long &minTimeStamp, const long &maxTimeStamp){ + + if (minTimeStamp < 0 || maxTimeStamp < 0) { + throw std::string("Timestamp cannot be negative.");// minStamp:" + minTimeStamp + ", maxStamp:" + maxTimeStamp); + } + if(maxTimeStamp < minTimeStamp) { + throw std::string("maxStamp is smaller than minStamp"); + } + + this->minTimeStamp = minTimeStamp; + this->maxTimeStamp = maxTimeStamp; + this->allTime = false; +} diff --git a/hbase-native-client/src/core/timeRange.h b/hbase-native-client/src/core/timeRange.h new file mode 100644 index 0000000..ac12a8d --- /dev/null +++ b/hbase-native-client/src/core/timeRange.h @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +class TimeRange { +private: + long minTimeStamp; + long maxTimeStamp; + bool allTime; +public: + + /** + * Default constructor. + * Represents interval [0, Long.MAX_VALUE) (allTime) + */ + TimeRange(); + /** + * Represents interval [minStamp, Long.MAX_VALUE) + * @param minStamp the minimum timestamp value, inclusive + */ + TimeRange(const long &minTimeStamp); + /** + * Represents interval [minStamp, maxStamp) + * @param minStamp the minimum timestamp, inclusive + * @param maxStamp the maximum timestamp, exclusive + * @throws IllegalArgumentException + */ + TimeRange(const long &minTimeStamp, const long &maxTimeStamp); + virtual ~TimeRange(); +}; diff --git a/hbase-native-client/src/core/util.cc b/hbase-native-client/src/core/util.cc new file mode 100644 index 0000000..c614c2b --- /dev/null +++ b/hbase-native-client/src/core/util.cc @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + + +#include "util.h" +#include + +void swapByteOrder(unsigned int& ui){ + ui = (ui >> 24) | + ((ui<<8) & 0x00FF0000) | + ((ui>>8) & 0x0000FF00) | + (ui << 24); +} + +void GetTableAndNamespace(const std::string &tableName, std::string &nameSpaceValue, std::string &tableNameValue){ + Poco::StringTokenizer tableDetails(tableName, ":", Poco::StringTokenizer::TOK_IGNORE_EMPTY); + if(2 == tableDetails.count()){ + nameSpaceValue = tableDetails[0]; + tableNameValue = tableDetails[1]; + }else{ + nameSpaceValue = "default"; + tableNameValue = tableDetails[0]; + } + return ; +} diff --git a/hbase-native-client/src/core/util.h b/hbase-native-client/src/core/util.h new file mode 100644 index 0000000..4dd13d7 --- /dev/null +++ b/hbase-native-client/src/core/util.h @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include +#include +#include + + +void swapByteOrder(unsigned int& ui); +void GetTableAndNamespace(const std::string &tableName, std::string &nameSpaceValue, std::string &tableNameValue); + diff --git a/hbase-native-client/src/rpc/CMakeLists.txt b/hbase-native-client/src/rpc/CMakeLists.txt deleted file mode 100644 index 2456923..0000000 --- a/hbase-native-client/src/rpc/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - diff --git a/hbase-native-client/src/rpc/generated/AccessControl.pb.cc b/hbase-native-client/src/rpc/generated/AccessControl.pb.cc new file mode 100644 index 0000000..6853e6c --- /dev/null +++ b/hbase-native-client/src/rpc/generated/AccessControl.pb.cc @@ -0,0 +1,4110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AccessControl.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "AccessControl.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* Permission_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Permission_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* Permission_Action_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* Permission_Type_descriptor_ = NULL; +const ::google::protobuf::Descriptor* TablePermission_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TablePermission_reflection_ = NULL; +const ::google::protobuf::Descriptor* NamespacePermission_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NamespacePermission_reflection_ = NULL; +const ::google::protobuf::Descriptor* GlobalPermission_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GlobalPermission_reflection_ = NULL; +const ::google::protobuf::Descriptor* UserPermission_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UserPermission_reflection_ = NULL; +const ::google::protobuf::Descriptor* UsersAndPermissions_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UsersAndPermissions_reflection_ = NULL; +const ::google::protobuf::Descriptor* UsersAndPermissions_UserPermissions_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UsersAndPermissions_UserPermissions_reflection_ = NULL; +const ::google::protobuf::Descriptor* GrantRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GrantRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GrantResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GrantResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* RevokeRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RevokeRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* RevokeResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RevokeResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetUserPermissionsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetUserPermissionsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetUserPermissionsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetUserPermissionsResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* CheckPermissionsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CheckPermissionsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* CheckPermissionsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CheckPermissionsResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_AccessControl_2eproto() { + protobuf_AddDesc_AccessControl_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "AccessControl.proto"); + GOOGLE_CHECK(file != NULL); + Permission_descriptor_ = file->message_type(0); + static const int Permission_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Permission, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Permission, global_permission_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Permission, namespace_permission_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Permission, table_permission_), + }; + Permission_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Permission_descriptor_, + Permission::default_instance_, + Permission_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Permission, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Permission, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Permission)); + Permission_Action_descriptor_ = Permission_descriptor_->enum_type(0); + Permission_Type_descriptor_ = Permission_descriptor_->enum_type(1); + TablePermission_descriptor_ = file->message_type(1); + static const int TablePermission_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TablePermission, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TablePermission, family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TablePermission, qualifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TablePermission, action_), + }; + TablePermission_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TablePermission_descriptor_, + TablePermission::default_instance_, + TablePermission_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TablePermission, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TablePermission, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TablePermission)); + NamespacePermission_descriptor_ = file->message_type(2); + static const int NamespacePermission_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamespacePermission, namespace_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamespacePermission, action_), + }; + NamespacePermission_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NamespacePermission_descriptor_, + NamespacePermission::default_instance_, + NamespacePermission_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamespacePermission, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamespacePermission, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NamespacePermission)); + GlobalPermission_descriptor_ = file->message_type(3); + static const int GlobalPermission_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GlobalPermission, action_), + }; + GlobalPermission_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GlobalPermission_descriptor_, + GlobalPermission::default_instance_, + GlobalPermission_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GlobalPermission, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GlobalPermission, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GlobalPermission)); + UserPermission_descriptor_ = file->message_type(4); + static const int UserPermission_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserPermission, user_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserPermission, permission_), + }; + UserPermission_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UserPermission_descriptor_, + UserPermission::default_instance_, + UserPermission_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserPermission, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserPermission, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UserPermission)); + UsersAndPermissions_descriptor_ = file->message_type(5); + static const int UsersAndPermissions_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UsersAndPermissions, user_permissions_), + }; + UsersAndPermissions_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UsersAndPermissions_descriptor_, + UsersAndPermissions::default_instance_, + UsersAndPermissions_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UsersAndPermissions, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UsersAndPermissions, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UsersAndPermissions)); + UsersAndPermissions_UserPermissions_descriptor_ = UsersAndPermissions_descriptor_->nested_type(0); + static const int UsersAndPermissions_UserPermissions_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UsersAndPermissions_UserPermissions, user_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UsersAndPermissions_UserPermissions, permissions_), + }; + UsersAndPermissions_UserPermissions_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UsersAndPermissions_UserPermissions_descriptor_, + UsersAndPermissions_UserPermissions::default_instance_, + UsersAndPermissions_UserPermissions_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UsersAndPermissions_UserPermissions, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UsersAndPermissions_UserPermissions, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UsersAndPermissions_UserPermissions)); + GrantRequest_descriptor_ = file->message_type(6); + static const int GrantRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GrantRequest, user_permission_), + }; + GrantRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GrantRequest_descriptor_, + GrantRequest::default_instance_, + GrantRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GrantRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GrantRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GrantRequest)); + GrantResponse_descriptor_ = file->message_type(7); + static const int GrantResponse_offsets_[1] = { + }; + GrantResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GrantResponse_descriptor_, + GrantResponse::default_instance_, + GrantResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GrantResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GrantResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GrantResponse)); + RevokeRequest_descriptor_ = file->message_type(8); + static const int RevokeRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RevokeRequest, user_permission_), + }; + RevokeRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RevokeRequest_descriptor_, + RevokeRequest::default_instance_, + RevokeRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RevokeRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RevokeRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RevokeRequest)); + RevokeResponse_descriptor_ = file->message_type(9); + static const int RevokeResponse_offsets_[1] = { + }; + RevokeResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RevokeResponse_descriptor_, + RevokeResponse::default_instance_, + RevokeResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RevokeResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RevokeResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RevokeResponse)); + GetUserPermissionsRequest_descriptor_ = file->message_type(10); + static const int GetUserPermissionsRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetUserPermissionsRequest, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetUserPermissionsRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetUserPermissionsRequest, namespace_name_), + }; + GetUserPermissionsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetUserPermissionsRequest_descriptor_, + GetUserPermissionsRequest::default_instance_, + GetUserPermissionsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetUserPermissionsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetUserPermissionsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetUserPermissionsRequest)); + GetUserPermissionsResponse_descriptor_ = file->message_type(11); + static const int GetUserPermissionsResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetUserPermissionsResponse, user_permission_), + }; + GetUserPermissionsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetUserPermissionsResponse_descriptor_, + GetUserPermissionsResponse::default_instance_, + GetUserPermissionsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetUserPermissionsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetUserPermissionsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetUserPermissionsResponse)); + CheckPermissionsRequest_descriptor_ = file->message_type(12); + static const int CheckPermissionsRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckPermissionsRequest, permission_), + }; + CheckPermissionsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CheckPermissionsRequest_descriptor_, + CheckPermissionsRequest::default_instance_, + CheckPermissionsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckPermissionsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckPermissionsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CheckPermissionsRequest)); + CheckPermissionsResponse_descriptor_ = file->message_type(13); + static const int CheckPermissionsResponse_offsets_[1] = { + }; + CheckPermissionsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CheckPermissionsResponse_descriptor_, + CheckPermissionsResponse::default_instance_, + CheckPermissionsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckPermissionsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckPermissionsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CheckPermissionsResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_AccessControl_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Permission_descriptor_, &Permission::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TablePermission_descriptor_, &TablePermission::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NamespacePermission_descriptor_, &NamespacePermission::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GlobalPermission_descriptor_, &GlobalPermission::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UserPermission_descriptor_, &UserPermission::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UsersAndPermissions_descriptor_, &UsersAndPermissions::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UsersAndPermissions_UserPermissions_descriptor_, &UsersAndPermissions_UserPermissions::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GrantRequest_descriptor_, &GrantRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GrantResponse_descriptor_, &GrantResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RevokeRequest_descriptor_, &RevokeRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RevokeResponse_descriptor_, &RevokeResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetUserPermissionsRequest_descriptor_, &GetUserPermissionsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetUserPermissionsResponse_descriptor_, &GetUserPermissionsResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CheckPermissionsRequest_descriptor_, &CheckPermissionsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CheckPermissionsResponse_descriptor_, &CheckPermissionsResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_AccessControl_2eproto() { + delete Permission::default_instance_; + delete Permission_reflection_; + delete TablePermission::default_instance_; + delete TablePermission_reflection_; + delete NamespacePermission::default_instance_; + delete NamespacePermission_reflection_; + delete GlobalPermission::default_instance_; + delete GlobalPermission_reflection_; + delete UserPermission::default_instance_; + delete UserPermission_reflection_; + delete UsersAndPermissions::default_instance_; + delete UsersAndPermissions_reflection_; + delete UsersAndPermissions_UserPermissions::default_instance_; + delete UsersAndPermissions_UserPermissions_reflection_; + delete GrantRequest::default_instance_; + delete GrantRequest_reflection_; + delete GrantResponse::default_instance_; + delete GrantResponse_reflection_; + delete RevokeRequest::default_instance_; + delete RevokeRequest_reflection_; + delete RevokeResponse::default_instance_; + delete RevokeResponse_reflection_; + delete GetUserPermissionsRequest::default_instance_; + delete GetUserPermissionsRequest_reflection_; + delete GetUserPermissionsResponse::default_instance_; + delete GetUserPermissionsResponse_reflection_; + delete CheckPermissionsRequest::default_instance_; + delete CheckPermissionsRequest_reflection_; + delete CheckPermissionsResponse::default_instance_; + delete CheckPermissionsResponse_reflection_; +} + +void protobuf_AddDesc_AccessControl_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\023AccessControl.proto\022\010hbase.pb\032\013HBase.p" + "roto\"\314\002\n\nPermission\022\'\n\004type\030\001 \002(\0162\031.hbas" + "e.pb.Permission.Type\0225\n\021global_permissio" + "n\030\002 \001(\0132\032.hbase.pb.GlobalPermission\022;\n\024n" + "amespace_permission\030\003 \001(\0132\035.hbase.pb.Nam" + "espacePermission\0223\n\020table_permission\030\004 \001" + "(\0132\031.hbase.pb.TablePermission\">\n\006Action\022" + "\010\n\004READ\020\000\022\t\n\005WRITE\020\001\022\010\n\004EXEC\020\002\022\n\n\006CREATE" + "\020\003\022\t\n\005ADMIN\020\004\",\n\004Type\022\n\n\006Global\020\001\022\r\n\tNam" + "espace\020\002\022\t\n\005Table\020\003\"\212\001\n\017TablePermission\022" + "\'\n\ntable_name\030\001 \001(\0132\023.hbase.pb.TableName" + "\022\016\n\006family\030\002 \001(\014\022\021\n\tqualifier\030\003 \001(\014\022+\n\006a" + "ction\030\004 \003(\0162\033.hbase.pb.Permission.Action" + "\"Z\n\023NamespacePermission\022\026\n\016namespace_nam" + "e\030\001 \001(\014\022+\n\006action\030\002 \003(\0162\033.hbase.pb.Permi" + "ssion.Action\"\?\n\020GlobalPermission\022+\n\006acti" + "on\030\001 \003(\0162\033.hbase.pb.Permission.Action\"H\n" + "\016UserPermission\022\014\n\004user\030\001 \002(\014\022(\n\npermiss" + "ion\030\003 \002(\0132\024.hbase.pb.Permission\"\252\001\n\023User" + "sAndPermissions\022G\n\020user_permissions\030\001 \003(" + "\0132-.hbase.pb.UsersAndPermissions.UserPer" + "missions\032J\n\017UserPermissions\022\014\n\004user\030\001 \002(" + "\014\022)\n\013permissions\030\002 \003(\0132\024.hbase.pb.Permis" + "sion\"A\n\014GrantRequest\0221\n\017user_permission\030" + "\001 \002(\0132\030.hbase.pb.UserPermission\"\017\n\rGrant" + "Response\"B\n\rRevokeRequest\0221\n\017user_permis" + "sion\030\001 \002(\0132\030.hbase.pb.UserPermission\"\020\n\016" + "RevokeResponse\"\205\001\n\031GetUserPermissionsReq" + "uest\022\'\n\004type\030\001 \001(\0162\031.hbase.pb.Permission" + ".Type\022\'\n\ntable_name\030\002 \001(\0132\023.hbase.pb.Tab" + "leName\022\026\n\016namespace_name\030\003 \001(\014\"O\n\032GetUse" + "rPermissionsResponse\0221\n\017user_permission\030" + "\001 \003(\0132\030.hbase.pb.UserPermission\"C\n\027Check" + "PermissionsRequest\022(\n\npermission\030\001 \003(\0132\024" + ".hbase.pb.Permission\"\032\n\030CheckPermissions" + "Response2\311\002\n\024AccessControlService\0228\n\005Gra" + "nt\022\026.hbase.pb.GrantRequest\032\027.hbase.pb.Gr" + "antResponse\022;\n\006Revoke\022\027.hbase.pb.RevokeR" + "equest\032\030.hbase.pb.RevokeResponse\022_\n\022GetU" + "serPermissions\022#.hbase.pb.GetUserPermiss" + "ionsRequest\032$.hbase.pb.GetUserPermission" + "sResponse\022Y\n\020CheckPermissions\022!.hbase.pb" + ".CheckPermissionsRequest\032\".hbase.pb.Chec" + "kPermissionsResponseBI\n*org.apache.hadoo" + "p.hbase.protobuf.generatedB\023AccessContro" + "lProtosH\001\210\001\001\240\001\001", 1815); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "AccessControl.proto", &protobuf_RegisterTypes); + Permission::default_instance_ = new Permission(); + TablePermission::default_instance_ = new TablePermission(); + NamespacePermission::default_instance_ = new NamespacePermission(); + GlobalPermission::default_instance_ = new GlobalPermission(); + UserPermission::default_instance_ = new UserPermission(); + UsersAndPermissions::default_instance_ = new UsersAndPermissions(); + UsersAndPermissions_UserPermissions::default_instance_ = new UsersAndPermissions_UserPermissions(); + GrantRequest::default_instance_ = new GrantRequest(); + GrantResponse::default_instance_ = new GrantResponse(); + RevokeRequest::default_instance_ = new RevokeRequest(); + RevokeResponse::default_instance_ = new RevokeResponse(); + GetUserPermissionsRequest::default_instance_ = new GetUserPermissionsRequest(); + GetUserPermissionsResponse::default_instance_ = new GetUserPermissionsResponse(); + CheckPermissionsRequest::default_instance_ = new CheckPermissionsRequest(); + CheckPermissionsResponse::default_instance_ = new CheckPermissionsResponse(); + Permission::default_instance_->InitAsDefaultInstance(); + TablePermission::default_instance_->InitAsDefaultInstance(); + NamespacePermission::default_instance_->InitAsDefaultInstance(); + GlobalPermission::default_instance_->InitAsDefaultInstance(); + UserPermission::default_instance_->InitAsDefaultInstance(); + UsersAndPermissions::default_instance_->InitAsDefaultInstance(); + UsersAndPermissions_UserPermissions::default_instance_->InitAsDefaultInstance(); + GrantRequest::default_instance_->InitAsDefaultInstance(); + GrantResponse::default_instance_->InitAsDefaultInstance(); + RevokeRequest::default_instance_->InitAsDefaultInstance(); + RevokeResponse::default_instance_->InitAsDefaultInstance(); + GetUserPermissionsRequest::default_instance_->InitAsDefaultInstance(); + GetUserPermissionsResponse::default_instance_->InitAsDefaultInstance(); + CheckPermissionsRequest::default_instance_->InitAsDefaultInstance(); + CheckPermissionsResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_AccessControl_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_AccessControl_2eproto { + StaticDescriptorInitializer_AccessControl_2eproto() { + protobuf_AddDesc_AccessControl_2eproto(); + } +} static_descriptor_initializer_AccessControl_2eproto_; + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* Permission_Action_descriptor() { + protobuf_AssignDescriptorsOnce(); + return Permission_Action_descriptor_; +} +bool Permission_Action_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const Permission_Action Permission::READ; +const Permission_Action Permission::WRITE; +const Permission_Action Permission::EXEC; +const Permission_Action Permission::CREATE; +const Permission_Action Permission::ADMIN; +const Permission_Action Permission::Action_MIN; +const Permission_Action Permission::Action_MAX; +const int Permission::Action_ARRAYSIZE; +#endif // _MSC_VER +const ::google::protobuf::EnumDescriptor* Permission_Type_descriptor() { + protobuf_AssignDescriptorsOnce(); + return Permission_Type_descriptor_; +} +bool Permission_Type_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const Permission_Type Permission::Global; +const Permission_Type Permission::Namespace; +const Permission_Type Permission::Table; +const Permission_Type Permission::Type_MIN; +const Permission_Type Permission::Type_MAX; +const int Permission::Type_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int Permission::kTypeFieldNumber; +const int Permission::kGlobalPermissionFieldNumber; +const int Permission::kNamespacePermissionFieldNumber; +const int Permission::kTablePermissionFieldNumber; +#endif // !_MSC_VER + +Permission::Permission() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Permission::InitAsDefaultInstance() { + global_permission_ = const_cast< ::hbase::pb::GlobalPermission*>(&::hbase::pb::GlobalPermission::default_instance()); + namespace_permission_ = const_cast< ::hbase::pb::NamespacePermission*>(&::hbase::pb::NamespacePermission::default_instance()); + table_permission_ = const_cast< ::hbase::pb::TablePermission*>(&::hbase::pb::TablePermission::default_instance()); +} + +Permission::Permission(const Permission& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Permission::SharedCtor() { + _cached_size_ = 0; + type_ = 1; + global_permission_ = NULL; + namespace_permission_ = NULL; + table_permission_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Permission::~Permission() { + SharedDtor(); +} + +void Permission::SharedDtor() { + if (this != default_instance_) { + delete global_permission_; + delete namespace_permission_; + delete table_permission_; + } +} + +void Permission::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Permission::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Permission_descriptor_; +} + +const Permission& Permission::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +Permission* Permission::default_instance_ = NULL; + +Permission* Permission::New() const { + return new Permission; +} + +void Permission::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + type_ = 1; + if (has_global_permission()) { + if (global_permission_ != NULL) global_permission_->::hbase::pb::GlobalPermission::Clear(); + } + if (has_namespace_permission()) { + if (namespace_permission_ != NULL) namespace_permission_->::hbase::pb::NamespacePermission::Clear(); + } + if (has_table_permission()) { + if (table_permission_ != NULL) table_permission_->::hbase::pb::TablePermission::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Permission::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.Permission.Type type = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::Permission_Type_IsValid(value)) { + set_type(static_cast< ::hbase::pb::Permission_Type >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_global_permission; + break; + } + + // optional .hbase.pb.GlobalPermission global_permission = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_global_permission: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_global_permission())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_namespace_permission; + break; + } + + // optional .hbase.pb.NamespacePermission namespace_permission = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_namespace_permission: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_namespace_permission())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_table_permission; + break; + } + + // optional .hbase.pb.TablePermission table_permission = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_permission: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_permission())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Permission::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.Permission.Type type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // optional .hbase.pb.GlobalPermission global_permission = 2; + if (has_global_permission()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->global_permission(), output); + } + + // optional .hbase.pb.NamespacePermission namespace_permission = 3; + if (has_namespace_permission()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->namespace_permission(), output); + } + + // optional .hbase.pb.TablePermission table_permission = 4; + if (has_table_permission()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->table_permission(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Permission::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.Permission.Type type = 1; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // optional .hbase.pb.GlobalPermission global_permission = 2; + if (has_global_permission()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->global_permission(), target); + } + + // optional .hbase.pb.NamespacePermission namespace_permission = 3; + if (has_namespace_permission()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->namespace_permission(), target); + } + + // optional .hbase.pb.TablePermission table_permission = 4; + if (has_table_permission()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->table_permission(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Permission::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.Permission.Type type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // optional .hbase.pb.GlobalPermission global_permission = 2; + if (has_global_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->global_permission()); + } + + // optional .hbase.pb.NamespacePermission namespace_permission = 3; + if (has_namespace_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->namespace_permission()); + } + + // optional .hbase.pb.TablePermission table_permission = 4; + if (has_table_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_permission()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Permission::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Permission* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Permission::MergeFrom(const Permission& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_global_permission()) { + mutable_global_permission()->::hbase::pb::GlobalPermission::MergeFrom(from.global_permission()); + } + if (from.has_namespace_permission()) { + mutable_namespace_permission()->::hbase::pb::NamespacePermission::MergeFrom(from.namespace_permission()); + } + if (from.has_table_permission()) { + mutable_table_permission()->::hbase::pb::TablePermission::MergeFrom(from.table_permission()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Permission::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Permission::CopyFrom(const Permission& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Permission::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_permission()) { + if (!this->table_permission().IsInitialized()) return false; + } + return true; +} + +void Permission::Swap(Permission* other) { + if (other != this) { + std::swap(type_, other->type_); + std::swap(global_permission_, other->global_permission_); + std::swap(namespace_permission_, other->namespace_permission_); + std::swap(table_permission_, other->table_permission_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Permission::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Permission_descriptor_; + metadata.reflection = Permission_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TablePermission::kTableNameFieldNumber; +const int TablePermission::kFamilyFieldNumber; +const int TablePermission::kQualifierFieldNumber; +const int TablePermission::kActionFieldNumber; +#endif // !_MSC_VER + +TablePermission::TablePermission() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TablePermission::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +TablePermission::TablePermission(const TablePermission& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TablePermission::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TablePermission::~TablePermission() { + SharedDtor(); +} + +void TablePermission::SharedDtor() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (this != default_instance_) { + delete table_name_; + } +} + +void TablePermission::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TablePermission::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TablePermission_descriptor_; +} + +const TablePermission& TablePermission::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +TablePermission* TablePermission::default_instance_ = NULL; + +TablePermission* TablePermission::New() const { + return new TablePermission; +} + +void TablePermission::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + if (has_qualifier()) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + } + } + action_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TablePermission::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_family; + break; + } + + // optional bytes family = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_qualifier; + break; + } + + // optional bytes qualifier = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_qualifier: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_action; + break; + } + + // repeated .hbase.pb.Permission.Action action = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_action: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::Permission_Action_IsValid(value)) { + add_action(static_cast< ::hbase::pb::Permission_Action >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( + input, + &::hbase::pb::Permission_Action_IsValid, + this->mutable_action()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_action; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TablePermission::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // optional bytes family = 2; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->family(), output); + } + + // optional bytes qualifier = 3; + if (has_qualifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->qualifier(), output); + } + + // repeated .hbase.pb.Permission.Action action = 4; + for (int i = 0; i < this->action_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->action(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TablePermission::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // optional bytes family = 2; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->family(), target); + } + + // optional bytes qualifier = 3; + if (has_qualifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->qualifier(), target); + } + + // repeated .hbase.pb.Permission.Action action = 4; + for (int i = 0; i < this->action_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->action(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TablePermission::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional bytes family = 2; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + // optional bytes qualifier = 3; + if (has_qualifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->qualifier()); + } + + } + // repeated .hbase.pb.Permission.Action action = 4; + { + int data_size = 0; + for (int i = 0; i < this->action_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->action(i)); + } + total_size += 1 * this->action_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TablePermission::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TablePermission* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TablePermission::MergeFrom(const TablePermission& from) { + GOOGLE_CHECK_NE(&from, this); + action_.MergeFrom(from.action_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_family()) { + set_family(from.family()); + } + if (from.has_qualifier()) { + set_qualifier(from.qualifier()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TablePermission::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TablePermission::CopyFrom(const TablePermission& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TablePermission::IsInitialized() const { + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void TablePermission::Swap(TablePermission* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(family_, other->family_); + std::swap(qualifier_, other->qualifier_); + action_.Swap(&other->action_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TablePermission::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TablePermission_descriptor_; + metadata.reflection = TablePermission_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int NamespacePermission::kNamespaceNameFieldNumber; +const int NamespacePermission::kActionFieldNumber; +#endif // !_MSC_VER + +NamespacePermission::NamespacePermission() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NamespacePermission::InitAsDefaultInstance() { +} + +NamespacePermission::NamespacePermission(const NamespacePermission& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NamespacePermission::SharedCtor() { + _cached_size_ = 0; + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NamespacePermission::~NamespacePermission() { + SharedDtor(); +} + +void NamespacePermission::SharedDtor() { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + delete namespace_name_; + } + if (this != default_instance_) { + } +} + +void NamespacePermission::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NamespacePermission::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NamespacePermission_descriptor_; +} + +const NamespacePermission& NamespacePermission::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +NamespacePermission* NamespacePermission::default_instance_ = NULL; + +NamespacePermission* NamespacePermission::New() const { + return new NamespacePermission; +} + +void NamespacePermission::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespace_name()) { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + namespace_name_->clear(); + } + } + } + action_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NamespacePermission::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes namespace_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_namespace_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_action; + break; + } + + // repeated .hbase.pb.Permission.Action action = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_action: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::Permission_Action_IsValid(value)) { + add_action(static_cast< ::hbase::pb::Permission_Action >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( + input, + &::hbase::pb::Permission_Action_IsValid, + this->mutable_action()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_action; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void NamespacePermission::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes namespace_name = 1; + if (has_namespace_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->namespace_name(), output); + } + + // repeated .hbase.pb.Permission.Action action = 2; + for (int i = 0; i < this->action_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->action(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NamespacePermission::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes namespace_name = 1; + if (has_namespace_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->namespace_name(), target); + } + + // repeated .hbase.pb.Permission.Action action = 2; + for (int i = 0; i < this->action_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->action(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NamespacePermission::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes namespace_name = 1; + if (has_namespace_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->namespace_name()); + } + + } + // repeated .hbase.pb.Permission.Action action = 2; + { + int data_size = 0; + for (int i = 0; i < this->action_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->action(i)); + } + total_size += 1 * this->action_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NamespacePermission::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NamespacePermission* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NamespacePermission::MergeFrom(const NamespacePermission& from) { + GOOGLE_CHECK_NE(&from, this); + action_.MergeFrom(from.action_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespace_name()) { + set_namespace_name(from.namespace_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NamespacePermission::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamespacePermission::CopyFrom(const NamespacePermission& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamespacePermission::IsInitialized() const { + + return true; +} + +void NamespacePermission::Swap(NamespacePermission* other) { + if (other != this) { + std::swap(namespace_name_, other->namespace_name_); + action_.Swap(&other->action_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NamespacePermission::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NamespacePermission_descriptor_; + metadata.reflection = NamespacePermission_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GlobalPermission::kActionFieldNumber; +#endif // !_MSC_VER + +GlobalPermission::GlobalPermission() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GlobalPermission::InitAsDefaultInstance() { +} + +GlobalPermission::GlobalPermission(const GlobalPermission& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GlobalPermission::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GlobalPermission::~GlobalPermission() { + SharedDtor(); +} + +void GlobalPermission::SharedDtor() { + if (this != default_instance_) { + } +} + +void GlobalPermission::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GlobalPermission::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GlobalPermission_descriptor_; +} + +const GlobalPermission& GlobalPermission::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +GlobalPermission* GlobalPermission::default_instance_ = NULL; + +GlobalPermission* GlobalPermission::New() const { + return new GlobalPermission; +} + +void GlobalPermission::Clear() { + action_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GlobalPermission::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.Permission.Action action = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_action: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::Permission_Action_IsValid(value)) { + add_action(static_cast< ::hbase::pb::Permission_Action >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( + input, + &::hbase::pb::Permission_Action_IsValid, + this->mutable_action()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(8)) goto parse_action; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GlobalPermission::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.Permission.Action action = 1; + for (int i = 0; i < this->action_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->action(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GlobalPermission::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.Permission.Action action = 1; + for (int i = 0; i < this->action_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->action(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GlobalPermission::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.Permission.Action action = 1; + { + int data_size = 0; + for (int i = 0; i < this->action_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->action(i)); + } + total_size += 1 * this->action_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GlobalPermission::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GlobalPermission* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GlobalPermission::MergeFrom(const GlobalPermission& from) { + GOOGLE_CHECK_NE(&from, this); + action_.MergeFrom(from.action_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GlobalPermission::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GlobalPermission::CopyFrom(const GlobalPermission& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GlobalPermission::IsInitialized() const { + + return true; +} + +void GlobalPermission::Swap(GlobalPermission* other) { + if (other != this) { + action_.Swap(&other->action_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GlobalPermission::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GlobalPermission_descriptor_; + metadata.reflection = GlobalPermission_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int UserPermission::kUserFieldNumber; +const int UserPermission::kPermissionFieldNumber; +#endif // !_MSC_VER + +UserPermission::UserPermission() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UserPermission::InitAsDefaultInstance() { + permission_ = const_cast< ::hbase::pb::Permission*>(&::hbase::pb::Permission::default_instance()); +} + +UserPermission::UserPermission(const UserPermission& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UserPermission::SharedCtor() { + _cached_size_ = 0; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + permission_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UserPermission::~UserPermission() { + SharedDtor(); +} + +void UserPermission::SharedDtor() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (this != default_instance_) { + delete permission_; + } +} + +void UserPermission::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UserPermission::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UserPermission_descriptor_; +} + +const UserPermission& UserPermission::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +UserPermission* UserPermission::default_instance_ = NULL; + +UserPermission* UserPermission::New() const { + return new UserPermission; +} + +void UserPermission::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user()) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + } + if (has_permission()) { + if (permission_ != NULL) permission_->::hbase::pb::Permission::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UserPermission::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes user = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_user())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_permission; + break; + } + + // required .hbase.pb.Permission permission = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_permission: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_permission())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UserPermission::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes user = 1; + if (has_user()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->user(), output); + } + + // required .hbase.pb.Permission permission = 3; + if (has_permission()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->permission(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UserPermission::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes user = 1; + if (has_user()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->user(), target); + } + + // required .hbase.pb.Permission permission = 3; + if (has_permission()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->permission(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UserPermission::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes user = 1; + if (has_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->user()); + } + + // required .hbase.pb.Permission permission = 3; + if (has_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->permission()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UserPermission::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UserPermission* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UserPermission::MergeFrom(const UserPermission& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user()) { + set_user(from.user()); + } + if (from.has_permission()) { + mutable_permission()->::hbase::pb::Permission::MergeFrom(from.permission()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UserPermission::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UserPermission::CopyFrom(const UserPermission& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UserPermission::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_permission()) { + if (!this->permission().IsInitialized()) return false; + } + return true; +} + +void UserPermission::Swap(UserPermission* other) { + if (other != this) { + std::swap(user_, other->user_); + std::swap(permission_, other->permission_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UserPermission::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UserPermission_descriptor_; + metadata.reflection = UserPermission_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int UsersAndPermissions_UserPermissions::kUserFieldNumber; +const int UsersAndPermissions_UserPermissions::kPermissionsFieldNumber; +#endif // !_MSC_VER + +UsersAndPermissions_UserPermissions::UsersAndPermissions_UserPermissions() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UsersAndPermissions_UserPermissions::InitAsDefaultInstance() { +} + +UsersAndPermissions_UserPermissions::UsersAndPermissions_UserPermissions(const UsersAndPermissions_UserPermissions& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UsersAndPermissions_UserPermissions::SharedCtor() { + _cached_size_ = 0; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UsersAndPermissions_UserPermissions::~UsersAndPermissions_UserPermissions() { + SharedDtor(); +} + +void UsersAndPermissions_UserPermissions::SharedDtor() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (this != default_instance_) { + } +} + +void UsersAndPermissions_UserPermissions::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UsersAndPermissions_UserPermissions::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UsersAndPermissions_UserPermissions_descriptor_; +} + +const UsersAndPermissions_UserPermissions& UsersAndPermissions_UserPermissions::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +UsersAndPermissions_UserPermissions* UsersAndPermissions_UserPermissions::default_instance_ = NULL; + +UsersAndPermissions_UserPermissions* UsersAndPermissions_UserPermissions::New() const { + return new UsersAndPermissions_UserPermissions; +} + +void UsersAndPermissions_UserPermissions::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user()) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + } + } + permissions_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UsersAndPermissions_UserPermissions::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes user = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_user())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_permissions; + break; + } + + // repeated .hbase.pb.Permission permissions = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_permissions: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_permissions())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_permissions; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UsersAndPermissions_UserPermissions::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes user = 1; + if (has_user()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->user(), output); + } + + // repeated .hbase.pb.Permission permissions = 2; + for (int i = 0; i < this->permissions_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->permissions(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UsersAndPermissions_UserPermissions::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes user = 1; + if (has_user()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->user(), target); + } + + // repeated .hbase.pb.Permission permissions = 2; + for (int i = 0; i < this->permissions_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->permissions(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UsersAndPermissions_UserPermissions::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes user = 1; + if (has_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->user()); + } + + } + // repeated .hbase.pb.Permission permissions = 2; + total_size += 1 * this->permissions_size(); + for (int i = 0; i < this->permissions_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->permissions(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UsersAndPermissions_UserPermissions::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UsersAndPermissions_UserPermissions* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UsersAndPermissions_UserPermissions::MergeFrom(const UsersAndPermissions_UserPermissions& from) { + GOOGLE_CHECK_NE(&from, this); + permissions_.MergeFrom(from.permissions_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user()) { + set_user(from.user()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UsersAndPermissions_UserPermissions::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UsersAndPermissions_UserPermissions::CopyFrom(const UsersAndPermissions_UserPermissions& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UsersAndPermissions_UserPermissions::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < permissions_size(); i++) { + if (!this->permissions(i).IsInitialized()) return false; + } + return true; +} + +void UsersAndPermissions_UserPermissions::Swap(UsersAndPermissions_UserPermissions* other) { + if (other != this) { + std::swap(user_, other->user_); + permissions_.Swap(&other->permissions_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UsersAndPermissions_UserPermissions::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UsersAndPermissions_UserPermissions_descriptor_; + metadata.reflection = UsersAndPermissions_UserPermissions_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int UsersAndPermissions::kUserPermissionsFieldNumber; +#endif // !_MSC_VER + +UsersAndPermissions::UsersAndPermissions() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UsersAndPermissions::InitAsDefaultInstance() { +} + +UsersAndPermissions::UsersAndPermissions(const UsersAndPermissions& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UsersAndPermissions::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UsersAndPermissions::~UsersAndPermissions() { + SharedDtor(); +} + +void UsersAndPermissions::SharedDtor() { + if (this != default_instance_) { + } +} + +void UsersAndPermissions::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UsersAndPermissions::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UsersAndPermissions_descriptor_; +} + +const UsersAndPermissions& UsersAndPermissions::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +UsersAndPermissions* UsersAndPermissions::default_instance_ = NULL; + +UsersAndPermissions* UsersAndPermissions::New() const { + return new UsersAndPermissions; +} + +void UsersAndPermissions::Clear() { + user_permissions_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UsersAndPermissions::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.UsersAndPermissions.UserPermissions user_permissions = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_user_permissions: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_user_permissions())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_user_permissions; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UsersAndPermissions::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.UsersAndPermissions.UserPermissions user_permissions = 1; + for (int i = 0; i < this->user_permissions_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_permissions(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UsersAndPermissions::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.UsersAndPermissions.UserPermissions user_permissions = 1; + for (int i = 0; i < this->user_permissions_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_permissions(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UsersAndPermissions::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.UsersAndPermissions.UserPermissions user_permissions = 1; + total_size += 1 * this->user_permissions_size(); + for (int i = 0; i < this->user_permissions_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_permissions(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UsersAndPermissions::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UsersAndPermissions* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UsersAndPermissions::MergeFrom(const UsersAndPermissions& from) { + GOOGLE_CHECK_NE(&from, this); + user_permissions_.MergeFrom(from.user_permissions_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UsersAndPermissions::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UsersAndPermissions::CopyFrom(const UsersAndPermissions& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UsersAndPermissions::IsInitialized() const { + + for (int i = 0; i < user_permissions_size(); i++) { + if (!this->user_permissions(i).IsInitialized()) return false; + } + return true; +} + +void UsersAndPermissions::Swap(UsersAndPermissions* other) { + if (other != this) { + user_permissions_.Swap(&other->user_permissions_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UsersAndPermissions::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UsersAndPermissions_descriptor_; + metadata.reflection = UsersAndPermissions_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GrantRequest::kUserPermissionFieldNumber; +#endif // !_MSC_VER + +GrantRequest::GrantRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GrantRequest::InitAsDefaultInstance() { + user_permission_ = const_cast< ::hbase::pb::UserPermission*>(&::hbase::pb::UserPermission::default_instance()); +} + +GrantRequest::GrantRequest(const GrantRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GrantRequest::SharedCtor() { + _cached_size_ = 0; + user_permission_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GrantRequest::~GrantRequest() { + SharedDtor(); +} + +void GrantRequest::SharedDtor() { + if (this != default_instance_) { + delete user_permission_; + } +} + +void GrantRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GrantRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GrantRequest_descriptor_; +} + +const GrantRequest& GrantRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +GrantRequest* GrantRequest::default_instance_ = NULL; + +GrantRequest* GrantRequest::New() const { + return new GrantRequest; +} + +void GrantRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_permission()) { + if (user_permission_ != NULL) user_permission_->::hbase::pb::UserPermission::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GrantRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserPermission user_permission = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_permission())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GrantRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserPermission user_permission = 1; + if (has_user_permission()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_permission(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GrantRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserPermission user_permission = 1; + if (has_user_permission()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_permission(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GrantRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserPermission user_permission = 1; + if (has_user_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_permission()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GrantRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GrantRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GrantRequest::MergeFrom(const GrantRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_permission()) { + mutable_user_permission()->::hbase::pb::UserPermission::MergeFrom(from.user_permission()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GrantRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GrantRequest::CopyFrom(const GrantRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GrantRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_user_permission()) { + if (!this->user_permission().IsInitialized()) return false; + } + return true; +} + +void GrantRequest::Swap(GrantRequest* other) { + if (other != this) { + std::swap(user_permission_, other->user_permission_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GrantRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GrantRequest_descriptor_; + metadata.reflection = GrantRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +GrantResponse::GrantResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GrantResponse::InitAsDefaultInstance() { +} + +GrantResponse::GrantResponse(const GrantResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GrantResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GrantResponse::~GrantResponse() { + SharedDtor(); +} + +void GrantResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GrantResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GrantResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GrantResponse_descriptor_; +} + +const GrantResponse& GrantResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +GrantResponse* GrantResponse::default_instance_ = NULL; + +GrantResponse* GrantResponse::New() const { + return new GrantResponse; +} + +void GrantResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GrantResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void GrantResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GrantResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GrantResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GrantResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GrantResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GrantResponse::MergeFrom(const GrantResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GrantResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GrantResponse::CopyFrom(const GrantResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GrantResponse::IsInitialized() const { + + return true; +} + +void GrantResponse::Swap(GrantResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GrantResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GrantResponse_descriptor_; + metadata.reflection = GrantResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RevokeRequest::kUserPermissionFieldNumber; +#endif // !_MSC_VER + +RevokeRequest::RevokeRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RevokeRequest::InitAsDefaultInstance() { + user_permission_ = const_cast< ::hbase::pb::UserPermission*>(&::hbase::pb::UserPermission::default_instance()); +} + +RevokeRequest::RevokeRequest(const RevokeRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RevokeRequest::SharedCtor() { + _cached_size_ = 0; + user_permission_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RevokeRequest::~RevokeRequest() { + SharedDtor(); +} + +void RevokeRequest::SharedDtor() { + if (this != default_instance_) { + delete user_permission_; + } +} + +void RevokeRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RevokeRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RevokeRequest_descriptor_; +} + +const RevokeRequest& RevokeRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +RevokeRequest* RevokeRequest::default_instance_ = NULL; + +RevokeRequest* RevokeRequest::New() const { + return new RevokeRequest; +} + +void RevokeRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_permission()) { + if (user_permission_ != NULL) user_permission_->::hbase::pb::UserPermission::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RevokeRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserPermission user_permission = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_permission())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RevokeRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserPermission user_permission = 1; + if (has_user_permission()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_permission(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RevokeRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserPermission user_permission = 1; + if (has_user_permission()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_permission(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RevokeRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserPermission user_permission = 1; + if (has_user_permission()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_permission()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RevokeRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RevokeRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RevokeRequest::MergeFrom(const RevokeRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_permission()) { + mutable_user_permission()->::hbase::pb::UserPermission::MergeFrom(from.user_permission()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RevokeRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RevokeRequest::CopyFrom(const RevokeRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RevokeRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_user_permission()) { + if (!this->user_permission().IsInitialized()) return false; + } + return true; +} + +void RevokeRequest::Swap(RevokeRequest* other) { + if (other != this) { + std::swap(user_permission_, other->user_permission_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RevokeRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RevokeRequest_descriptor_; + metadata.reflection = RevokeRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +RevokeResponse::RevokeResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RevokeResponse::InitAsDefaultInstance() { +} + +RevokeResponse::RevokeResponse(const RevokeResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RevokeResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RevokeResponse::~RevokeResponse() { + SharedDtor(); +} + +void RevokeResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void RevokeResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RevokeResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RevokeResponse_descriptor_; +} + +const RevokeResponse& RevokeResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +RevokeResponse* RevokeResponse::default_instance_ = NULL; + +RevokeResponse* RevokeResponse::New() const { + return new RevokeResponse; +} + +void RevokeResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RevokeResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void RevokeResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RevokeResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RevokeResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RevokeResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RevokeResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RevokeResponse::MergeFrom(const RevokeResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RevokeResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RevokeResponse::CopyFrom(const RevokeResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RevokeResponse::IsInitialized() const { + + return true; +} + +void RevokeResponse::Swap(RevokeResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RevokeResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RevokeResponse_descriptor_; + metadata.reflection = RevokeResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetUserPermissionsRequest::kTypeFieldNumber; +const int GetUserPermissionsRequest::kTableNameFieldNumber; +const int GetUserPermissionsRequest::kNamespaceNameFieldNumber; +#endif // !_MSC_VER + +GetUserPermissionsRequest::GetUserPermissionsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetUserPermissionsRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +GetUserPermissionsRequest::GetUserPermissionsRequest(const GetUserPermissionsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetUserPermissionsRequest::SharedCtor() { + _cached_size_ = 0; + type_ = 1; + table_name_ = NULL; + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetUserPermissionsRequest::~GetUserPermissionsRequest() { + SharedDtor(); +} + +void GetUserPermissionsRequest::SharedDtor() { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + delete namespace_name_; + } + if (this != default_instance_) { + delete table_name_; + } +} + +void GetUserPermissionsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetUserPermissionsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetUserPermissionsRequest_descriptor_; +} + +const GetUserPermissionsRequest& GetUserPermissionsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +GetUserPermissionsRequest* GetUserPermissionsRequest::default_instance_ = NULL; + +GetUserPermissionsRequest* GetUserPermissionsRequest::New() const { + return new GetUserPermissionsRequest; +} + +void GetUserPermissionsRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + type_ = 1; + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_namespace_name()) { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + namespace_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetUserPermissionsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.Permission.Type type = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::Permission_Type_IsValid(value)) { + set_type(static_cast< ::hbase::pb::Permission_Type >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // optional .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_namespace_name; + break; + } + + // optional bytes namespace_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_namespace_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_namespace_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetUserPermissionsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.Permission.Type type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // optional .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(), output); + } + + // optional bytes namespace_name = 3; + if (has_namespace_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->namespace_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetUserPermissionsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.Permission.Type type = 1; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // optional .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(), target); + } + + // optional bytes namespace_name = 3; + if (has_namespace_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->namespace_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetUserPermissionsRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.Permission.Type type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // optional .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional bytes namespace_name = 3; + if (has_namespace_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->namespace_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetUserPermissionsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetUserPermissionsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetUserPermissionsRequest::MergeFrom(const GetUserPermissionsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_namespace_name()) { + set_namespace_name(from.namespace_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetUserPermissionsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetUserPermissionsRequest::CopyFrom(const GetUserPermissionsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetUserPermissionsRequest::IsInitialized() const { + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void GetUserPermissionsRequest::Swap(GetUserPermissionsRequest* other) { + if (other != this) { + std::swap(type_, other->type_); + std::swap(table_name_, other->table_name_); + std::swap(namespace_name_, other->namespace_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetUserPermissionsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetUserPermissionsRequest_descriptor_; + metadata.reflection = GetUserPermissionsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetUserPermissionsResponse::kUserPermissionFieldNumber; +#endif // !_MSC_VER + +GetUserPermissionsResponse::GetUserPermissionsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetUserPermissionsResponse::InitAsDefaultInstance() { +} + +GetUserPermissionsResponse::GetUserPermissionsResponse(const GetUserPermissionsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetUserPermissionsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetUserPermissionsResponse::~GetUserPermissionsResponse() { + SharedDtor(); +} + +void GetUserPermissionsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetUserPermissionsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetUserPermissionsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetUserPermissionsResponse_descriptor_; +} + +const GetUserPermissionsResponse& GetUserPermissionsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +GetUserPermissionsResponse* GetUserPermissionsResponse::default_instance_ = NULL; + +GetUserPermissionsResponse* GetUserPermissionsResponse::New() const { + return new GetUserPermissionsResponse; +} + +void GetUserPermissionsResponse::Clear() { + user_permission_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetUserPermissionsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.UserPermission user_permission = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_user_permission: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_user_permission())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_user_permission; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetUserPermissionsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.UserPermission user_permission = 1; + for (int i = 0; i < this->user_permission_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_permission(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetUserPermissionsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.UserPermission user_permission = 1; + for (int i = 0; i < this->user_permission_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_permission(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetUserPermissionsResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.UserPermission user_permission = 1; + total_size += 1 * this->user_permission_size(); + for (int i = 0; i < this->user_permission_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_permission(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetUserPermissionsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetUserPermissionsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetUserPermissionsResponse::MergeFrom(const GetUserPermissionsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + user_permission_.MergeFrom(from.user_permission_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetUserPermissionsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetUserPermissionsResponse::CopyFrom(const GetUserPermissionsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetUserPermissionsResponse::IsInitialized() const { + + for (int i = 0; i < user_permission_size(); i++) { + if (!this->user_permission(i).IsInitialized()) return false; + } + return true; +} + +void GetUserPermissionsResponse::Swap(GetUserPermissionsResponse* other) { + if (other != this) { + user_permission_.Swap(&other->user_permission_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetUserPermissionsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetUserPermissionsResponse_descriptor_; + metadata.reflection = GetUserPermissionsResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CheckPermissionsRequest::kPermissionFieldNumber; +#endif // !_MSC_VER + +CheckPermissionsRequest::CheckPermissionsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CheckPermissionsRequest::InitAsDefaultInstance() { +} + +CheckPermissionsRequest::CheckPermissionsRequest(const CheckPermissionsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CheckPermissionsRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CheckPermissionsRequest::~CheckPermissionsRequest() { + SharedDtor(); +} + +void CheckPermissionsRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void CheckPermissionsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CheckPermissionsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CheckPermissionsRequest_descriptor_; +} + +const CheckPermissionsRequest& CheckPermissionsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +CheckPermissionsRequest* CheckPermissionsRequest::default_instance_ = NULL; + +CheckPermissionsRequest* CheckPermissionsRequest::New() const { + return new CheckPermissionsRequest; +} + +void CheckPermissionsRequest::Clear() { + permission_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CheckPermissionsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.Permission permission = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_permission: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_permission())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_permission; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CheckPermissionsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.Permission permission = 1; + for (int i = 0; i < this->permission_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->permission(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CheckPermissionsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.Permission permission = 1; + for (int i = 0; i < this->permission_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->permission(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CheckPermissionsRequest::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.Permission permission = 1; + total_size += 1 * this->permission_size(); + for (int i = 0; i < this->permission_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->permission(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CheckPermissionsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CheckPermissionsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CheckPermissionsRequest::MergeFrom(const CheckPermissionsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + permission_.MergeFrom(from.permission_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CheckPermissionsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CheckPermissionsRequest::CopyFrom(const CheckPermissionsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CheckPermissionsRequest::IsInitialized() const { + + for (int i = 0; i < permission_size(); i++) { + if (!this->permission(i).IsInitialized()) return false; + } + return true; +} + +void CheckPermissionsRequest::Swap(CheckPermissionsRequest* other) { + if (other != this) { + permission_.Swap(&other->permission_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CheckPermissionsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CheckPermissionsRequest_descriptor_; + metadata.reflection = CheckPermissionsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +CheckPermissionsResponse::CheckPermissionsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CheckPermissionsResponse::InitAsDefaultInstance() { +} + +CheckPermissionsResponse::CheckPermissionsResponse(const CheckPermissionsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CheckPermissionsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CheckPermissionsResponse::~CheckPermissionsResponse() { + SharedDtor(); +} + +void CheckPermissionsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void CheckPermissionsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CheckPermissionsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CheckPermissionsResponse_descriptor_; +} + +const CheckPermissionsResponse& CheckPermissionsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_AccessControl_2eproto(); + return *default_instance_; +} + +CheckPermissionsResponse* CheckPermissionsResponse::default_instance_ = NULL; + +CheckPermissionsResponse* CheckPermissionsResponse::New() const { + return new CheckPermissionsResponse; +} + +void CheckPermissionsResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CheckPermissionsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void CheckPermissionsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CheckPermissionsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CheckPermissionsResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CheckPermissionsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CheckPermissionsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CheckPermissionsResponse::MergeFrom(const CheckPermissionsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CheckPermissionsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CheckPermissionsResponse::CopyFrom(const CheckPermissionsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CheckPermissionsResponse::IsInitialized() const { + + return true; +} + +void CheckPermissionsResponse::Swap(CheckPermissionsResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CheckPermissionsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CheckPermissionsResponse_descriptor_; + metadata.reflection = CheckPermissionsResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/AccessControl.pb.h b/hbase-native-client/src/rpc/generated/AccessControl.pb.h new file mode 100644 index 0000000..fc90652 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/AccessControl.pb.h @@ -0,0 +1,2561 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AccessControl.proto + +#ifndef PROTOBUF_AccessControl_2eproto__INCLUDED +#define PROTOBUF_AccessControl_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_AccessControl_2eproto(); +void protobuf_AssignDesc_AccessControl_2eproto(); +void protobuf_ShutdownFile_AccessControl_2eproto(); + +class Permission; +class TablePermission; +class NamespacePermission; +class GlobalPermission; +class UserPermission; +class UsersAndPermissions; +class UsersAndPermissions_UserPermissions; +class GrantRequest; +class GrantResponse; +class RevokeRequest; +class RevokeResponse; +class GetUserPermissionsRequest; +class GetUserPermissionsResponse; +class CheckPermissionsRequest; +class CheckPermissionsResponse; + +enum Permission_Action { + Permission_Action_READ = 0, + Permission_Action_WRITE = 1, + Permission_Action_EXEC = 2, + Permission_Action_CREATE = 3, + Permission_Action_ADMIN = 4 +}; +bool Permission_Action_IsValid(int value); +const Permission_Action Permission_Action_Action_MIN = Permission_Action_READ; +const Permission_Action Permission_Action_Action_MAX = Permission_Action_ADMIN; +const int Permission_Action_Action_ARRAYSIZE = Permission_Action_Action_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Permission_Action_descriptor(); +inline const ::std::string& Permission_Action_Name(Permission_Action value) { + return ::google::protobuf::internal::NameOfEnum( + Permission_Action_descriptor(), value); +} +inline bool Permission_Action_Parse( + const ::std::string& name, Permission_Action* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Permission_Action_descriptor(), name, value); +} +enum Permission_Type { + Permission_Type_Global = 1, + Permission_Type_Namespace = 2, + Permission_Type_Table = 3 +}; +bool Permission_Type_IsValid(int value); +const Permission_Type Permission_Type_Type_MIN = Permission_Type_Global; +const Permission_Type Permission_Type_Type_MAX = Permission_Type_Table; +const int Permission_Type_Type_ARRAYSIZE = Permission_Type_Type_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Permission_Type_descriptor(); +inline const ::std::string& Permission_Type_Name(Permission_Type value) { + return ::google::protobuf::internal::NameOfEnum( + Permission_Type_descriptor(), value); +} +inline bool Permission_Type_Parse( + const ::std::string& name, Permission_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Permission_Type_descriptor(), name, value); +} +// =================================================================== + +class Permission : public ::google::protobuf::Message { + public: + Permission(); + virtual ~Permission(); + + Permission(const Permission& from); + + inline Permission& operator=(const Permission& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Permission& default_instance(); + + void Swap(Permission* other); + + // implements Message ---------------------------------------------- + + Permission* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Permission& from); + void MergeFrom(const Permission& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef Permission_Action Action; + static const Action READ = Permission_Action_READ; + static const Action WRITE = Permission_Action_WRITE; + static const Action EXEC = Permission_Action_EXEC; + static const Action CREATE = Permission_Action_CREATE; + static const Action ADMIN = Permission_Action_ADMIN; + static inline bool Action_IsValid(int value) { + return Permission_Action_IsValid(value); + } + static const Action Action_MIN = + Permission_Action_Action_MIN; + static const Action Action_MAX = + Permission_Action_Action_MAX; + static const int Action_ARRAYSIZE = + Permission_Action_Action_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Action_descriptor() { + return Permission_Action_descriptor(); + } + static inline const ::std::string& Action_Name(Action value) { + return Permission_Action_Name(value); + } + static inline bool Action_Parse(const ::std::string& name, + Action* value) { + return Permission_Action_Parse(name, value); + } + + typedef Permission_Type Type; + static const Type Global = Permission_Type_Global; + static const Type Namespace = Permission_Type_Namespace; + static const Type Table = Permission_Type_Table; + static inline bool Type_IsValid(int value) { + return Permission_Type_IsValid(value); + } + static const Type Type_MIN = + Permission_Type_Type_MIN; + static const Type Type_MAX = + Permission_Type_Type_MAX; + static const int Type_ARRAYSIZE = + Permission_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Type_descriptor() { + return Permission_Type_descriptor(); + } + static inline const ::std::string& Type_Name(Type value) { + return Permission_Type_Name(value); + } + static inline bool Type_Parse(const ::std::string& name, + Type* value) { + return Permission_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.Permission.Type type = 1; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 1; + inline ::hbase::pb::Permission_Type type() const; + inline void set_type(::hbase::pb::Permission_Type value); + + // optional .hbase.pb.GlobalPermission global_permission = 2; + inline bool has_global_permission() const; + inline void clear_global_permission(); + static const int kGlobalPermissionFieldNumber = 2; + inline const ::hbase::pb::GlobalPermission& global_permission() const; + inline ::hbase::pb::GlobalPermission* mutable_global_permission(); + inline ::hbase::pb::GlobalPermission* release_global_permission(); + inline void set_allocated_global_permission(::hbase::pb::GlobalPermission* global_permission); + + // optional .hbase.pb.NamespacePermission namespace_permission = 3; + inline bool has_namespace_permission() const; + inline void clear_namespace_permission(); + static const int kNamespacePermissionFieldNumber = 3; + inline const ::hbase::pb::NamespacePermission& namespace_permission() const; + inline ::hbase::pb::NamespacePermission* mutable_namespace_permission(); + inline ::hbase::pb::NamespacePermission* release_namespace_permission(); + inline void set_allocated_namespace_permission(::hbase::pb::NamespacePermission* namespace_permission); + + // optional .hbase.pb.TablePermission table_permission = 4; + inline bool has_table_permission() const; + inline void clear_table_permission(); + static const int kTablePermissionFieldNumber = 4; + inline const ::hbase::pb::TablePermission& table_permission() const; + inline ::hbase::pb::TablePermission* mutable_table_permission(); + inline ::hbase::pb::TablePermission* release_table_permission(); + inline void set_allocated_table_permission(::hbase::pb::TablePermission* table_permission); + + // @@protoc_insertion_point(class_scope:hbase.pb.Permission) + private: + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_global_permission(); + inline void clear_has_global_permission(); + inline void set_has_namespace_permission(); + inline void clear_has_namespace_permission(); + inline void set_has_table_permission(); + inline void clear_has_table_permission(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::GlobalPermission* global_permission_; + ::hbase::pb::NamespacePermission* namespace_permission_; + ::hbase::pb::TablePermission* table_permission_; + int type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static Permission* default_instance_; +}; +// ------------------------------------------------------------------- + +class TablePermission : public ::google::protobuf::Message { + public: + TablePermission(); + virtual ~TablePermission(); + + TablePermission(const TablePermission& from); + + inline TablePermission& operator=(const TablePermission& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TablePermission& default_instance(); + + void Swap(TablePermission* other); + + // implements Message ---------------------------------------------- + + TablePermission* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TablePermission& from); + void MergeFrom(const TablePermission& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional bytes family = 2; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 2; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // optional bytes qualifier = 3; + inline bool has_qualifier() const; + inline void clear_qualifier(); + static const int kQualifierFieldNumber = 3; + inline const ::std::string& qualifier() const; + inline void set_qualifier(const ::std::string& value); + inline void set_qualifier(const char* value); + inline void set_qualifier(const void* value, size_t size); + inline ::std::string* mutable_qualifier(); + inline ::std::string* release_qualifier(); + inline void set_allocated_qualifier(::std::string* qualifier); + + // repeated .hbase.pb.Permission.Action action = 4; + inline int action_size() const; + inline void clear_action(); + static const int kActionFieldNumber = 4; + inline ::hbase::pb::Permission_Action action(int index) const; + inline void set_action(int index, ::hbase::pb::Permission_Action value); + inline void add_action(::hbase::pb::Permission_Action value); + inline const ::google::protobuf::RepeatedField& action() const; + inline ::google::protobuf::RepeatedField* mutable_action(); + + // @@protoc_insertion_point(class_scope:hbase.pb.TablePermission) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_family(); + inline void clear_has_family(); + inline void set_has_qualifier(); + inline void clear_has_qualifier(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::std::string* family_; + ::std::string* qualifier_; + ::google::protobuf::RepeatedField action_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static TablePermission* default_instance_; +}; +// ------------------------------------------------------------------- + +class NamespacePermission : public ::google::protobuf::Message { + public: + NamespacePermission(); + virtual ~NamespacePermission(); + + NamespacePermission(const NamespacePermission& from); + + inline NamespacePermission& operator=(const NamespacePermission& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NamespacePermission& default_instance(); + + void Swap(NamespacePermission* other); + + // implements Message ---------------------------------------------- + + NamespacePermission* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NamespacePermission& from); + void MergeFrom(const NamespacePermission& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes namespace_name = 1; + inline bool has_namespace_name() const; + inline void clear_namespace_name(); + static const int kNamespaceNameFieldNumber = 1; + inline const ::std::string& namespace_name() const; + inline void set_namespace_name(const ::std::string& value); + inline void set_namespace_name(const char* value); + inline void set_namespace_name(const void* value, size_t size); + inline ::std::string* mutable_namespace_name(); + inline ::std::string* release_namespace_name(); + inline void set_allocated_namespace_name(::std::string* namespace_name); + + // repeated .hbase.pb.Permission.Action action = 2; + inline int action_size() const; + inline void clear_action(); + static const int kActionFieldNumber = 2; + inline ::hbase::pb::Permission_Action action(int index) const; + inline void set_action(int index, ::hbase::pb::Permission_Action value); + inline void add_action(::hbase::pb::Permission_Action value); + inline const ::google::protobuf::RepeatedField& action() const; + inline ::google::protobuf::RepeatedField* mutable_action(); + + // @@protoc_insertion_point(class_scope:hbase.pb.NamespacePermission) + private: + inline void set_has_namespace_name(); + inline void clear_has_namespace_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* namespace_name_; + ::google::protobuf::RepeatedField action_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static NamespacePermission* default_instance_; +}; +// ------------------------------------------------------------------- + +class GlobalPermission : public ::google::protobuf::Message { + public: + GlobalPermission(); + virtual ~GlobalPermission(); + + GlobalPermission(const GlobalPermission& from); + + inline GlobalPermission& operator=(const GlobalPermission& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GlobalPermission& default_instance(); + + void Swap(GlobalPermission* other); + + // implements Message ---------------------------------------------- + + GlobalPermission* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GlobalPermission& from); + void MergeFrom(const GlobalPermission& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.Permission.Action action = 1; + inline int action_size() const; + inline void clear_action(); + static const int kActionFieldNumber = 1; + inline ::hbase::pb::Permission_Action action(int index) const; + inline void set_action(int index, ::hbase::pb::Permission_Action value); + inline void add_action(::hbase::pb::Permission_Action value); + inline const ::google::protobuf::RepeatedField& action() const; + inline ::google::protobuf::RepeatedField* mutable_action(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GlobalPermission) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedField action_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static GlobalPermission* default_instance_; +}; +// ------------------------------------------------------------------- + +class UserPermission : public ::google::protobuf::Message { + public: + UserPermission(); + virtual ~UserPermission(); + + UserPermission(const UserPermission& from); + + inline UserPermission& operator=(const UserPermission& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UserPermission& default_instance(); + + void Swap(UserPermission* other); + + // implements Message ---------------------------------------------- + + UserPermission* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UserPermission& from); + void MergeFrom(const UserPermission& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes user = 1; + inline bool has_user() const; + inline void clear_user(); + static const int kUserFieldNumber = 1; + inline const ::std::string& user() const; + inline void set_user(const ::std::string& value); + inline void set_user(const char* value); + inline void set_user(const void* value, size_t size); + inline ::std::string* mutable_user(); + inline ::std::string* release_user(); + inline void set_allocated_user(::std::string* user); + + // required .hbase.pb.Permission permission = 3; + inline bool has_permission() const; + inline void clear_permission(); + static const int kPermissionFieldNumber = 3; + inline const ::hbase::pb::Permission& permission() const; + inline ::hbase::pb::Permission* mutable_permission(); + inline ::hbase::pb::Permission* release_permission(); + inline void set_allocated_permission(::hbase::pb::Permission* permission); + + // @@protoc_insertion_point(class_scope:hbase.pb.UserPermission) + private: + inline void set_has_user(); + inline void clear_has_user(); + inline void set_has_permission(); + inline void clear_has_permission(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* user_; + ::hbase::pb::Permission* permission_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static UserPermission* default_instance_; +}; +// ------------------------------------------------------------------- + +class UsersAndPermissions_UserPermissions : public ::google::protobuf::Message { + public: + UsersAndPermissions_UserPermissions(); + virtual ~UsersAndPermissions_UserPermissions(); + + UsersAndPermissions_UserPermissions(const UsersAndPermissions_UserPermissions& from); + + inline UsersAndPermissions_UserPermissions& operator=(const UsersAndPermissions_UserPermissions& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UsersAndPermissions_UserPermissions& default_instance(); + + void Swap(UsersAndPermissions_UserPermissions* other); + + // implements Message ---------------------------------------------- + + UsersAndPermissions_UserPermissions* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UsersAndPermissions_UserPermissions& from); + void MergeFrom(const UsersAndPermissions_UserPermissions& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes user = 1; + inline bool has_user() const; + inline void clear_user(); + static const int kUserFieldNumber = 1; + inline const ::std::string& user() const; + inline void set_user(const ::std::string& value); + inline void set_user(const char* value); + inline void set_user(const void* value, size_t size); + inline ::std::string* mutable_user(); + inline ::std::string* release_user(); + inline void set_allocated_user(::std::string* user); + + // repeated .hbase.pb.Permission permissions = 2; + inline int permissions_size() const; + inline void clear_permissions(); + static const int kPermissionsFieldNumber = 2; + inline const ::hbase::pb::Permission& permissions(int index) const; + inline ::hbase::pb::Permission* mutable_permissions(int index); + inline ::hbase::pb::Permission* add_permissions(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission >& + permissions() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission >* + mutable_permissions(); + + // @@protoc_insertion_point(class_scope:hbase.pb.UsersAndPermissions.UserPermissions) + private: + inline void set_has_user(); + inline void clear_has_user(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* user_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission > permissions_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static UsersAndPermissions_UserPermissions* default_instance_; +}; +// ------------------------------------------------------------------- + +class UsersAndPermissions : public ::google::protobuf::Message { + public: + UsersAndPermissions(); + virtual ~UsersAndPermissions(); + + UsersAndPermissions(const UsersAndPermissions& from); + + inline UsersAndPermissions& operator=(const UsersAndPermissions& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UsersAndPermissions& default_instance(); + + void Swap(UsersAndPermissions* other); + + // implements Message ---------------------------------------------- + + UsersAndPermissions* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UsersAndPermissions& from); + void MergeFrom(const UsersAndPermissions& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef UsersAndPermissions_UserPermissions UserPermissions; + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.UsersAndPermissions.UserPermissions user_permissions = 1; + inline int user_permissions_size() const; + inline void clear_user_permissions(); + static const int kUserPermissionsFieldNumber = 1; + inline const ::hbase::pb::UsersAndPermissions_UserPermissions& user_permissions(int index) const; + inline ::hbase::pb::UsersAndPermissions_UserPermissions* mutable_user_permissions(int index); + inline ::hbase::pb::UsersAndPermissions_UserPermissions* add_user_permissions(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UsersAndPermissions_UserPermissions >& + user_permissions() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UsersAndPermissions_UserPermissions >* + mutable_user_permissions(); + + // @@protoc_insertion_point(class_scope:hbase.pb.UsersAndPermissions) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::UsersAndPermissions_UserPermissions > user_permissions_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static UsersAndPermissions* default_instance_; +}; +// ------------------------------------------------------------------- + +class GrantRequest : public ::google::protobuf::Message { + public: + GrantRequest(); + virtual ~GrantRequest(); + + GrantRequest(const GrantRequest& from); + + inline GrantRequest& operator=(const GrantRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GrantRequest& default_instance(); + + void Swap(GrantRequest* other); + + // implements Message ---------------------------------------------- + + GrantRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GrantRequest& from); + void MergeFrom(const GrantRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserPermission user_permission = 1; + inline bool has_user_permission() const; + inline void clear_user_permission(); + static const int kUserPermissionFieldNumber = 1; + inline const ::hbase::pb::UserPermission& user_permission() const; + inline ::hbase::pb::UserPermission* mutable_user_permission(); + inline ::hbase::pb::UserPermission* release_user_permission(); + inline void set_allocated_user_permission(::hbase::pb::UserPermission* user_permission); + + // @@protoc_insertion_point(class_scope:hbase.pb.GrantRequest) + private: + inline void set_has_user_permission(); + inline void clear_has_user_permission(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserPermission* user_permission_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static GrantRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GrantResponse : public ::google::protobuf::Message { + public: + GrantResponse(); + virtual ~GrantResponse(); + + GrantResponse(const GrantResponse& from); + + inline GrantResponse& operator=(const GrantResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GrantResponse& default_instance(); + + void Swap(GrantResponse* other); + + // implements Message ---------------------------------------------- + + GrantResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GrantResponse& from); + void MergeFrom(const GrantResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.GrantResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static GrantResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class RevokeRequest : public ::google::protobuf::Message { + public: + RevokeRequest(); + virtual ~RevokeRequest(); + + RevokeRequest(const RevokeRequest& from); + + inline RevokeRequest& operator=(const RevokeRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RevokeRequest& default_instance(); + + void Swap(RevokeRequest* other); + + // implements Message ---------------------------------------------- + + RevokeRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RevokeRequest& from); + void MergeFrom(const RevokeRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserPermission user_permission = 1; + inline bool has_user_permission() const; + inline void clear_user_permission(); + static const int kUserPermissionFieldNumber = 1; + inline const ::hbase::pb::UserPermission& user_permission() const; + inline ::hbase::pb::UserPermission* mutable_user_permission(); + inline ::hbase::pb::UserPermission* release_user_permission(); + inline void set_allocated_user_permission(::hbase::pb::UserPermission* user_permission); + + // @@protoc_insertion_point(class_scope:hbase.pb.RevokeRequest) + private: + inline void set_has_user_permission(); + inline void clear_has_user_permission(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserPermission* user_permission_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static RevokeRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class RevokeResponse : public ::google::protobuf::Message { + public: + RevokeResponse(); + virtual ~RevokeResponse(); + + RevokeResponse(const RevokeResponse& from); + + inline RevokeResponse& operator=(const RevokeResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RevokeResponse& default_instance(); + + void Swap(RevokeResponse* other); + + // implements Message ---------------------------------------------- + + RevokeResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RevokeResponse& from); + void MergeFrom(const RevokeResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.RevokeResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static RevokeResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetUserPermissionsRequest : public ::google::protobuf::Message { + public: + GetUserPermissionsRequest(); + virtual ~GetUserPermissionsRequest(); + + GetUserPermissionsRequest(const GetUserPermissionsRequest& from); + + inline GetUserPermissionsRequest& operator=(const GetUserPermissionsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetUserPermissionsRequest& default_instance(); + + void Swap(GetUserPermissionsRequest* other); + + // implements Message ---------------------------------------------- + + GetUserPermissionsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetUserPermissionsRequest& from); + void MergeFrom(const GetUserPermissionsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.Permission.Type type = 1; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 1; + inline ::hbase::pb::Permission_Type type() const; + inline void set_type(::hbase::pb::Permission_Type value); + + // optional .hbase.pb.TableName table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional bytes namespace_name = 3; + inline bool has_namespace_name() const; + inline void clear_namespace_name(); + static const int kNamespaceNameFieldNumber = 3; + inline const ::std::string& namespace_name() const; + inline void set_namespace_name(const ::std::string& value); + inline void set_namespace_name(const char* value); + inline void set_namespace_name(const void* value, size_t size); + inline ::std::string* mutable_namespace_name(); + inline ::std::string* release_namespace_name(); + inline void set_allocated_namespace_name(::std::string* namespace_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetUserPermissionsRequest) + private: + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_namespace_name(); + inline void clear_has_namespace_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::std::string* namespace_name_; + int type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static GetUserPermissionsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetUserPermissionsResponse : public ::google::protobuf::Message { + public: + GetUserPermissionsResponse(); + virtual ~GetUserPermissionsResponse(); + + GetUserPermissionsResponse(const GetUserPermissionsResponse& from); + + inline GetUserPermissionsResponse& operator=(const GetUserPermissionsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetUserPermissionsResponse& default_instance(); + + void Swap(GetUserPermissionsResponse* other); + + // implements Message ---------------------------------------------- + + GetUserPermissionsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetUserPermissionsResponse& from); + void MergeFrom(const GetUserPermissionsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.UserPermission user_permission = 1; + inline int user_permission_size() const; + inline void clear_user_permission(); + static const int kUserPermissionFieldNumber = 1; + inline const ::hbase::pb::UserPermission& user_permission(int index) const; + inline ::hbase::pb::UserPermission* mutable_user_permission(int index); + inline ::hbase::pb::UserPermission* add_user_permission(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserPermission >& + user_permission() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserPermission >* + mutable_user_permission(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetUserPermissionsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserPermission > user_permission_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static GetUserPermissionsResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class CheckPermissionsRequest : public ::google::protobuf::Message { + public: + CheckPermissionsRequest(); + virtual ~CheckPermissionsRequest(); + + CheckPermissionsRequest(const CheckPermissionsRequest& from); + + inline CheckPermissionsRequest& operator=(const CheckPermissionsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CheckPermissionsRequest& default_instance(); + + void Swap(CheckPermissionsRequest* other); + + // implements Message ---------------------------------------------- + + CheckPermissionsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CheckPermissionsRequest& from); + void MergeFrom(const CheckPermissionsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.Permission permission = 1; + inline int permission_size() const; + inline void clear_permission(); + static const int kPermissionFieldNumber = 1; + inline const ::hbase::pb::Permission& permission(int index) const; + inline ::hbase::pb::Permission* mutable_permission(int index); + inline ::hbase::pb::Permission* add_permission(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission >& + permission() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission >* + mutable_permission(); + + // @@protoc_insertion_point(class_scope:hbase.pb.CheckPermissionsRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission > permission_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static CheckPermissionsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class CheckPermissionsResponse : public ::google::protobuf::Message { + public: + CheckPermissionsResponse(); + virtual ~CheckPermissionsResponse(); + + CheckPermissionsResponse(const CheckPermissionsResponse& from); + + inline CheckPermissionsResponse& operator=(const CheckPermissionsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CheckPermissionsResponse& default_instance(); + + void Swap(CheckPermissionsResponse* other); + + // implements Message ---------------------------------------------- + + CheckPermissionsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CheckPermissionsResponse& from); + void MergeFrom(const CheckPermissionsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.CheckPermissionsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_AccessControl_2eproto(); + friend void protobuf_AssignDesc_AccessControl_2eproto(); + friend void protobuf_ShutdownFile_AccessControl_2eproto(); + + void InitAsDefaultInstance(); + static CheckPermissionsResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// Permission + +// required .hbase.pb.Permission.Type type = 1; +inline bool Permission::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Permission::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void Permission::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Permission::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hbase::pb::Permission_Type Permission::type() const { + return static_cast< ::hbase::pb::Permission_Type >(type_); +} +inline void Permission::set_type(::hbase::pb::Permission_Type value) { + assert(::hbase::pb::Permission_Type_IsValid(value)); + set_has_type(); + type_ = value; +} + +// optional .hbase.pb.GlobalPermission global_permission = 2; +inline bool Permission::has_global_permission() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Permission::set_has_global_permission() { + _has_bits_[0] |= 0x00000002u; +} +inline void Permission::clear_has_global_permission() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Permission::clear_global_permission() { + if (global_permission_ != NULL) global_permission_->::hbase::pb::GlobalPermission::Clear(); + clear_has_global_permission(); +} +inline const ::hbase::pb::GlobalPermission& Permission::global_permission() const { + return global_permission_ != NULL ? *global_permission_ : *default_instance_->global_permission_; +} +inline ::hbase::pb::GlobalPermission* Permission::mutable_global_permission() { + set_has_global_permission(); + if (global_permission_ == NULL) global_permission_ = new ::hbase::pb::GlobalPermission; + return global_permission_; +} +inline ::hbase::pb::GlobalPermission* Permission::release_global_permission() { + clear_has_global_permission(); + ::hbase::pb::GlobalPermission* temp = global_permission_; + global_permission_ = NULL; + return temp; +} +inline void Permission::set_allocated_global_permission(::hbase::pb::GlobalPermission* global_permission) { + delete global_permission_; + global_permission_ = global_permission; + if (global_permission) { + set_has_global_permission(); + } else { + clear_has_global_permission(); + } +} + +// optional .hbase.pb.NamespacePermission namespace_permission = 3; +inline bool Permission::has_namespace_permission() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Permission::set_has_namespace_permission() { + _has_bits_[0] |= 0x00000004u; +} +inline void Permission::clear_has_namespace_permission() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Permission::clear_namespace_permission() { + if (namespace_permission_ != NULL) namespace_permission_->::hbase::pb::NamespacePermission::Clear(); + clear_has_namespace_permission(); +} +inline const ::hbase::pb::NamespacePermission& Permission::namespace_permission() const { + return namespace_permission_ != NULL ? *namespace_permission_ : *default_instance_->namespace_permission_; +} +inline ::hbase::pb::NamespacePermission* Permission::mutable_namespace_permission() { + set_has_namespace_permission(); + if (namespace_permission_ == NULL) namespace_permission_ = new ::hbase::pb::NamespacePermission; + return namespace_permission_; +} +inline ::hbase::pb::NamespacePermission* Permission::release_namespace_permission() { + clear_has_namespace_permission(); + ::hbase::pb::NamespacePermission* temp = namespace_permission_; + namespace_permission_ = NULL; + return temp; +} +inline void Permission::set_allocated_namespace_permission(::hbase::pb::NamespacePermission* namespace_permission) { + delete namespace_permission_; + namespace_permission_ = namespace_permission; + if (namespace_permission) { + set_has_namespace_permission(); + } else { + clear_has_namespace_permission(); + } +} + +// optional .hbase.pb.TablePermission table_permission = 4; +inline bool Permission::has_table_permission() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Permission::set_has_table_permission() { + _has_bits_[0] |= 0x00000008u; +} +inline void Permission::clear_has_table_permission() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Permission::clear_table_permission() { + if (table_permission_ != NULL) table_permission_->::hbase::pb::TablePermission::Clear(); + clear_has_table_permission(); +} +inline const ::hbase::pb::TablePermission& Permission::table_permission() const { + return table_permission_ != NULL ? *table_permission_ : *default_instance_->table_permission_; +} +inline ::hbase::pb::TablePermission* Permission::mutable_table_permission() { + set_has_table_permission(); + if (table_permission_ == NULL) table_permission_ = new ::hbase::pb::TablePermission; + return table_permission_; +} +inline ::hbase::pb::TablePermission* Permission::release_table_permission() { + clear_has_table_permission(); + ::hbase::pb::TablePermission* temp = table_permission_; + table_permission_ = NULL; + return temp; +} +inline void Permission::set_allocated_table_permission(::hbase::pb::TablePermission* table_permission) { + delete table_permission_; + table_permission_ = table_permission; + if (table_permission) { + set_has_table_permission(); + } else { + clear_has_table_permission(); + } +} + +// ------------------------------------------------------------------- + +// TablePermission + +// optional .hbase.pb.TableName table_name = 1; +inline bool TablePermission::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TablePermission::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void TablePermission::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TablePermission::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& TablePermission::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* TablePermission::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* TablePermission::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void TablePermission::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional bytes family = 2; +inline bool TablePermission::has_family() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TablePermission::set_has_family() { + _has_bits_[0] |= 0x00000002u; +} +inline void TablePermission::clear_has_family() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TablePermission::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& TablePermission::family() const { + return *family_; +} +inline void TablePermission::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void TablePermission::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void TablePermission::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* TablePermission::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* TablePermission::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void TablePermission::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes qualifier = 3; +inline bool TablePermission::has_qualifier() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TablePermission::set_has_qualifier() { + _has_bits_[0] |= 0x00000004u; +} +inline void TablePermission::clear_has_qualifier() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TablePermission::clear_qualifier() { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + clear_has_qualifier(); +} +inline const ::std::string& TablePermission::qualifier() const { + return *qualifier_; +} +inline void TablePermission::set_qualifier(const ::std::string& value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void TablePermission::set_qualifier(const char* value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void TablePermission::set_qualifier(const void* value, size_t size) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* TablePermission::mutable_qualifier() { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + return qualifier_; +} +inline ::std::string* TablePermission::release_qualifier() { + clear_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = qualifier_; + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void TablePermission::set_allocated_qualifier(::std::string* qualifier) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (qualifier) { + set_has_qualifier(); + qualifier_ = qualifier; + } else { + clear_has_qualifier(); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.Permission.Action action = 4; +inline int TablePermission::action_size() const { + return action_.size(); +} +inline void TablePermission::clear_action() { + action_.Clear(); +} +inline ::hbase::pb::Permission_Action TablePermission::action(int index) const { + return static_cast< ::hbase::pb::Permission_Action >(action_.Get(index)); +} +inline void TablePermission::set_action(int index, ::hbase::pb::Permission_Action value) { + assert(::hbase::pb::Permission_Action_IsValid(value)); + action_.Set(index, value); +} +inline void TablePermission::add_action(::hbase::pb::Permission_Action value) { + assert(::hbase::pb::Permission_Action_IsValid(value)); + action_.Add(value); +} +inline const ::google::protobuf::RepeatedField& +TablePermission::action() const { + return action_; +} +inline ::google::protobuf::RepeatedField* +TablePermission::mutable_action() { + return &action_; +} + +// ------------------------------------------------------------------- + +// NamespacePermission + +// optional bytes namespace_name = 1; +inline bool NamespacePermission::has_namespace_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NamespacePermission::set_has_namespace_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void NamespacePermission::clear_has_namespace_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NamespacePermission::clear_namespace_name() { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + namespace_name_->clear(); + } + clear_has_namespace_name(); +} +inline const ::std::string& NamespacePermission::namespace_name() const { + return *namespace_name_; +} +inline void NamespacePermission::set_namespace_name(const ::std::string& value) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(value); +} +inline void NamespacePermission::set_namespace_name(const char* value) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(value); +} +inline void NamespacePermission::set_namespace_name(const void* value, size_t size) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* NamespacePermission::mutable_namespace_name() { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + return namespace_name_; +} +inline ::std::string* NamespacePermission::release_namespace_name() { + clear_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespace_name_; + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void NamespacePermission::set_allocated_namespace_name(::std::string* namespace_name) { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + delete namespace_name_; + } + if (namespace_name) { + set_has_namespace_name(); + namespace_name_ = namespace_name; + } else { + clear_has_namespace_name(); + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.Permission.Action action = 2; +inline int NamespacePermission::action_size() const { + return action_.size(); +} +inline void NamespacePermission::clear_action() { + action_.Clear(); +} +inline ::hbase::pb::Permission_Action NamespacePermission::action(int index) const { + return static_cast< ::hbase::pb::Permission_Action >(action_.Get(index)); +} +inline void NamespacePermission::set_action(int index, ::hbase::pb::Permission_Action value) { + assert(::hbase::pb::Permission_Action_IsValid(value)); + action_.Set(index, value); +} +inline void NamespacePermission::add_action(::hbase::pb::Permission_Action value) { + assert(::hbase::pb::Permission_Action_IsValid(value)); + action_.Add(value); +} +inline const ::google::protobuf::RepeatedField& +NamespacePermission::action() const { + return action_; +} +inline ::google::protobuf::RepeatedField* +NamespacePermission::mutable_action() { + return &action_; +} + +// ------------------------------------------------------------------- + +// GlobalPermission + +// repeated .hbase.pb.Permission.Action action = 1; +inline int GlobalPermission::action_size() const { + return action_.size(); +} +inline void GlobalPermission::clear_action() { + action_.Clear(); +} +inline ::hbase::pb::Permission_Action GlobalPermission::action(int index) const { + return static_cast< ::hbase::pb::Permission_Action >(action_.Get(index)); +} +inline void GlobalPermission::set_action(int index, ::hbase::pb::Permission_Action value) { + assert(::hbase::pb::Permission_Action_IsValid(value)); + action_.Set(index, value); +} +inline void GlobalPermission::add_action(::hbase::pb::Permission_Action value) { + assert(::hbase::pb::Permission_Action_IsValid(value)); + action_.Add(value); +} +inline const ::google::protobuf::RepeatedField& +GlobalPermission::action() const { + return action_; +} +inline ::google::protobuf::RepeatedField* +GlobalPermission::mutable_action() { + return &action_; +} + +// ------------------------------------------------------------------- + +// UserPermission + +// required bytes user = 1; +inline bool UserPermission::has_user() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UserPermission::set_has_user() { + _has_bits_[0] |= 0x00000001u; +} +inline void UserPermission::clear_has_user() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UserPermission::clear_user() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + clear_has_user(); +} +inline const ::std::string& UserPermission::user() const { + return *user_; +} +inline void UserPermission::set_user(const ::std::string& value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void UserPermission::set_user(const char* value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void UserPermission::set_user(const void* value, size_t size) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* UserPermission::mutable_user() { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + return user_; +} +inline ::std::string* UserPermission::release_user() { + clear_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void UserPermission::set_allocated_user(::std::string* user) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (user) { + set_has_user(); + user_ = user; + } else { + clear_has_user(); + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required .hbase.pb.Permission permission = 3; +inline bool UserPermission::has_permission() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void UserPermission::set_has_permission() { + _has_bits_[0] |= 0x00000002u; +} +inline void UserPermission::clear_has_permission() { + _has_bits_[0] &= ~0x00000002u; +} +inline void UserPermission::clear_permission() { + if (permission_ != NULL) permission_->::hbase::pb::Permission::Clear(); + clear_has_permission(); +} +inline const ::hbase::pb::Permission& UserPermission::permission() const { + return permission_ != NULL ? *permission_ : *default_instance_->permission_; +} +inline ::hbase::pb::Permission* UserPermission::mutable_permission() { + set_has_permission(); + if (permission_ == NULL) permission_ = new ::hbase::pb::Permission; + return permission_; +} +inline ::hbase::pb::Permission* UserPermission::release_permission() { + clear_has_permission(); + ::hbase::pb::Permission* temp = permission_; + permission_ = NULL; + return temp; +} +inline void UserPermission::set_allocated_permission(::hbase::pb::Permission* permission) { + delete permission_; + permission_ = permission; + if (permission) { + set_has_permission(); + } else { + clear_has_permission(); + } +} + +// ------------------------------------------------------------------- + +// UsersAndPermissions_UserPermissions + +// required bytes user = 1; +inline bool UsersAndPermissions_UserPermissions::has_user() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UsersAndPermissions_UserPermissions::set_has_user() { + _has_bits_[0] |= 0x00000001u; +} +inline void UsersAndPermissions_UserPermissions::clear_has_user() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UsersAndPermissions_UserPermissions::clear_user() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + clear_has_user(); +} +inline const ::std::string& UsersAndPermissions_UserPermissions::user() const { + return *user_; +} +inline void UsersAndPermissions_UserPermissions::set_user(const ::std::string& value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void UsersAndPermissions_UserPermissions::set_user(const char* value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void UsersAndPermissions_UserPermissions::set_user(const void* value, size_t size) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* UsersAndPermissions_UserPermissions::mutable_user() { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + return user_; +} +inline ::std::string* UsersAndPermissions_UserPermissions::release_user() { + clear_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void UsersAndPermissions_UserPermissions::set_allocated_user(::std::string* user) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (user) { + set_has_user(); + user_ = user; + } else { + clear_has_user(); + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.Permission permissions = 2; +inline int UsersAndPermissions_UserPermissions::permissions_size() const { + return permissions_.size(); +} +inline void UsersAndPermissions_UserPermissions::clear_permissions() { + permissions_.Clear(); +} +inline const ::hbase::pb::Permission& UsersAndPermissions_UserPermissions::permissions(int index) const { + return permissions_.Get(index); +} +inline ::hbase::pb::Permission* UsersAndPermissions_UserPermissions::mutable_permissions(int index) { + return permissions_.Mutable(index); +} +inline ::hbase::pb::Permission* UsersAndPermissions_UserPermissions::add_permissions() { + return permissions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission >& +UsersAndPermissions_UserPermissions::permissions() const { + return permissions_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission >* +UsersAndPermissions_UserPermissions::mutable_permissions() { + return &permissions_; +} + +// ------------------------------------------------------------------- + +// UsersAndPermissions + +// repeated .hbase.pb.UsersAndPermissions.UserPermissions user_permissions = 1; +inline int UsersAndPermissions::user_permissions_size() const { + return user_permissions_.size(); +} +inline void UsersAndPermissions::clear_user_permissions() { + user_permissions_.Clear(); +} +inline const ::hbase::pb::UsersAndPermissions_UserPermissions& UsersAndPermissions::user_permissions(int index) const { + return user_permissions_.Get(index); +} +inline ::hbase::pb::UsersAndPermissions_UserPermissions* UsersAndPermissions::mutable_user_permissions(int index) { + return user_permissions_.Mutable(index); +} +inline ::hbase::pb::UsersAndPermissions_UserPermissions* UsersAndPermissions::add_user_permissions() { + return user_permissions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UsersAndPermissions_UserPermissions >& +UsersAndPermissions::user_permissions() const { + return user_permissions_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UsersAndPermissions_UserPermissions >* +UsersAndPermissions::mutable_user_permissions() { + return &user_permissions_; +} + +// ------------------------------------------------------------------- + +// GrantRequest + +// required .hbase.pb.UserPermission user_permission = 1; +inline bool GrantRequest::has_user_permission() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GrantRequest::set_has_user_permission() { + _has_bits_[0] |= 0x00000001u; +} +inline void GrantRequest::clear_has_user_permission() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GrantRequest::clear_user_permission() { + if (user_permission_ != NULL) user_permission_->::hbase::pb::UserPermission::Clear(); + clear_has_user_permission(); +} +inline const ::hbase::pb::UserPermission& GrantRequest::user_permission() const { + return user_permission_ != NULL ? *user_permission_ : *default_instance_->user_permission_; +} +inline ::hbase::pb::UserPermission* GrantRequest::mutable_user_permission() { + set_has_user_permission(); + if (user_permission_ == NULL) user_permission_ = new ::hbase::pb::UserPermission; + return user_permission_; +} +inline ::hbase::pb::UserPermission* GrantRequest::release_user_permission() { + clear_has_user_permission(); + ::hbase::pb::UserPermission* temp = user_permission_; + user_permission_ = NULL; + return temp; +} +inline void GrantRequest::set_allocated_user_permission(::hbase::pb::UserPermission* user_permission) { + delete user_permission_; + user_permission_ = user_permission; + if (user_permission) { + set_has_user_permission(); + } else { + clear_has_user_permission(); + } +} + +// ------------------------------------------------------------------- + +// GrantResponse + +// ------------------------------------------------------------------- + +// RevokeRequest + +// required .hbase.pb.UserPermission user_permission = 1; +inline bool RevokeRequest::has_user_permission() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RevokeRequest::set_has_user_permission() { + _has_bits_[0] |= 0x00000001u; +} +inline void RevokeRequest::clear_has_user_permission() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RevokeRequest::clear_user_permission() { + if (user_permission_ != NULL) user_permission_->::hbase::pb::UserPermission::Clear(); + clear_has_user_permission(); +} +inline const ::hbase::pb::UserPermission& RevokeRequest::user_permission() const { + return user_permission_ != NULL ? *user_permission_ : *default_instance_->user_permission_; +} +inline ::hbase::pb::UserPermission* RevokeRequest::mutable_user_permission() { + set_has_user_permission(); + if (user_permission_ == NULL) user_permission_ = new ::hbase::pb::UserPermission; + return user_permission_; +} +inline ::hbase::pb::UserPermission* RevokeRequest::release_user_permission() { + clear_has_user_permission(); + ::hbase::pb::UserPermission* temp = user_permission_; + user_permission_ = NULL; + return temp; +} +inline void RevokeRequest::set_allocated_user_permission(::hbase::pb::UserPermission* user_permission) { + delete user_permission_; + user_permission_ = user_permission; + if (user_permission) { + set_has_user_permission(); + } else { + clear_has_user_permission(); + } +} + +// ------------------------------------------------------------------- + +// RevokeResponse + +// ------------------------------------------------------------------- + +// GetUserPermissionsRequest + +// optional .hbase.pb.Permission.Type type = 1; +inline bool GetUserPermissionsRequest::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetUserPermissionsRequest::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetUserPermissionsRequest::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetUserPermissionsRequest::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hbase::pb::Permission_Type GetUserPermissionsRequest::type() const { + return static_cast< ::hbase::pb::Permission_Type >(type_); +} +inline void GetUserPermissionsRequest::set_type(::hbase::pb::Permission_Type value) { + assert(::hbase::pb::Permission_Type_IsValid(value)); + set_has_type(); + type_ = value; +} + +// optional .hbase.pb.TableName table_name = 2; +inline bool GetUserPermissionsRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetUserPermissionsRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetUserPermissionsRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetUserPermissionsRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& GetUserPermissionsRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* GetUserPermissionsRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* GetUserPermissionsRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void GetUserPermissionsRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional bytes namespace_name = 3; +inline bool GetUserPermissionsRequest::has_namespace_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GetUserPermissionsRequest::set_has_namespace_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void GetUserPermissionsRequest::clear_has_namespace_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GetUserPermissionsRequest::clear_namespace_name() { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + namespace_name_->clear(); + } + clear_has_namespace_name(); +} +inline const ::std::string& GetUserPermissionsRequest::namespace_name() const { + return *namespace_name_; +} +inline void GetUserPermissionsRequest::set_namespace_name(const ::std::string& value) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(value); +} +inline void GetUserPermissionsRequest::set_namespace_name(const char* value) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(value); +} +inline void GetUserPermissionsRequest::set_namespace_name(const void* value, size_t size) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetUserPermissionsRequest::mutable_namespace_name() { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + return namespace_name_; +} +inline ::std::string* GetUserPermissionsRequest::release_namespace_name() { + clear_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespace_name_; + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetUserPermissionsRequest::set_allocated_namespace_name(::std::string* namespace_name) { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + delete namespace_name_; + } + if (namespace_name) { + set_has_namespace_name(); + namespace_name_ = namespace_name; + } else { + clear_has_namespace_name(); + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// GetUserPermissionsResponse + +// repeated .hbase.pb.UserPermission user_permission = 1; +inline int GetUserPermissionsResponse::user_permission_size() const { + return user_permission_.size(); +} +inline void GetUserPermissionsResponse::clear_user_permission() { + user_permission_.Clear(); +} +inline const ::hbase::pb::UserPermission& GetUserPermissionsResponse::user_permission(int index) const { + return user_permission_.Get(index); +} +inline ::hbase::pb::UserPermission* GetUserPermissionsResponse::mutable_user_permission(int index) { + return user_permission_.Mutable(index); +} +inline ::hbase::pb::UserPermission* GetUserPermissionsResponse::add_user_permission() { + return user_permission_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserPermission >& +GetUserPermissionsResponse::user_permission() const { + return user_permission_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserPermission >* +GetUserPermissionsResponse::mutable_user_permission() { + return &user_permission_; +} + +// ------------------------------------------------------------------- + +// CheckPermissionsRequest + +// repeated .hbase.pb.Permission permission = 1; +inline int CheckPermissionsRequest::permission_size() const { + return permission_.size(); +} +inline void CheckPermissionsRequest::clear_permission() { + permission_.Clear(); +} +inline const ::hbase::pb::Permission& CheckPermissionsRequest::permission(int index) const { + return permission_.Get(index); +} +inline ::hbase::pb::Permission* CheckPermissionsRequest::mutable_permission(int index) { + return permission_.Mutable(index); +} +inline ::hbase::pb::Permission* CheckPermissionsRequest::add_permission() { + return permission_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission >& +CheckPermissionsRequest::permission() const { + return permission_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Permission >* +CheckPermissionsRequest::mutable_permission() { + return &permission_; +} + +// ------------------------------------------------------------------- + +// CheckPermissionsResponse + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::Permission_Action>() { + return ::hbase::pb::Permission_Action_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::Permission_Type>() { + return ::hbase::pb::Permission_Type_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_AccessControl_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Admin.pb.cc b/hbase-native-client/src/rpc/generated/Admin.pb.cc new file mode 100644 index 0000000..0dbff8e --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Admin.pb.cc @@ -0,0 +1,9470 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Admin.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Admin.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* GetRegionInfoRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRegionInfoRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetRegionInfoResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRegionInfoResponse_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* GetRegionInfoResponse_CompactionState_descriptor_ = NULL; +const ::google::protobuf::Descriptor* GetStoreFileRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetStoreFileRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetStoreFileResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetStoreFileResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetOnlineRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetOnlineRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetOnlineRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetOnlineRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* OpenRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + OpenRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* OpenRegionRequest_RegionOpenInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + OpenRegionRequest_RegionOpenInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* OpenRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + OpenRegionResponse_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* OpenRegionResponse_RegionOpeningState_descriptor_ = NULL; +const ::google::protobuf::Descriptor* WarmupRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WarmupRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* WarmupRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WarmupRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* CloseRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CloseRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* CloseRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CloseRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* FlushRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FlushRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* FlushRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FlushRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* SplitRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SplitRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SplitRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SplitRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* CompactRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CompactRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* CompactRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CompactRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* UpdateFavoredNodesRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UpdateFavoredNodesRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* UpdateFavoredNodesRequest_RegionUpdateInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UpdateFavoredNodesRequest_RegionUpdateInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* UpdateFavoredNodesResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UpdateFavoredNodesResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* MergeRegionsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MergeRegionsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MergeRegionsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MergeRegionsResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* WALEntry_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WALEntry_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReplicateWALEntryRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReplicateWALEntryRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReplicateWALEntryResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReplicateWALEntryResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* RollWALWriterRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RollWALWriterRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* RollWALWriterResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RollWALWriterResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* StopServerRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StopServerRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* StopServerResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StopServerResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetServerInfoRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetServerInfoRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ServerInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ServerInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetServerInfoResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetServerInfoResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* UpdateConfigurationRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UpdateConfigurationRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* UpdateConfigurationResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UpdateConfigurationResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Admin_2eproto() { + protobuf_AddDesc_Admin_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Admin.proto"); + GOOGLE_CHECK(file != NULL); + GetRegionInfoRequest_descriptor_ = file->message_type(0); + static const int GetRegionInfoRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoRequest, compaction_state_), + }; + GetRegionInfoRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRegionInfoRequest_descriptor_, + GetRegionInfoRequest::default_instance_, + GetRegionInfoRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRegionInfoRequest)); + GetRegionInfoResponse_descriptor_ = file->message_type(1); + static const int GetRegionInfoResponse_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoResponse, region_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoResponse, compaction_state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoResponse, isrecovering_), + }; + GetRegionInfoResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRegionInfoResponse_descriptor_, + GetRegionInfoResponse::default_instance_, + GetRegionInfoResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRegionInfoResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRegionInfoResponse)); + GetRegionInfoResponse_CompactionState_descriptor_ = GetRegionInfoResponse_descriptor_->enum_type(0); + GetStoreFileRequest_descriptor_ = file->message_type(2); + static const int GetStoreFileRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetStoreFileRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetStoreFileRequest, family_), + }; + GetStoreFileRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetStoreFileRequest_descriptor_, + GetStoreFileRequest::default_instance_, + GetStoreFileRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetStoreFileRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetStoreFileRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetStoreFileRequest)); + GetStoreFileResponse_descriptor_ = file->message_type(3); + static const int GetStoreFileResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetStoreFileResponse, store_file_), + }; + GetStoreFileResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetStoreFileResponse_descriptor_, + GetStoreFileResponse::default_instance_, + GetStoreFileResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetStoreFileResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetStoreFileResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetStoreFileResponse)); + GetOnlineRegionRequest_descriptor_ = file->message_type(4); + static const int GetOnlineRegionRequest_offsets_[1] = { + }; + GetOnlineRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetOnlineRegionRequest_descriptor_, + GetOnlineRegionRequest::default_instance_, + GetOnlineRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetOnlineRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetOnlineRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetOnlineRegionRequest)); + GetOnlineRegionResponse_descriptor_ = file->message_type(5); + static const int GetOnlineRegionResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetOnlineRegionResponse, region_info_), + }; + GetOnlineRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetOnlineRegionResponse_descriptor_, + GetOnlineRegionResponse::default_instance_, + GetOnlineRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetOnlineRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetOnlineRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetOnlineRegionResponse)); + OpenRegionRequest_descriptor_ = file->message_type(6); + static const int OpenRegionRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest, open_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest, serverstartcode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest, master_system_time_), + }; + OpenRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + OpenRegionRequest_descriptor_, + OpenRegionRequest::default_instance_, + OpenRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(OpenRegionRequest)); + OpenRegionRequest_RegionOpenInfo_descriptor_ = OpenRegionRequest_descriptor_->nested_type(0); + static const int OpenRegionRequest_RegionOpenInfo_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest_RegionOpenInfo, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest_RegionOpenInfo, version_of_offline_node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest_RegionOpenInfo, favored_nodes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest_RegionOpenInfo, openfordistributedlogreplay_), + }; + OpenRegionRequest_RegionOpenInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + OpenRegionRequest_RegionOpenInfo_descriptor_, + OpenRegionRequest_RegionOpenInfo::default_instance_, + OpenRegionRequest_RegionOpenInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest_RegionOpenInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionRequest_RegionOpenInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(OpenRegionRequest_RegionOpenInfo)); + OpenRegionResponse_descriptor_ = file->message_type(7); + static const int OpenRegionResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionResponse, opening_state_), + }; + OpenRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + OpenRegionResponse_descriptor_, + OpenRegionResponse::default_instance_, + OpenRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpenRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(OpenRegionResponse)); + OpenRegionResponse_RegionOpeningState_descriptor_ = OpenRegionResponse_descriptor_->enum_type(0); + WarmupRegionRequest_descriptor_ = file->message_type(8); + static const int WarmupRegionRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WarmupRegionRequest, regioninfo_), + }; + WarmupRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WarmupRegionRequest_descriptor_, + WarmupRegionRequest::default_instance_, + WarmupRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WarmupRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WarmupRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WarmupRegionRequest)); + WarmupRegionResponse_descriptor_ = file->message_type(9); + static const int WarmupRegionResponse_offsets_[1] = { + }; + WarmupRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WarmupRegionResponse_descriptor_, + WarmupRegionResponse::default_instance_, + WarmupRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WarmupRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WarmupRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WarmupRegionResponse)); + CloseRegionRequest_descriptor_ = file->message_type(10); + static const int CloseRegionRequest_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionRequest, version_of_closing_node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionRequest, transition_in_zk_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionRequest, destination_server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionRequest, serverstartcode_), + }; + CloseRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CloseRegionRequest_descriptor_, + CloseRegionRequest::default_instance_, + CloseRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CloseRegionRequest)); + CloseRegionResponse_descriptor_ = file->message_type(11); + static const int CloseRegionResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionResponse, closed_), + }; + CloseRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CloseRegionResponse_descriptor_, + CloseRegionResponse::default_instance_, + CloseRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CloseRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CloseRegionResponse)); + FlushRegionRequest_descriptor_ = file->message_type(12); + static const int FlushRegionRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionRequest, if_older_than_ts_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionRequest, write_flush_wal_marker_), + }; + FlushRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FlushRegionRequest_descriptor_, + FlushRegionRequest::default_instance_, + FlushRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FlushRegionRequest)); + FlushRegionResponse_descriptor_ = file->message_type(13); + static const int FlushRegionResponse_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionResponse, last_flush_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionResponse, flushed_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionResponse, wrote_flush_wal_marker_), + }; + FlushRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FlushRegionResponse_descriptor_, + FlushRegionResponse::default_instance_, + FlushRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FlushRegionResponse)); + SplitRegionRequest_descriptor_ = file->message_type(14); + static const int SplitRegionRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitRegionRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitRegionRequest, split_point_), + }; + SplitRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SplitRegionRequest_descriptor_, + SplitRegionRequest::default_instance_, + SplitRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SplitRegionRequest)); + SplitRegionResponse_descriptor_ = file->message_type(15); + static const int SplitRegionResponse_offsets_[1] = { + }; + SplitRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SplitRegionResponse_descriptor_, + SplitRegionResponse::default_instance_, + SplitRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SplitRegionResponse)); + CompactRegionRequest_descriptor_ = file->message_type(16); + static const int CompactRegionRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactRegionRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactRegionRequest, major_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactRegionRequest, family_), + }; + CompactRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CompactRegionRequest_descriptor_, + CompactRegionRequest::default_instance_, + CompactRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CompactRegionRequest)); + CompactRegionResponse_descriptor_ = file->message_type(17); + static const int CompactRegionResponse_offsets_[1] = { + }; + CompactRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CompactRegionResponse_descriptor_, + CompactRegionResponse::default_instance_, + CompactRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CompactRegionResponse)); + UpdateFavoredNodesRequest_descriptor_ = file->message_type(18); + static const int UpdateFavoredNodesRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesRequest, update_info_), + }; + UpdateFavoredNodesRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UpdateFavoredNodesRequest_descriptor_, + UpdateFavoredNodesRequest::default_instance_, + UpdateFavoredNodesRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UpdateFavoredNodesRequest)); + UpdateFavoredNodesRequest_RegionUpdateInfo_descriptor_ = UpdateFavoredNodesRequest_descriptor_->nested_type(0); + static const int UpdateFavoredNodesRequest_RegionUpdateInfo_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesRequest_RegionUpdateInfo, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesRequest_RegionUpdateInfo, favored_nodes_), + }; + UpdateFavoredNodesRequest_RegionUpdateInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UpdateFavoredNodesRequest_RegionUpdateInfo_descriptor_, + UpdateFavoredNodesRequest_RegionUpdateInfo::default_instance_, + UpdateFavoredNodesRequest_RegionUpdateInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesRequest_RegionUpdateInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesRequest_RegionUpdateInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UpdateFavoredNodesRequest_RegionUpdateInfo)); + UpdateFavoredNodesResponse_descriptor_ = file->message_type(19); + static const int UpdateFavoredNodesResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesResponse, response_), + }; + UpdateFavoredNodesResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UpdateFavoredNodesResponse_descriptor_, + UpdateFavoredNodesResponse::default_instance_, + UpdateFavoredNodesResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateFavoredNodesResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UpdateFavoredNodesResponse)); + MergeRegionsRequest_descriptor_ = file->message_type(20); + static const int MergeRegionsRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionsRequest, region_a_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionsRequest, region_b_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionsRequest, forcible_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionsRequest, master_system_time_), + }; + MergeRegionsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MergeRegionsRequest_descriptor_, + MergeRegionsRequest::default_instance_, + MergeRegionsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MergeRegionsRequest)); + MergeRegionsResponse_descriptor_ = file->message_type(21); + static const int MergeRegionsResponse_offsets_[1] = { + }; + MergeRegionsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MergeRegionsResponse_descriptor_, + MergeRegionsResponse::default_instance_, + MergeRegionsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MergeRegionsResponse)); + WALEntry_descriptor_ = file->message_type(22); + static const int WALEntry_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALEntry, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALEntry, key_value_bytes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALEntry, associated_cell_count_), + }; + WALEntry_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WALEntry_descriptor_, + WALEntry::default_instance_, + WALEntry_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALEntry, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALEntry, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WALEntry)); + ReplicateWALEntryRequest_descriptor_ = file->message_type(23); + static const int ReplicateWALEntryRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicateWALEntryRequest, entry_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicateWALEntryRequest, replicationclusterid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicateWALEntryRequest, sourcebasenamespacedirpath_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicateWALEntryRequest, sourcehfilearchivedirpath_), + }; + ReplicateWALEntryRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReplicateWALEntryRequest_descriptor_, + ReplicateWALEntryRequest::default_instance_, + ReplicateWALEntryRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicateWALEntryRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicateWALEntryRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReplicateWALEntryRequest)); + ReplicateWALEntryResponse_descriptor_ = file->message_type(24); + static const int ReplicateWALEntryResponse_offsets_[1] = { + }; + ReplicateWALEntryResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReplicateWALEntryResponse_descriptor_, + ReplicateWALEntryResponse::default_instance_, + ReplicateWALEntryResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicateWALEntryResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicateWALEntryResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReplicateWALEntryResponse)); + RollWALWriterRequest_descriptor_ = file->message_type(25); + static const int RollWALWriterRequest_offsets_[1] = { + }; + RollWALWriterRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RollWALWriterRequest_descriptor_, + RollWALWriterRequest::default_instance_, + RollWALWriterRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RollWALWriterRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RollWALWriterRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RollWALWriterRequest)); + RollWALWriterResponse_descriptor_ = file->message_type(26); + static const int RollWALWriterResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RollWALWriterResponse, region_to_flush_), + }; + RollWALWriterResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RollWALWriterResponse_descriptor_, + RollWALWriterResponse::default_instance_, + RollWALWriterResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RollWALWriterResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RollWALWriterResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RollWALWriterResponse)); + StopServerRequest_descriptor_ = file->message_type(27); + static const int StopServerRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopServerRequest, reason_), + }; + StopServerRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StopServerRequest_descriptor_, + StopServerRequest::default_instance_, + StopServerRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopServerRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopServerRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StopServerRequest)); + StopServerResponse_descriptor_ = file->message_type(28); + static const int StopServerResponse_offsets_[1] = { + }; + StopServerResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StopServerResponse_descriptor_, + StopServerResponse::default_instance_, + StopServerResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopServerResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopServerResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StopServerResponse)); + GetServerInfoRequest_descriptor_ = file->message_type(29); + static const int GetServerInfoRequest_offsets_[1] = { + }; + GetServerInfoRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetServerInfoRequest_descriptor_, + GetServerInfoRequest::default_instance_, + GetServerInfoRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerInfoRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerInfoRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetServerInfoRequest)); + ServerInfo_descriptor_ = file->message_type(30); + static const int ServerInfo_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerInfo, server_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerInfo, webui_port_), + }; + ServerInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ServerInfo_descriptor_, + ServerInfo::default_instance_, + ServerInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ServerInfo)); + GetServerInfoResponse_descriptor_ = file->message_type(31); + static const int GetServerInfoResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerInfoResponse, server_info_), + }; + GetServerInfoResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetServerInfoResponse_descriptor_, + GetServerInfoResponse::default_instance_, + GetServerInfoResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerInfoResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerInfoResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetServerInfoResponse)); + UpdateConfigurationRequest_descriptor_ = file->message_type(32); + static const int UpdateConfigurationRequest_offsets_[1] = { + }; + UpdateConfigurationRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UpdateConfigurationRequest_descriptor_, + UpdateConfigurationRequest::default_instance_, + UpdateConfigurationRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateConfigurationRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateConfigurationRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UpdateConfigurationRequest)); + UpdateConfigurationResponse_descriptor_ = file->message_type(33); + static const int UpdateConfigurationResponse_offsets_[1] = { + }; + UpdateConfigurationResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UpdateConfigurationResponse_descriptor_, + UpdateConfigurationResponse::default_instance_, + UpdateConfigurationResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateConfigurationResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UpdateConfigurationResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UpdateConfigurationResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Admin_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRegionInfoRequest_descriptor_, &GetRegionInfoRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRegionInfoResponse_descriptor_, &GetRegionInfoResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetStoreFileRequest_descriptor_, &GetStoreFileRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetStoreFileResponse_descriptor_, &GetStoreFileResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetOnlineRegionRequest_descriptor_, &GetOnlineRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetOnlineRegionResponse_descriptor_, &GetOnlineRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + OpenRegionRequest_descriptor_, &OpenRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + OpenRegionRequest_RegionOpenInfo_descriptor_, &OpenRegionRequest_RegionOpenInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + OpenRegionResponse_descriptor_, &OpenRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WarmupRegionRequest_descriptor_, &WarmupRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WarmupRegionResponse_descriptor_, &WarmupRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CloseRegionRequest_descriptor_, &CloseRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CloseRegionResponse_descriptor_, &CloseRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FlushRegionRequest_descriptor_, &FlushRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FlushRegionResponse_descriptor_, &FlushRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SplitRegionRequest_descriptor_, &SplitRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SplitRegionResponse_descriptor_, &SplitRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CompactRegionRequest_descriptor_, &CompactRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CompactRegionResponse_descriptor_, &CompactRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UpdateFavoredNodesRequest_descriptor_, &UpdateFavoredNodesRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UpdateFavoredNodesRequest_RegionUpdateInfo_descriptor_, &UpdateFavoredNodesRequest_RegionUpdateInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UpdateFavoredNodesResponse_descriptor_, &UpdateFavoredNodesResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MergeRegionsRequest_descriptor_, &MergeRegionsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MergeRegionsResponse_descriptor_, &MergeRegionsResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WALEntry_descriptor_, &WALEntry::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReplicateWALEntryRequest_descriptor_, &ReplicateWALEntryRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReplicateWALEntryResponse_descriptor_, &ReplicateWALEntryResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RollWALWriterRequest_descriptor_, &RollWALWriterRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RollWALWriterResponse_descriptor_, &RollWALWriterResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StopServerRequest_descriptor_, &StopServerRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StopServerResponse_descriptor_, &StopServerResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetServerInfoRequest_descriptor_, &GetServerInfoRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ServerInfo_descriptor_, &ServerInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetServerInfoResponse_descriptor_, &GetServerInfoResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UpdateConfigurationRequest_descriptor_, &UpdateConfigurationRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UpdateConfigurationResponse_descriptor_, &UpdateConfigurationResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Admin_2eproto() { + delete GetRegionInfoRequest::default_instance_; + delete GetRegionInfoRequest_reflection_; + delete GetRegionInfoResponse::default_instance_; + delete GetRegionInfoResponse_reflection_; + delete GetStoreFileRequest::default_instance_; + delete GetStoreFileRequest_reflection_; + delete GetStoreFileResponse::default_instance_; + delete GetStoreFileResponse_reflection_; + delete GetOnlineRegionRequest::default_instance_; + delete GetOnlineRegionRequest_reflection_; + delete GetOnlineRegionResponse::default_instance_; + delete GetOnlineRegionResponse_reflection_; + delete OpenRegionRequest::default_instance_; + delete OpenRegionRequest_reflection_; + delete OpenRegionRequest_RegionOpenInfo::default_instance_; + delete OpenRegionRequest_RegionOpenInfo_reflection_; + delete OpenRegionResponse::default_instance_; + delete OpenRegionResponse_reflection_; + delete WarmupRegionRequest::default_instance_; + delete WarmupRegionRequest_reflection_; + delete WarmupRegionResponse::default_instance_; + delete WarmupRegionResponse_reflection_; + delete CloseRegionRequest::default_instance_; + delete CloseRegionRequest_reflection_; + delete CloseRegionResponse::default_instance_; + delete CloseRegionResponse_reflection_; + delete FlushRegionRequest::default_instance_; + delete FlushRegionRequest_reflection_; + delete FlushRegionResponse::default_instance_; + delete FlushRegionResponse_reflection_; + delete SplitRegionRequest::default_instance_; + delete SplitRegionRequest_reflection_; + delete SplitRegionResponse::default_instance_; + delete SplitRegionResponse_reflection_; + delete CompactRegionRequest::default_instance_; + delete CompactRegionRequest_reflection_; + delete CompactRegionResponse::default_instance_; + delete CompactRegionResponse_reflection_; + delete UpdateFavoredNodesRequest::default_instance_; + delete UpdateFavoredNodesRequest_reflection_; + delete UpdateFavoredNodesRequest_RegionUpdateInfo::default_instance_; + delete UpdateFavoredNodesRequest_RegionUpdateInfo_reflection_; + delete UpdateFavoredNodesResponse::default_instance_; + delete UpdateFavoredNodesResponse_reflection_; + delete MergeRegionsRequest::default_instance_; + delete MergeRegionsRequest_reflection_; + delete MergeRegionsResponse::default_instance_; + delete MergeRegionsResponse_reflection_; + delete WALEntry::default_instance_; + delete WALEntry_reflection_; + delete ReplicateWALEntryRequest::default_instance_; + delete ReplicateWALEntryRequest_reflection_; + delete ReplicateWALEntryResponse::default_instance_; + delete ReplicateWALEntryResponse_reflection_; + delete RollWALWriterRequest::default_instance_; + delete RollWALWriterRequest_reflection_; + delete RollWALWriterResponse::default_instance_; + delete RollWALWriterResponse_reflection_; + delete StopServerRequest::default_instance_; + delete StopServerRequest_reflection_; + delete StopServerResponse::default_instance_; + delete StopServerResponse_reflection_; + delete GetServerInfoRequest::default_instance_; + delete GetServerInfoRequest_reflection_; + delete ServerInfo::default_instance_; + delete ServerInfo_reflection_; + delete GetServerInfoResponse::default_instance_; + delete GetServerInfoResponse_reflection_; + delete UpdateConfigurationRequest::default_instance_; + delete UpdateConfigurationRequest_reflection_; + delete UpdateConfigurationResponse::default_instance_; + delete UpdateConfigurationResponse_reflection_; +} + +void protobuf_AddDesc_Admin_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_Client_2eproto(); + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_WAL_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\013Admin.proto\022\010hbase.pb\032\014Client.proto\032\013H" + "Base.proto\032\tWAL.proto\"[\n\024GetRegionInfoRe" + "quest\022)\n\006region\030\001 \002(\0132\031.hbase.pb.RegionS" + "pecifier\022\030\n\020compaction_state\030\002 \001(\010\"\353\001\n\025G" + "etRegionInfoResponse\022)\n\013region_info\030\001 \002(" + "\0132\024.hbase.pb.RegionInfo\022I\n\020compaction_st" + "ate\030\002 \001(\0162/.hbase.pb.GetRegionInfoRespon" + "se.CompactionState\022\024\n\014isRecovering\030\003 \001(\010" + "\"F\n\017CompactionState\022\010\n\004NONE\020\000\022\t\n\005MINOR\020\001" + "\022\t\n\005MAJOR\020\002\022\023\n\017MAJOR_AND_MINOR\020\003\"P\n\023GetS" + "toreFileRequest\022)\n\006region\030\001 \002(\0132\031.hbase." + "pb.RegionSpecifier\022\016\n\006family\030\002 \003(\014\"*\n\024Ge" + "tStoreFileResponse\022\022\n\nstore_file\030\001 \003(\t\"\030" + "\n\026GetOnlineRegionRequest\"D\n\027GetOnlineReg" + "ionResponse\022)\n\013region_info\030\001 \003(\0132\024.hbase" + ".pb.RegionInfo\"\263\002\n\021OpenRegionRequest\022=\n\t" + "open_info\030\001 \003(\0132*.hbase.pb.OpenRegionReq" + "uest.RegionOpenInfo\022\027\n\017serverStartCode\030\002" + " \001(\004\022\032\n\022master_system_time\030\005 \001(\004\032\251\001\n\016Reg" + "ionOpenInfo\022$\n\006region\030\001 \002(\0132\024.hbase.pb.R" + "egionInfo\022\037\n\027version_of_offline_node\030\002 \001" + "(\r\022+\n\rfavored_nodes\030\003 \003(\0132\024.hbase.pb.Ser" + "verName\022#\n\033openForDistributedLogReplay\030\004" + " \001(\010\"\246\001\n\022OpenRegionResponse\022F\n\ropening_s" + "tate\030\001 \003(\0162/.hbase.pb.OpenRegionResponse" + ".RegionOpeningState\"H\n\022RegionOpeningStat" + "e\022\n\n\006OPENED\020\000\022\022\n\016ALREADY_OPENED\020\001\022\022\n\016FAI" + "LED_OPENING\020\002\"\?\n\023WarmupRegionRequest\022(\n\n" + "regionInfo\030\001 \002(\0132\024.hbase.pb.RegionInfo\"\026" + "\n\024WarmupRegionResponse\"\313\001\n\022CloseRegionRe" + "quest\022)\n\006region\030\001 \002(\0132\031.hbase.pb.RegionS" + "pecifier\022\037\n\027version_of_closing_node\030\002 \001(" + "\r\022\036\n\020transition_in_ZK\030\003 \001(\010:\004true\0220\n\022des" + "tination_server\030\004 \001(\0132\024.hbase.pb.ServerN" + "ame\022\027\n\017serverStartCode\030\005 \001(\004\"%\n\023CloseReg" + "ionResponse\022\016\n\006closed\030\001 \002(\010\"y\n\022FlushRegi" + "onRequest\022)\n\006region\030\001 \002(\0132\031.hbase.pb.Reg" + "ionSpecifier\022\030\n\020if_older_than_ts\030\002 \001(\004\022\036" + "\n\026write_flush_wal_marker\030\003 \001(\010\"_\n\023FlushR" + "egionResponse\022\027\n\017last_flush_time\030\001 \002(\004\022\017" + "\n\007flushed\030\002 \001(\010\022\036\n\026wrote_flush_wal_marke" + "r\030\003 \001(\010\"T\n\022SplitRegionRequest\022)\n\006region\030" + "\001 \002(\0132\031.hbase.pb.RegionSpecifier\022\023\n\013spli" + "t_point\030\002 \001(\014\"\025\n\023SplitRegionResponse\"`\n\024" + "CompactRegionRequest\022)\n\006region\030\001 \002(\0132\031.h" + "base.pb.RegionSpecifier\022\r\n\005major\030\002 \001(\010\022\016" + "\n\006family\030\003 \001(\014\"\027\n\025CompactRegionResponse\"" + "\315\001\n\031UpdateFavoredNodesRequest\022I\n\013update_" + "info\030\001 \003(\01324.hbase.pb.UpdateFavoredNodes" + "Request.RegionUpdateInfo\032e\n\020RegionUpdate" + "Info\022$\n\006region\030\001 \002(\0132\024.hbase.pb.RegionIn" + "fo\022+\n\rfavored_nodes\030\002 \003(\0132\024.hbase.pb.Ser" + "verName\".\n\032UpdateFavoredNodesResponse\022\020\n" + "\010response\030\001 \001(\r\"\244\001\n\023MergeRegionsRequest\022" + "+\n\010region_a\030\001 \002(\0132\031.hbase.pb.RegionSpeci" + "fier\022+\n\010region_b\030\002 \002(\0132\031.hbase.pb.Region" + "Specifier\022\027\n\010forcible\030\003 \001(\010:\005false\022\032\n\022ma" + "ster_system_time\030\004 \001(\004\"\026\n\024MergeRegionsRe" + "sponse\"a\n\010WALEntry\022\035\n\003key\030\001 \002(\0132\020.hbase." + "pb.WALKey\022\027\n\017key_value_bytes\030\002 \003(\014\022\035\n\025as" + "sociated_cell_count\030\003 \001(\005\"\242\001\n\030ReplicateW" + "ALEntryRequest\022!\n\005entry\030\001 \003(\0132\022.hbase.pb" + ".WALEntry\022\034\n\024replicationClusterId\030\002 \001(\t\022" + "\"\n\032sourceBaseNamespaceDirPath\030\003 \001(\t\022!\n\031s" + "ourceHFileArchiveDirPath\030\004 \001(\t\"\033\n\031Replic" + "ateWALEntryResponse\"\026\n\024RollWALWriterRequ" + "est\"0\n\025RollWALWriterResponse\022\027\n\017region_t" + "o_flush\030\001 \003(\014\"#\n\021StopServerRequest\022\016\n\006re" + "ason\030\001 \002(\t\"\024\n\022StopServerResponse\"\026\n\024GetS" + "erverInfoRequest\"K\n\nServerInfo\022)\n\013server" + "_name\030\001 \002(\0132\024.hbase.pb.ServerName\022\022\n\nweb" + "ui_port\030\002 \001(\r\"B\n\025GetServerInfoResponse\022)" + "\n\013server_info\030\001 \002(\0132\024.hbase.pb.ServerInf" + "o\"\034\n\032UpdateConfigurationRequest\"\035\n\033Updat" + "eConfigurationResponse2\207\013\n\014AdminService\022" + "P\n\rGetRegionInfo\022\036.hbase.pb.GetRegionInf" + "oRequest\032\037.hbase.pb.GetRegionInfoRespons" + "e\022M\n\014GetStoreFile\022\035.hbase.pb.GetStoreFil" + "eRequest\032\036.hbase.pb.GetStoreFileResponse" + "\022V\n\017GetOnlineRegion\022 .hbase.pb.GetOnline" + "RegionRequest\032!.hbase.pb.GetOnlineRegion" + "Response\022G\n\nOpenRegion\022\033.hbase.pb.OpenRe" + "gionRequest\032\034.hbase.pb.OpenRegionRespons" + "e\022M\n\014WarmupRegion\022\035.hbase.pb.WarmupRegio" + "nRequest\032\036.hbase.pb.WarmupRegionResponse" + "\022J\n\013CloseRegion\022\034.hbase.pb.CloseRegionRe" + "quest\032\035.hbase.pb.CloseRegionResponse\022J\n\013" + "FlushRegion\022\034.hbase.pb.FlushRegionReques" + "t\032\035.hbase.pb.FlushRegionResponse\022J\n\013Spli" + "tRegion\022\034.hbase.pb.SplitRegionRequest\032\035." + "hbase.pb.SplitRegionResponse\022P\n\rCompactR" + "egion\022\036.hbase.pb.CompactRegionRequest\032\037." + "hbase.pb.CompactRegionResponse\022M\n\014MergeR" + "egions\022\035.hbase.pb.MergeRegionsRequest\032\036." + "hbase.pb.MergeRegionsResponse\022\\\n\021Replica" + "teWALEntry\022\".hbase.pb.ReplicateWALEntryR" + "equest\032#.hbase.pb.ReplicateWALEntryRespo" + "nse\022Q\n\006Replay\022\".hbase.pb.ReplicateWALEnt" + "ryRequest\032#.hbase.pb.ReplicateWALEntryRe" + "sponse\022P\n\rRollWALWriter\022\036.hbase.pb.RollW" + "ALWriterRequest\032\037.hbase.pb.RollWALWriter" + "Response\022P\n\rGetServerInfo\022\036.hbase.pb.Get" + "ServerInfoRequest\032\037.hbase.pb.GetServerIn" + "foResponse\022G\n\nStopServer\022\033.hbase.pb.Stop" + "ServerRequest\032\034.hbase.pb.StopServerRespo" + "nse\022_\n\022UpdateFavoredNodes\022#.hbase.pb.Upd" + "ateFavoredNodesRequest\032$.hbase.pb.Update" + "FavoredNodesResponse\022b\n\023UpdateConfigurat" + "ion\022$.hbase.pb.UpdateConfigurationReques" + "t\032%.hbase.pb.UpdateConfigurationResponse" + "BA\n*org.apache.hadoop.hbase.protobuf.gen" + "eratedB\013AdminProtosH\001\210\001\001\240\001\001", 4467); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Admin.proto", &protobuf_RegisterTypes); + GetRegionInfoRequest::default_instance_ = new GetRegionInfoRequest(); + GetRegionInfoResponse::default_instance_ = new GetRegionInfoResponse(); + GetStoreFileRequest::default_instance_ = new GetStoreFileRequest(); + GetStoreFileResponse::default_instance_ = new GetStoreFileResponse(); + GetOnlineRegionRequest::default_instance_ = new GetOnlineRegionRequest(); + GetOnlineRegionResponse::default_instance_ = new GetOnlineRegionResponse(); + OpenRegionRequest::default_instance_ = new OpenRegionRequest(); + OpenRegionRequest_RegionOpenInfo::default_instance_ = new OpenRegionRequest_RegionOpenInfo(); + OpenRegionResponse::default_instance_ = new OpenRegionResponse(); + WarmupRegionRequest::default_instance_ = new WarmupRegionRequest(); + WarmupRegionResponse::default_instance_ = new WarmupRegionResponse(); + CloseRegionRequest::default_instance_ = new CloseRegionRequest(); + CloseRegionResponse::default_instance_ = new CloseRegionResponse(); + FlushRegionRequest::default_instance_ = new FlushRegionRequest(); + FlushRegionResponse::default_instance_ = new FlushRegionResponse(); + SplitRegionRequest::default_instance_ = new SplitRegionRequest(); + SplitRegionResponse::default_instance_ = new SplitRegionResponse(); + CompactRegionRequest::default_instance_ = new CompactRegionRequest(); + CompactRegionResponse::default_instance_ = new CompactRegionResponse(); + UpdateFavoredNodesRequest::default_instance_ = new UpdateFavoredNodesRequest(); + UpdateFavoredNodesRequest_RegionUpdateInfo::default_instance_ = new UpdateFavoredNodesRequest_RegionUpdateInfo(); + UpdateFavoredNodesResponse::default_instance_ = new UpdateFavoredNodesResponse(); + MergeRegionsRequest::default_instance_ = new MergeRegionsRequest(); + MergeRegionsResponse::default_instance_ = new MergeRegionsResponse(); + WALEntry::default_instance_ = new WALEntry(); + ReplicateWALEntryRequest::default_instance_ = new ReplicateWALEntryRequest(); + ReplicateWALEntryResponse::default_instance_ = new ReplicateWALEntryResponse(); + RollWALWriterRequest::default_instance_ = new RollWALWriterRequest(); + RollWALWriterResponse::default_instance_ = new RollWALWriterResponse(); + StopServerRequest::default_instance_ = new StopServerRequest(); + StopServerResponse::default_instance_ = new StopServerResponse(); + GetServerInfoRequest::default_instance_ = new GetServerInfoRequest(); + ServerInfo::default_instance_ = new ServerInfo(); + GetServerInfoResponse::default_instance_ = new GetServerInfoResponse(); + UpdateConfigurationRequest::default_instance_ = new UpdateConfigurationRequest(); + UpdateConfigurationResponse::default_instance_ = new UpdateConfigurationResponse(); + GetRegionInfoRequest::default_instance_->InitAsDefaultInstance(); + GetRegionInfoResponse::default_instance_->InitAsDefaultInstance(); + GetStoreFileRequest::default_instance_->InitAsDefaultInstance(); + GetStoreFileResponse::default_instance_->InitAsDefaultInstance(); + GetOnlineRegionRequest::default_instance_->InitAsDefaultInstance(); + GetOnlineRegionResponse::default_instance_->InitAsDefaultInstance(); + OpenRegionRequest::default_instance_->InitAsDefaultInstance(); + OpenRegionRequest_RegionOpenInfo::default_instance_->InitAsDefaultInstance(); + OpenRegionResponse::default_instance_->InitAsDefaultInstance(); + WarmupRegionRequest::default_instance_->InitAsDefaultInstance(); + WarmupRegionResponse::default_instance_->InitAsDefaultInstance(); + CloseRegionRequest::default_instance_->InitAsDefaultInstance(); + CloseRegionResponse::default_instance_->InitAsDefaultInstance(); + FlushRegionRequest::default_instance_->InitAsDefaultInstance(); + FlushRegionResponse::default_instance_->InitAsDefaultInstance(); + SplitRegionRequest::default_instance_->InitAsDefaultInstance(); + SplitRegionResponse::default_instance_->InitAsDefaultInstance(); + CompactRegionRequest::default_instance_->InitAsDefaultInstance(); + CompactRegionResponse::default_instance_->InitAsDefaultInstance(); + UpdateFavoredNodesRequest::default_instance_->InitAsDefaultInstance(); + UpdateFavoredNodesRequest_RegionUpdateInfo::default_instance_->InitAsDefaultInstance(); + UpdateFavoredNodesResponse::default_instance_->InitAsDefaultInstance(); + MergeRegionsRequest::default_instance_->InitAsDefaultInstance(); + MergeRegionsResponse::default_instance_->InitAsDefaultInstance(); + WALEntry::default_instance_->InitAsDefaultInstance(); + ReplicateWALEntryRequest::default_instance_->InitAsDefaultInstance(); + ReplicateWALEntryResponse::default_instance_->InitAsDefaultInstance(); + RollWALWriterRequest::default_instance_->InitAsDefaultInstance(); + RollWALWriterResponse::default_instance_->InitAsDefaultInstance(); + StopServerRequest::default_instance_->InitAsDefaultInstance(); + StopServerResponse::default_instance_->InitAsDefaultInstance(); + GetServerInfoRequest::default_instance_->InitAsDefaultInstance(); + ServerInfo::default_instance_->InitAsDefaultInstance(); + GetServerInfoResponse::default_instance_->InitAsDefaultInstance(); + UpdateConfigurationRequest::default_instance_->InitAsDefaultInstance(); + UpdateConfigurationResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Admin_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Admin_2eproto { + StaticDescriptorInitializer_Admin_2eproto() { + protobuf_AddDesc_Admin_2eproto(); + } +} static_descriptor_initializer_Admin_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int GetRegionInfoRequest::kRegionFieldNumber; +const int GetRegionInfoRequest::kCompactionStateFieldNumber; +#endif // !_MSC_VER + +GetRegionInfoRequest::GetRegionInfoRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRegionInfoRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +GetRegionInfoRequest::GetRegionInfoRequest(const GetRegionInfoRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRegionInfoRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + compaction_state_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRegionInfoRequest::~GetRegionInfoRequest() { + SharedDtor(); +} + +void GetRegionInfoRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void GetRegionInfoRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRegionInfoRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRegionInfoRequest_descriptor_; +} + +const GetRegionInfoRequest& GetRegionInfoRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +GetRegionInfoRequest* GetRegionInfoRequest::default_instance_ = NULL; + +GetRegionInfoRequest* GetRegionInfoRequest::New() const { + return new GetRegionInfoRequest; +} + +void GetRegionInfoRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + compaction_state_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRegionInfoRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_compaction_state; + break; + } + + // optional bool compaction_state = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_compaction_state: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &compaction_state_))); + set_has_compaction_state(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRegionInfoRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional bool compaction_state = 2; + if (has_compaction_state()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->compaction_state(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRegionInfoRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional bool compaction_state = 2; + if (has_compaction_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->compaction_state(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRegionInfoRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional bool compaction_state = 2; + if (has_compaction_state()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRegionInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRegionInfoRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRegionInfoRequest::MergeFrom(const GetRegionInfoRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_compaction_state()) { + set_compaction_state(from.compaction_state()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRegionInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRegionInfoRequest::CopyFrom(const GetRegionInfoRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRegionInfoRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void GetRegionInfoRequest::Swap(GetRegionInfoRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(compaction_state_, other->compaction_state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRegionInfoRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRegionInfoRequest_descriptor_; + metadata.reflection = GetRegionInfoRequest_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* GetRegionInfoResponse_CompactionState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRegionInfoResponse_CompactionState_descriptor_; +} +bool GetRegionInfoResponse_CompactionState_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const GetRegionInfoResponse_CompactionState GetRegionInfoResponse::NONE; +const GetRegionInfoResponse_CompactionState GetRegionInfoResponse::MINOR; +const GetRegionInfoResponse_CompactionState GetRegionInfoResponse::MAJOR; +const GetRegionInfoResponse_CompactionState GetRegionInfoResponse::MAJOR_AND_MINOR; +const GetRegionInfoResponse_CompactionState GetRegionInfoResponse::CompactionState_MIN; +const GetRegionInfoResponse_CompactionState GetRegionInfoResponse::CompactionState_MAX; +const int GetRegionInfoResponse::CompactionState_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int GetRegionInfoResponse::kRegionInfoFieldNumber; +const int GetRegionInfoResponse::kCompactionStateFieldNumber; +const int GetRegionInfoResponse::kIsRecoveringFieldNumber; +#endif // !_MSC_VER + +GetRegionInfoResponse::GetRegionInfoResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRegionInfoResponse::InitAsDefaultInstance() { + region_info_ = const_cast< ::hbase::pb::RegionInfo*>(&::hbase::pb::RegionInfo::default_instance()); +} + +GetRegionInfoResponse::GetRegionInfoResponse(const GetRegionInfoResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRegionInfoResponse::SharedCtor() { + _cached_size_ = 0; + region_info_ = NULL; + compaction_state_ = 0; + isrecovering_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRegionInfoResponse::~GetRegionInfoResponse() { + SharedDtor(); +} + +void GetRegionInfoResponse::SharedDtor() { + if (this != default_instance_) { + delete region_info_; + } +} + +void GetRegionInfoResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRegionInfoResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRegionInfoResponse_descriptor_; +} + +const GetRegionInfoResponse& GetRegionInfoResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +GetRegionInfoResponse* GetRegionInfoResponse::default_instance_ = NULL; + +GetRegionInfoResponse* GetRegionInfoResponse::New() const { + return new GetRegionInfoResponse; +} + +void GetRegionInfoResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region_info()) { + if (region_info_ != NULL) region_info_->::hbase::pb::RegionInfo::Clear(); + } + compaction_state_ = 0; + isrecovering_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRegionInfoResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionInfo region_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_compaction_state; + break; + } + + // optional .hbase.pb.GetRegionInfoResponse.CompactionState compaction_state = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_compaction_state: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::GetRegionInfoResponse_CompactionState_IsValid(value)) { + set_compaction_state(static_cast< ::hbase::pb::GetRegionInfoResponse_CompactionState >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_isRecovering; + break; + } + + // optional bool isRecovering = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_isRecovering: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &isrecovering_))); + set_has_isrecovering(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRegionInfoResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionInfo region_info = 1; + if (has_region_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region_info(), output); + } + + // optional .hbase.pb.GetRegionInfoResponse.CompactionState compaction_state = 2; + if (has_compaction_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->compaction_state(), output); + } + + // optional bool isRecovering = 3; + if (has_isrecovering()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->isrecovering(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRegionInfoResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionInfo region_info = 1; + if (has_region_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region_info(), target); + } + + // optional .hbase.pb.GetRegionInfoResponse.CompactionState compaction_state = 2; + if (has_compaction_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->compaction_state(), target); + } + + // optional bool isRecovering = 3; + if (has_isrecovering()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->isrecovering(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRegionInfoResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionInfo region_info = 1; + if (has_region_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_info()); + } + + // optional .hbase.pb.GetRegionInfoResponse.CompactionState compaction_state = 2; + if (has_compaction_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->compaction_state()); + } + + // optional bool isRecovering = 3; + if (has_isrecovering()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRegionInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRegionInfoResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRegionInfoResponse::MergeFrom(const GetRegionInfoResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region_info()) { + mutable_region_info()->::hbase::pb::RegionInfo::MergeFrom(from.region_info()); + } + if (from.has_compaction_state()) { + set_compaction_state(from.compaction_state()); + } + if (from.has_isrecovering()) { + set_isrecovering(from.isrecovering()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRegionInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRegionInfoResponse::CopyFrom(const GetRegionInfoResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRegionInfoResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region_info()) { + if (!this->region_info().IsInitialized()) return false; + } + return true; +} + +void GetRegionInfoResponse::Swap(GetRegionInfoResponse* other) { + if (other != this) { + std::swap(region_info_, other->region_info_); + std::swap(compaction_state_, other->compaction_state_); + std::swap(isrecovering_, other->isrecovering_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRegionInfoResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRegionInfoResponse_descriptor_; + metadata.reflection = GetRegionInfoResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetStoreFileRequest::kRegionFieldNumber; +const int GetStoreFileRequest::kFamilyFieldNumber; +#endif // !_MSC_VER + +GetStoreFileRequest::GetStoreFileRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetStoreFileRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +GetStoreFileRequest::GetStoreFileRequest(const GetStoreFileRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetStoreFileRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetStoreFileRequest::~GetStoreFileRequest() { + SharedDtor(); +} + +void GetStoreFileRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void GetStoreFileRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetStoreFileRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetStoreFileRequest_descriptor_; +} + +const GetStoreFileRequest& GetStoreFileRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +GetStoreFileRequest* GetStoreFileRequest::default_instance_ = NULL; + +GetStoreFileRequest* GetStoreFileRequest::New() const { + return new GetStoreFileRequest; +} + +void GetStoreFileRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + } + family_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetStoreFileRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_family; + break; + } + + // repeated bytes family = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_family; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetStoreFileRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // repeated bytes family = 2; + for (int i = 0; i < this->family_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->family(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetStoreFileRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // repeated bytes family = 2; + for (int i = 0; i < this->family_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(2, this->family(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetStoreFileRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + } + // repeated bytes family = 2; + total_size += 1 * this->family_size(); + for (int i = 0; i < this->family_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetStoreFileRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetStoreFileRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetStoreFileRequest::MergeFrom(const GetStoreFileRequest& from) { + GOOGLE_CHECK_NE(&from, this); + family_.MergeFrom(from.family_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetStoreFileRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetStoreFileRequest::CopyFrom(const GetStoreFileRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetStoreFileRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void GetStoreFileRequest::Swap(GetStoreFileRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + family_.Swap(&other->family_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetStoreFileRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetStoreFileRequest_descriptor_; + metadata.reflection = GetStoreFileRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetStoreFileResponse::kStoreFileFieldNumber; +#endif // !_MSC_VER + +GetStoreFileResponse::GetStoreFileResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetStoreFileResponse::InitAsDefaultInstance() { +} + +GetStoreFileResponse::GetStoreFileResponse(const GetStoreFileResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetStoreFileResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetStoreFileResponse::~GetStoreFileResponse() { + SharedDtor(); +} + +void GetStoreFileResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetStoreFileResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetStoreFileResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetStoreFileResponse_descriptor_; +} + +const GetStoreFileResponse& GetStoreFileResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +GetStoreFileResponse* GetStoreFileResponse::default_instance_ = NULL; + +GetStoreFileResponse* GetStoreFileResponse::New() const { + return new GetStoreFileResponse; +} + +void GetStoreFileResponse::Clear() { + store_file_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetStoreFileResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string store_file = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_file: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_store_file())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_file(this->store_file_size() - 1).data(), + this->store_file(this->store_file_size() - 1).length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_store_file; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetStoreFileResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated string store_file = 1; + for (int i = 0; i < this->store_file_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_file(i).data(), this->store_file(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->store_file(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetStoreFileResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated string store_file = 1; + for (int i = 0; i < this->store_file_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_file(i).data(), this->store_file(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->store_file(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetStoreFileResponse::ByteSize() const { + int total_size = 0; + + // repeated string store_file = 1; + total_size += 1 * this->store_file_size(); + for (int i = 0; i < this->store_file_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_file(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetStoreFileResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetStoreFileResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetStoreFileResponse::MergeFrom(const GetStoreFileResponse& from) { + GOOGLE_CHECK_NE(&from, this); + store_file_.MergeFrom(from.store_file_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetStoreFileResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetStoreFileResponse::CopyFrom(const GetStoreFileResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetStoreFileResponse::IsInitialized() const { + + return true; +} + +void GetStoreFileResponse::Swap(GetStoreFileResponse* other) { + if (other != this) { + store_file_.Swap(&other->store_file_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetStoreFileResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetStoreFileResponse_descriptor_; + metadata.reflection = GetStoreFileResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +GetOnlineRegionRequest::GetOnlineRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetOnlineRegionRequest::InitAsDefaultInstance() { +} + +GetOnlineRegionRequest::GetOnlineRegionRequest(const GetOnlineRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetOnlineRegionRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetOnlineRegionRequest::~GetOnlineRegionRequest() { + SharedDtor(); +} + +void GetOnlineRegionRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetOnlineRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetOnlineRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetOnlineRegionRequest_descriptor_; +} + +const GetOnlineRegionRequest& GetOnlineRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +GetOnlineRegionRequest* GetOnlineRegionRequest::default_instance_ = NULL; + +GetOnlineRegionRequest* GetOnlineRegionRequest::New() const { + return new GetOnlineRegionRequest; +} + +void GetOnlineRegionRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetOnlineRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void GetOnlineRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetOnlineRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetOnlineRegionRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetOnlineRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetOnlineRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetOnlineRegionRequest::MergeFrom(const GetOnlineRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetOnlineRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetOnlineRegionRequest::CopyFrom(const GetOnlineRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOnlineRegionRequest::IsInitialized() const { + + return true; +} + +void GetOnlineRegionRequest::Swap(GetOnlineRegionRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetOnlineRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetOnlineRegionRequest_descriptor_; + metadata.reflection = GetOnlineRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetOnlineRegionResponse::kRegionInfoFieldNumber; +#endif // !_MSC_VER + +GetOnlineRegionResponse::GetOnlineRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetOnlineRegionResponse::InitAsDefaultInstance() { +} + +GetOnlineRegionResponse::GetOnlineRegionResponse(const GetOnlineRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetOnlineRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetOnlineRegionResponse::~GetOnlineRegionResponse() { + SharedDtor(); +} + +void GetOnlineRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetOnlineRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetOnlineRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetOnlineRegionResponse_descriptor_; +} + +const GetOnlineRegionResponse& GetOnlineRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +GetOnlineRegionResponse* GetOnlineRegionResponse::default_instance_ = NULL; + +GetOnlineRegionResponse* GetOnlineRegionResponse::New() const { + return new GetOnlineRegionResponse; +} + +void GetOnlineRegionResponse::Clear() { + region_info_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetOnlineRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.RegionInfo region_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_region_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_region_info; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetOnlineRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.RegionInfo region_info = 1; + for (int i = 0; i < this->region_info_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region_info(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetOnlineRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.RegionInfo region_info = 1; + for (int i = 0; i < this->region_info_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region_info(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetOnlineRegionResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.RegionInfo region_info = 1; + total_size += 1 * this->region_info_size(); + for (int i = 0; i < this->region_info_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_info(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetOnlineRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetOnlineRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetOnlineRegionResponse::MergeFrom(const GetOnlineRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + region_info_.MergeFrom(from.region_info_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetOnlineRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetOnlineRegionResponse::CopyFrom(const GetOnlineRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOnlineRegionResponse::IsInitialized() const { + + for (int i = 0; i < region_info_size(); i++) { + if (!this->region_info(i).IsInitialized()) return false; + } + return true; +} + +void GetOnlineRegionResponse::Swap(GetOnlineRegionResponse* other) { + if (other != this) { + region_info_.Swap(&other->region_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetOnlineRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetOnlineRegionResponse_descriptor_; + metadata.reflection = GetOnlineRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int OpenRegionRequest_RegionOpenInfo::kRegionFieldNumber; +const int OpenRegionRequest_RegionOpenInfo::kVersionOfOfflineNodeFieldNumber; +const int OpenRegionRequest_RegionOpenInfo::kFavoredNodesFieldNumber; +const int OpenRegionRequest_RegionOpenInfo::kOpenForDistributedLogReplayFieldNumber; +#endif // !_MSC_VER + +OpenRegionRequest_RegionOpenInfo::OpenRegionRequest_RegionOpenInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void OpenRegionRequest_RegionOpenInfo::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionInfo*>(&::hbase::pb::RegionInfo::default_instance()); +} + +OpenRegionRequest_RegionOpenInfo::OpenRegionRequest_RegionOpenInfo(const OpenRegionRequest_RegionOpenInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void OpenRegionRequest_RegionOpenInfo::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + version_of_offline_node_ = 0u; + openfordistributedlogreplay_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +OpenRegionRequest_RegionOpenInfo::~OpenRegionRequest_RegionOpenInfo() { + SharedDtor(); +} + +void OpenRegionRequest_RegionOpenInfo::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void OpenRegionRequest_RegionOpenInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* OpenRegionRequest_RegionOpenInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return OpenRegionRequest_RegionOpenInfo_descriptor_; +} + +const OpenRegionRequest_RegionOpenInfo& OpenRegionRequest_RegionOpenInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +OpenRegionRequest_RegionOpenInfo* OpenRegionRequest_RegionOpenInfo::default_instance_ = NULL; + +OpenRegionRequest_RegionOpenInfo* OpenRegionRequest_RegionOpenInfo::New() const { + return new OpenRegionRequest_RegionOpenInfo; +} + +void OpenRegionRequest_RegionOpenInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionInfo::Clear(); + } + version_of_offline_node_ = 0u; + openfordistributedlogreplay_ = false; + } + favored_nodes_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool OpenRegionRequest_RegionOpenInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionInfo region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_version_of_offline_node; + break; + } + + // optional uint32 version_of_offline_node = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_version_of_offline_node: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_of_offline_node_))); + set_has_version_of_offline_node(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_favored_nodes; + break; + } + + // repeated .hbase.pb.ServerName favored_nodes = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_favored_nodes: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_favored_nodes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_favored_nodes; + if (input->ExpectTag(32)) goto parse_openForDistributedLogReplay; + break; + } + + // optional bool openForDistributedLogReplay = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_openForDistributedLogReplay: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &openfordistributedlogreplay_))); + set_has_openfordistributedlogreplay(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void OpenRegionRequest_RegionOpenInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionInfo region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional uint32 version_of_offline_node = 2; + if (has_version_of_offline_node()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->version_of_offline_node(), output); + } + + // repeated .hbase.pb.ServerName favored_nodes = 3; + for (int i = 0; i < this->favored_nodes_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->favored_nodes(i), output); + } + + // optional bool openForDistributedLogReplay = 4; + if (has_openfordistributedlogreplay()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->openfordistributedlogreplay(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* OpenRegionRequest_RegionOpenInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionInfo region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional uint32 version_of_offline_node = 2; + if (has_version_of_offline_node()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->version_of_offline_node(), target); + } + + // repeated .hbase.pb.ServerName favored_nodes = 3; + for (int i = 0; i < this->favored_nodes_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->favored_nodes(i), target); + } + + // optional bool openForDistributedLogReplay = 4; + if (has_openfordistributedlogreplay()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->openfordistributedlogreplay(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int OpenRegionRequest_RegionOpenInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionInfo region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional uint32 version_of_offline_node = 2; + if (has_version_of_offline_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version_of_offline_node()); + } + + // optional bool openForDistributedLogReplay = 4; + if (has_openfordistributedlogreplay()) { + total_size += 1 + 1; + } + + } + // repeated .hbase.pb.ServerName favored_nodes = 3; + total_size += 1 * this->favored_nodes_size(); + for (int i = 0; i < this->favored_nodes_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->favored_nodes(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void OpenRegionRequest_RegionOpenInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const OpenRegionRequest_RegionOpenInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void OpenRegionRequest_RegionOpenInfo::MergeFrom(const OpenRegionRequest_RegionOpenInfo& from) { + GOOGLE_CHECK_NE(&from, this); + favored_nodes_.MergeFrom(from.favored_nodes_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionInfo::MergeFrom(from.region()); + } + if (from.has_version_of_offline_node()) { + set_version_of_offline_node(from.version_of_offline_node()); + } + if (from.has_openfordistributedlogreplay()) { + set_openfordistributedlogreplay(from.openfordistributedlogreplay()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void OpenRegionRequest_RegionOpenInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OpenRegionRequest_RegionOpenInfo::CopyFrom(const OpenRegionRequest_RegionOpenInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OpenRegionRequest_RegionOpenInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + for (int i = 0; i < favored_nodes_size(); i++) { + if (!this->favored_nodes(i).IsInitialized()) return false; + } + return true; +} + +void OpenRegionRequest_RegionOpenInfo::Swap(OpenRegionRequest_RegionOpenInfo* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(version_of_offline_node_, other->version_of_offline_node_); + favored_nodes_.Swap(&other->favored_nodes_); + std::swap(openfordistributedlogreplay_, other->openfordistributedlogreplay_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata OpenRegionRequest_RegionOpenInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = OpenRegionRequest_RegionOpenInfo_descriptor_; + metadata.reflection = OpenRegionRequest_RegionOpenInfo_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int OpenRegionRequest::kOpenInfoFieldNumber; +const int OpenRegionRequest::kServerStartCodeFieldNumber; +const int OpenRegionRequest::kMasterSystemTimeFieldNumber; +#endif // !_MSC_VER + +OpenRegionRequest::OpenRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void OpenRegionRequest::InitAsDefaultInstance() { +} + +OpenRegionRequest::OpenRegionRequest(const OpenRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void OpenRegionRequest::SharedCtor() { + _cached_size_ = 0; + serverstartcode_ = GOOGLE_ULONGLONG(0); + master_system_time_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +OpenRegionRequest::~OpenRegionRequest() { + SharedDtor(); +} + +void OpenRegionRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void OpenRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* OpenRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return OpenRegionRequest_descriptor_; +} + +const OpenRegionRequest& OpenRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +OpenRegionRequest* OpenRegionRequest::default_instance_ = NULL; + +OpenRegionRequest* OpenRegionRequest::New() const { + return new OpenRegionRequest; +} + +void OpenRegionRequest::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + serverstartcode_ = GOOGLE_ULONGLONG(0); + master_system_time_ = GOOGLE_ULONGLONG(0); + } + open_info_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool OpenRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.OpenRegionRequest.RegionOpenInfo open_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_open_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_open_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_open_info; + if (input->ExpectTag(16)) goto parse_serverStartCode; + break; + } + + // optional uint64 serverStartCode = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_serverStartCode: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &serverstartcode_))); + set_has_serverstartcode(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_master_system_time; + break; + } + + // optional uint64 master_system_time = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_master_system_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &master_system_time_))); + set_has_master_system_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void OpenRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.OpenRegionRequest.RegionOpenInfo open_info = 1; + for (int i = 0; i < this->open_info_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->open_info(i), output); + } + + // optional uint64 serverStartCode = 2; + if (has_serverstartcode()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->serverstartcode(), output); + } + + // optional uint64 master_system_time = 5; + if (has_master_system_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->master_system_time(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* OpenRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.OpenRegionRequest.RegionOpenInfo open_info = 1; + for (int i = 0; i < this->open_info_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->open_info(i), target); + } + + // optional uint64 serverStartCode = 2; + if (has_serverstartcode()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->serverstartcode(), target); + } + + // optional uint64 master_system_time = 5; + if (has_master_system_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->master_system_time(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int OpenRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional uint64 serverStartCode = 2; + if (has_serverstartcode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->serverstartcode()); + } + + // optional uint64 master_system_time = 5; + if (has_master_system_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->master_system_time()); + } + + } + // repeated .hbase.pb.OpenRegionRequest.RegionOpenInfo open_info = 1; + total_size += 1 * this->open_info_size(); + for (int i = 0; i < this->open_info_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->open_info(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void OpenRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const OpenRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void OpenRegionRequest::MergeFrom(const OpenRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + open_info_.MergeFrom(from.open_info_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_serverstartcode()) { + set_serverstartcode(from.serverstartcode()); + } + if (from.has_master_system_time()) { + set_master_system_time(from.master_system_time()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void OpenRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OpenRegionRequest::CopyFrom(const OpenRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OpenRegionRequest::IsInitialized() const { + + for (int i = 0; i < open_info_size(); i++) { + if (!this->open_info(i).IsInitialized()) return false; + } + return true; +} + +void OpenRegionRequest::Swap(OpenRegionRequest* other) { + if (other != this) { + open_info_.Swap(&other->open_info_); + std::swap(serverstartcode_, other->serverstartcode_); + std::swap(master_system_time_, other->master_system_time_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata OpenRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = OpenRegionRequest_descriptor_; + metadata.reflection = OpenRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* OpenRegionResponse_RegionOpeningState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return OpenRegionResponse_RegionOpeningState_descriptor_; +} +bool OpenRegionResponse_RegionOpeningState_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const OpenRegionResponse_RegionOpeningState OpenRegionResponse::OPENED; +const OpenRegionResponse_RegionOpeningState OpenRegionResponse::ALREADY_OPENED; +const OpenRegionResponse_RegionOpeningState OpenRegionResponse::FAILED_OPENING; +const OpenRegionResponse_RegionOpeningState OpenRegionResponse::RegionOpeningState_MIN; +const OpenRegionResponse_RegionOpeningState OpenRegionResponse::RegionOpeningState_MAX; +const int OpenRegionResponse::RegionOpeningState_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int OpenRegionResponse::kOpeningStateFieldNumber; +#endif // !_MSC_VER + +OpenRegionResponse::OpenRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void OpenRegionResponse::InitAsDefaultInstance() { +} + +OpenRegionResponse::OpenRegionResponse(const OpenRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void OpenRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +OpenRegionResponse::~OpenRegionResponse() { + SharedDtor(); +} + +void OpenRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void OpenRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* OpenRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return OpenRegionResponse_descriptor_; +} + +const OpenRegionResponse& OpenRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +OpenRegionResponse* OpenRegionResponse::default_instance_ = NULL; + +OpenRegionResponse* OpenRegionResponse::New() const { + return new OpenRegionResponse; +} + +void OpenRegionResponse::Clear() { + opening_state_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool OpenRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.OpenRegionResponse.RegionOpeningState opening_state = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_opening_state: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::OpenRegionResponse_RegionOpeningState_IsValid(value)) { + add_opening_state(static_cast< ::hbase::pb::OpenRegionResponse_RegionOpeningState >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( + input, + &::hbase::pb::OpenRegionResponse_RegionOpeningState_IsValid, + this->mutable_opening_state()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(8)) goto parse_opening_state; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void OpenRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.OpenRegionResponse.RegionOpeningState opening_state = 1; + for (int i = 0; i < this->opening_state_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->opening_state(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* OpenRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.OpenRegionResponse.RegionOpeningState opening_state = 1; + for (int i = 0; i < this->opening_state_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->opening_state(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int OpenRegionResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.OpenRegionResponse.RegionOpeningState opening_state = 1; + { + int data_size = 0; + for (int i = 0; i < this->opening_state_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->opening_state(i)); + } + total_size += 1 * this->opening_state_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void OpenRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const OpenRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void OpenRegionResponse::MergeFrom(const OpenRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + opening_state_.MergeFrom(from.opening_state_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void OpenRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OpenRegionResponse::CopyFrom(const OpenRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OpenRegionResponse::IsInitialized() const { + + return true; +} + +void OpenRegionResponse::Swap(OpenRegionResponse* other) { + if (other != this) { + opening_state_.Swap(&other->opening_state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata OpenRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = OpenRegionResponse_descriptor_; + metadata.reflection = OpenRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int WarmupRegionRequest::kRegionInfoFieldNumber; +#endif // !_MSC_VER + +WarmupRegionRequest::WarmupRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WarmupRegionRequest::InitAsDefaultInstance() { + regioninfo_ = const_cast< ::hbase::pb::RegionInfo*>(&::hbase::pb::RegionInfo::default_instance()); +} + +WarmupRegionRequest::WarmupRegionRequest(const WarmupRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WarmupRegionRequest::SharedCtor() { + _cached_size_ = 0; + regioninfo_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WarmupRegionRequest::~WarmupRegionRequest() { + SharedDtor(); +} + +void WarmupRegionRequest::SharedDtor() { + if (this != default_instance_) { + delete regioninfo_; + } +} + +void WarmupRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WarmupRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WarmupRegionRequest_descriptor_; +} + +const WarmupRegionRequest& WarmupRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +WarmupRegionRequest* WarmupRegionRequest::default_instance_ = NULL; + +WarmupRegionRequest* WarmupRegionRequest::New() const { + return new WarmupRegionRequest; +} + +void WarmupRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_regioninfo()) { + if (regioninfo_ != NULL) regioninfo_->::hbase::pb::RegionInfo::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WarmupRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionInfo regionInfo = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_regioninfo())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void WarmupRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionInfo regionInfo = 1; + if (has_regioninfo()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->regioninfo(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WarmupRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionInfo regionInfo = 1; + if (has_regioninfo()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->regioninfo(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WarmupRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionInfo regionInfo = 1; + if (has_regioninfo()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->regioninfo()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WarmupRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WarmupRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WarmupRegionRequest::MergeFrom(const WarmupRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_regioninfo()) { + mutable_regioninfo()->::hbase::pb::RegionInfo::MergeFrom(from.regioninfo()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WarmupRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WarmupRegionRequest::CopyFrom(const WarmupRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WarmupRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_regioninfo()) { + if (!this->regioninfo().IsInitialized()) return false; + } + return true; +} + +void WarmupRegionRequest::Swap(WarmupRegionRequest* other) { + if (other != this) { + std::swap(regioninfo_, other->regioninfo_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WarmupRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WarmupRegionRequest_descriptor_; + metadata.reflection = WarmupRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +WarmupRegionResponse::WarmupRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WarmupRegionResponse::InitAsDefaultInstance() { +} + +WarmupRegionResponse::WarmupRegionResponse(const WarmupRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WarmupRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WarmupRegionResponse::~WarmupRegionResponse() { + SharedDtor(); +} + +void WarmupRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void WarmupRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WarmupRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WarmupRegionResponse_descriptor_; +} + +const WarmupRegionResponse& WarmupRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +WarmupRegionResponse* WarmupRegionResponse::default_instance_ = NULL; + +WarmupRegionResponse* WarmupRegionResponse::New() const { + return new WarmupRegionResponse; +} + +void WarmupRegionResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WarmupRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void WarmupRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WarmupRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WarmupRegionResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WarmupRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WarmupRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WarmupRegionResponse::MergeFrom(const WarmupRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WarmupRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WarmupRegionResponse::CopyFrom(const WarmupRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WarmupRegionResponse::IsInitialized() const { + + return true; +} + +void WarmupRegionResponse::Swap(WarmupRegionResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WarmupRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WarmupRegionResponse_descriptor_; + metadata.reflection = WarmupRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CloseRegionRequest::kRegionFieldNumber; +const int CloseRegionRequest::kVersionOfClosingNodeFieldNumber; +const int CloseRegionRequest::kTransitionInZKFieldNumber; +const int CloseRegionRequest::kDestinationServerFieldNumber; +const int CloseRegionRequest::kServerStartCodeFieldNumber; +#endif // !_MSC_VER + +CloseRegionRequest::CloseRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CloseRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + destination_server_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +CloseRegionRequest::CloseRegionRequest(const CloseRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CloseRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + version_of_closing_node_ = 0u; + transition_in_zk_ = true; + destination_server_ = NULL; + serverstartcode_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CloseRegionRequest::~CloseRegionRequest() { + SharedDtor(); +} + +void CloseRegionRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + delete destination_server_; + } +} + +void CloseRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CloseRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CloseRegionRequest_descriptor_; +} + +const CloseRegionRequest& CloseRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +CloseRegionRequest* CloseRegionRequest::default_instance_ = NULL; + +CloseRegionRequest* CloseRegionRequest::New() const { + return new CloseRegionRequest; +} + +void CloseRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + version_of_closing_node_ = 0u; + transition_in_zk_ = true; + if (has_destination_server()) { + if (destination_server_ != NULL) destination_server_->::hbase::pb::ServerName::Clear(); + } + serverstartcode_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CloseRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_version_of_closing_node; + break; + } + + // optional uint32 version_of_closing_node = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_version_of_closing_node: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_of_closing_node_))); + set_has_version_of_closing_node(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_transition_in_ZK; + break; + } + + // optional bool transition_in_ZK = 3 [default = true]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_transition_in_ZK: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &transition_in_zk_))); + set_has_transition_in_zk(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_destination_server; + break; + } + + // optional .hbase.pb.ServerName destination_server = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_destination_server: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_destination_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_serverStartCode; + break; + } + + // optional uint64 serverStartCode = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_serverStartCode: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &serverstartcode_))); + set_has_serverstartcode(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CloseRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional uint32 version_of_closing_node = 2; + if (has_version_of_closing_node()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->version_of_closing_node(), output); + } + + // optional bool transition_in_ZK = 3 [default = true]; + if (has_transition_in_zk()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->transition_in_zk(), output); + } + + // optional .hbase.pb.ServerName destination_server = 4; + if (has_destination_server()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->destination_server(), output); + } + + // optional uint64 serverStartCode = 5; + if (has_serverstartcode()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->serverstartcode(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CloseRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional uint32 version_of_closing_node = 2; + if (has_version_of_closing_node()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->version_of_closing_node(), target); + } + + // optional bool transition_in_ZK = 3 [default = true]; + if (has_transition_in_zk()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->transition_in_zk(), target); + } + + // optional .hbase.pb.ServerName destination_server = 4; + if (has_destination_server()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->destination_server(), target); + } + + // optional uint64 serverStartCode = 5; + if (has_serverstartcode()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->serverstartcode(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CloseRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional uint32 version_of_closing_node = 2; + if (has_version_of_closing_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version_of_closing_node()); + } + + // optional bool transition_in_ZK = 3 [default = true]; + if (has_transition_in_zk()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.ServerName destination_server = 4; + if (has_destination_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->destination_server()); + } + + // optional uint64 serverStartCode = 5; + if (has_serverstartcode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->serverstartcode()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CloseRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CloseRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CloseRegionRequest::MergeFrom(const CloseRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_version_of_closing_node()) { + set_version_of_closing_node(from.version_of_closing_node()); + } + if (from.has_transition_in_zk()) { + set_transition_in_zk(from.transition_in_zk()); + } + if (from.has_destination_server()) { + mutable_destination_server()->::hbase::pb::ServerName::MergeFrom(from.destination_server()); + } + if (from.has_serverstartcode()) { + set_serverstartcode(from.serverstartcode()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CloseRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CloseRegionRequest::CopyFrom(const CloseRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CloseRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + if (has_destination_server()) { + if (!this->destination_server().IsInitialized()) return false; + } + return true; +} + +void CloseRegionRequest::Swap(CloseRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(version_of_closing_node_, other->version_of_closing_node_); + std::swap(transition_in_zk_, other->transition_in_zk_); + std::swap(destination_server_, other->destination_server_); + std::swap(serverstartcode_, other->serverstartcode_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CloseRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CloseRegionRequest_descriptor_; + metadata.reflection = CloseRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CloseRegionResponse::kClosedFieldNumber; +#endif // !_MSC_VER + +CloseRegionResponse::CloseRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CloseRegionResponse::InitAsDefaultInstance() { +} + +CloseRegionResponse::CloseRegionResponse(const CloseRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CloseRegionResponse::SharedCtor() { + _cached_size_ = 0; + closed_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CloseRegionResponse::~CloseRegionResponse() { + SharedDtor(); +} + +void CloseRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void CloseRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CloseRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CloseRegionResponse_descriptor_; +} + +const CloseRegionResponse& CloseRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +CloseRegionResponse* CloseRegionResponse::default_instance_ = NULL; + +CloseRegionResponse* CloseRegionResponse::New() const { + return new CloseRegionResponse; +} + +void CloseRegionResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + closed_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CloseRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool closed = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &closed_))); + set_has_closed(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CloseRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool closed = 1; + if (has_closed()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->closed(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CloseRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool closed = 1; + if (has_closed()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->closed(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CloseRegionResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool closed = 1; + if (has_closed()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CloseRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CloseRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CloseRegionResponse::MergeFrom(const CloseRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_closed()) { + set_closed(from.closed()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CloseRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CloseRegionResponse::CopyFrom(const CloseRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CloseRegionResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void CloseRegionResponse::Swap(CloseRegionResponse* other) { + if (other != this) { + std::swap(closed_, other->closed_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CloseRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CloseRegionResponse_descriptor_; + metadata.reflection = CloseRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FlushRegionRequest::kRegionFieldNumber; +const int FlushRegionRequest::kIfOlderThanTsFieldNumber; +const int FlushRegionRequest::kWriteFlushWalMarkerFieldNumber; +#endif // !_MSC_VER + +FlushRegionRequest::FlushRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FlushRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +FlushRegionRequest::FlushRegionRequest(const FlushRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FlushRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + if_older_than_ts_ = GOOGLE_ULONGLONG(0); + write_flush_wal_marker_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FlushRegionRequest::~FlushRegionRequest() { + SharedDtor(); +} + +void FlushRegionRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void FlushRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FlushRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FlushRegionRequest_descriptor_; +} + +const FlushRegionRequest& FlushRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +FlushRegionRequest* FlushRegionRequest::default_instance_ = NULL; + +FlushRegionRequest* FlushRegionRequest::New() const { + return new FlushRegionRequest; +} + +void FlushRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + if_older_than_ts_ = GOOGLE_ULONGLONG(0); + write_flush_wal_marker_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FlushRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_if_older_than_ts; + break; + } + + // optional uint64 if_older_than_ts = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_if_older_than_ts: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &if_older_than_ts_))); + set_has_if_older_than_ts(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_write_flush_wal_marker; + break; + } + + // optional bool write_flush_wal_marker = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_write_flush_wal_marker: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &write_flush_wal_marker_))); + set_has_write_flush_wal_marker(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FlushRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional uint64 if_older_than_ts = 2; + if (has_if_older_than_ts()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->if_older_than_ts(), output); + } + + // optional bool write_flush_wal_marker = 3; + if (has_write_flush_wal_marker()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->write_flush_wal_marker(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FlushRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional uint64 if_older_than_ts = 2; + if (has_if_older_than_ts()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->if_older_than_ts(), target); + } + + // optional bool write_flush_wal_marker = 3; + if (has_write_flush_wal_marker()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->write_flush_wal_marker(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FlushRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional uint64 if_older_than_ts = 2; + if (has_if_older_than_ts()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->if_older_than_ts()); + } + + // optional bool write_flush_wal_marker = 3; + if (has_write_flush_wal_marker()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FlushRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FlushRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FlushRegionRequest::MergeFrom(const FlushRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_if_older_than_ts()) { + set_if_older_than_ts(from.if_older_than_ts()); + } + if (from.has_write_flush_wal_marker()) { + set_write_flush_wal_marker(from.write_flush_wal_marker()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FlushRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FlushRegionRequest::CopyFrom(const FlushRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlushRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void FlushRegionRequest::Swap(FlushRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(if_older_than_ts_, other->if_older_than_ts_); + std::swap(write_flush_wal_marker_, other->write_flush_wal_marker_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FlushRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FlushRegionRequest_descriptor_; + metadata.reflection = FlushRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FlushRegionResponse::kLastFlushTimeFieldNumber; +const int FlushRegionResponse::kFlushedFieldNumber; +const int FlushRegionResponse::kWroteFlushWalMarkerFieldNumber; +#endif // !_MSC_VER + +FlushRegionResponse::FlushRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FlushRegionResponse::InitAsDefaultInstance() { +} + +FlushRegionResponse::FlushRegionResponse(const FlushRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FlushRegionResponse::SharedCtor() { + _cached_size_ = 0; + last_flush_time_ = GOOGLE_ULONGLONG(0); + flushed_ = false; + wrote_flush_wal_marker_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FlushRegionResponse::~FlushRegionResponse() { + SharedDtor(); +} + +void FlushRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void FlushRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FlushRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FlushRegionResponse_descriptor_; +} + +const FlushRegionResponse& FlushRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +FlushRegionResponse* FlushRegionResponse::default_instance_ = NULL; + +FlushRegionResponse* FlushRegionResponse::New() const { + return new FlushRegionResponse; +} + +void FlushRegionResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + last_flush_time_ = GOOGLE_ULONGLONG(0); + flushed_ = false; + wrote_flush_wal_marker_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FlushRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 last_flush_time = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &last_flush_time_))); + set_has_last_flush_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_flushed; + break; + } + + // optional bool flushed = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_flushed: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &flushed_))); + set_has_flushed(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_wrote_flush_wal_marker; + break; + } + + // optional bool wrote_flush_wal_marker = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_wrote_flush_wal_marker: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &wrote_flush_wal_marker_))); + set_has_wrote_flush_wal_marker(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FlushRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 last_flush_time = 1; + if (has_last_flush_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->last_flush_time(), output); + } + + // optional bool flushed = 2; + if (has_flushed()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->flushed(), output); + } + + // optional bool wrote_flush_wal_marker = 3; + if (has_wrote_flush_wal_marker()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->wrote_flush_wal_marker(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FlushRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 last_flush_time = 1; + if (has_last_flush_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->last_flush_time(), target); + } + + // optional bool flushed = 2; + if (has_flushed()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->flushed(), target); + } + + // optional bool wrote_flush_wal_marker = 3; + if (has_wrote_flush_wal_marker()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->wrote_flush_wal_marker(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FlushRegionResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 last_flush_time = 1; + if (has_last_flush_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->last_flush_time()); + } + + // optional bool flushed = 2; + if (has_flushed()) { + total_size += 1 + 1; + } + + // optional bool wrote_flush_wal_marker = 3; + if (has_wrote_flush_wal_marker()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FlushRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FlushRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FlushRegionResponse::MergeFrom(const FlushRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_last_flush_time()) { + set_last_flush_time(from.last_flush_time()); + } + if (from.has_flushed()) { + set_flushed(from.flushed()); + } + if (from.has_wrote_flush_wal_marker()) { + set_wrote_flush_wal_marker(from.wrote_flush_wal_marker()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FlushRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FlushRegionResponse::CopyFrom(const FlushRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlushRegionResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void FlushRegionResponse::Swap(FlushRegionResponse* other) { + if (other != this) { + std::swap(last_flush_time_, other->last_flush_time_); + std::swap(flushed_, other->flushed_); + std::swap(wrote_flush_wal_marker_, other->wrote_flush_wal_marker_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FlushRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FlushRegionResponse_descriptor_; + metadata.reflection = FlushRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SplitRegionRequest::kRegionFieldNumber; +const int SplitRegionRequest::kSplitPointFieldNumber; +#endif // !_MSC_VER + +SplitRegionRequest::SplitRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SplitRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +SplitRegionRequest::SplitRegionRequest(const SplitRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SplitRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + split_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SplitRegionRequest::~SplitRegionRequest() { + SharedDtor(); +} + +void SplitRegionRequest::SharedDtor() { + if (split_point_ != &::google::protobuf::internal::kEmptyString) { + delete split_point_; + } + if (this != default_instance_) { + delete region_; + } +} + +void SplitRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SplitRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SplitRegionRequest_descriptor_; +} + +const SplitRegionRequest& SplitRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +SplitRegionRequest* SplitRegionRequest::default_instance_ = NULL; + +SplitRegionRequest* SplitRegionRequest::New() const { + return new SplitRegionRequest; +} + +void SplitRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_split_point()) { + if (split_point_ != &::google::protobuf::internal::kEmptyString) { + split_point_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SplitRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_split_point; + break; + } + + // optional bytes split_point = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_split_point: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_split_point())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SplitRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional bytes split_point = 2; + if (has_split_point()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->split_point(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SplitRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional bytes split_point = 2; + if (has_split_point()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->split_point(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SplitRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional bytes split_point = 2; + if (has_split_point()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->split_point()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SplitRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SplitRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SplitRegionRequest::MergeFrom(const SplitRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_split_point()) { + set_split_point(from.split_point()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SplitRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SplitRegionRequest::CopyFrom(const SplitRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SplitRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void SplitRegionRequest::Swap(SplitRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(split_point_, other->split_point_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SplitRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SplitRegionRequest_descriptor_; + metadata.reflection = SplitRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +SplitRegionResponse::SplitRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SplitRegionResponse::InitAsDefaultInstance() { +} + +SplitRegionResponse::SplitRegionResponse(const SplitRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SplitRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SplitRegionResponse::~SplitRegionResponse() { + SharedDtor(); +} + +void SplitRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SplitRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SplitRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SplitRegionResponse_descriptor_; +} + +const SplitRegionResponse& SplitRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +SplitRegionResponse* SplitRegionResponse::default_instance_ = NULL; + +SplitRegionResponse* SplitRegionResponse::New() const { + return new SplitRegionResponse; +} + +void SplitRegionResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SplitRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void SplitRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SplitRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SplitRegionResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SplitRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SplitRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SplitRegionResponse::MergeFrom(const SplitRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SplitRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SplitRegionResponse::CopyFrom(const SplitRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SplitRegionResponse::IsInitialized() const { + + return true; +} + +void SplitRegionResponse::Swap(SplitRegionResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SplitRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SplitRegionResponse_descriptor_; + metadata.reflection = SplitRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CompactRegionRequest::kRegionFieldNumber; +const int CompactRegionRequest::kMajorFieldNumber; +const int CompactRegionRequest::kFamilyFieldNumber; +#endif // !_MSC_VER + +CompactRegionRequest::CompactRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CompactRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +CompactRegionRequest::CompactRegionRequest(const CompactRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CompactRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + major_ = false; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CompactRegionRequest::~CompactRegionRequest() { + SharedDtor(); +} + +void CompactRegionRequest::SharedDtor() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (this != default_instance_) { + delete region_; + } +} + +void CompactRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CompactRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CompactRegionRequest_descriptor_; +} + +const CompactRegionRequest& CompactRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +CompactRegionRequest* CompactRegionRequest::default_instance_ = NULL; + +CompactRegionRequest* CompactRegionRequest::New() const { + return new CompactRegionRequest; +} + +void CompactRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + major_ = false; + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CompactRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_major; + break; + } + + // optional bool major = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_major: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &major_))); + set_has_major(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_family; + break; + } + + // optional bytes family = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CompactRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional bool major = 2; + if (has_major()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->major(), output); + } + + // optional bytes family = 3; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->family(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CompactRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional bool major = 2; + if (has_major()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->major(), target); + } + + // optional bytes family = 3; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->family(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CompactRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional bool major = 2; + if (has_major()) { + total_size += 1 + 1; + } + + // optional bytes family = 3; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CompactRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CompactRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CompactRegionRequest::MergeFrom(const CompactRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_major()) { + set_major(from.major()); + } + if (from.has_family()) { + set_family(from.family()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CompactRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompactRegionRequest::CopyFrom(const CompactRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompactRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void CompactRegionRequest::Swap(CompactRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(major_, other->major_); + std::swap(family_, other->family_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CompactRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CompactRegionRequest_descriptor_; + metadata.reflection = CompactRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +CompactRegionResponse::CompactRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CompactRegionResponse::InitAsDefaultInstance() { +} + +CompactRegionResponse::CompactRegionResponse(const CompactRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CompactRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CompactRegionResponse::~CompactRegionResponse() { + SharedDtor(); +} + +void CompactRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void CompactRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CompactRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CompactRegionResponse_descriptor_; +} + +const CompactRegionResponse& CompactRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +CompactRegionResponse* CompactRegionResponse::default_instance_ = NULL; + +CompactRegionResponse* CompactRegionResponse::New() const { + return new CompactRegionResponse; +} + +void CompactRegionResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CompactRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void CompactRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CompactRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CompactRegionResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CompactRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CompactRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CompactRegionResponse::MergeFrom(const CompactRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CompactRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompactRegionResponse::CopyFrom(const CompactRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompactRegionResponse::IsInitialized() const { + + return true; +} + +void CompactRegionResponse::Swap(CompactRegionResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CompactRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CompactRegionResponse_descriptor_; + metadata.reflection = CompactRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int UpdateFavoredNodesRequest_RegionUpdateInfo::kRegionFieldNumber; +const int UpdateFavoredNodesRequest_RegionUpdateInfo::kFavoredNodesFieldNumber; +#endif // !_MSC_VER + +UpdateFavoredNodesRequest_RegionUpdateInfo::UpdateFavoredNodesRequest_RegionUpdateInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionInfo*>(&::hbase::pb::RegionInfo::default_instance()); +} + +UpdateFavoredNodesRequest_RegionUpdateInfo::UpdateFavoredNodesRequest_RegionUpdateInfo(const UpdateFavoredNodesRequest_RegionUpdateInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UpdateFavoredNodesRequest_RegionUpdateInfo::~UpdateFavoredNodesRequest_RegionUpdateInfo() { + SharedDtor(); +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UpdateFavoredNodesRequest_RegionUpdateInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UpdateFavoredNodesRequest_RegionUpdateInfo_descriptor_; +} + +const UpdateFavoredNodesRequest_RegionUpdateInfo& UpdateFavoredNodesRequest_RegionUpdateInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +UpdateFavoredNodesRequest_RegionUpdateInfo* UpdateFavoredNodesRequest_RegionUpdateInfo::default_instance_ = NULL; + +UpdateFavoredNodesRequest_RegionUpdateInfo* UpdateFavoredNodesRequest_RegionUpdateInfo::New() const { + return new UpdateFavoredNodesRequest_RegionUpdateInfo; +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionInfo::Clear(); + } + } + favored_nodes_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UpdateFavoredNodesRequest_RegionUpdateInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionInfo region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_favored_nodes; + break; + } + + // repeated .hbase.pb.ServerName favored_nodes = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_favored_nodes: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_favored_nodes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_favored_nodes; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionInfo region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // repeated .hbase.pb.ServerName favored_nodes = 2; + for (int i = 0; i < this->favored_nodes_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->favored_nodes(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UpdateFavoredNodesRequest_RegionUpdateInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionInfo region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // repeated .hbase.pb.ServerName favored_nodes = 2; + for (int i = 0; i < this->favored_nodes_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->favored_nodes(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UpdateFavoredNodesRequest_RegionUpdateInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionInfo region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + } + // repeated .hbase.pb.ServerName favored_nodes = 2; + total_size += 1 * this->favored_nodes_size(); + for (int i = 0; i < this->favored_nodes_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->favored_nodes(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UpdateFavoredNodesRequest_RegionUpdateInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::MergeFrom(const UpdateFavoredNodesRequest_RegionUpdateInfo& from) { + GOOGLE_CHECK_NE(&from, this); + favored_nodes_.MergeFrom(from.favored_nodes_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionInfo::MergeFrom(from.region()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::CopyFrom(const UpdateFavoredNodesRequest_RegionUpdateInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateFavoredNodesRequest_RegionUpdateInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + for (int i = 0; i < favored_nodes_size(); i++) { + if (!this->favored_nodes(i).IsInitialized()) return false; + } + return true; +} + +void UpdateFavoredNodesRequest_RegionUpdateInfo::Swap(UpdateFavoredNodesRequest_RegionUpdateInfo* other) { + if (other != this) { + std::swap(region_, other->region_); + favored_nodes_.Swap(&other->favored_nodes_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UpdateFavoredNodesRequest_RegionUpdateInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UpdateFavoredNodesRequest_RegionUpdateInfo_descriptor_; + metadata.reflection = UpdateFavoredNodesRequest_RegionUpdateInfo_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int UpdateFavoredNodesRequest::kUpdateInfoFieldNumber; +#endif // !_MSC_VER + +UpdateFavoredNodesRequest::UpdateFavoredNodesRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UpdateFavoredNodesRequest::InitAsDefaultInstance() { +} + +UpdateFavoredNodesRequest::UpdateFavoredNodesRequest(const UpdateFavoredNodesRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UpdateFavoredNodesRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UpdateFavoredNodesRequest::~UpdateFavoredNodesRequest() { + SharedDtor(); +} + +void UpdateFavoredNodesRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void UpdateFavoredNodesRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UpdateFavoredNodesRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UpdateFavoredNodesRequest_descriptor_; +} + +const UpdateFavoredNodesRequest& UpdateFavoredNodesRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +UpdateFavoredNodesRequest* UpdateFavoredNodesRequest::default_instance_ = NULL; + +UpdateFavoredNodesRequest* UpdateFavoredNodesRequest::New() const { + return new UpdateFavoredNodesRequest; +} + +void UpdateFavoredNodesRequest::Clear() { + update_info_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UpdateFavoredNodesRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.UpdateFavoredNodesRequest.RegionUpdateInfo update_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_update_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_update_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_update_info; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UpdateFavoredNodesRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.UpdateFavoredNodesRequest.RegionUpdateInfo update_info = 1; + for (int i = 0; i < this->update_info_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->update_info(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UpdateFavoredNodesRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.UpdateFavoredNodesRequest.RegionUpdateInfo update_info = 1; + for (int i = 0; i < this->update_info_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->update_info(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UpdateFavoredNodesRequest::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.UpdateFavoredNodesRequest.RegionUpdateInfo update_info = 1; + total_size += 1 * this->update_info_size(); + for (int i = 0; i < this->update_info_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->update_info(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UpdateFavoredNodesRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UpdateFavoredNodesRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UpdateFavoredNodesRequest::MergeFrom(const UpdateFavoredNodesRequest& from) { + GOOGLE_CHECK_NE(&from, this); + update_info_.MergeFrom(from.update_info_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UpdateFavoredNodesRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UpdateFavoredNodesRequest::CopyFrom(const UpdateFavoredNodesRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateFavoredNodesRequest::IsInitialized() const { + + for (int i = 0; i < update_info_size(); i++) { + if (!this->update_info(i).IsInitialized()) return false; + } + return true; +} + +void UpdateFavoredNodesRequest::Swap(UpdateFavoredNodesRequest* other) { + if (other != this) { + update_info_.Swap(&other->update_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UpdateFavoredNodesRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UpdateFavoredNodesRequest_descriptor_; + metadata.reflection = UpdateFavoredNodesRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int UpdateFavoredNodesResponse::kResponseFieldNumber; +#endif // !_MSC_VER + +UpdateFavoredNodesResponse::UpdateFavoredNodesResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UpdateFavoredNodesResponse::InitAsDefaultInstance() { +} + +UpdateFavoredNodesResponse::UpdateFavoredNodesResponse(const UpdateFavoredNodesResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UpdateFavoredNodesResponse::SharedCtor() { + _cached_size_ = 0; + response_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UpdateFavoredNodesResponse::~UpdateFavoredNodesResponse() { + SharedDtor(); +} + +void UpdateFavoredNodesResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void UpdateFavoredNodesResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UpdateFavoredNodesResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UpdateFavoredNodesResponse_descriptor_; +} + +const UpdateFavoredNodesResponse& UpdateFavoredNodesResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +UpdateFavoredNodesResponse* UpdateFavoredNodesResponse::default_instance_ = NULL; + +UpdateFavoredNodesResponse* UpdateFavoredNodesResponse::New() const { + return new UpdateFavoredNodesResponse; +} + +void UpdateFavoredNodesResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + response_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UpdateFavoredNodesResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 response = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &response_))); + set_has_response(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UpdateFavoredNodesResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 response = 1; + if (has_response()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->response(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UpdateFavoredNodesResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 response = 1; + if (has_response()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->response(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UpdateFavoredNodesResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 response = 1; + if (has_response()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->response()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UpdateFavoredNodesResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UpdateFavoredNodesResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UpdateFavoredNodesResponse::MergeFrom(const UpdateFavoredNodesResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_response()) { + set_response(from.response()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UpdateFavoredNodesResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UpdateFavoredNodesResponse::CopyFrom(const UpdateFavoredNodesResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateFavoredNodesResponse::IsInitialized() const { + + return true; +} + +void UpdateFavoredNodesResponse::Swap(UpdateFavoredNodesResponse* other) { + if (other != this) { + std::swap(response_, other->response_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UpdateFavoredNodesResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UpdateFavoredNodesResponse_descriptor_; + metadata.reflection = UpdateFavoredNodesResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MergeRegionsRequest::kRegionAFieldNumber; +const int MergeRegionsRequest::kRegionBFieldNumber; +const int MergeRegionsRequest::kForcibleFieldNumber; +const int MergeRegionsRequest::kMasterSystemTimeFieldNumber; +#endif // !_MSC_VER + +MergeRegionsRequest::MergeRegionsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MergeRegionsRequest::InitAsDefaultInstance() { + region_a_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + region_b_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +MergeRegionsRequest::MergeRegionsRequest(const MergeRegionsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MergeRegionsRequest::SharedCtor() { + _cached_size_ = 0; + region_a_ = NULL; + region_b_ = NULL; + forcible_ = false; + master_system_time_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MergeRegionsRequest::~MergeRegionsRequest() { + SharedDtor(); +} + +void MergeRegionsRequest::SharedDtor() { + if (this != default_instance_) { + delete region_a_; + delete region_b_; + } +} + +void MergeRegionsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MergeRegionsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MergeRegionsRequest_descriptor_; +} + +const MergeRegionsRequest& MergeRegionsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +MergeRegionsRequest* MergeRegionsRequest::default_instance_ = NULL; + +MergeRegionsRequest* MergeRegionsRequest::New() const { + return new MergeRegionsRequest; +} + +void MergeRegionsRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region_a()) { + if (region_a_ != NULL) region_a_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_region_b()) { + if (region_b_ != NULL) region_b_->::hbase::pb::RegionSpecifier::Clear(); + } + forcible_ = false; + master_system_time_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MergeRegionsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region_a = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_a())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_region_b; + break; + } + + // required .hbase.pb.RegionSpecifier region_b = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_b: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_b())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_forcible; + break; + } + + // optional bool forcible = 3 [default = false]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_forcible: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &forcible_))); + set_has_forcible(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_master_system_time; + break; + } + + // optional uint64 master_system_time = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_master_system_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &master_system_time_))); + set_has_master_system_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MergeRegionsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region_a = 1; + if (has_region_a()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region_a(), output); + } + + // required .hbase.pb.RegionSpecifier region_b = 2; + if (has_region_b()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->region_b(), output); + } + + // optional bool forcible = 3 [default = false]; + if (has_forcible()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->forcible(), output); + } + + // optional uint64 master_system_time = 4; + if (has_master_system_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->master_system_time(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MergeRegionsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region_a = 1; + if (has_region_a()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region_a(), target); + } + + // required .hbase.pb.RegionSpecifier region_b = 2; + if (has_region_b()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->region_b(), target); + } + + // optional bool forcible = 3 [default = false]; + if (has_forcible()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->forcible(), target); + } + + // optional uint64 master_system_time = 4; + if (has_master_system_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->master_system_time(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MergeRegionsRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region_a = 1; + if (has_region_a()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_a()); + } + + // required .hbase.pb.RegionSpecifier region_b = 2; + if (has_region_b()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_b()); + } + + // optional bool forcible = 3 [default = false]; + if (has_forcible()) { + total_size += 1 + 1; + } + + // optional uint64 master_system_time = 4; + if (has_master_system_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->master_system_time()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MergeRegionsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MergeRegionsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MergeRegionsRequest::MergeFrom(const MergeRegionsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region_a()) { + mutable_region_a()->::hbase::pb::RegionSpecifier::MergeFrom(from.region_a()); + } + if (from.has_region_b()) { + mutable_region_b()->::hbase::pb::RegionSpecifier::MergeFrom(from.region_b()); + } + if (from.has_forcible()) { + set_forcible(from.forcible()); + } + if (from.has_master_system_time()) { + set_master_system_time(from.master_system_time()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MergeRegionsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MergeRegionsRequest::CopyFrom(const MergeRegionsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MergeRegionsRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_region_a()) { + if (!this->region_a().IsInitialized()) return false; + } + if (has_region_b()) { + if (!this->region_b().IsInitialized()) return false; + } + return true; +} + +void MergeRegionsRequest::Swap(MergeRegionsRequest* other) { + if (other != this) { + std::swap(region_a_, other->region_a_); + std::swap(region_b_, other->region_b_); + std::swap(forcible_, other->forcible_); + std::swap(master_system_time_, other->master_system_time_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MergeRegionsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MergeRegionsRequest_descriptor_; + metadata.reflection = MergeRegionsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +MergeRegionsResponse::MergeRegionsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MergeRegionsResponse::InitAsDefaultInstance() { +} + +MergeRegionsResponse::MergeRegionsResponse(const MergeRegionsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MergeRegionsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MergeRegionsResponse::~MergeRegionsResponse() { + SharedDtor(); +} + +void MergeRegionsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void MergeRegionsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MergeRegionsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MergeRegionsResponse_descriptor_; +} + +const MergeRegionsResponse& MergeRegionsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +MergeRegionsResponse* MergeRegionsResponse::default_instance_ = NULL; + +MergeRegionsResponse* MergeRegionsResponse::New() const { + return new MergeRegionsResponse; +} + +void MergeRegionsResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MergeRegionsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void MergeRegionsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MergeRegionsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MergeRegionsResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MergeRegionsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MergeRegionsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MergeRegionsResponse::MergeFrom(const MergeRegionsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MergeRegionsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MergeRegionsResponse::CopyFrom(const MergeRegionsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MergeRegionsResponse::IsInitialized() const { + + return true; +} + +void MergeRegionsResponse::Swap(MergeRegionsResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MergeRegionsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MergeRegionsResponse_descriptor_; + metadata.reflection = MergeRegionsResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int WALEntry::kKeyFieldNumber; +const int WALEntry::kKeyValueBytesFieldNumber; +const int WALEntry::kAssociatedCellCountFieldNumber; +#endif // !_MSC_VER + +WALEntry::WALEntry() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WALEntry::InitAsDefaultInstance() { + key_ = const_cast< ::hbase::pb::WALKey*>(&::hbase::pb::WALKey::default_instance()); +} + +WALEntry::WALEntry(const WALEntry& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WALEntry::SharedCtor() { + _cached_size_ = 0; + key_ = NULL; + associated_cell_count_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WALEntry::~WALEntry() { + SharedDtor(); +} + +void WALEntry::SharedDtor() { + if (this != default_instance_) { + delete key_; + } +} + +void WALEntry::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WALEntry::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WALEntry_descriptor_; +} + +const WALEntry& WALEntry::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +WALEntry* WALEntry::default_instance_ = NULL; + +WALEntry* WALEntry::New() const { + return new WALEntry; +} + +void WALEntry::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_key()) { + if (key_ != NULL) key_->::hbase::pb::WALKey::Clear(); + } + associated_cell_count_ = 0; + } + key_value_bytes_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WALEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.WALKey key = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_key())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_key_value_bytes; + break; + } + + // repeated bytes key_value_bytes = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_key_value_bytes: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_key_value_bytes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_key_value_bytes; + if (input->ExpectTag(24)) goto parse_associated_cell_count; + break; + } + + // optional int32 associated_cell_count = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_associated_cell_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &associated_cell_count_))); + set_has_associated_cell_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void WALEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.WALKey key = 1; + if (has_key()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->key(), output); + } + + // repeated bytes key_value_bytes = 2; + for (int i = 0; i < this->key_value_bytes_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->key_value_bytes(i), output); + } + + // optional int32 associated_cell_count = 3; + if (has_associated_cell_count()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->associated_cell_count(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WALEntry::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.WALKey key = 1; + if (has_key()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->key(), target); + } + + // repeated bytes key_value_bytes = 2; + for (int i = 0; i < this->key_value_bytes_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(2, this->key_value_bytes(i), target); + } + + // optional int32 associated_cell_count = 3; + if (has_associated_cell_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->associated_cell_count(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WALEntry::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.WALKey key = 1; + if (has_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->key()); + } + + // optional int32 associated_cell_count = 3; + if (has_associated_cell_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->associated_cell_count()); + } + + } + // repeated bytes key_value_bytes = 2; + total_size += 1 * this->key_value_bytes_size(); + for (int i = 0; i < this->key_value_bytes_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->key_value_bytes(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WALEntry::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WALEntry* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WALEntry::MergeFrom(const WALEntry& from) { + GOOGLE_CHECK_NE(&from, this); + key_value_bytes_.MergeFrom(from.key_value_bytes_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_key()) { + mutable_key()->::hbase::pb::WALKey::MergeFrom(from.key()); + } + if (from.has_associated_cell_count()) { + set_associated_cell_count(from.associated_cell_count()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WALEntry::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WALEntry::CopyFrom(const WALEntry& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WALEntry::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_key()) { + if (!this->key().IsInitialized()) return false; + } + return true; +} + +void WALEntry::Swap(WALEntry* other) { + if (other != this) { + std::swap(key_, other->key_); + key_value_bytes_.Swap(&other->key_value_bytes_); + std::swap(associated_cell_count_, other->associated_cell_count_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WALEntry::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WALEntry_descriptor_; + metadata.reflection = WALEntry_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReplicateWALEntryRequest::kEntryFieldNumber; +const int ReplicateWALEntryRequest::kReplicationClusterIdFieldNumber; +const int ReplicateWALEntryRequest::kSourceBaseNamespaceDirPathFieldNumber; +const int ReplicateWALEntryRequest::kSourceHFileArchiveDirPathFieldNumber; +#endif // !_MSC_VER + +ReplicateWALEntryRequest::ReplicateWALEntryRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReplicateWALEntryRequest::InitAsDefaultInstance() { +} + +ReplicateWALEntryRequest::ReplicateWALEntryRequest(const ReplicateWALEntryRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReplicateWALEntryRequest::SharedCtor() { + _cached_size_ = 0; + replicationclusterid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + sourcebasenamespacedirpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + sourcehfilearchivedirpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReplicateWALEntryRequest::~ReplicateWALEntryRequest() { + SharedDtor(); +} + +void ReplicateWALEntryRequest::SharedDtor() { + if (replicationclusterid_ != &::google::protobuf::internal::kEmptyString) { + delete replicationclusterid_; + } + if (sourcebasenamespacedirpath_ != &::google::protobuf::internal::kEmptyString) { + delete sourcebasenamespacedirpath_; + } + if (sourcehfilearchivedirpath_ != &::google::protobuf::internal::kEmptyString) { + delete sourcehfilearchivedirpath_; + } + if (this != default_instance_) { + } +} + +void ReplicateWALEntryRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReplicateWALEntryRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicateWALEntryRequest_descriptor_; +} + +const ReplicateWALEntryRequest& ReplicateWALEntryRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +ReplicateWALEntryRequest* ReplicateWALEntryRequest::default_instance_ = NULL; + +ReplicateWALEntryRequest* ReplicateWALEntryRequest::New() const { + return new ReplicateWALEntryRequest; +} + +void ReplicateWALEntryRequest::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (has_replicationclusterid()) { + if (replicationclusterid_ != &::google::protobuf::internal::kEmptyString) { + replicationclusterid_->clear(); + } + } + if (has_sourcebasenamespacedirpath()) { + if (sourcebasenamespacedirpath_ != &::google::protobuf::internal::kEmptyString) { + sourcebasenamespacedirpath_->clear(); + } + } + if (has_sourcehfilearchivedirpath()) { + if (sourcehfilearchivedirpath_ != &::google::protobuf::internal::kEmptyString) { + sourcehfilearchivedirpath_->clear(); + } + } + } + entry_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReplicateWALEntryRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.WALEntry entry = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_entry: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_entry())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_entry; + if (input->ExpectTag(18)) goto parse_replicationClusterId; + break; + } + + // optional string replicationClusterId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_replicationClusterId: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_replicationclusterid())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->replicationclusterid().data(), this->replicationclusterid().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_sourceBaseNamespaceDirPath; + break; + } + + // optional string sourceBaseNamespaceDirPath = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_sourceBaseNamespaceDirPath: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_sourcebasenamespacedirpath())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->sourcebasenamespacedirpath().data(), this->sourcebasenamespacedirpath().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_sourceHFileArchiveDirPath; + break; + } + + // optional string sourceHFileArchiveDirPath = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_sourceHFileArchiveDirPath: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_sourcehfilearchivedirpath())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->sourcehfilearchivedirpath().data(), this->sourcehfilearchivedirpath().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReplicateWALEntryRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.WALEntry entry = 1; + for (int i = 0; i < this->entry_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->entry(i), output); + } + + // optional string replicationClusterId = 2; + if (has_replicationclusterid()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->replicationclusterid().data(), this->replicationclusterid().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->replicationclusterid(), output); + } + + // optional string sourceBaseNamespaceDirPath = 3; + if (has_sourcebasenamespacedirpath()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->sourcebasenamespacedirpath().data(), this->sourcebasenamespacedirpath().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->sourcebasenamespacedirpath(), output); + } + + // optional string sourceHFileArchiveDirPath = 4; + if (has_sourcehfilearchivedirpath()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->sourcehfilearchivedirpath().data(), this->sourcehfilearchivedirpath().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->sourcehfilearchivedirpath(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReplicateWALEntryRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.WALEntry entry = 1; + for (int i = 0; i < this->entry_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->entry(i), target); + } + + // optional string replicationClusterId = 2; + if (has_replicationclusterid()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->replicationclusterid().data(), this->replicationclusterid().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->replicationclusterid(), target); + } + + // optional string sourceBaseNamespaceDirPath = 3; + if (has_sourcebasenamespacedirpath()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->sourcebasenamespacedirpath().data(), this->sourcebasenamespacedirpath().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->sourcebasenamespacedirpath(), target); + } + + // optional string sourceHFileArchiveDirPath = 4; + if (has_sourcehfilearchivedirpath()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->sourcehfilearchivedirpath().data(), this->sourcehfilearchivedirpath().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->sourcehfilearchivedirpath(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReplicateWALEntryRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional string replicationClusterId = 2; + if (has_replicationclusterid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->replicationclusterid()); + } + + // optional string sourceBaseNamespaceDirPath = 3; + if (has_sourcebasenamespacedirpath()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->sourcebasenamespacedirpath()); + } + + // optional string sourceHFileArchiveDirPath = 4; + if (has_sourcehfilearchivedirpath()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->sourcehfilearchivedirpath()); + } + + } + // repeated .hbase.pb.WALEntry entry = 1; + total_size += 1 * this->entry_size(); + for (int i = 0; i < this->entry_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->entry(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReplicateWALEntryRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReplicateWALEntryRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReplicateWALEntryRequest::MergeFrom(const ReplicateWALEntryRequest& from) { + GOOGLE_CHECK_NE(&from, this); + entry_.MergeFrom(from.entry_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_replicationclusterid()) { + set_replicationclusterid(from.replicationclusterid()); + } + if (from.has_sourcebasenamespacedirpath()) { + set_sourcebasenamespacedirpath(from.sourcebasenamespacedirpath()); + } + if (from.has_sourcehfilearchivedirpath()) { + set_sourcehfilearchivedirpath(from.sourcehfilearchivedirpath()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReplicateWALEntryRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReplicateWALEntryRequest::CopyFrom(const ReplicateWALEntryRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReplicateWALEntryRequest::IsInitialized() const { + + for (int i = 0; i < entry_size(); i++) { + if (!this->entry(i).IsInitialized()) return false; + } + return true; +} + +void ReplicateWALEntryRequest::Swap(ReplicateWALEntryRequest* other) { + if (other != this) { + entry_.Swap(&other->entry_); + std::swap(replicationclusterid_, other->replicationclusterid_); + std::swap(sourcebasenamespacedirpath_, other->sourcebasenamespacedirpath_); + std::swap(sourcehfilearchivedirpath_, other->sourcehfilearchivedirpath_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReplicateWALEntryRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReplicateWALEntryRequest_descriptor_; + metadata.reflection = ReplicateWALEntryRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ReplicateWALEntryResponse::ReplicateWALEntryResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReplicateWALEntryResponse::InitAsDefaultInstance() { +} + +ReplicateWALEntryResponse::ReplicateWALEntryResponse(const ReplicateWALEntryResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReplicateWALEntryResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReplicateWALEntryResponse::~ReplicateWALEntryResponse() { + SharedDtor(); +} + +void ReplicateWALEntryResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ReplicateWALEntryResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReplicateWALEntryResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicateWALEntryResponse_descriptor_; +} + +const ReplicateWALEntryResponse& ReplicateWALEntryResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +ReplicateWALEntryResponse* ReplicateWALEntryResponse::default_instance_ = NULL; + +ReplicateWALEntryResponse* ReplicateWALEntryResponse::New() const { + return new ReplicateWALEntryResponse; +} + +void ReplicateWALEntryResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReplicateWALEntryResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ReplicateWALEntryResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReplicateWALEntryResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReplicateWALEntryResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReplicateWALEntryResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReplicateWALEntryResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReplicateWALEntryResponse::MergeFrom(const ReplicateWALEntryResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReplicateWALEntryResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReplicateWALEntryResponse::CopyFrom(const ReplicateWALEntryResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReplicateWALEntryResponse::IsInitialized() const { + + return true; +} + +void ReplicateWALEntryResponse::Swap(ReplicateWALEntryResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReplicateWALEntryResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReplicateWALEntryResponse_descriptor_; + metadata.reflection = ReplicateWALEntryResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +RollWALWriterRequest::RollWALWriterRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RollWALWriterRequest::InitAsDefaultInstance() { +} + +RollWALWriterRequest::RollWALWriterRequest(const RollWALWriterRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RollWALWriterRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RollWALWriterRequest::~RollWALWriterRequest() { + SharedDtor(); +} + +void RollWALWriterRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void RollWALWriterRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RollWALWriterRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RollWALWriterRequest_descriptor_; +} + +const RollWALWriterRequest& RollWALWriterRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +RollWALWriterRequest* RollWALWriterRequest::default_instance_ = NULL; + +RollWALWriterRequest* RollWALWriterRequest::New() const { + return new RollWALWriterRequest; +} + +void RollWALWriterRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RollWALWriterRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void RollWALWriterRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RollWALWriterRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RollWALWriterRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RollWALWriterRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RollWALWriterRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RollWALWriterRequest::MergeFrom(const RollWALWriterRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RollWALWriterRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RollWALWriterRequest::CopyFrom(const RollWALWriterRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RollWALWriterRequest::IsInitialized() const { + + return true; +} + +void RollWALWriterRequest::Swap(RollWALWriterRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RollWALWriterRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RollWALWriterRequest_descriptor_; + metadata.reflection = RollWALWriterRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RollWALWriterResponse::kRegionToFlushFieldNumber; +#endif // !_MSC_VER + +RollWALWriterResponse::RollWALWriterResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RollWALWriterResponse::InitAsDefaultInstance() { +} + +RollWALWriterResponse::RollWALWriterResponse(const RollWALWriterResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RollWALWriterResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RollWALWriterResponse::~RollWALWriterResponse() { + SharedDtor(); +} + +void RollWALWriterResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void RollWALWriterResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RollWALWriterResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RollWALWriterResponse_descriptor_; +} + +const RollWALWriterResponse& RollWALWriterResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +RollWALWriterResponse* RollWALWriterResponse::default_instance_ = NULL; + +RollWALWriterResponse* RollWALWriterResponse::New() const { + return new RollWALWriterResponse; +} + +void RollWALWriterResponse::Clear() { + region_to_flush_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RollWALWriterResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes region_to_flush = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_to_flush: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_region_to_flush())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_region_to_flush; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RollWALWriterResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated bytes region_to_flush = 1; + for (int i = 0; i < this->region_to_flush_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->region_to_flush(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RollWALWriterResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated bytes region_to_flush = 1; + for (int i = 0; i < this->region_to_flush_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->region_to_flush(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RollWALWriterResponse::ByteSize() const { + int total_size = 0; + + // repeated bytes region_to_flush = 1; + total_size += 1 * this->region_to_flush_size(); + for (int i = 0; i < this->region_to_flush_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->region_to_flush(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RollWALWriterResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RollWALWriterResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RollWALWriterResponse::MergeFrom(const RollWALWriterResponse& from) { + GOOGLE_CHECK_NE(&from, this); + region_to_flush_.MergeFrom(from.region_to_flush_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RollWALWriterResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RollWALWriterResponse::CopyFrom(const RollWALWriterResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RollWALWriterResponse::IsInitialized() const { + + return true; +} + +void RollWALWriterResponse::Swap(RollWALWriterResponse* other) { + if (other != this) { + region_to_flush_.Swap(&other->region_to_flush_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RollWALWriterResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RollWALWriterResponse_descriptor_; + metadata.reflection = RollWALWriterResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int StopServerRequest::kReasonFieldNumber; +#endif // !_MSC_VER + +StopServerRequest::StopServerRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StopServerRequest::InitAsDefaultInstance() { +} + +StopServerRequest::StopServerRequest(const StopServerRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StopServerRequest::SharedCtor() { + _cached_size_ = 0; + reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StopServerRequest::~StopServerRequest() { + SharedDtor(); +} + +void StopServerRequest::SharedDtor() { + if (reason_ != &::google::protobuf::internal::kEmptyString) { + delete reason_; + } + if (this != default_instance_) { + } +} + +void StopServerRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StopServerRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StopServerRequest_descriptor_; +} + +const StopServerRequest& StopServerRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +StopServerRequest* StopServerRequest::default_instance_ = NULL; + +StopServerRequest* StopServerRequest::New() const { + return new StopServerRequest; +} + +void StopServerRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_reason()) { + if (reason_ != &::google::protobuf::internal::kEmptyString) { + reason_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StopServerRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string reason = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_reason())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->reason().data(), this->reason().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StopServerRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string reason = 1; + if (has_reason()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->reason().data(), this->reason().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->reason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StopServerRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string reason = 1; + if (has_reason()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->reason().data(), this->reason().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->reason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StopServerRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string reason = 1; + if (has_reason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->reason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StopServerRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StopServerRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StopServerRequest::MergeFrom(const StopServerRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_reason()) { + set_reason(from.reason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StopServerRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StopServerRequest::CopyFrom(const StopServerRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopServerRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void StopServerRequest::Swap(StopServerRequest* other) { + if (other != this) { + std::swap(reason_, other->reason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StopServerRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StopServerRequest_descriptor_; + metadata.reflection = StopServerRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +StopServerResponse::StopServerResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StopServerResponse::InitAsDefaultInstance() { +} + +StopServerResponse::StopServerResponse(const StopServerResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StopServerResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StopServerResponse::~StopServerResponse() { + SharedDtor(); +} + +void StopServerResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void StopServerResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StopServerResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StopServerResponse_descriptor_; +} + +const StopServerResponse& StopServerResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +StopServerResponse* StopServerResponse::default_instance_ = NULL; + +StopServerResponse* StopServerResponse::New() const { + return new StopServerResponse; +} + +void StopServerResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StopServerResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void StopServerResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StopServerResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StopServerResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StopServerResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StopServerResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StopServerResponse::MergeFrom(const StopServerResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StopServerResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StopServerResponse::CopyFrom(const StopServerResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopServerResponse::IsInitialized() const { + + return true; +} + +void StopServerResponse::Swap(StopServerResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StopServerResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StopServerResponse_descriptor_; + metadata.reflection = StopServerResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +GetServerInfoRequest::GetServerInfoRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetServerInfoRequest::InitAsDefaultInstance() { +} + +GetServerInfoRequest::GetServerInfoRequest(const GetServerInfoRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetServerInfoRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetServerInfoRequest::~GetServerInfoRequest() { + SharedDtor(); +} + +void GetServerInfoRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetServerInfoRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetServerInfoRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetServerInfoRequest_descriptor_; +} + +const GetServerInfoRequest& GetServerInfoRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +GetServerInfoRequest* GetServerInfoRequest::default_instance_ = NULL; + +GetServerInfoRequest* GetServerInfoRequest::New() const { + return new GetServerInfoRequest; +} + +void GetServerInfoRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetServerInfoRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void GetServerInfoRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetServerInfoRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetServerInfoRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetServerInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetServerInfoRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetServerInfoRequest::MergeFrom(const GetServerInfoRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetServerInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetServerInfoRequest::CopyFrom(const GetServerInfoRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetServerInfoRequest::IsInitialized() const { + + return true; +} + +void GetServerInfoRequest::Swap(GetServerInfoRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetServerInfoRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetServerInfoRequest_descriptor_; + metadata.reflection = GetServerInfoRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ServerInfo::kServerNameFieldNumber; +const int ServerInfo::kWebuiPortFieldNumber; +#endif // !_MSC_VER + +ServerInfo::ServerInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ServerInfo::InitAsDefaultInstance() { + server_name_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +ServerInfo::ServerInfo(const ServerInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ServerInfo::SharedCtor() { + _cached_size_ = 0; + server_name_ = NULL; + webui_port_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ServerInfo::~ServerInfo() { + SharedDtor(); +} + +void ServerInfo::SharedDtor() { + if (this != default_instance_) { + delete server_name_; + } +} + +void ServerInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ServerInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ServerInfo_descriptor_; +} + +const ServerInfo& ServerInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +ServerInfo* ServerInfo::default_instance_ = NULL; + +ServerInfo* ServerInfo::New() const { + return new ServerInfo; +} + +void ServerInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server_name()) { + if (server_name_ != NULL) server_name_->::hbase::pb::ServerName::Clear(); + } + webui_port_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ServerInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName server_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_webui_port; + break; + } + + // optional uint32 webui_port = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_webui_port: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &webui_port_))); + set_has_webui_port(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ServerInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName server_name = 1; + if (has_server_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->server_name(), output); + } + + // optional uint32 webui_port = 2; + if (has_webui_port()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->webui_port(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ServerInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName server_name = 1; + if (has_server_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->server_name(), target); + } + + // optional uint32 webui_port = 2; + if (has_webui_port()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->webui_port(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ServerInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName server_name = 1; + if (has_server_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server_name()); + } + + // optional uint32 webui_port = 2; + if (has_webui_port()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->webui_port()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ServerInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ServerInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ServerInfo::MergeFrom(const ServerInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server_name()) { + mutable_server_name()->::hbase::pb::ServerName::MergeFrom(from.server_name()); + } + if (from.has_webui_port()) { + set_webui_port(from.webui_port()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ServerInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ServerInfo::CopyFrom(const ServerInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_server_name()) { + if (!this->server_name().IsInitialized()) return false; + } + return true; +} + +void ServerInfo::Swap(ServerInfo* other) { + if (other != this) { + std::swap(server_name_, other->server_name_); + std::swap(webui_port_, other->webui_port_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ServerInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ServerInfo_descriptor_; + metadata.reflection = ServerInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetServerInfoResponse::kServerInfoFieldNumber; +#endif // !_MSC_VER + +GetServerInfoResponse::GetServerInfoResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetServerInfoResponse::InitAsDefaultInstance() { + server_info_ = const_cast< ::hbase::pb::ServerInfo*>(&::hbase::pb::ServerInfo::default_instance()); +} + +GetServerInfoResponse::GetServerInfoResponse(const GetServerInfoResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetServerInfoResponse::SharedCtor() { + _cached_size_ = 0; + server_info_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetServerInfoResponse::~GetServerInfoResponse() { + SharedDtor(); +} + +void GetServerInfoResponse::SharedDtor() { + if (this != default_instance_) { + delete server_info_; + } +} + +void GetServerInfoResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetServerInfoResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetServerInfoResponse_descriptor_; +} + +const GetServerInfoResponse& GetServerInfoResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +GetServerInfoResponse* GetServerInfoResponse::default_instance_ = NULL; + +GetServerInfoResponse* GetServerInfoResponse::New() const { + return new GetServerInfoResponse; +} + +void GetServerInfoResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server_info()) { + if (server_info_ != NULL) server_info_->::hbase::pb::ServerInfo::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetServerInfoResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerInfo server_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetServerInfoResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerInfo server_info = 1; + if (has_server_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->server_info(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetServerInfoResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerInfo server_info = 1; + if (has_server_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->server_info(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetServerInfoResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerInfo server_info = 1; + if (has_server_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server_info()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetServerInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetServerInfoResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetServerInfoResponse::MergeFrom(const GetServerInfoResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server_info()) { + mutable_server_info()->::hbase::pb::ServerInfo::MergeFrom(from.server_info()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetServerInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetServerInfoResponse::CopyFrom(const GetServerInfoResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetServerInfoResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_server_info()) { + if (!this->server_info().IsInitialized()) return false; + } + return true; +} + +void GetServerInfoResponse::Swap(GetServerInfoResponse* other) { + if (other != this) { + std::swap(server_info_, other->server_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetServerInfoResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetServerInfoResponse_descriptor_; + metadata.reflection = GetServerInfoResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +UpdateConfigurationRequest::UpdateConfigurationRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UpdateConfigurationRequest::InitAsDefaultInstance() { +} + +UpdateConfigurationRequest::UpdateConfigurationRequest(const UpdateConfigurationRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UpdateConfigurationRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UpdateConfigurationRequest::~UpdateConfigurationRequest() { + SharedDtor(); +} + +void UpdateConfigurationRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void UpdateConfigurationRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UpdateConfigurationRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UpdateConfigurationRequest_descriptor_; +} + +const UpdateConfigurationRequest& UpdateConfigurationRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +UpdateConfigurationRequest* UpdateConfigurationRequest::default_instance_ = NULL; + +UpdateConfigurationRequest* UpdateConfigurationRequest::New() const { + return new UpdateConfigurationRequest; +} + +void UpdateConfigurationRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UpdateConfigurationRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void UpdateConfigurationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UpdateConfigurationRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UpdateConfigurationRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UpdateConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UpdateConfigurationRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UpdateConfigurationRequest::MergeFrom(const UpdateConfigurationRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UpdateConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UpdateConfigurationRequest::CopyFrom(const UpdateConfigurationRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateConfigurationRequest::IsInitialized() const { + + return true; +} + +void UpdateConfigurationRequest::Swap(UpdateConfigurationRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UpdateConfigurationRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UpdateConfigurationRequest_descriptor_; + metadata.reflection = UpdateConfigurationRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +UpdateConfigurationResponse::UpdateConfigurationResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UpdateConfigurationResponse::InitAsDefaultInstance() { +} + +UpdateConfigurationResponse::UpdateConfigurationResponse(const UpdateConfigurationResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UpdateConfigurationResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UpdateConfigurationResponse::~UpdateConfigurationResponse() { + SharedDtor(); +} + +void UpdateConfigurationResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void UpdateConfigurationResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UpdateConfigurationResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UpdateConfigurationResponse_descriptor_; +} + +const UpdateConfigurationResponse& UpdateConfigurationResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Admin_2eproto(); + return *default_instance_; +} + +UpdateConfigurationResponse* UpdateConfigurationResponse::default_instance_ = NULL; + +UpdateConfigurationResponse* UpdateConfigurationResponse::New() const { + return new UpdateConfigurationResponse; +} + +void UpdateConfigurationResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UpdateConfigurationResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void UpdateConfigurationResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UpdateConfigurationResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UpdateConfigurationResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UpdateConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UpdateConfigurationResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UpdateConfigurationResponse::MergeFrom(const UpdateConfigurationResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UpdateConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UpdateConfigurationResponse::CopyFrom(const UpdateConfigurationResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateConfigurationResponse::IsInitialized() const { + + return true; +} + +void UpdateConfigurationResponse::Swap(UpdateConfigurationResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UpdateConfigurationResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UpdateConfigurationResponse_descriptor_; + metadata.reflection = UpdateConfigurationResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Admin.pb.h b/hbase-native-client/src/rpc/generated/Admin.pb.h new file mode 100644 index 0000000..2fde00b --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Admin.pb.h @@ -0,0 +1,5463 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Admin.proto + +#ifndef PROTOBUF_Admin_2eproto__INCLUDED +#define PROTOBUF_Admin_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "Client.pb.h" +#include "HBase.pb.h" +#include "WAL.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Admin_2eproto(); +void protobuf_AssignDesc_Admin_2eproto(); +void protobuf_ShutdownFile_Admin_2eproto(); + +class GetRegionInfoRequest; +class GetRegionInfoResponse; +class GetStoreFileRequest; +class GetStoreFileResponse; +class GetOnlineRegionRequest; +class GetOnlineRegionResponse; +class OpenRegionRequest; +class OpenRegionRequest_RegionOpenInfo; +class OpenRegionResponse; +class WarmupRegionRequest; +class WarmupRegionResponse; +class CloseRegionRequest; +class CloseRegionResponse; +class FlushRegionRequest; +class FlushRegionResponse; +class SplitRegionRequest; +class SplitRegionResponse; +class CompactRegionRequest; +class CompactRegionResponse; +class UpdateFavoredNodesRequest; +class UpdateFavoredNodesRequest_RegionUpdateInfo; +class UpdateFavoredNodesResponse; +class MergeRegionsRequest; +class MergeRegionsResponse; +class WALEntry; +class ReplicateWALEntryRequest; +class ReplicateWALEntryResponse; +class RollWALWriterRequest; +class RollWALWriterResponse; +class StopServerRequest; +class StopServerResponse; +class GetServerInfoRequest; +class ServerInfo; +class GetServerInfoResponse; +class UpdateConfigurationRequest; +class UpdateConfigurationResponse; + +enum GetRegionInfoResponse_CompactionState { + GetRegionInfoResponse_CompactionState_NONE = 0, + GetRegionInfoResponse_CompactionState_MINOR = 1, + GetRegionInfoResponse_CompactionState_MAJOR = 2, + GetRegionInfoResponse_CompactionState_MAJOR_AND_MINOR = 3 +}; +bool GetRegionInfoResponse_CompactionState_IsValid(int value); +const GetRegionInfoResponse_CompactionState GetRegionInfoResponse_CompactionState_CompactionState_MIN = GetRegionInfoResponse_CompactionState_NONE; +const GetRegionInfoResponse_CompactionState GetRegionInfoResponse_CompactionState_CompactionState_MAX = GetRegionInfoResponse_CompactionState_MAJOR_AND_MINOR; +const int GetRegionInfoResponse_CompactionState_CompactionState_ARRAYSIZE = GetRegionInfoResponse_CompactionState_CompactionState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* GetRegionInfoResponse_CompactionState_descriptor(); +inline const ::std::string& GetRegionInfoResponse_CompactionState_Name(GetRegionInfoResponse_CompactionState value) { + return ::google::protobuf::internal::NameOfEnum( + GetRegionInfoResponse_CompactionState_descriptor(), value); +} +inline bool GetRegionInfoResponse_CompactionState_Parse( + const ::std::string& name, GetRegionInfoResponse_CompactionState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + GetRegionInfoResponse_CompactionState_descriptor(), name, value); +} +enum OpenRegionResponse_RegionOpeningState { + OpenRegionResponse_RegionOpeningState_OPENED = 0, + OpenRegionResponse_RegionOpeningState_ALREADY_OPENED = 1, + OpenRegionResponse_RegionOpeningState_FAILED_OPENING = 2 +}; +bool OpenRegionResponse_RegionOpeningState_IsValid(int value); +const OpenRegionResponse_RegionOpeningState OpenRegionResponse_RegionOpeningState_RegionOpeningState_MIN = OpenRegionResponse_RegionOpeningState_OPENED; +const OpenRegionResponse_RegionOpeningState OpenRegionResponse_RegionOpeningState_RegionOpeningState_MAX = OpenRegionResponse_RegionOpeningState_FAILED_OPENING; +const int OpenRegionResponse_RegionOpeningState_RegionOpeningState_ARRAYSIZE = OpenRegionResponse_RegionOpeningState_RegionOpeningState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* OpenRegionResponse_RegionOpeningState_descriptor(); +inline const ::std::string& OpenRegionResponse_RegionOpeningState_Name(OpenRegionResponse_RegionOpeningState value) { + return ::google::protobuf::internal::NameOfEnum( + OpenRegionResponse_RegionOpeningState_descriptor(), value); +} +inline bool OpenRegionResponse_RegionOpeningState_Parse( + const ::std::string& name, OpenRegionResponse_RegionOpeningState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + OpenRegionResponse_RegionOpeningState_descriptor(), name, value); +} +// =================================================================== + +class GetRegionInfoRequest : public ::google::protobuf::Message { + public: + GetRegionInfoRequest(); + virtual ~GetRegionInfoRequest(); + + GetRegionInfoRequest(const GetRegionInfoRequest& from); + + inline GetRegionInfoRequest& operator=(const GetRegionInfoRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRegionInfoRequest& default_instance(); + + void Swap(GetRegionInfoRequest* other); + + // implements Message ---------------------------------------------- + + GetRegionInfoRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRegionInfoRequest& from); + void MergeFrom(const GetRegionInfoRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional bool compaction_state = 2; + inline bool has_compaction_state() const; + inline void clear_compaction_state(); + static const int kCompactionStateFieldNumber = 2; + inline bool compaction_state() const; + inline void set_compaction_state(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRegionInfoRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_compaction_state(); + inline void clear_has_compaction_state(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + bool compaction_state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static GetRegionInfoRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetRegionInfoResponse : public ::google::protobuf::Message { + public: + GetRegionInfoResponse(); + virtual ~GetRegionInfoResponse(); + + GetRegionInfoResponse(const GetRegionInfoResponse& from); + + inline GetRegionInfoResponse& operator=(const GetRegionInfoResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRegionInfoResponse& default_instance(); + + void Swap(GetRegionInfoResponse* other); + + // implements Message ---------------------------------------------- + + GetRegionInfoResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRegionInfoResponse& from); + void MergeFrom(const GetRegionInfoResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef GetRegionInfoResponse_CompactionState CompactionState; + static const CompactionState NONE = GetRegionInfoResponse_CompactionState_NONE; + static const CompactionState MINOR = GetRegionInfoResponse_CompactionState_MINOR; + static const CompactionState MAJOR = GetRegionInfoResponse_CompactionState_MAJOR; + static const CompactionState MAJOR_AND_MINOR = GetRegionInfoResponse_CompactionState_MAJOR_AND_MINOR; + static inline bool CompactionState_IsValid(int value) { + return GetRegionInfoResponse_CompactionState_IsValid(value); + } + static const CompactionState CompactionState_MIN = + GetRegionInfoResponse_CompactionState_CompactionState_MIN; + static const CompactionState CompactionState_MAX = + GetRegionInfoResponse_CompactionState_CompactionState_MAX; + static const int CompactionState_ARRAYSIZE = + GetRegionInfoResponse_CompactionState_CompactionState_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + CompactionState_descriptor() { + return GetRegionInfoResponse_CompactionState_descriptor(); + } + static inline const ::std::string& CompactionState_Name(CompactionState value) { + return GetRegionInfoResponse_CompactionState_Name(value); + } + static inline bool CompactionState_Parse(const ::std::string& name, + CompactionState* value) { + return GetRegionInfoResponse_CompactionState_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionInfo region_info = 1; + inline bool has_region_info() const; + inline void clear_region_info(); + static const int kRegionInfoFieldNumber = 1; + inline const ::hbase::pb::RegionInfo& region_info() const; + inline ::hbase::pb::RegionInfo* mutable_region_info(); + inline ::hbase::pb::RegionInfo* release_region_info(); + inline void set_allocated_region_info(::hbase::pb::RegionInfo* region_info); + + // optional .hbase.pb.GetRegionInfoResponse.CompactionState compaction_state = 2; + inline bool has_compaction_state() const; + inline void clear_compaction_state(); + static const int kCompactionStateFieldNumber = 2; + inline ::hbase::pb::GetRegionInfoResponse_CompactionState compaction_state() const; + inline void set_compaction_state(::hbase::pb::GetRegionInfoResponse_CompactionState value); + + // optional bool isRecovering = 3; + inline bool has_isrecovering() const; + inline void clear_isrecovering(); + static const int kIsRecoveringFieldNumber = 3; + inline bool isrecovering() const; + inline void set_isrecovering(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRegionInfoResponse) + private: + inline void set_has_region_info(); + inline void clear_has_region_info(); + inline void set_has_compaction_state(); + inline void clear_has_compaction_state(); + inline void set_has_isrecovering(); + inline void clear_has_isrecovering(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionInfo* region_info_; + int compaction_state_; + bool isrecovering_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static GetRegionInfoResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetStoreFileRequest : public ::google::protobuf::Message { + public: + GetStoreFileRequest(); + virtual ~GetStoreFileRequest(); + + GetStoreFileRequest(const GetStoreFileRequest& from); + + inline GetStoreFileRequest& operator=(const GetStoreFileRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetStoreFileRequest& default_instance(); + + void Swap(GetStoreFileRequest* other); + + // implements Message ---------------------------------------------- + + GetStoreFileRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetStoreFileRequest& from); + void MergeFrom(const GetStoreFileRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // repeated bytes family = 2; + inline int family_size() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 2; + inline const ::std::string& family(int index) const; + inline ::std::string* mutable_family(int index); + inline void set_family(int index, const ::std::string& value); + inline void set_family(int index, const char* value); + inline void set_family(int index, const void* value, size_t size); + inline ::std::string* add_family(); + inline void add_family(const ::std::string& value); + inline void add_family(const char* value); + inline void add_family(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& family() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_family(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetStoreFileRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::google::protobuf::RepeatedPtrField< ::std::string> family_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static GetStoreFileRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetStoreFileResponse : public ::google::protobuf::Message { + public: + GetStoreFileResponse(); + virtual ~GetStoreFileResponse(); + + GetStoreFileResponse(const GetStoreFileResponse& from); + + inline GetStoreFileResponse& operator=(const GetStoreFileResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetStoreFileResponse& default_instance(); + + void Swap(GetStoreFileResponse* other); + + // implements Message ---------------------------------------------- + + GetStoreFileResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetStoreFileResponse& from); + void MergeFrom(const GetStoreFileResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string store_file = 1; + inline int store_file_size() const; + inline void clear_store_file(); + static const int kStoreFileFieldNumber = 1; + inline const ::std::string& store_file(int index) const; + inline ::std::string* mutable_store_file(int index); + inline void set_store_file(int index, const ::std::string& value); + inline void set_store_file(int index, const char* value); + inline void set_store_file(int index, const char* value, size_t size); + inline ::std::string* add_store_file(); + inline void add_store_file(const ::std::string& value); + inline void add_store_file(const char* value); + inline void add_store_file(const char* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& store_file() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_store_file(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetStoreFileResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> store_file_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static GetStoreFileResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetOnlineRegionRequest : public ::google::protobuf::Message { + public: + GetOnlineRegionRequest(); + virtual ~GetOnlineRegionRequest(); + + GetOnlineRegionRequest(const GetOnlineRegionRequest& from); + + inline GetOnlineRegionRequest& operator=(const GetOnlineRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetOnlineRegionRequest& default_instance(); + + void Swap(GetOnlineRegionRequest* other); + + // implements Message ---------------------------------------------- + + GetOnlineRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetOnlineRegionRequest& from); + void MergeFrom(const GetOnlineRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.GetOnlineRegionRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static GetOnlineRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetOnlineRegionResponse : public ::google::protobuf::Message { + public: + GetOnlineRegionResponse(); + virtual ~GetOnlineRegionResponse(); + + GetOnlineRegionResponse(const GetOnlineRegionResponse& from); + + inline GetOnlineRegionResponse& operator=(const GetOnlineRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetOnlineRegionResponse& default_instance(); + + void Swap(GetOnlineRegionResponse* other); + + // implements Message ---------------------------------------------- + + GetOnlineRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetOnlineRegionResponse& from); + void MergeFrom(const GetOnlineRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.RegionInfo region_info = 1; + inline int region_info_size() const; + inline void clear_region_info(); + static const int kRegionInfoFieldNumber = 1; + inline const ::hbase::pb::RegionInfo& region_info(int index) const; + inline ::hbase::pb::RegionInfo* mutable_region_info(int index); + inline ::hbase::pb::RegionInfo* add_region_info(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& + region_info() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* + mutable_region_info(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetOnlineRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo > region_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static GetOnlineRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class OpenRegionRequest_RegionOpenInfo : public ::google::protobuf::Message { + public: + OpenRegionRequest_RegionOpenInfo(); + virtual ~OpenRegionRequest_RegionOpenInfo(); + + OpenRegionRequest_RegionOpenInfo(const OpenRegionRequest_RegionOpenInfo& from); + + inline OpenRegionRequest_RegionOpenInfo& operator=(const OpenRegionRequest_RegionOpenInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OpenRegionRequest_RegionOpenInfo& default_instance(); + + void Swap(OpenRegionRequest_RegionOpenInfo* other); + + // implements Message ---------------------------------------------- + + OpenRegionRequest_RegionOpenInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const OpenRegionRequest_RegionOpenInfo& from); + void MergeFrom(const OpenRegionRequest_RegionOpenInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionInfo region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionInfo& region() const; + inline ::hbase::pb::RegionInfo* mutable_region(); + inline ::hbase::pb::RegionInfo* release_region(); + inline void set_allocated_region(::hbase::pb::RegionInfo* region); + + // optional uint32 version_of_offline_node = 2; + inline bool has_version_of_offline_node() const; + inline void clear_version_of_offline_node(); + static const int kVersionOfOfflineNodeFieldNumber = 2; + inline ::google::protobuf::uint32 version_of_offline_node() const; + inline void set_version_of_offline_node(::google::protobuf::uint32 value); + + // repeated .hbase.pb.ServerName favored_nodes = 3; + inline int favored_nodes_size() const; + inline void clear_favored_nodes(); + static const int kFavoredNodesFieldNumber = 3; + inline const ::hbase::pb::ServerName& favored_nodes(int index) const; + inline ::hbase::pb::ServerName* mutable_favored_nodes(int index); + inline ::hbase::pb::ServerName* add_favored_nodes(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& + favored_nodes() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* + mutable_favored_nodes(); + + // optional bool openForDistributedLogReplay = 4; + inline bool has_openfordistributedlogreplay() const; + inline void clear_openfordistributedlogreplay(); + static const int kOpenForDistributedLogReplayFieldNumber = 4; + inline bool openfordistributedlogreplay() const; + inline void set_openfordistributedlogreplay(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.OpenRegionRequest.RegionOpenInfo) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_version_of_offline_node(); + inline void clear_has_version_of_offline_node(); + inline void set_has_openfordistributedlogreplay(); + inline void clear_has_openfordistributedlogreplay(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionInfo* region_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName > favored_nodes_; + ::google::protobuf::uint32 version_of_offline_node_; + bool openfordistributedlogreplay_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static OpenRegionRequest_RegionOpenInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class OpenRegionRequest : public ::google::protobuf::Message { + public: + OpenRegionRequest(); + virtual ~OpenRegionRequest(); + + OpenRegionRequest(const OpenRegionRequest& from); + + inline OpenRegionRequest& operator=(const OpenRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OpenRegionRequest& default_instance(); + + void Swap(OpenRegionRequest* other); + + // implements Message ---------------------------------------------- + + OpenRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const OpenRegionRequest& from); + void MergeFrom(const OpenRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef OpenRegionRequest_RegionOpenInfo RegionOpenInfo; + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.OpenRegionRequest.RegionOpenInfo open_info = 1; + inline int open_info_size() const; + inline void clear_open_info(); + static const int kOpenInfoFieldNumber = 1; + inline const ::hbase::pb::OpenRegionRequest_RegionOpenInfo& open_info(int index) const; + inline ::hbase::pb::OpenRegionRequest_RegionOpenInfo* mutable_open_info(int index); + inline ::hbase::pb::OpenRegionRequest_RegionOpenInfo* add_open_info(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::OpenRegionRequest_RegionOpenInfo >& + open_info() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::OpenRegionRequest_RegionOpenInfo >* + mutable_open_info(); + + // optional uint64 serverStartCode = 2; + inline bool has_serverstartcode() const; + inline void clear_serverstartcode(); + static const int kServerStartCodeFieldNumber = 2; + inline ::google::protobuf::uint64 serverstartcode() const; + inline void set_serverstartcode(::google::protobuf::uint64 value); + + // optional uint64 master_system_time = 5; + inline bool has_master_system_time() const; + inline void clear_master_system_time(); + static const int kMasterSystemTimeFieldNumber = 5; + inline ::google::protobuf::uint64 master_system_time() const; + inline void set_master_system_time(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.OpenRegionRequest) + private: + inline void set_has_serverstartcode(); + inline void clear_has_serverstartcode(); + inline void set_has_master_system_time(); + inline void clear_has_master_system_time(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::OpenRegionRequest_RegionOpenInfo > open_info_; + ::google::protobuf::uint64 serverstartcode_; + ::google::protobuf::uint64 master_system_time_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static OpenRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class OpenRegionResponse : public ::google::protobuf::Message { + public: + OpenRegionResponse(); + virtual ~OpenRegionResponse(); + + OpenRegionResponse(const OpenRegionResponse& from); + + inline OpenRegionResponse& operator=(const OpenRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OpenRegionResponse& default_instance(); + + void Swap(OpenRegionResponse* other); + + // implements Message ---------------------------------------------- + + OpenRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const OpenRegionResponse& from); + void MergeFrom(const OpenRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef OpenRegionResponse_RegionOpeningState RegionOpeningState; + static const RegionOpeningState OPENED = OpenRegionResponse_RegionOpeningState_OPENED; + static const RegionOpeningState ALREADY_OPENED = OpenRegionResponse_RegionOpeningState_ALREADY_OPENED; + static const RegionOpeningState FAILED_OPENING = OpenRegionResponse_RegionOpeningState_FAILED_OPENING; + static inline bool RegionOpeningState_IsValid(int value) { + return OpenRegionResponse_RegionOpeningState_IsValid(value); + } + static const RegionOpeningState RegionOpeningState_MIN = + OpenRegionResponse_RegionOpeningState_RegionOpeningState_MIN; + static const RegionOpeningState RegionOpeningState_MAX = + OpenRegionResponse_RegionOpeningState_RegionOpeningState_MAX; + static const int RegionOpeningState_ARRAYSIZE = + OpenRegionResponse_RegionOpeningState_RegionOpeningState_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RegionOpeningState_descriptor() { + return OpenRegionResponse_RegionOpeningState_descriptor(); + } + static inline const ::std::string& RegionOpeningState_Name(RegionOpeningState value) { + return OpenRegionResponse_RegionOpeningState_Name(value); + } + static inline bool RegionOpeningState_Parse(const ::std::string& name, + RegionOpeningState* value) { + return OpenRegionResponse_RegionOpeningState_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.OpenRegionResponse.RegionOpeningState opening_state = 1; + inline int opening_state_size() const; + inline void clear_opening_state(); + static const int kOpeningStateFieldNumber = 1; + inline ::hbase::pb::OpenRegionResponse_RegionOpeningState opening_state(int index) const; + inline void set_opening_state(int index, ::hbase::pb::OpenRegionResponse_RegionOpeningState value); + inline void add_opening_state(::hbase::pb::OpenRegionResponse_RegionOpeningState value); + inline const ::google::protobuf::RepeatedField& opening_state() const; + inline ::google::protobuf::RepeatedField* mutable_opening_state(); + + // @@protoc_insertion_point(class_scope:hbase.pb.OpenRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedField opening_state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static OpenRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class WarmupRegionRequest : public ::google::protobuf::Message { + public: + WarmupRegionRequest(); + virtual ~WarmupRegionRequest(); + + WarmupRegionRequest(const WarmupRegionRequest& from); + + inline WarmupRegionRequest& operator=(const WarmupRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WarmupRegionRequest& default_instance(); + + void Swap(WarmupRegionRequest* other); + + // implements Message ---------------------------------------------- + + WarmupRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WarmupRegionRequest& from); + void MergeFrom(const WarmupRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionInfo regionInfo = 1; + inline bool has_regioninfo() const; + inline void clear_regioninfo(); + static const int kRegionInfoFieldNumber = 1; + inline const ::hbase::pb::RegionInfo& regioninfo() const; + inline ::hbase::pb::RegionInfo* mutable_regioninfo(); + inline ::hbase::pb::RegionInfo* release_regioninfo(); + inline void set_allocated_regioninfo(::hbase::pb::RegionInfo* regioninfo); + + // @@protoc_insertion_point(class_scope:hbase.pb.WarmupRegionRequest) + private: + inline void set_has_regioninfo(); + inline void clear_has_regioninfo(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionInfo* regioninfo_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static WarmupRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class WarmupRegionResponse : public ::google::protobuf::Message { + public: + WarmupRegionResponse(); + virtual ~WarmupRegionResponse(); + + WarmupRegionResponse(const WarmupRegionResponse& from); + + inline WarmupRegionResponse& operator=(const WarmupRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WarmupRegionResponse& default_instance(); + + void Swap(WarmupRegionResponse* other); + + // implements Message ---------------------------------------------- + + WarmupRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WarmupRegionResponse& from); + void MergeFrom(const WarmupRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.WarmupRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static WarmupRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class CloseRegionRequest : public ::google::protobuf::Message { + public: + CloseRegionRequest(); + virtual ~CloseRegionRequest(); + + CloseRegionRequest(const CloseRegionRequest& from); + + inline CloseRegionRequest& operator=(const CloseRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CloseRegionRequest& default_instance(); + + void Swap(CloseRegionRequest* other); + + // implements Message ---------------------------------------------- + + CloseRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CloseRegionRequest& from); + void MergeFrom(const CloseRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional uint32 version_of_closing_node = 2; + inline bool has_version_of_closing_node() const; + inline void clear_version_of_closing_node(); + static const int kVersionOfClosingNodeFieldNumber = 2; + inline ::google::protobuf::uint32 version_of_closing_node() const; + inline void set_version_of_closing_node(::google::protobuf::uint32 value); + + // optional bool transition_in_ZK = 3 [default = true]; + inline bool has_transition_in_zk() const; + inline void clear_transition_in_zk(); + static const int kTransitionInZKFieldNumber = 3; + inline bool transition_in_zk() const; + inline void set_transition_in_zk(bool value); + + // optional .hbase.pb.ServerName destination_server = 4; + inline bool has_destination_server() const; + inline void clear_destination_server(); + static const int kDestinationServerFieldNumber = 4; + inline const ::hbase::pb::ServerName& destination_server() const; + inline ::hbase::pb::ServerName* mutable_destination_server(); + inline ::hbase::pb::ServerName* release_destination_server(); + inline void set_allocated_destination_server(::hbase::pb::ServerName* destination_server); + + // optional uint64 serverStartCode = 5; + inline bool has_serverstartcode() const; + inline void clear_serverstartcode(); + static const int kServerStartCodeFieldNumber = 5; + inline ::google::protobuf::uint64 serverstartcode() const; + inline void set_serverstartcode(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CloseRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_version_of_closing_node(); + inline void clear_has_version_of_closing_node(); + inline void set_has_transition_in_zk(); + inline void clear_has_transition_in_zk(); + inline void set_has_destination_server(); + inline void clear_has_destination_server(); + inline void set_has_serverstartcode(); + inline void clear_has_serverstartcode(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::google::protobuf::uint32 version_of_closing_node_; + bool transition_in_zk_; + ::hbase::pb::ServerName* destination_server_; + ::google::protobuf::uint64 serverstartcode_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static CloseRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class CloseRegionResponse : public ::google::protobuf::Message { + public: + CloseRegionResponse(); + virtual ~CloseRegionResponse(); + + CloseRegionResponse(const CloseRegionResponse& from); + + inline CloseRegionResponse& operator=(const CloseRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CloseRegionResponse& default_instance(); + + void Swap(CloseRegionResponse* other); + + // implements Message ---------------------------------------------- + + CloseRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CloseRegionResponse& from); + void MergeFrom(const CloseRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool closed = 1; + inline bool has_closed() const; + inline void clear_closed(); + static const int kClosedFieldNumber = 1; + inline bool closed() const; + inline void set_closed(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CloseRegionResponse) + private: + inline void set_has_closed(); + inline void clear_has_closed(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool closed_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static CloseRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class FlushRegionRequest : public ::google::protobuf::Message { + public: + FlushRegionRequest(); + virtual ~FlushRegionRequest(); + + FlushRegionRequest(const FlushRegionRequest& from); + + inline FlushRegionRequest& operator=(const FlushRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FlushRegionRequest& default_instance(); + + void Swap(FlushRegionRequest* other); + + // implements Message ---------------------------------------------- + + FlushRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FlushRegionRequest& from); + void MergeFrom(const FlushRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional uint64 if_older_than_ts = 2; + inline bool has_if_older_than_ts() const; + inline void clear_if_older_than_ts(); + static const int kIfOlderThanTsFieldNumber = 2; + inline ::google::protobuf::uint64 if_older_than_ts() const; + inline void set_if_older_than_ts(::google::protobuf::uint64 value); + + // optional bool write_flush_wal_marker = 3; + inline bool has_write_flush_wal_marker() const; + inline void clear_write_flush_wal_marker(); + static const int kWriteFlushWalMarkerFieldNumber = 3; + inline bool write_flush_wal_marker() const; + inline void set_write_flush_wal_marker(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.FlushRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_if_older_than_ts(); + inline void clear_has_if_older_than_ts(); + inline void set_has_write_flush_wal_marker(); + inline void clear_has_write_flush_wal_marker(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::google::protobuf::uint64 if_older_than_ts_; + bool write_flush_wal_marker_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static FlushRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class FlushRegionResponse : public ::google::protobuf::Message { + public: + FlushRegionResponse(); + virtual ~FlushRegionResponse(); + + FlushRegionResponse(const FlushRegionResponse& from); + + inline FlushRegionResponse& operator=(const FlushRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FlushRegionResponse& default_instance(); + + void Swap(FlushRegionResponse* other); + + // implements Message ---------------------------------------------- + + FlushRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FlushRegionResponse& from); + void MergeFrom(const FlushRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 last_flush_time = 1; + inline bool has_last_flush_time() const; + inline void clear_last_flush_time(); + static const int kLastFlushTimeFieldNumber = 1; + inline ::google::protobuf::uint64 last_flush_time() const; + inline void set_last_flush_time(::google::protobuf::uint64 value); + + // optional bool flushed = 2; + inline bool has_flushed() const; + inline void clear_flushed(); + static const int kFlushedFieldNumber = 2; + inline bool flushed() const; + inline void set_flushed(bool value); + + // optional bool wrote_flush_wal_marker = 3; + inline bool has_wrote_flush_wal_marker() const; + inline void clear_wrote_flush_wal_marker(); + static const int kWroteFlushWalMarkerFieldNumber = 3; + inline bool wrote_flush_wal_marker() const; + inline void set_wrote_flush_wal_marker(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.FlushRegionResponse) + private: + inline void set_has_last_flush_time(); + inline void clear_has_last_flush_time(); + inline void set_has_flushed(); + inline void clear_has_flushed(); + inline void set_has_wrote_flush_wal_marker(); + inline void clear_has_wrote_flush_wal_marker(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 last_flush_time_; + bool flushed_; + bool wrote_flush_wal_marker_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static FlushRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class SplitRegionRequest : public ::google::protobuf::Message { + public: + SplitRegionRequest(); + virtual ~SplitRegionRequest(); + + SplitRegionRequest(const SplitRegionRequest& from); + + inline SplitRegionRequest& operator=(const SplitRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SplitRegionRequest& default_instance(); + + void Swap(SplitRegionRequest* other); + + // implements Message ---------------------------------------------- + + SplitRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SplitRegionRequest& from); + void MergeFrom(const SplitRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional bytes split_point = 2; + inline bool has_split_point() const; + inline void clear_split_point(); + static const int kSplitPointFieldNumber = 2; + inline const ::std::string& split_point() const; + inline void set_split_point(const ::std::string& value); + inline void set_split_point(const char* value); + inline void set_split_point(const void* value, size_t size); + inline ::std::string* mutable_split_point(); + inline ::std::string* release_split_point(); + inline void set_allocated_split_point(::std::string* split_point); + + // @@protoc_insertion_point(class_scope:hbase.pb.SplitRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_split_point(); + inline void clear_has_split_point(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::std::string* split_point_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static SplitRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SplitRegionResponse : public ::google::protobuf::Message { + public: + SplitRegionResponse(); + virtual ~SplitRegionResponse(); + + SplitRegionResponse(const SplitRegionResponse& from); + + inline SplitRegionResponse& operator=(const SplitRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SplitRegionResponse& default_instance(); + + void Swap(SplitRegionResponse* other); + + // implements Message ---------------------------------------------- + + SplitRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SplitRegionResponse& from); + void MergeFrom(const SplitRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.SplitRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static SplitRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class CompactRegionRequest : public ::google::protobuf::Message { + public: + CompactRegionRequest(); + virtual ~CompactRegionRequest(); + + CompactRegionRequest(const CompactRegionRequest& from); + + inline CompactRegionRequest& operator=(const CompactRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CompactRegionRequest& default_instance(); + + void Swap(CompactRegionRequest* other); + + // implements Message ---------------------------------------------- + + CompactRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CompactRegionRequest& from); + void MergeFrom(const CompactRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional bool major = 2; + inline bool has_major() const; + inline void clear_major(); + static const int kMajorFieldNumber = 2; + inline bool major() const; + inline void set_major(bool value); + + // optional bytes family = 3; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 3; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // @@protoc_insertion_point(class_scope:hbase.pb.CompactRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_major(); + inline void clear_has_major(); + inline void set_has_family(); + inline void clear_has_family(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::std::string* family_; + bool major_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static CompactRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class CompactRegionResponse : public ::google::protobuf::Message { + public: + CompactRegionResponse(); + virtual ~CompactRegionResponse(); + + CompactRegionResponse(const CompactRegionResponse& from); + + inline CompactRegionResponse& operator=(const CompactRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CompactRegionResponse& default_instance(); + + void Swap(CompactRegionResponse* other); + + // implements Message ---------------------------------------------- + + CompactRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CompactRegionResponse& from); + void MergeFrom(const CompactRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.CompactRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static CompactRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class UpdateFavoredNodesRequest_RegionUpdateInfo : public ::google::protobuf::Message { + public: + UpdateFavoredNodesRequest_RegionUpdateInfo(); + virtual ~UpdateFavoredNodesRequest_RegionUpdateInfo(); + + UpdateFavoredNodesRequest_RegionUpdateInfo(const UpdateFavoredNodesRequest_RegionUpdateInfo& from); + + inline UpdateFavoredNodesRequest_RegionUpdateInfo& operator=(const UpdateFavoredNodesRequest_RegionUpdateInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UpdateFavoredNodesRequest_RegionUpdateInfo& default_instance(); + + void Swap(UpdateFavoredNodesRequest_RegionUpdateInfo* other); + + // implements Message ---------------------------------------------- + + UpdateFavoredNodesRequest_RegionUpdateInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UpdateFavoredNodesRequest_RegionUpdateInfo& from); + void MergeFrom(const UpdateFavoredNodesRequest_RegionUpdateInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionInfo region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionInfo& region() const; + inline ::hbase::pb::RegionInfo* mutable_region(); + inline ::hbase::pb::RegionInfo* release_region(); + inline void set_allocated_region(::hbase::pb::RegionInfo* region); + + // repeated .hbase.pb.ServerName favored_nodes = 2; + inline int favored_nodes_size() const; + inline void clear_favored_nodes(); + static const int kFavoredNodesFieldNumber = 2; + inline const ::hbase::pb::ServerName& favored_nodes(int index) const; + inline ::hbase::pb::ServerName* mutable_favored_nodes(int index); + inline ::hbase::pb::ServerName* add_favored_nodes(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& + favored_nodes() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* + mutable_favored_nodes(); + + // @@protoc_insertion_point(class_scope:hbase.pb.UpdateFavoredNodesRequest.RegionUpdateInfo) + private: + inline void set_has_region(); + inline void clear_has_region(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionInfo* region_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName > favored_nodes_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static UpdateFavoredNodesRequest_RegionUpdateInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class UpdateFavoredNodesRequest : public ::google::protobuf::Message { + public: + UpdateFavoredNodesRequest(); + virtual ~UpdateFavoredNodesRequest(); + + UpdateFavoredNodesRequest(const UpdateFavoredNodesRequest& from); + + inline UpdateFavoredNodesRequest& operator=(const UpdateFavoredNodesRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UpdateFavoredNodesRequest& default_instance(); + + void Swap(UpdateFavoredNodesRequest* other); + + // implements Message ---------------------------------------------- + + UpdateFavoredNodesRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UpdateFavoredNodesRequest& from); + void MergeFrom(const UpdateFavoredNodesRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef UpdateFavoredNodesRequest_RegionUpdateInfo RegionUpdateInfo; + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.UpdateFavoredNodesRequest.RegionUpdateInfo update_info = 1; + inline int update_info_size() const; + inline void clear_update_info(); + static const int kUpdateInfoFieldNumber = 1; + inline const ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo& update_info(int index) const; + inline ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo* mutable_update_info(int index); + inline ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo* add_update_info(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo >& + update_info() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo >* + mutable_update_info(); + + // @@protoc_insertion_point(class_scope:hbase.pb.UpdateFavoredNodesRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo > update_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static UpdateFavoredNodesRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class UpdateFavoredNodesResponse : public ::google::protobuf::Message { + public: + UpdateFavoredNodesResponse(); + virtual ~UpdateFavoredNodesResponse(); + + UpdateFavoredNodesResponse(const UpdateFavoredNodesResponse& from); + + inline UpdateFavoredNodesResponse& operator=(const UpdateFavoredNodesResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UpdateFavoredNodesResponse& default_instance(); + + void Swap(UpdateFavoredNodesResponse* other); + + // implements Message ---------------------------------------------- + + UpdateFavoredNodesResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UpdateFavoredNodesResponse& from); + void MergeFrom(const UpdateFavoredNodesResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 response = 1; + inline bool has_response() const; + inline void clear_response(); + static const int kResponseFieldNumber = 1; + inline ::google::protobuf::uint32 response() const; + inline void set_response(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.UpdateFavoredNodesResponse) + private: + inline void set_has_response(); + inline void clear_has_response(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 response_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static UpdateFavoredNodesResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class MergeRegionsRequest : public ::google::protobuf::Message { + public: + MergeRegionsRequest(); + virtual ~MergeRegionsRequest(); + + MergeRegionsRequest(const MergeRegionsRequest& from); + + inline MergeRegionsRequest& operator=(const MergeRegionsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MergeRegionsRequest& default_instance(); + + void Swap(MergeRegionsRequest* other); + + // implements Message ---------------------------------------------- + + MergeRegionsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MergeRegionsRequest& from); + void MergeFrom(const MergeRegionsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region_a = 1; + inline bool has_region_a() const; + inline void clear_region_a(); + static const int kRegionAFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region_a() const; + inline ::hbase::pb::RegionSpecifier* mutable_region_a(); + inline ::hbase::pb::RegionSpecifier* release_region_a(); + inline void set_allocated_region_a(::hbase::pb::RegionSpecifier* region_a); + + // required .hbase.pb.RegionSpecifier region_b = 2; + inline bool has_region_b() const; + inline void clear_region_b(); + static const int kRegionBFieldNumber = 2; + inline const ::hbase::pb::RegionSpecifier& region_b() const; + inline ::hbase::pb::RegionSpecifier* mutable_region_b(); + inline ::hbase::pb::RegionSpecifier* release_region_b(); + inline void set_allocated_region_b(::hbase::pb::RegionSpecifier* region_b); + + // optional bool forcible = 3 [default = false]; + inline bool has_forcible() const; + inline void clear_forcible(); + static const int kForcibleFieldNumber = 3; + inline bool forcible() const; + inline void set_forcible(bool value); + + // optional uint64 master_system_time = 4; + inline bool has_master_system_time() const; + inline void clear_master_system_time(); + static const int kMasterSystemTimeFieldNumber = 4; + inline ::google::protobuf::uint64 master_system_time() const; + inline void set_master_system_time(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.MergeRegionsRequest) + private: + inline void set_has_region_a(); + inline void clear_has_region_a(); + inline void set_has_region_b(); + inline void clear_has_region_b(); + inline void set_has_forcible(); + inline void clear_has_forcible(); + inline void set_has_master_system_time(); + inline void clear_has_master_system_time(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_a_; + ::hbase::pb::RegionSpecifier* region_b_; + ::google::protobuf::uint64 master_system_time_; + bool forcible_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static MergeRegionsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MergeRegionsResponse : public ::google::protobuf::Message { + public: + MergeRegionsResponse(); + virtual ~MergeRegionsResponse(); + + MergeRegionsResponse(const MergeRegionsResponse& from); + + inline MergeRegionsResponse& operator=(const MergeRegionsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MergeRegionsResponse& default_instance(); + + void Swap(MergeRegionsResponse* other); + + // implements Message ---------------------------------------------- + + MergeRegionsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MergeRegionsResponse& from); + void MergeFrom(const MergeRegionsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.MergeRegionsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static MergeRegionsResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class WALEntry : public ::google::protobuf::Message { + public: + WALEntry(); + virtual ~WALEntry(); + + WALEntry(const WALEntry& from); + + inline WALEntry& operator=(const WALEntry& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WALEntry& default_instance(); + + void Swap(WALEntry* other); + + // implements Message ---------------------------------------------- + + WALEntry* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WALEntry& from); + void MergeFrom(const WALEntry& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.WALKey key = 1; + inline bool has_key() const; + inline void clear_key(); + static const int kKeyFieldNumber = 1; + inline const ::hbase::pb::WALKey& key() const; + inline ::hbase::pb::WALKey* mutable_key(); + inline ::hbase::pb::WALKey* release_key(); + inline void set_allocated_key(::hbase::pb::WALKey* key); + + // repeated bytes key_value_bytes = 2; + inline int key_value_bytes_size() const; + inline void clear_key_value_bytes(); + static const int kKeyValueBytesFieldNumber = 2; + inline const ::std::string& key_value_bytes(int index) const; + inline ::std::string* mutable_key_value_bytes(int index); + inline void set_key_value_bytes(int index, const ::std::string& value); + inline void set_key_value_bytes(int index, const char* value); + inline void set_key_value_bytes(int index, const void* value, size_t size); + inline ::std::string* add_key_value_bytes(); + inline void add_key_value_bytes(const ::std::string& value); + inline void add_key_value_bytes(const char* value); + inline void add_key_value_bytes(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& key_value_bytes() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_key_value_bytes(); + + // optional int32 associated_cell_count = 3; + inline bool has_associated_cell_count() const; + inline void clear_associated_cell_count(); + static const int kAssociatedCellCountFieldNumber = 3; + inline ::google::protobuf::int32 associated_cell_count() const; + inline void set_associated_cell_count(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.WALEntry) + private: + inline void set_has_key(); + inline void clear_has_key(); + inline void set_has_associated_cell_count(); + inline void clear_has_associated_cell_count(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::WALKey* key_; + ::google::protobuf::RepeatedPtrField< ::std::string> key_value_bytes_; + ::google::protobuf::int32 associated_cell_count_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static WALEntry* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReplicateWALEntryRequest : public ::google::protobuf::Message { + public: + ReplicateWALEntryRequest(); + virtual ~ReplicateWALEntryRequest(); + + ReplicateWALEntryRequest(const ReplicateWALEntryRequest& from); + + inline ReplicateWALEntryRequest& operator=(const ReplicateWALEntryRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReplicateWALEntryRequest& default_instance(); + + void Swap(ReplicateWALEntryRequest* other); + + // implements Message ---------------------------------------------- + + ReplicateWALEntryRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReplicateWALEntryRequest& from); + void MergeFrom(const ReplicateWALEntryRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.WALEntry entry = 1; + inline int entry_size() const; + inline void clear_entry(); + static const int kEntryFieldNumber = 1; + inline const ::hbase::pb::WALEntry& entry(int index) const; + inline ::hbase::pb::WALEntry* mutable_entry(int index); + inline ::hbase::pb::WALEntry* add_entry(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::WALEntry >& + entry() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::WALEntry >* + mutable_entry(); + + // optional string replicationClusterId = 2; + inline bool has_replicationclusterid() const; + inline void clear_replicationclusterid(); + static const int kReplicationClusterIdFieldNumber = 2; + inline const ::std::string& replicationclusterid() const; + inline void set_replicationclusterid(const ::std::string& value); + inline void set_replicationclusterid(const char* value); + inline void set_replicationclusterid(const char* value, size_t size); + inline ::std::string* mutable_replicationclusterid(); + inline ::std::string* release_replicationclusterid(); + inline void set_allocated_replicationclusterid(::std::string* replicationclusterid); + + // optional string sourceBaseNamespaceDirPath = 3; + inline bool has_sourcebasenamespacedirpath() const; + inline void clear_sourcebasenamespacedirpath(); + static const int kSourceBaseNamespaceDirPathFieldNumber = 3; + inline const ::std::string& sourcebasenamespacedirpath() const; + inline void set_sourcebasenamespacedirpath(const ::std::string& value); + inline void set_sourcebasenamespacedirpath(const char* value); + inline void set_sourcebasenamespacedirpath(const char* value, size_t size); + inline ::std::string* mutable_sourcebasenamespacedirpath(); + inline ::std::string* release_sourcebasenamespacedirpath(); + inline void set_allocated_sourcebasenamespacedirpath(::std::string* sourcebasenamespacedirpath); + + // optional string sourceHFileArchiveDirPath = 4; + inline bool has_sourcehfilearchivedirpath() const; + inline void clear_sourcehfilearchivedirpath(); + static const int kSourceHFileArchiveDirPathFieldNumber = 4; + inline const ::std::string& sourcehfilearchivedirpath() const; + inline void set_sourcehfilearchivedirpath(const ::std::string& value); + inline void set_sourcehfilearchivedirpath(const char* value); + inline void set_sourcehfilearchivedirpath(const char* value, size_t size); + inline ::std::string* mutable_sourcehfilearchivedirpath(); + inline ::std::string* release_sourcehfilearchivedirpath(); + inline void set_allocated_sourcehfilearchivedirpath(::std::string* sourcehfilearchivedirpath); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReplicateWALEntryRequest) + private: + inline void set_has_replicationclusterid(); + inline void clear_has_replicationclusterid(); + inline void set_has_sourcebasenamespacedirpath(); + inline void clear_has_sourcebasenamespacedirpath(); + inline void set_has_sourcehfilearchivedirpath(); + inline void clear_has_sourcehfilearchivedirpath(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::WALEntry > entry_; + ::std::string* replicationclusterid_; + ::std::string* sourcebasenamespacedirpath_; + ::std::string* sourcehfilearchivedirpath_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static ReplicateWALEntryRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReplicateWALEntryResponse : public ::google::protobuf::Message { + public: + ReplicateWALEntryResponse(); + virtual ~ReplicateWALEntryResponse(); + + ReplicateWALEntryResponse(const ReplicateWALEntryResponse& from); + + inline ReplicateWALEntryResponse& operator=(const ReplicateWALEntryResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReplicateWALEntryResponse& default_instance(); + + void Swap(ReplicateWALEntryResponse* other); + + // implements Message ---------------------------------------------- + + ReplicateWALEntryResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReplicateWALEntryResponse& from); + void MergeFrom(const ReplicateWALEntryResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.ReplicateWALEntryResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static ReplicateWALEntryResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class RollWALWriterRequest : public ::google::protobuf::Message { + public: + RollWALWriterRequest(); + virtual ~RollWALWriterRequest(); + + RollWALWriterRequest(const RollWALWriterRequest& from); + + inline RollWALWriterRequest& operator=(const RollWALWriterRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RollWALWriterRequest& default_instance(); + + void Swap(RollWALWriterRequest* other); + + // implements Message ---------------------------------------------- + + RollWALWriterRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RollWALWriterRequest& from); + void MergeFrom(const RollWALWriterRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.RollWALWriterRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static RollWALWriterRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class RollWALWriterResponse : public ::google::protobuf::Message { + public: + RollWALWriterResponse(); + virtual ~RollWALWriterResponse(); + + RollWALWriterResponse(const RollWALWriterResponse& from); + + inline RollWALWriterResponse& operator=(const RollWALWriterResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RollWALWriterResponse& default_instance(); + + void Swap(RollWALWriterResponse* other); + + // implements Message ---------------------------------------------- + + RollWALWriterResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RollWALWriterResponse& from); + void MergeFrom(const RollWALWriterResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes region_to_flush = 1; + inline int region_to_flush_size() const; + inline void clear_region_to_flush(); + static const int kRegionToFlushFieldNumber = 1; + inline const ::std::string& region_to_flush(int index) const; + inline ::std::string* mutable_region_to_flush(int index); + inline void set_region_to_flush(int index, const ::std::string& value); + inline void set_region_to_flush(int index, const char* value); + inline void set_region_to_flush(int index, const void* value, size_t size); + inline ::std::string* add_region_to_flush(); + inline void add_region_to_flush(const ::std::string& value); + inline void add_region_to_flush(const char* value); + inline void add_region_to_flush(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& region_to_flush() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_region_to_flush(); + + // @@protoc_insertion_point(class_scope:hbase.pb.RollWALWriterResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> region_to_flush_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static RollWALWriterResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class StopServerRequest : public ::google::protobuf::Message { + public: + StopServerRequest(); + virtual ~StopServerRequest(); + + StopServerRequest(const StopServerRequest& from); + + inline StopServerRequest& operator=(const StopServerRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StopServerRequest& default_instance(); + + void Swap(StopServerRequest* other); + + // implements Message ---------------------------------------------- + + StopServerRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StopServerRequest& from); + void MergeFrom(const StopServerRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string reason = 1; + inline bool has_reason() const; + inline void clear_reason(); + static const int kReasonFieldNumber = 1; + inline const ::std::string& reason() const; + inline void set_reason(const ::std::string& value); + inline void set_reason(const char* value); + inline void set_reason(const char* value, size_t size); + inline ::std::string* mutable_reason(); + inline ::std::string* release_reason(); + inline void set_allocated_reason(::std::string* reason); + + // @@protoc_insertion_point(class_scope:hbase.pb.StopServerRequest) + private: + inline void set_has_reason(); + inline void clear_has_reason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* reason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static StopServerRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class StopServerResponse : public ::google::protobuf::Message { + public: + StopServerResponse(); + virtual ~StopServerResponse(); + + StopServerResponse(const StopServerResponse& from); + + inline StopServerResponse& operator=(const StopServerResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StopServerResponse& default_instance(); + + void Swap(StopServerResponse* other); + + // implements Message ---------------------------------------------- + + StopServerResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StopServerResponse& from); + void MergeFrom(const StopServerResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.StopServerResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static StopServerResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetServerInfoRequest : public ::google::protobuf::Message { + public: + GetServerInfoRequest(); + virtual ~GetServerInfoRequest(); + + GetServerInfoRequest(const GetServerInfoRequest& from); + + inline GetServerInfoRequest& operator=(const GetServerInfoRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetServerInfoRequest& default_instance(); + + void Swap(GetServerInfoRequest* other); + + // implements Message ---------------------------------------------- + + GetServerInfoRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetServerInfoRequest& from); + void MergeFrom(const GetServerInfoRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.GetServerInfoRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static GetServerInfoRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ServerInfo : public ::google::protobuf::Message { + public: + ServerInfo(); + virtual ~ServerInfo(); + + ServerInfo(const ServerInfo& from); + + inline ServerInfo& operator=(const ServerInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ServerInfo& default_instance(); + + void Swap(ServerInfo* other); + + // implements Message ---------------------------------------------- + + ServerInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ServerInfo& from); + void MergeFrom(const ServerInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName server_name = 1; + inline bool has_server_name() const; + inline void clear_server_name(); + static const int kServerNameFieldNumber = 1; + inline const ::hbase::pb::ServerName& server_name() const; + inline ::hbase::pb::ServerName* mutable_server_name(); + inline ::hbase::pb::ServerName* release_server_name(); + inline void set_allocated_server_name(::hbase::pb::ServerName* server_name); + + // optional uint32 webui_port = 2; + inline bool has_webui_port() const; + inline void clear_webui_port(); + static const int kWebuiPortFieldNumber = 2; + inline ::google::protobuf::uint32 webui_port() const; + inline void set_webui_port(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ServerInfo) + private: + inline void set_has_server_name(); + inline void clear_has_server_name(); + inline void set_has_webui_port(); + inline void clear_has_webui_port(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_name_; + ::google::protobuf::uint32 webui_port_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static ServerInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetServerInfoResponse : public ::google::protobuf::Message { + public: + GetServerInfoResponse(); + virtual ~GetServerInfoResponse(); + + GetServerInfoResponse(const GetServerInfoResponse& from); + + inline GetServerInfoResponse& operator=(const GetServerInfoResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetServerInfoResponse& default_instance(); + + void Swap(GetServerInfoResponse* other); + + // implements Message ---------------------------------------------- + + GetServerInfoResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetServerInfoResponse& from); + void MergeFrom(const GetServerInfoResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerInfo server_info = 1; + inline bool has_server_info() const; + inline void clear_server_info(); + static const int kServerInfoFieldNumber = 1; + inline const ::hbase::pb::ServerInfo& server_info() const; + inline ::hbase::pb::ServerInfo* mutable_server_info(); + inline ::hbase::pb::ServerInfo* release_server_info(); + inline void set_allocated_server_info(::hbase::pb::ServerInfo* server_info); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetServerInfoResponse) + private: + inline void set_has_server_info(); + inline void clear_has_server_info(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerInfo* server_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static GetServerInfoResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class UpdateConfigurationRequest : public ::google::protobuf::Message { + public: + UpdateConfigurationRequest(); + virtual ~UpdateConfigurationRequest(); + + UpdateConfigurationRequest(const UpdateConfigurationRequest& from); + + inline UpdateConfigurationRequest& operator=(const UpdateConfigurationRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UpdateConfigurationRequest& default_instance(); + + void Swap(UpdateConfigurationRequest* other); + + // implements Message ---------------------------------------------- + + UpdateConfigurationRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UpdateConfigurationRequest& from); + void MergeFrom(const UpdateConfigurationRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.UpdateConfigurationRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static UpdateConfigurationRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class UpdateConfigurationResponse : public ::google::protobuf::Message { + public: + UpdateConfigurationResponse(); + virtual ~UpdateConfigurationResponse(); + + UpdateConfigurationResponse(const UpdateConfigurationResponse& from); + + inline UpdateConfigurationResponse& operator=(const UpdateConfigurationResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UpdateConfigurationResponse& default_instance(); + + void Swap(UpdateConfigurationResponse* other); + + // implements Message ---------------------------------------------- + + UpdateConfigurationResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UpdateConfigurationResponse& from); + void MergeFrom(const UpdateConfigurationResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.UpdateConfigurationResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Admin_2eproto(); + friend void protobuf_AssignDesc_Admin_2eproto(); + friend void protobuf_ShutdownFile_Admin_2eproto(); + + void InitAsDefaultInstance(); + static UpdateConfigurationResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// GetRegionInfoRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool GetRegionInfoRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRegionInfoRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRegionInfoRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRegionInfoRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& GetRegionInfoRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* GetRegionInfoRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* GetRegionInfoRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void GetRegionInfoRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional bool compaction_state = 2; +inline bool GetRegionInfoRequest::has_compaction_state() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetRegionInfoRequest::set_has_compaction_state() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetRegionInfoRequest::clear_has_compaction_state() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetRegionInfoRequest::clear_compaction_state() { + compaction_state_ = false; + clear_has_compaction_state(); +} +inline bool GetRegionInfoRequest::compaction_state() const { + return compaction_state_; +} +inline void GetRegionInfoRequest::set_compaction_state(bool value) { + set_has_compaction_state(); + compaction_state_ = value; +} + +// ------------------------------------------------------------------- + +// GetRegionInfoResponse + +// required .hbase.pb.RegionInfo region_info = 1; +inline bool GetRegionInfoResponse::has_region_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRegionInfoResponse::set_has_region_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRegionInfoResponse::clear_has_region_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRegionInfoResponse::clear_region_info() { + if (region_info_ != NULL) region_info_->::hbase::pb::RegionInfo::Clear(); + clear_has_region_info(); +} +inline const ::hbase::pb::RegionInfo& GetRegionInfoResponse::region_info() const { + return region_info_ != NULL ? *region_info_ : *default_instance_->region_info_; +} +inline ::hbase::pb::RegionInfo* GetRegionInfoResponse::mutable_region_info() { + set_has_region_info(); + if (region_info_ == NULL) region_info_ = new ::hbase::pb::RegionInfo; + return region_info_; +} +inline ::hbase::pb::RegionInfo* GetRegionInfoResponse::release_region_info() { + clear_has_region_info(); + ::hbase::pb::RegionInfo* temp = region_info_; + region_info_ = NULL; + return temp; +} +inline void GetRegionInfoResponse::set_allocated_region_info(::hbase::pb::RegionInfo* region_info) { + delete region_info_; + region_info_ = region_info; + if (region_info) { + set_has_region_info(); + } else { + clear_has_region_info(); + } +} + +// optional .hbase.pb.GetRegionInfoResponse.CompactionState compaction_state = 2; +inline bool GetRegionInfoResponse::has_compaction_state() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetRegionInfoResponse::set_has_compaction_state() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetRegionInfoResponse::clear_has_compaction_state() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetRegionInfoResponse::clear_compaction_state() { + compaction_state_ = 0; + clear_has_compaction_state(); +} +inline ::hbase::pb::GetRegionInfoResponse_CompactionState GetRegionInfoResponse::compaction_state() const { + return static_cast< ::hbase::pb::GetRegionInfoResponse_CompactionState >(compaction_state_); +} +inline void GetRegionInfoResponse::set_compaction_state(::hbase::pb::GetRegionInfoResponse_CompactionState value) { + assert(::hbase::pb::GetRegionInfoResponse_CompactionState_IsValid(value)); + set_has_compaction_state(); + compaction_state_ = value; +} + +// optional bool isRecovering = 3; +inline bool GetRegionInfoResponse::has_isrecovering() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GetRegionInfoResponse::set_has_isrecovering() { + _has_bits_[0] |= 0x00000004u; +} +inline void GetRegionInfoResponse::clear_has_isrecovering() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GetRegionInfoResponse::clear_isrecovering() { + isrecovering_ = false; + clear_has_isrecovering(); +} +inline bool GetRegionInfoResponse::isrecovering() const { + return isrecovering_; +} +inline void GetRegionInfoResponse::set_isrecovering(bool value) { + set_has_isrecovering(); + isrecovering_ = value; +} + +// ------------------------------------------------------------------- + +// GetStoreFileRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool GetStoreFileRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetStoreFileRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetStoreFileRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetStoreFileRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& GetStoreFileRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* GetStoreFileRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* GetStoreFileRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void GetStoreFileRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// repeated bytes family = 2; +inline int GetStoreFileRequest::family_size() const { + return family_.size(); +} +inline void GetStoreFileRequest::clear_family() { + family_.Clear(); +} +inline const ::std::string& GetStoreFileRequest::family(int index) const { + return family_.Get(index); +} +inline ::std::string* GetStoreFileRequest::mutable_family(int index) { + return family_.Mutable(index); +} +inline void GetStoreFileRequest::set_family(int index, const ::std::string& value) { + family_.Mutable(index)->assign(value); +} +inline void GetStoreFileRequest::set_family(int index, const char* value) { + family_.Mutable(index)->assign(value); +} +inline void GetStoreFileRequest::set_family(int index, const void* value, size_t size) { + family_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* GetStoreFileRequest::add_family() { + return family_.Add(); +} +inline void GetStoreFileRequest::add_family(const ::std::string& value) { + family_.Add()->assign(value); +} +inline void GetStoreFileRequest::add_family(const char* value) { + family_.Add()->assign(value); +} +inline void GetStoreFileRequest::add_family(const void* value, size_t size) { + family_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +GetStoreFileRequest::family() const { + return family_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +GetStoreFileRequest::mutable_family() { + return &family_; +} + +// ------------------------------------------------------------------- + +// GetStoreFileResponse + +// repeated string store_file = 1; +inline int GetStoreFileResponse::store_file_size() const { + return store_file_.size(); +} +inline void GetStoreFileResponse::clear_store_file() { + store_file_.Clear(); +} +inline const ::std::string& GetStoreFileResponse::store_file(int index) const { + return store_file_.Get(index); +} +inline ::std::string* GetStoreFileResponse::mutable_store_file(int index) { + return store_file_.Mutable(index); +} +inline void GetStoreFileResponse::set_store_file(int index, const ::std::string& value) { + store_file_.Mutable(index)->assign(value); +} +inline void GetStoreFileResponse::set_store_file(int index, const char* value) { + store_file_.Mutable(index)->assign(value); +} +inline void GetStoreFileResponse::set_store_file(int index, const char* value, size_t size) { + store_file_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* GetStoreFileResponse::add_store_file() { + return store_file_.Add(); +} +inline void GetStoreFileResponse::add_store_file(const ::std::string& value) { + store_file_.Add()->assign(value); +} +inline void GetStoreFileResponse::add_store_file(const char* value) { + store_file_.Add()->assign(value); +} +inline void GetStoreFileResponse::add_store_file(const char* value, size_t size) { + store_file_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +GetStoreFileResponse::store_file() const { + return store_file_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +GetStoreFileResponse::mutable_store_file() { + return &store_file_; +} + +// ------------------------------------------------------------------- + +// GetOnlineRegionRequest + +// ------------------------------------------------------------------- + +// GetOnlineRegionResponse + +// repeated .hbase.pb.RegionInfo region_info = 1; +inline int GetOnlineRegionResponse::region_info_size() const { + return region_info_.size(); +} +inline void GetOnlineRegionResponse::clear_region_info() { + region_info_.Clear(); +} +inline const ::hbase::pb::RegionInfo& GetOnlineRegionResponse::region_info(int index) const { + return region_info_.Get(index); +} +inline ::hbase::pb::RegionInfo* GetOnlineRegionResponse::mutable_region_info(int index) { + return region_info_.Mutable(index); +} +inline ::hbase::pb::RegionInfo* GetOnlineRegionResponse::add_region_info() { + return region_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& +GetOnlineRegionResponse::region_info() const { + return region_info_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* +GetOnlineRegionResponse::mutable_region_info() { + return ®ion_info_; +} + +// ------------------------------------------------------------------- + +// OpenRegionRequest_RegionOpenInfo + +// required .hbase.pb.RegionInfo region = 1; +inline bool OpenRegionRequest_RegionOpenInfo::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OpenRegionRequest_RegionOpenInfo::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void OpenRegionRequest_RegionOpenInfo::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OpenRegionRequest_RegionOpenInfo::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionInfo::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionInfo& OpenRegionRequest_RegionOpenInfo::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionInfo* OpenRegionRequest_RegionOpenInfo::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionInfo; + return region_; +} +inline ::hbase::pb::RegionInfo* OpenRegionRequest_RegionOpenInfo::release_region() { + clear_has_region(); + ::hbase::pb::RegionInfo* temp = region_; + region_ = NULL; + return temp; +} +inline void OpenRegionRequest_RegionOpenInfo::set_allocated_region(::hbase::pb::RegionInfo* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional uint32 version_of_offline_node = 2; +inline bool OpenRegionRequest_RegionOpenInfo::has_version_of_offline_node() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OpenRegionRequest_RegionOpenInfo::set_has_version_of_offline_node() { + _has_bits_[0] |= 0x00000002u; +} +inline void OpenRegionRequest_RegionOpenInfo::clear_has_version_of_offline_node() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OpenRegionRequest_RegionOpenInfo::clear_version_of_offline_node() { + version_of_offline_node_ = 0u; + clear_has_version_of_offline_node(); +} +inline ::google::protobuf::uint32 OpenRegionRequest_RegionOpenInfo::version_of_offline_node() const { + return version_of_offline_node_; +} +inline void OpenRegionRequest_RegionOpenInfo::set_version_of_offline_node(::google::protobuf::uint32 value) { + set_has_version_of_offline_node(); + version_of_offline_node_ = value; +} + +// repeated .hbase.pb.ServerName favored_nodes = 3; +inline int OpenRegionRequest_RegionOpenInfo::favored_nodes_size() const { + return favored_nodes_.size(); +} +inline void OpenRegionRequest_RegionOpenInfo::clear_favored_nodes() { + favored_nodes_.Clear(); +} +inline const ::hbase::pb::ServerName& OpenRegionRequest_RegionOpenInfo::favored_nodes(int index) const { + return favored_nodes_.Get(index); +} +inline ::hbase::pb::ServerName* OpenRegionRequest_RegionOpenInfo::mutable_favored_nodes(int index) { + return favored_nodes_.Mutable(index); +} +inline ::hbase::pb::ServerName* OpenRegionRequest_RegionOpenInfo::add_favored_nodes() { + return favored_nodes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& +OpenRegionRequest_RegionOpenInfo::favored_nodes() const { + return favored_nodes_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* +OpenRegionRequest_RegionOpenInfo::mutable_favored_nodes() { + return &favored_nodes_; +} + +// optional bool openForDistributedLogReplay = 4; +inline bool OpenRegionRequest_RegionOpenInfo::has_openfordistributedlogreplay() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void OpenRegionRequest_RegionOpenInfo::set_has_openfordistributedlogreplay() { + _has_bits_[0] |= 0x00000008u; +} +inline void OpenRegionRequest_RegionOpenInfo::clear_has_openfordistributedlogreplay() { + _has_bits_[0] &= ~0x00000008u; +} +inline void OpenRegionRequest_RegionOpenInfo::clear_openfordistributedlogreplay() { + openfordistributedlogreplay_ = false; + clear_has_openfordistributedlogreplay(); +} +inline bool OpenRegionRequest_RegionOpenInfo::openfordistributedlogreplay() const { + return openfordistributedlogreplay_; +} +inline void OpenRegionRequest_RegionOpenInfo::set_openfordistributedlogreplay(bool value) { + set_has_openfordistributedlogreplay(); + openfordistributedlogreplay_ = value; +} + +// ------------------------------------------------------------------- + +// OpenRegionRequest + +// repeated .hbase.pb.OpenRegionRequest.RegionOpenInfo open_info = 1; +inline int OpenRegionRequest::open_info_size() const { + return open_info_.size(); +} +inline void OpenRegionRequest::clear_open_info() { + open_info_.Clear(); +} +inline const ::hbase::pb::OpenRegionRequest_RegionOpenInfo& OpenRegionRequest::open_info(int index) const { + return open_info_.Get(index); +} +inline ::hbase::pb::OpenRegionRequest_RegionOpenInfo* OpenRegionRequest::mutable_open_info(int index) { + return open_info_.Mutable(index); +} +inline ::hbase::pb::OpenRegionRequest_RegionOpenInfo* OpenRegionRequest::add_open_info() { + return open_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::OpenRegionRequest_RegionOpenInfo >& +OpenRegionRequest::open_info() const { + return open_info_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::OpenRegionRequest_RegionOpenInfo >* +OpenRegionRequest::mutable_open_info() { + return &open_info_; +} + +// optional uint64 serverStartCode = 2; +inline bool OpenRegionRequest::has_serverstartcode() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void OpenRegionRequest::set_has_serverstartcode() { + _has_bits_[0] |= 0x00000002u; +} +inline void OpenRegionRequest::clear_has_serverstartcode() { + _has_bits_[0] &= ~0x00000002u; +} +inline void OpenRegionRequest::clear_serverstartcode() { + serverstartcode_ = GOOGLE_ULONGLONG(0); + clear_has_serverstartcode(); +} +inline ::google::protobuf::uint64 OpenRegionRequest::serverstartcode() const { + return serverstartcode_; +} +inline void OpenRegionRequest::set_serverstartcode(::google::protobuf::uint64 value) { + set_has_serverstartcode(); + serverstartcode_ = value; +} + +// optional uint64 master_system_time = 5; +inline bool OpenRegionRequest::has_master_system_time() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void OpenRegionRequest::set_has_master_system_time() { + _has_bits_[0] |= 0x00000004u; +} +inline void OpenRegionRequest::clear_has_master_system_time() { + _has_bits_[0] &= ~0x00000004u; +} +inline void OpenRegionRequest::clear_master_system_time() { + master_system_time_ = GOOGLE_ULONGLONG(0); + clear_has_master_system_time(); +} +inline ::google::protobuf::uint64 OpenRegionRequest::master_system_time() const { + return master_system_time_; +} +inline void OpenRegionRequest::set_master_system_time(::google::protobuf::uint64 value) { + set_has_master_system_time(); + master_system_time_ = value; +} + +// ------------------------------------------------------------------- + +// OpenRegionResponse + +// repeated .hbase.pb.OpenRegionResponse.RegionOpeningState opening_state = 1; +inline int OpenRegionResponse::opening_state_size() const { + return opening_state_.size(); +} +inline void OpenRegionResponse::clear_opening_state() { + opening_state_.Clear(); +} +inline ::hbase::pb::OpenRegionResponse_RegionOpeningState OpenRegionResponse::opening_state(int index) const { + return static_cast< ::hbase::pb::OpenRegionResponse_RegionOpeningState >(opening_state_.Get(index)); +} +inline void OpenRegionResponse::set_opening_state(int index, ::hbase::pb::OpenRegionResponse_RegionOpeningState value) { + assert(::hbase::pb::OpenRegionResponse_RegionOpeningState_IsValid(value)); + opening_state_.Set(index, value); +} +inline void OpenRegionResponse::add_opening_state(::hbase::pb::OpenRegionResponse_RegionOpeningState value) { + assert(::hbase::pb::OpenRegionResponse_RegionOpeningState_IsValid(value)); + opening_state_.Add(value); +} +inline const ::google::protobuf::RepeatedField& +OpenRegionResponse::opening_state() const { + return opening_state_; +} +inline ::google::protobuf::RepeatedField* +OpenRegionResponse::mutable_opening_state() { + return &opening_state_; +} + +// ------------------------------------------------------------------- + +// WarmupRegionRequest + +// required .hbase.pb.RegionInfo regionInfo = 1; +inline bool WarmupRegionRequest::has_regioninfo() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WarmupRegionRequest::set_has_regioninfo() { + _has_bits_[0] |= 0x00000001u; +} +inline void WarmupRegionRequest::clear_has_regioninfo() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WarmupRegionRequest::clear_regioninfo() { + if (regioninfo_ != NULL) regioninfo_->::hbase::pb::RegionInfo::Clear(); + clear_has_regioninfo(); +} +inline const ::hbase::pb::RegionInfo& WarmupRegionRequest::regioninfo() const { + return regioninfo_ != NULL ? *regioninfo_ : *default_instance_->regioninfo_; +} +inline ::hbase::pb::RegionInfo* WarmupRegionRequest::mutable_regioninfo() { + set_has_regioninfo(); + if (regioninfo_ == NULL) regioninfo_ = new ::hbase::pb::RegionInfo; + return regioninfo_; +} +inline ::hbase::pb::RegionInfo* WarmupRegionRequest::release_regioninfo() { + clear_has_regioninfo(); + ::hbase::pb::RegionInfo* temp = regioninfo_; + regioninfo_ = NULL; + return temp; +} +inline void WarmupRegionRequest::set_allocated_regioninfo(::hbase::pb::RegionInfo* regioninfo) { + delete regioninfo_; + regioninfo_ = regioninfo; + if (regioninfo) { + set_has_regioninfo(); + } else { + clear_has_regioninfo(); + } +} + +// ------------------------------------------------------------------- + +// WarmupRegionResponse + +// ------------------------------------------------------------------- + +// CloseRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool CloseRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CloseRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void CloseRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CloseRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& CloseRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* CloseRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* CloseRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void CloseRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional uint32 version_of_closing_node = 2; +inline bool CloseRegionRequest::has_version_of_closing_node() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CloseRegionRequest::set_has_version_of_closing_node() { + _has_bits_[0] |= 0x00000002u; +} +inline void CloseRegionRequest::clear_has_version_of_closing_node() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CloseRegionRequest::clear_version_of_closing_node() { + version_of_closing_node_ = 0u; + clear_has_version_of_closing_node(); +} +inline ::google::protobuf::uint32 CloseRegionRequest::version_of_closing_node() const { + return version_of_closing_node_; +} +inline void CloseRegionRequest::set_version_of_closing_node(::google::protobuf::uint32 value) { + set_has_version_of_closing_node(); + version_of_closing_node_ = value; +} + +// optional bool transition_in_ZK = 3 [default = true]; +inline bool CloseRegionRequest::has_transition_in_zk() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CloseRegionRequest::set_has_transition_in_zk() { + _has_bits_[0] |= 0x00000004u; +} +inline void CloseRegionRequest::clear_has_transition_in_zk() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CloseRegionRequest::clear_transition_in_zk() { + transition_in_zk_ = true; + clear_has_transition_in_zk(); +} +inline bool CloseRegionRequest::transition_in_zk() const { + return transition_in_zk_; +} +inline void CloseRegionRequest::set_transition_in_zk(bool value) { + set_has_transition_in_zk(); + transition_in_zk_ = value; +} + +// optional .hbase.pb.ServerName destination_server = 4; +inline bool CloseRegionRequest::has_destination_server() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void CloseRegionRequest::set_has_destination_server() { + _has_bits_[0] |= 0x00000008u; +} +inline void CloseRegionRequest::clear_has_destination_server() { + _has_bits_[0] &= ~0x00000008u; +} +inline void CloseRegionRequest::clear_destination_server() { + if (destination_server_ != NULL) destination_server_->::hbase::pb::ServerName::Clear(); + clear_has_destination_server(); +} +inline const ::hbase::pb::ServerName& CloseRegionRequest::destination_server() const { + return destination_server_ != NULL ? *destination_server_ : *default_instance_->destination_server_; +} +inline ::hbase::pb::ServerName* CloseRegionRequest::mutable_destination_server() { + set_has_destination_server(); + if (destination_server_ == NULL) destination_server_ = new ::hbase::pb::ServerName; + return destination_server_; +} +inline ::hbase::pb::ServerName* CloseRegionRequest::release_destination_server() { + clear_has_destination_server(); + ::hbase::pb::ServerName* temp = destination_server_; + destination_server_ = NULL; + return temp; +} +inline void CloseRegionRequest::set_allocated_destination_server(::hbase::pb::ServerName* destination_server) { + delete destination_server_; + destination_server_ = destination_server; + if (destination_server) { + set_has_destination_server(); + } else { + clear_has_destination_server(); + } +} + +// optional uint64 serverStartCode = 5; +inline bool CloseRegionRequest::has_serverstartcode() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void CloseRegionRequest::set_has_serverstartcode() { + _has_bits_[0] |= 0x00000010u; +} +inline void CloseRegionRequest::clear_has_serverstartcode() { + _has_bits_[0] &= ~0x00000010u; +} +inline void CloseRegionRequest::clear_serverstartcode() { + serverstartcode_ = GOOGLE_ULONGLONG(0); + clear_has_serverstartcode(); +} +inline ::google::protobuf::uint64 CloseRegionRequest::serverstartcode() const { + return serverstartcode_; +} +inline void CloseRegionRequest::set_serverstartcode(::google::protobuf::uint64 value) { + set_has_serverstartcode(); + serverstartcode_ = value; +} + +// ------------------------------------------------------------------- + +// CloseRegionResponse + +// required bool closed = 1; +inline bool CloseRegionResponse::has_closed() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CloseRegionResponse::set_has_closed() { + _has_bits_[0] |= 0x00000001u; +} +inline void CloseRegionResponse::clear_has_closed() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CloseRegionResponse::clear_closed() { + closed_ = false; + clear_has_closed(); +} +inline bool CloseRegionResponse::closed() const { + return closed_; +} +inline void CloseRegionResponse::set_closed(bool value) { + set_has_closed(); + closed_ = value; +} + +// ------------------------------------------------------------------- + +// FlushRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool FlushRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FlushRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void FlushRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FlushRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& FlushRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* FlushRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* FlushRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void FlushRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional uint64 if_older_than_ts = 2; +inline bool FlushRegionRequest::has_if_older_than_ts() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void FlushRegionRequest::set_has_if_older_than_ts() { + _has_bits_[0] |= 0x00000002u; +} +inline void FlushRegionRequest::clear_has_if_older_than_ts() { + _has_bits_[0] &= ~0x00000002u; +} +inline void FlushRegionRequest::clear_if_older_than_ts() { + if_older_than_ts_ = GOOGLE_ULONGLONG(0); + clear_has_if_older_than_ts(); +} +inline ::google::protobuf::uint64 FlushRegionRequest::if_older_than_ts() const { + return if_older_than_ts_; +} +inline void FlushRegionRequest::set_if_older_than_ts(::google::protobuf::uint64 value) { + set_has_if_older_than_ts(); + if_older_than_ts_ = value; +} + +// optional bool write_flush_wal_marker = 3; +inline bool FlushRegionRequest::has_write_flush_wal_marker() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void FlushRegionRequest::set_has_write_flush_wal_marker() { + _has_bits_[0] |= 0x00000004u; +} +inline void FlushRegionRequest::clear_has_write_flush_wal_marker() { + _has_bits_[0] &= ~0x00000004u; +} +inline void FlushRegionRequest::clear_write_flush_wal_marker() { + write_flush_wal_marker_ = false; + clear_has_write_flush_wal_marker(); +} +inline bool FlushRegionRequest::write_flush_wal_marker() const { + return write_flush_wal_marker_; +} +inline void FlushRegionRequest::set_write_flush_wal_marker(bool value) { + set_has_write_flush_wal_marker(); + write_flush_wal_marker_ = value; +} + +// ------------------------------------------------------------------- + +// FlushRegionResponse + +// required uint64 last_flush_time = 1; +inline bool FlushRegionResponse::has_last_flush_time() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FlushRegionResponse::set_has_last_flush_time() { + _has_bits_[0] |= 0x00000001u; +} +inline void FlushRegionResponse::clear_has_last_flush_time() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FlushRegionResponse::clear_last_flush_time() { + last_flush_time_ = GOOGLE_ULONGLONG(0); + clear_has_last_flush_time(); +} +inline ::google::protobuf::uint64 FlushRegionResponse::last_flush_time() const { + return last_flush_time_; +} +inline void FlushRegionResponse::set_last_flush_time(::google::protobuf::uint64 value) { + set_has_last_flush_time(); + last_flush_time_ = value; +} + +// optional bool flushed = 2; +inline bool FlushRegionResponse::has_flushed() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void FlushRegionResponse::set_has_flushed() { + _has_bits_[0] |= 0x00000002u; +} +inline void FlushRegionResponse::clear_has_flushed() { + _has_bits_[0] &= ~0x00000002u; +} +inline void FlushRegionResponse::clear_flushed() { + flushed_ = false; + clear_has_flushed(); +} +inline bool FlushRegionResponse::flushed() const { + return flushed_; +} +inline void FlushRegionResponse::set_flushed(bool value) { + set_has_flushed(); + flushed_ = value; +} + +// optional bool wrote_flush_wal_marker = 3; +inline bool FlushRegionResponse::has_wrote_flush_wal_marker() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void FlushRegionResponse::set_has_wrote_flush_wal_marker() { + _has_bits_[0] |= 0x00000004u; +} +inline void FlushRegionResponse::clear_has_wrote_flush_wal_marker() { + _has_bits_[0] &= ~0x00000004u; +} +inline void FlushRegionResponse::clear_wrote_flush_wal_marker() { + wrote_flush_wal_marker_ = false; + clear_has_wrote_flush_wal_marker(); +} +inline bool FlushRegionResponse::wrote_flush_wal_marker() const { + return wrote_flush_wal_marker_; +} +inline void FlushRegionResponse::set_wrote_flush_wal_marker(bool value) { + set_has_wrote_flush_wal_marker(); + wrote_flush_wal_marker_ = value; +} + +// ------------------------------------------------------------------- + +// SplitRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool SplitRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SplitRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void SplitRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SplitRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& SplitRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* SplitRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* SplitRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void SplitRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional bytes split_point = 2; +inline bool SplitRegionRequest::has_split_point() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SplitRegionRequest::set_has_split_point() { + _has_bits_[0] |= 0x00000002u; +} +inline void SplitRegionRequest::clear_has_split_point() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SplitRegionRequest::clear_split_point() { + if (split_point_ != &::google::protobuf::internal::kEmptyString) { + split_point_->clear(); + } + clear_has_split_point(); +} +inline const ::std::string& SplitRegionRequest::split_point() const { + return *split_point_; +} +inline void SplitRegionRequest::set_split_point(const ::std::string& value) { + set_has_split_point(); + if (split_point_ == &::google::protobuf::internal::kEmptyString) { + split_point_ = new ::std::string; + } + split_point_->assign(value); +} +inline void SplitRegionRequest::set_split_point(const char* value) { + set_has_split_point(); + if (split_point_ == &::google::protobuf::internal::kEmptyString) { + split_point_ = new ::std::string; + } + split_point_->assign(value); +} +inline void SplitRegionRequest::set_split_point(const void* value, size_t size) { + set_has_split_point(); + if (split_point_ == &::google::protobuf::internal::kEmptyString) { + split_point_ = new ::std::string; + } + split_point_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SplitRegionRequest::mutable_split_point() { + set_has_split_point(); + if (split_point_ == &::google::protobuf::internal::kEmptyString) { + split_point_ = new ::std::string; + } + return split_point_; +} +inline ::std::string* SplitRegionRequest::release_split_point() { + clear_has_split_point(); + if (split_point_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = split_point_; + split_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SplitRegionRequest::set_allocated_split_point(::std::string* split_point) { + if (split_point_ != &::google::protobuf::internal::kEmptyString) { + delete split_point_; + } + if (split_point) { + set_has_split_point(); + split_point_ = split_point; + } else { + clear_has_split_point(); + split_point_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// SplitRegionResponse + +// ------------------------------------------------------------------- + +// CompactRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool CompactRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CompactRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void CompactRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CompactRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& CompactRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* CompactRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* CompactRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void CompactRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional bool major = 2; +inline bool CompactRegionRequest::has_major() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CompactRegionRequest::set_has_major() { + _has_bits_[0] |= 0x00000002u; +} +inline void CompactRegionRequest::clear_has_major() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CompactRegionRequest::clear_major() { + major_ = false; + clear_has_major(); +} +inline bool CompactRegionRequest::major() const { + return major_; +} +inline void CompactRegionRequest::set_major(bool value) { + set_has_major(); + major_ = value; +} + +// optional bytes family = 3; +inline bool CompactRegionRequest::has_family() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CompactRegionRequest::set_has_family() { + _has_bits_[0] |= 0x00000004u; +} +inline void CompactRegionRequest::clear_has_family() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CompactRegionRequest::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& CompactRegionRequest::family() const { + return *family_; +} +inline void CompactRegionRequest::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void CompactRegionRequest::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void CompactRegionRequest::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CompactRegionRequest::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* CompactRegionRequest::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CompactRegionRequest::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// CompactRegionResponse + +// ------------------------------------------------------------------- + +// UpdateFavoredNodesRequest_RegionUpdateInfo + +// required .hbase.pb.RegionInfo region = 1; +inline bool UpdateFavoredNodesRequest_RegionUpdateInfo::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UpdateFavoredNodesRequest_RegionUpdateInfo::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void UpdateFavoredNodesRequest_RegionUpdateInfo::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UpdateFavoredNodesRequest_RegionUpdateInfo::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionInfo::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionInfo& UpdateFavoredNodesRequest_RegionUpdateInfo::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionInfo* UpdateFavoredNodesRequest_RegionUpdateInfo::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionInfo; + return region_; +} +inline ::hbase::pb::RegionInfo* UpdateFavoredNodesRequest_RegionUpdateInfo::release_region() { + clear_has_region(); + ::hbase::pb::RegionInfo* temp = region_; + region_ = NULL; + return temp; +} +inline void UpdateFavoredNodesRequest_RegionUpdateInfo::set_allocated_region(::hbase::pb::RegionInfo* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// repeated .hbase.pb.ServerName favored_nodes = 2; +inline int UpdateFavoredNodesRequest_RegionUpdateInfo::favored_nodes_size() const { + return favored_nodes_.size(); +} +inline void UpdateFavoredNodesRequest_RegionUpdateInfo::clear_favored_nodes() { + favored_nodes_.Clear(); +} +inline const ::hbase::pb::ServerName& UpdateFavoredNodesRequest_RegionUpdateInfo::favored_nodes(int index) const { + return favored_nodes_.Get(index); +} +inline ::hbase::pb::ServerName* UpdateFavoredNodesRequest_RegionUpdateInfo::mutable_favored_nodes(int index) { + return favored_nodes_.Mutable(index); +} +inline ::hbase::pb::ServerName* UpdateFavoredNodesRequest_RegionUpdateInfo::add_favored_nodes() { + return favored_nodes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& +UpdateFavoredNodesRequest_RegionUpdateInfo::favored_nodes() const { + return favored_nodes_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* +UpdateFavoredNodesRequest_RegionUpdateInfo::mutable_favored_nodes() { + return &favored_nodes_; +} + +// ------------------------------------------------------------------- + +// UpdateFavoredNodesRequest + +// repeated .hbase.pb.UpdateFavoredNodesRequest.RegionUpdateInfo update_info = 1; +inline int UpdateFavoredNodesRequest::update_info_size() const { + return update_info_.size(); +} +inline void UpdateFavoredNodesRequest::clear_update_info() { + update_info_.Clear(); +} +inline const ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo& UpdateFavoredNodesRequest::update_info(int index) const { + return update_info_.Get(index); +} +inline ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo* UpdateFavoredNodesRequest::mutable_update_info(int index) { + return update_info_.Mutable(index); +} +inline ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo* UpdateFavoredNodesRequest::add_update_info() { + return update_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo >& +UpdateFavoredNodesRequest::update_info() const { + return update_info_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UpdateFavoredNodesRequest_RegionUpdateInfo >* +UpdateFavoredNodesRequest::mutable_update_info() { + return &update_info_; +} + +// ------------------------------------------------------------------- + +// UpdateFavoredNodesResponse + +// optional uint32 response = 1; +inline bool UpdateFavoredNodesResponse::has_response() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UpdateFavoredNodesResponse::set_has_response() { + _has_bits_[0] |= 0x00000001u; +} +inline void UpdateFavoredNodesResponse::clear_has_response() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UpdateFavoredNodesResponse::clear_response() { + response_ = 0u; + clear_has_response(); +} +inline ::google::protobuf::uint32 UpdateFavoredNodesResponse::response() const { + return response_; +} +inline void UpdateFavoredNodesResponse::set_response(::google::protobuf::uint32 value) { + set_has_response(); + response_ = value; +} + +// ------------------------------------------------------------------- + +// MergeRegionsRequest + +// required .hbase.pb.RegionSpecifier region_a = 1; +inline bool MergeRegionsRequest::has_region_a() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MergeRegionsRequest::set_has_region_a() { + _has_bits_[0] |= 0x00000001u; +} +inline void MergeRegionsRequest::clear_has_region_a() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MergeRegionsRequest::clear_region_a() { + if (region_a_ != NULL) region_a_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region_a(); +} +inline const ::hbase::pb::RegionSpecifier& MergeRegionsRequest::region_a() const { + return region_a_ != NULL ? *region_a_ : *default_instance_->region_a_; +} +inline ::hbase::pb::RegionSpecifier* MergeRegionsRequest::mutable_region_a() { + set_has_region_a(); + if (region_a_ == NULL) region_a_ = new ::hbase::pb::RegionSpecifier; + return region_a_; +} +inline ::hbase::pb::RegionSpecifier* MergeRegionsRequest::release_region_a() { + clear_has_region_a(); + ::hbase::pb::RegionSpecifier* temp = region_a_; + region_a_ = NULL; + return temp; +} +inline void MergeRegionsRequest::set_allocated_region_a(::hbase::pb::RegionSpecifier* region_a) { + delete region_a_; + region_a_ = region_a; + if (region_a) { + set_has_region_a(); + } else { + clear_has_region_a(); + } +} + +// required .hbase.pb.RegionSpecifier region_b = 2; +inline bool MergeRegionsRequest::has_region_b() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MergeRegionsRequest::set_has_region_b() { + _has_bits_[0] |= 0x00000002u; +} +inline void MergeRegionsRequest::clear_has_region_b() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MergeRegionsRequest::clear_region_b() { + if (region_b_ != NULL) region_b_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region_b(); +} +inline const ::hbase::pb::RegionSpecifier& MergeRegionsRequest::region_b() const { + return region_b_ != NULL ? *region_b_ : *default_instance_->region_b_; +} +inline ::hbase::pb::RegionSpecifier* MergeRegionsRequest::mutable_region_b() { + set_has_region_b(); + if (region_b_ == NULL) region_b_ = new ::hbase::pb::RegionSpecifier; + return region_b_; +} +inline ::hbase::pb::RegionSpecifier* MergeRegionsRequest::release_region_b() { + clear_has_region_b(); + ::hbase::pb::RegionSpecifier* temp = region_b_; + region_b_ = NULL; + return temp; +} +inline void MergeRegionsRequest::set_allocated_region_b(::hbase::pb::RegionSpecifier* region_b) { + delete region_b_; + region_b_ = region_b; + if (region_b) { + set_has_region_b(); + } else { + clear_has_region_b(); + } +} + +// optional bool forcible = 3 [default = false]; +inline bool MergeRegionsRequest::has_forcible() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MergeRegionsRequest::set_has_forcible() { + _has_bits_[0] |= 0x00000004u; +} +inline void MergeRegionsRequest::clear_has_forcible() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MergeRegionsRequest::clear_forcible() { + forcible_ = false; + clear_has_forcible(); +} +inline bool MergeRegionsRequest::forcible() const { + return forcible_; +} +inline void MergeRegionsRequest::set_forcible(bool value) { + set_has_forcible(); + forcible_ = value; +} + +// optional uint64 master_system_time = 4; +inline bool MergeRegionsRequest::has_master_system_time() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MergeRegionsRequest::set_has_master_system_time() { + _has_bits_[0] |= 0x00000008u; +} +inline void MergeRegionsRequest::clear_has_master_system_time() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MergeRegionsRequest::clear_master_system_time() { + master_system_time_ = GOOGLE_ULONGLONG(0); + clear_has_master_system_time(); +} +inline ::google::protobuf::uint64 MergeRegionsRequest::master_system_time() const { + return master_system_time_; +} +inline void MergeRegionsRequest::set_master_system_time(::google::protobuf::uint64 value) { + set_has_master_system_time(); + master_system_time_ = value; +} + +// ------------------------------------------------------------------- + +// MergeRegionsResponse + +// ------------------------------------------------------------------- + +// WALEntry + +// required .hbase.pb.WALKey key = 1; +inline bool WALEntry::has_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WALEntry::set_has_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void WALEntry::clear_has_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WALEntry::clear_key() { + if (key_ != NULL) key_->::hbase::pb::WALKey::Clear(); + clear_has_key(); +} +inline const ::hbase::pb::WALKey& WALEntry::key() const { + return key_ != NULL ? *key_ : *default_instance_->key_; +} +inline ::hbase::pb::WALKey* WALEntry::mutable_key() { + set_has_key(); + if (key_ == NULL) key_ = new ::hbase::pb::WALKey; + return key_; +} +inline ::hbase::pb::WALKey* WALEntry::release_key() { + clear_has_key(); + ::hbase::pb::WALKey* temp = key_; + key_ = NULL; + return temp; +} +inline void WALEntry::set_allocated_key(::hbase::pb::WALKey* key) { + delete key_; + key_ = key; + if (key) { + set_has_key(); + } else { + clear_has_key(); + } +} + +// repeated bytes key_value_bytes = 2; +inline int WALEntry::key_value_bytes_size() const { + return key_value_bytes_.size(); +} +inline void WALEntry::clear_key_value_bytes() { + key_value_bytes_.Clear(); +} +inline const ::std::string& WALEntry::key_value_bytes(int index) const { + return key_value_bytes_.Get(index); +} +inline ::std::string* WALEntry::mutable_key_value_bytes(int index) { + return key_value_bytes_.Mutable(index); +} +inline void WALEntry::set_key_value_bytes(int index, const ::std::string& value) { + key_value_bytes_.Mutable(index)->assign(value); +} +inline void WALEntry::set_key_value_bytes(int index, const char* value) { + key_value_bytes_.Mutable(index)->assign(value); +} +inline void WALEntry::set_key_value_bytes(int index, const void* value, size_t size) { + key_value_bytes_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* WALEntry::add_key_value_bytes() { + return key_value_bytes_.Add(); +} +inline void WALEntry::add_key_value_bytes(const ::std::string& value) { + key_value_bytes_.Add()->assign(value); +} +inline void WALEntry::add_key_value_bytes(const char* value) { + key_value_bytes_.Add()->assign(value); +} +inline void WALEntry::add_key_value_bytes(const void* value, size_t size) { + key_value_bytes_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +WALEntry::key_value_bytes() const { + return key_value_bytes_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +WALEntry::mutable_key_value_bytes() { + return &key_value_bytes_; +} + +// optional int32 associated_cell_count = 3; +inline bool WALEntry::has_associated_cell_count() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void WALEntry::set_has_associated_cell_count() { + _has_bits_[0] |= 0x00000004u; +} +inline void WALEntry::clear_has_associated_cell_count() { + _has_bits_[0] &= ~0x00000004u; +} +inline void WALEntry::clear_associated_cell_count() { + associated_cell_count_ = 0; + clear_has_associated_cell_count(); +} +inline ::google::protobuf::int32 WALEntry::associated_cell_count() const { + return associated_cell_count_; +} +inline void WALEntry::set_associated_cell_count(::google::protobuf::int32 value) { + set_has_associated_cell_count(); + associated_cell_count_ = value; +} + +// ------------------------------------------------------------------- + +// ReplicateWALEntryRequest + +// repeated .hbase.pb.WALEntry entry = 1; +inline int ReplicateWALEntryRequest::entry_size() const { + return entry_.size(); +} +inline void ReplicateWALEntryRequest::clear_entry() { + entry_.Clear(); +} +inline const ::hbase::pb::WALEntry& ReplicateWALEntryRequest::entry(int index) const { + return entry_.Get(index); +} +inline ::hbase::pb::WALEntry* ReplicateWALEntryRequest::mutable_entry(int index) { + return entry_.Mutable(index); +} +inline ::hbase::pb::WALEntry* ReplicateWALEntryRequest::add_entry() { + return entry_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::WALEntry >& +ReplicateWALEntryRequest::entry() const { + return entry_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::WALEntry >* +ReplicateWALEntryRequest::mutable_entry() { + return &entry_; +} + +// optional string replicationClusterId = 2; +inline bool ReplicateWALEntryRequest::has_replicationclusterid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ReplicateWALEntryRequest::set_has_replicationclusterid() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReplicateWALEntryRequest::clear_has_replicationclusterid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ReplicateWALEntryRequest::clear_replicationclusterid() { + if (replicationclusterid_ != &::google::protobuf::internal::kEmptyString) { + replicationclusterid_->clear(); + } + clear_has_replicationclusterid(); +} +inline const ::std::string& ReplicateWALEntryRequest::replicationclusterid() const { + return *replicationclusterid_; +} +inline void ReplicateWALEntryRequest::set_replicationclusterid(const ::std::string& value) { + set_has_replicationclusterid(); + if (replicationclusterid_ == &::google::protobuf::internal::kEmptyString) { + replicationclusterid_ = new ::std::string; + } + replicationclusterid_->assign(value); +} +inline void ReplicateWALEntryRequest::set_replicationclusterid(const char* value) { + set_has_replicationclusterid(); + if (replicationclusterid_ == &::google::protobuf::internal::kEmptyString) { + replicationclusterid_ = new ::std::string; + } + replicationclusterid_->assign(value); +} +inline void ReplicateWALEntryRequest::set_replicationclusterid(const char* value, size_t size) { + set_has_replicationclusterid(); + if (replicationclusterid_ == &::google::protobuf::internal::kEmptyString) { + replicationclusterid_ = new ::std::string; + } + replicationclusterid_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReplicateWALEntryRequest::mutable_replicationclusterid() { + set_has_replicationclusterid(); + if (replicationclusterid_ == &::google::protobuf::internal::kEmptyString) { + replicationclusterid_ = new ::std::string; + } + return replicationclusterid_; +} +inline ::std::string* ReplicateWALEntryRequest::release_replicationclusterid() { + clear_has_replicationclusterid(); + if (replicationclusterid_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = replicationclusterid_; + replicationclusterid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReplicateWALEntryRequest::set_allocated_replicationclusterid(::std::string* replicationclusterid) { + if (replicationclusterid_ != &::google::protobuf::internal::kEmptyString) { + delete replicationclusterid_; + } + if (replicationclusterid) { + set_has_replicationclusterid(); + replicationclusterid_ = replicationclusterid; + } else { + clear_has_replicationclusterid(); + replicationclusterid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string sourceBaseNamespaceDirPath = 3; +inline bool ReplicateWALEntryRequest::has_sourcebasenamespacedirpath() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ReplicateWALEntryRequest::set_has_sourcebasenamespacedirpath() { + _has_bits_[0] |= 0x00000004u; +} +inline void ReplicateWALEntryRequest::clear_has_sourcebasenamespacedirpath() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ReplicateWALEntryRequest::clear_sourcebasenamespacedirpath() { + if (sourcebasenamespacedirpath_ != &::google::protobuf::internal::kEmptyString) { + sourcebasenamespacedirpath_->clear(); + } + clear_has_sourcebasenamespacedirpath(); +} +inline const ::std::string& ReplicateWALEntryRequest::sourcebasenamespacedirpath() const { + return *sourcebasenamespacedirpath_; +} +inline void ReplicateWALEntryRequest::set_sourcebasenamespacedirpath(const ::std::string& value) { + set_has_sourcebasenamespacedirpath(); + if (sourcebasenamespacedirpath_ == &::google::protobuf::internal::kEmptyString) { + sourcebasenamespacedirpath_ = new ::std::string; + } + sourcebasenamespacedirpath_->assign(value); +} +inline void ReplicateWALEntryRequest::set_sourcebasenamespacedirpath(const char* value) { + set_has_sourcebasenamespacedirpath(); + if (sourcebasenamespacedirpath_ == &::google::protobuf::internal::kEmptyString) { + sourcebasenamespacedirpath_ = new ::std::string; + } + sourcebasenamespacedirpath_->assign(value); +} +inline void ReplicateWALEntryRequest::set_sourcebasenamespacedirpath(const char* value, size_t size) { + set_has_sourcebasenamespacedirpath(); + if (sourcebasenamespacedirpath_ == &::google::protobuf::internal::kEmptyString) { + sourcebasenamespacedirpath_ = new ::std::string; + } + sourcebasenamespacedirpath_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReplicateWALEntryRequest::mutable_sourcebasenamespacedirpath() { + set_has_sourcebasenamespacedirpath(); + if (sourcebasenamespacedirpath_ == &::google::protobuf::internal::kEmptyString) { + sourcebasenamespacedirpath_ = new ::std::string; + } + return sourcebasenamespacedirpath_; +} +inline ::std::string* ReplicateWALEntryRequest::release_sourcebasenamespacedirpath() { + clear_has_sourcebasenamespacedirpath(); + if (sourcebasenamespacedirpath_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = sourcebasenamespacedirpath_; + sourcebasenamespacedirpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReplicateWALEntryRequest::set_allocated_sourcebasenamespacedirpath(::std::string* sourcebasenamespacedirpath) { + if (sourcebasenamespacedirpath_ != &::google::protobuf::internal::kEmptyString) { + delete sourcebasenamespacedirpath_; + } + if (sourcebasenamespacedirpath) { + set_has_sourcebasenamespacedirpath(); + sourcebasenamespacedirpath_ = sourcebasenamespacedirpath; + } else { + clear_has_sourcebasenamespacedirpath(); + sourcebasenamespacedirpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string sourceHFileArchiveDirPath = 4; +inline bool ReplicateWALEntryRequest::has_sourcehfilearchivedirpath() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ReplicateWALEntryRequest::set_has_sourcehfilearchivedirpath() { + _has_bits_[0] |= 0x00000008u; +} +inline void ReplicateWALEntryRequest::clear_has_sourcehfilearchivedirpath() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ReplicateWALEntryRequest::clear_sourcehfilearchivedirpath() { + if (sourcehfilearchivedirpath_ != &::google::protobuf::internal::kEmptyString) { + sourcehfilearchivedirpath_->clear(); + } + clear_has_sourcehfilearchivedirpath(); +} +inline const ::std::string& ReplicateWALEntryRequest::sourcehfilearchivedirpath() const { + return *sourcehfilearchivedirpath_; +} +inline void ReplicateWALEntryRequest::set_sourcehfilearchivedirpath(const ::std::string& value) { + set_has_sourcehfilearchivedirpath(); + if (sourcehfilearchivedirpath_ == &::google::protobuf::internal::kEmptyString) { + sourcehfilearchivedirpath_ = new ::std::string; + } + sourcehfilearchivedirpath_->assign(value); +} +inline void ReplicateWALEntryRequest::set_sourcehfilearchivedirpath(const char* value) { + set_has_sourcehfilearchivedirpath(); + if (sourcehfilearchivedirpath_ == &::google::protobuf::internal::kEmptyString) { + sourcehfilearchivedirpath_ = new ::std::string; + } + sourcehfilearchivedirpath_->assign(value); +} +inline void ReplicateWALEntryRequest::set_sourcehfilearchivedirpath(const char* value, size_t size) { + set_has_sourcehfilearchivedirpath(); + if (sourcehfilearchivedirpath_ == &::google::protobuf::internal::kEmptyString) { + sourcehfilearchivedirpath_ = new ::std::string; + } + sourcehfilearchivedirpath_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReplicateWALEntryRequest::mutable_sourcehfilearchivedirpath() { + set_has_sourcehfilearchivedirpath(); + if (sourcehfilearchivedirpath_ == &::google::protobuf::internal::kEmptyString) { + sourcehfilearchivedirpath_ = new ::std::string; + } + return sourcehfilearchivedirpath_; +} +inline ::std::string* ReplicateWALEntryRequest::release_sourcehfilearchivedirpath() { + clear_has_sourcehfilearchivedirpath(); + if (sourcehfilearchivedirpath_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = sourcehfilearchivedirpath_; + sourcehfilearchivedirpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReplicateWALEntryRequest::set_allocated_sourcehfilearchivedirpath(::std::string* sourcehfilearchivedirpath) { + if (sourcehfilearchivedirpath_ != &::google::protobuf::internal::kEmptyString) { + delete sourcehfilearchivedirpath_; + } + if (sourcehfilearchivedirpath) { + set_has_sourcehfilearchivedirpath(); + sourcehfilearchivedirpath_ = sourcehfilearchivedirpath; + } else { + clear_has_sourcehfilearchivedirpath(); + sourcehfilearchivedirpath_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ReplicateWALEntryResponse + +// ------------------------------------------------------------------- + +// RollWALWriterRequest + +// ------------------------------------------------------------------- + +// RollWALWriterResponse + +// repeated bytes region_to_flush = 1; +inline int RollWALWriterResponse::region_to_flush_size() const { + return region_to_flush_.size(); +} +inline void RollWALWriterResponse::clear_region_to_flush() { + region_to_flush_.Clear(); +} +inline const ::std::string& RollWALWriterResponse::region_to_flush(int index) const { + return region_to_flush_.Get(index); +} +inline ::std::string* RollWALWriterResponse::mutable_region_to_flush(int index) { + return region_to_flush_.Mutable(index); +} +inline void RollWALWriterResponse::set_region_to_flush(int index, const ::std::string& value) { + region_to_flush_.Mutable(index)->assign(value); +} +inline void RollWALWriterResponse::set_region_to_flush(int index, const char* value) { + region_to_flush_.Mutable(index)->assign(value); +} +inline void RollWALWriterResponse::set_region_to_flush(int index, const void* value, size_t size) { + region_to_flush_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* RollWALWriterResponse::add_region_to_flush() { + return region_to_flush_.Add(); +} +inline void RollWALWriterResponse::add_region_to_flush(const ::std::string& value) { + region_to_flush_.Add()->assign(value); +} +inline void RollWALWriterResponse::add_region_to_flush(const char* value) { + region_to_flush_.Add()->assign(value); +} +inline void RollWALWriterResponse::add_region_to_flush(const void* value, size_t size) { + region_to_flush_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +RollWALWriterResponse::region_to_flush() const { + return region_to_flush_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +RollWALWriterResponse::mutable_region_to_flush() { + return ®ion_to_flush_; +} + +// ------------------------------------------------------------------- + +// StopServerRequest + +// required string reason = 1; +inline bool StopServerRequest::has_reason() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StopServerRequest::set_has_reason() { + _has_bits_[0] |= 0x00000001u; +} +inline void StopServerRequest::clear_has_reason() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StopServerRequest::clear_reason() { + if (reason_ != &::google::protobuf::internal::kEmptyString) { + reason_->clear(); + } + clear_has_reason(); +} +inline const ::std::string& StopServerRequest::reason() const { + return *reason_; +} +inline void StopServerRequest::set_reason(const ::std::string& value) { + set_has_reason(); + if (reason_ == &::google::protobuf::internal::kEmptyString) { + reason_ = new ::std::string; + } + reason_->assign(value); +} +inline void StopServerRequest::set_reason(const char* value) { + set_has_reason(); + if (reason_ == &::google::protobuf::internal::kEmptyString) { + reason_ = new ::std::string; + } + reason_->assign(value); +} +inline void StopServerRequest::set_reason(const char* value, size_t size) { + set_has_reason(); + if (reason_ == &::google::protobuf::internal::kEmptyString) { + reason_ = new ::std::string; + } + reason_->assign(reinterpret_cast(value), size); +} +inline ::std::string* StopServerRequest::mutable_reason() { + set_has_reason(); + if (reason_ == &::google::protobuf::internal::kEmptyString) { + reason_ = new ::std::string; + } + return reason_; +} +inline ::std::string* StopServerRequest::release_reason() { + clear_has_reason(); + if (reason_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = reason_; + reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void StopServerRequest::set_allocated_reason(::std::string* reason) { + if (reason_ != &::google::protobuf::internal::kEmptyString) { + delete reason_; + } + if (reason) { + set_has_reason(); + reason_ = reason; + } else { + clear_has_reason(); + reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// StopServerResponse + +// ------------------------------------------------------------------- + +// GetServerInfoRequest + +// ------------------------------------------------------------------- + +// ServerInfo + +// required .hbase.pb.ServerName server_name = 1; +inline bool ServerInfo::has_server_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ServerInfo::set_has_server_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ServerInfo::clear_has_server_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ServerInfo::clear_server_name() { + if (server_name_ != NULL) server_name_->::hbase::pb::ServerName::Clear(); + clear_has_server_name(); +} +inline const ::hbase::pb::ServerName& ServerInfo::server_name() const { + return server_name_ != NULL ? *server_name_ : *default_instance_->server_name_; +} +inline ::hbase::pb::ServerName* ServerInfo::mutable_server_name() { + set_has_server_name(); + if (server_name_ == NULL) server_name_ = new ::hbase::pb::ServerName; + return server_name_; +} +inline ::hbase::pb::ServerName* ServerInfo::release_server_name() { + clear_has_server_name(); + ::hbase::pb::ServerName* temp = server_name_; + server_name_ = NULL; + return temp; +} +inline void ServerInfo::set_allocated_server_name(::hbase::pb::ServerName* server_name) { + delete server_name_; + server_name_ = server_name; + if (server_name) { + set_has_server_name(); + } else { + clear_has_server_name(); + } +} + +// optional uint32 webui_port = 2; +inline bool ServerInfo::has_webui_port() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ServerInfo::set_has_webui_port() { + _has_bits_[0] |= 0x00000002u; +} +inline void ServerInfo::clear_has_webui_port() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ServerInfo::clear_webui_port() { + webui_port_ = 0u; + clear_has_webui_port(); +} +inline ::google::protobuf::uint32 ServerInfo::webui_port() const { + return webui_port_; +} +inline void ServerInfo::set_webui_port(::google::protobuf::uint32 value) { + set_has_webui_port(); + webui_port_ = value; +} + +// ------------------------------------------------------------------- + +// GetServerInfoResponse + +// required .hbase.pb.ServerInfo server_info = 1; +inline bool GetServerInfoResponse::has_server_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetServerInfoResponse::set_has_server_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetServerInfoResponse::clear_has_server_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetServerInfoResponse::clear_server_info() { + if (server_info_ != NULL) server_info_->::hbase::pb::ServerInfo::Clear(); + clear_has_server_info(); +} +inline const ::hbase::pb::ServerInfo& GetServerInfoResponse::server_info() const { + return server_info_ != NULL ? *server_info_ : *default_instance_->server_info_; +} +inline ::hbase::pb::ServerInfo* GetServerInfoResponse::mutable_server_info() { + set_has_server_info(); + if (server_info_ == NULL) server_info_ = new ::hbase::pb::ServerInfo; + return server_info_; +} +inline ::hbase::pb::ServerInfo* GetServerInfoResponse::release_server_info() { + clear_has_server_info(); + ::hbase::pb::ServerInfo* temp = server_info_; + server_info_ = NULL; + return temp; +} +inline void GetServerInfoResponse::set_allocated_server_info(::hbase::pb::ServerInfo* server_info) { + delete server_info_; + server_info_ = server_info; + if (server_info) { + set_has_server_info(); + } else { + clear_has_server_info(); + } +} + +// ------------------------------------------------------------------- + +// UpdateConfigurationRequest + +// ------------------------------------------------------------------- + +// UpdateConfigurationResponse + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::GetRegionInfoResponse_CompactionState>() { + return ::hbase::pb::GetRegionInfoResponse_CompactionState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::OpenRegionResponse_RegionOpeningState>() { + return ::hbase::pb::OpenRegionResponse_RegionOpeningState_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Admin_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Aggregate.pb.cc b/hbase-native-client/src/rpc/generated/Aggregate.pb.cc new file mode 100644 index 0000000..4a03433 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Aggregate.pb.cc @@ -0,0 +1,726 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Aggregate.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Aggregate.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* AggregateRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AggregateRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* AggregateResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AggregateResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Aggregate_2eproto() { + protobuf_AddDesc_Aggregate_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Aggregate.proto"); + GOOGLE_CHECK(file != NULL); + AggregateRequest_descriptor_ = file->message_type(0); + static const int AggregateRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateRequest, interpreter_class_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateRequest, scan_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateRequest, interpreter_specific_bytes_), + }; + AggregateRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AggregateRequest_descriptor_, + AggregateRequest::default_instance_, + AggregateRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AggregateRequest)); + AggregateResponse_descriptor_ = file->message_type(1); + static const int AggregateResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateResponse, first_part_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateResponse, second_part_), + }; + AggregateResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AggregateResponse_descriptor_, + AggregateResponse::default_instance_, + AggregateResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AggregateResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AggregateResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Aggregate_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AggregateRequest_descriptor_, &AggregateRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AggregateResponse_descriptor_, &AggregateResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Aggregate_2eproto() { + delete AggregateRequest::default_instance_; + delete AggregateRequest_reflection_; + delete AggregateResponse::default_instance_; + delete AggregateResponse_reflection_; +} + +void protobuf_AddDesc_Aggregate_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_Client_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\017Aggregate.proto\022\010hbase.pb\032\014Client.prot" + "o\"t\n\020AggregateRequest\022\036\n\026interpreter_cla" + "ss_name\030\001 \002(\t\022\034\n\004scan\030\002 \002(\0132\016.hbase.pb.S" + "can\022\"\n\032interpreter_specific_bytes\030\003 \001(\014\"" + "<\n\021AggregateResponse\022\022\n\nfirst_part\030\001 \003(\014" + "\022\023\n\013second_part\030\002 \001(\0142\355\003\n\020AggregateServi" + "ce\022A\n\006GetMax\022\032.hbase.pb.AggregateRequest" + "\032\033.hbase.pb.AggregateResponse\022A\n\006GetMin\022" + "\032.hbase.pb.AggregateRequest\032\033.hbase.pb.A" + "ggregateResponse\022A\n\006GetSum\022\032.hbase.pb.Ag" + "gregateRequest\032\033.hbase.pb.AggregateRespo" + "nse\022D\n\tGetRowNum\022\032.hbase.pb.AggregateReq" + "uest\032\033.hbase.pb.AggregateResponse\022A\n\006Get" + "Avg\022\032.hbase.pb.AggregateRequest\032\033.hbase." + "pb.AggregateResponse\022A\n\006GetStd\022\032.hbase.p" + "b.AggregateRequest\032\033.hbase.pb.AggregateR" + "esponse\022D\n\tGetMedian\022\032.hbase.pb.Aggregat" + "eRequest\032\033.hbase.pb.AggregateResponseBE\n" + "*org.apache.hadoop.hbase.protobuf.genera" + "tedB\017AggregateProtosH\001\210\001\001\240\001\001", 788); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Aggregate.proto", &protobuf_RegisterTypes); + AggregateRequest::default_instance_ = new AggregateRequest(); + AggregateResponse::default_instance_ = new AggregateResponse(); + AggregateRequest::default_instance_->InitAsDefaultInstance(); + AggregateResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Aggregate_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Aggregate_2eproto { + StaticDescriptorInitializer_Aggregate_2eproto() { + protobuf_AddDesc_Aggregate_2eproto(); + } +} static_descriptor_initializer_Aggregate_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int AggregateRequest::kInterpreterClassNameFieldNumber; +const int AggregateRequest::kScanFieldNumber; +const int AggregateRequest::kInterpreterSpecificBytesFieldNumber; +#endif // !_MSC_VER + +AggregateRequest::AggregateRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AggregateRequest::InitAsDefaultInstance() { + scan_ = const_cast< ::hbase::pb::Scan*>(&::hbase::pb::Scan::default_instance()); +} + +AggregateRequest::AggregateRequest(const AggregateRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AggregateRequest::SharedCtor() { + _cached_size_ = 0; + interpreter_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + scan_ = NULL; + interpreter_specific_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AggregateRequest::~AggregateRequest() { + SharedDtor(); +} + +void AggregateRequest::SharedDtor() { + if (interpreter_class_name_ != &::google::protobuf::internal::kEmptyString) { + delete interpreter_class_name_; + } + if (interpreter_specific_bytes_ != &::google::protobuf::internal::kEmptyString) { + delete interpreter_specific_bytes_; + } + if (this != default_instance_) { + delete scan_; + } +} + +void AggregateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AggregateRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AggregateRequest_descriptor_; +} + +const AggregateRequest& AggregateRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Aggregate_2eproto(); + return *default_instance_; +} + +AggregateRequest* AggregateRequest::default_instance_ = NULL; + +AggregateRequest* AggregateRequest::New() const { + return new AggregateRequest; +} + +void AggregateRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_interpreter_class_name()) { + if (interpreter_class_name_ != &::google::protobuf::internal::kEmptyString) { + interpreter_class_name_->clear(); + } + } + if (has_scan()) { + if (scan_ != NULL) scan_->::hbase::pb::Scan::Clear(); + } + if (has_interpreter_specific_bytes()) { + if (interpreter_specific_bytes_ != &::google::protobuf::internal::kEmptyString) { + interpreter_specific_bytes_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AggregateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string interpreter_class_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_interpreter_class_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->interpreter_class_name().data(), this->interpreter_class_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_scan; + break; + } + + // required .hbase.pb.Scan scan = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_scan: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_scan())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_interpreter_specific_bytes; + break; + } + + // optional bytes interpreter_specific_bytes = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_interpreter_specific_bytes: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_interpreter_specific_bytes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AggregateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string interpreter_class_name = 1; + if (has_interpreter_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->interpreter_class_name().data(), this->interpreter_class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->interpreter_class_name(), output); + } + + // required .hbase.pb.Scan scan = 2; + if (has_scan()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->scan(), output); + } + + // optional bytes interpreter_specific_bytes = 3; + if (has_interpreter_specific_bytes()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->interpreter_specific_bytes(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AggregateRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string interpreter_class_name = 1; + if (has_interpreter_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->interpreter_class_name().data(), this->interpreter_class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->interpreter_class_name(), target); + } + + // required .hbase.pb.Scan scan = 2; + if (has_scan()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->scan(), target); + } + + // optional bytes interpreter_specific_bytes = 3; + if (has_interpreter_specific_bytes()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->interpreter_specific_bytes(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AggregateRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string interpreter_class_name = 1; + if (has_interpreter_class_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->interpreter_class_name()); + } + + // required .hbase.pb.Scan scan = 2; + if (has_scan()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->scan()); + } + + // optional bytes interpreter_specific_bytes = 3; + if (has_interpreter_specific_bytes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->interpreter_specific_bytes()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AggregateRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AggregateRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AggregateRequest::MergeFrom(const AggregateRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_interpreter_class_name()) { + set_interpreter_class_name(from.interpreter_class_name()); + } + if (from.has_scan()) { + mutable_scan()->::hbase::pb::Scan::MergeFrom(from.scan()); + } + if (from.has_interpreter_specific_bytes()) { + set_interpreter_specific_bytes(from.interpreter_specific_bytes()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AggregateRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AggregateRequest::CopyFrom(const AggregateRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AggregateRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_scan()) { + if (!this->scan().IsInitialized()) return false; + } + return true; +} + +void AggregateRequest::Swap(AggregateRequest* other) { + if (other != this) { + std::swap(interpreter_class_name_, other->interpreter_class_name_); + std::swap(scan_, other->scan_); + std::swap(interpreter_specific_bytes_, other->interpreter_specific_bytes_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AggregateRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AggregateRequest_descriptor_; + metadata.reflection = AggregateRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AggregateResponse::kFirstPartFieldNumber; +const int AggregateResponse::kSecondPartFieldNumber; +#endif // !_MSC_VER + +AggregateResponse::AggregateResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AggregateResponse::InitAsDefaultInstance() { +} + +AggregateResponse::AggregateResponse(const AggregateResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AggregateResponse::SharedCtor() { + _cached_size_ = 0; + second_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AggregateResponse::~AggregateResponse() { + SharedDtor(); +} + +void AggregateResponse::SharedDtor() { + if (second_part_ != &::google::protobuf::internal::kEmptyString) { + delete second_part_; + } + if (this != default_instance_) { + } +} + +void AggregateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AggregateResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AggregateResponse_descriptor_; +} + +const AggregateResponse& AggregateResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Aggregate_2eproto(); + return *default_instance_; +} + +AggregateResponse* AggregateResponse::default_instance_ = NULL; + +AggregateResponse* AggregateResponse::New() const { + return new AggregateResponse; +} + +void AggregateResponse::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (has_second_part()) { + if (second_part_ != &::google::protobuf::internal::kEmptyString) { + second_part_->clear(); + } + } + } + first_part_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AggregateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes first_part = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_first_part: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_first_part())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_first_part; + if (input->ExpectTag(18)) goto parse_second_part; + break; + } + + // optional bytes second_part = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_second_part: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_second_part())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AggregateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated bytes first_part = 1; + for (int i = 0; i < this->first_part_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->first_part(i), output); + } + + // optional bytes second_part = 2; + if (has_second_part()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->second_part(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AggregateResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated bytes first_part = 1; + for (int i = 0; i < this->first_part_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->first_part(i), target); + } + + // optional bytes second_part = 2; + if (has_second_part()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->second_part(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AggregateResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional bytes second_part = 2; + if (has_second_part()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->second_part()); + } + + } + // repeated bytes first_part = 1; + total_size += 1 * this->first_part_size(); + for (int i = 0; i < this->first_part_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->first_part(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AggregateResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AggregateResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AggregateResponse::MergeFrom(const AggregateResponse& from) { + GOOGLE_CHECK_NE(&from, this); + first_part_.MergeFrom(from.first_part_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_second_part()) { + set_second_part(from.second_part()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AggregateResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AggregateResponse::CopyFrom(const AggregateResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AggregateResponse::IsInitialized() const { + + return true; +} + +void AggregateResponse::Swap(AggregateResponse* other) { + if (other != this) { + first_part_.Swap(&other->first_part_); + std::swap(second_part_, other->second_part_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AggregateResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AggregateResponse_descriptor_; + metadata.reflection = AggregateResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Aggregate.pb.h b/hbase-native-client/src/rpc/generated/Aggregate.pb.h new file mode 100644 index 0000000..f665b18 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Aggregate.pb.h @@ -0,0 +1,579 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Aggregate.proto + +#ifndef PROTOBUF_Aggregate_2eproto__INCLUDED +#define PROTOBUF_Aggregate_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "Client.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Aggregate_2eproto(); +void protobuf_AssignDesc_Aggregate_2eproto(); +void protobuf_ShutdownFile_Aggregate_2eproto(); + +class AggregateRequest; +class AggregateResponse; + +// =================================================================== + +class AggregateRequest : public ::google::protobuf::Message { + public: + AggregateRequest(); + virtual ~AggregateRequest(); + + AggregateRequest(const AggregateRequest& from); + + inline AggregateRequest& operator=(const AggregateRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AggregateRequest& default_instance(); + + void Swap(AggregateRequest* other); + + // implements Message ---------------------------------------------- + + AggregateRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AggregateRequest& from); + void MergeFrom(const AggregateRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string interpreter_class_name = 1; + inline bool has_interpreter_class_name() const; + inline void clear_interpreter_class_name(); + static const int kInterpreterClassNameFieldNumber = 1; + inline const ::std::string& interpreter_class_name() const; + inline void set_interpreter_class_name(const ::std::string& value); + inline void set_interpreter_class_name(const char* value); + inline void set_interpreter_class_name(const char* value, size_t size); + inline ::std::string* mutable_interpreter_class_name(); + inline ::std::string* release_interpreter_class_name(); + inline void set_allocated_interpreter_class_name(::std::string* interpreter_class_name); + + // required .hbase.pb.Scan scan = 2; + inline bool has_scan() const; + inline void clear_scan(); + static const int kScanFieldNumber = 2; + inline const ::hbase::pb::Scan& scan() const; + inline ::hbase::pb::Scan* mutable_scan(); + inline ::hbase::pb::Scan* release_scan(); + inline void set_allocated_scan(::hbase::pb::Scan* scan); + + // optional bytes interpreter_specific_bytes = 3; + inline bool has_interpreter_specific_bytes() const; + inline void clear_interpreter_specific_bytes(); + static const int kInterpreterSpecificBytesFieldNumber = 3; + inline const ::std::string& interpreter_specific_bytes() const; + inline void set_interpreter_specific_bytes(const ::std::string& value); + inline void set_interpreter_specific_bytes(const char* value); + inline void set_interpreter_specific_bytes(const void* value, size_t size); + inline ::std::string* mutable_interpreter_specific_bytes(); + inline ::std::string* release_interpreter_specific_bytes(); + inline void set_allocated_interpreter_specific_bytes(::std::string* interpreter_specific_bytes); + + // @@protoc_insertion_point(class_scope:hbase.pb.AggregateRequest) + private: + inline void set_has_interpreter_class_name(); + inline void clear_has_interpreter_class_name(); + inline void set_has_scan(); + inline void clear_has_scan(); + inline void set_has_interpreter_specific_bytes(); + inline void clear_has_interpreter_specific_bytes(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* interpreter_class_name_; + ::hbase::pb::Scan* scan_; + ::std::string* interpreter_specific_bytes_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Aggregate_2eproto(); + friend void protobuf_AssignDesc_Aggregate_2eproto(); + friend void protobuf_ShutdownFile_Aggregate_2eproto(); + + void InitAsDefaultInstance(); + static AggregateRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class AggregateResponse : public ::google::protobuf::Message { + public: + AggregateResponse(); + virtual ~AggregateResponse(); + + AggregateResponse(const AggregateResponse& from); + + inline AggregateResponse& operator=(const AggregateResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AggregateResponse& default_instance(); + + void Swap(AggregateResponse* other); + + // implements Message ---------------------------------------------- + + AggregateResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AggregateResponse& from); + void MergeFrom(const AggregateResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes first_part = 1; + inline int first_part_size() const; + inline void clear_first_part(); + static const int kFirstPartFieldNumber = 1; + inline const ::std::string& first_part(int index) const; + inline ::std::string* mutable_first_part(int index); + inline void set_first_part(int index, const ::std::string& value); + inline void set_first_part(int index, const char* value); + inline void set_first_part(int index, const void* value, size_t size); + inline ::std::string* add_first_part(); + inline void add_first_part(const ::std::string& value); + inline void add_first_part(const char* value); + inline void add_first_part(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& first_part() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_first_part(); + + // optional bytes second_part = 2; + inline bool has_second_part() const; + inline void clear_second_part(); + static const int kSecondPartFieldNumber = 2; + inline const ::std::string& second_part() const; + inline void set_second_part(const ::std::string& value); + inline void set_second_part(const char* value); + inline void set_second_part(const void* value, size_t size); + inline ::std::string* mutable_second_part(); + inline ::std::string* release_second_part(); + inline void set_allocated_second_part(::std::string* second_part); + + // @@protoc_insertion_point(class_scope:hbase.pb.AggregateResponse) + private: + inline void set_has_second_part(); + inline void clear_has_second_part(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> first_part_; + ::std::string* second_part_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Aggregate_2eproto(); + friend void protobuf_AssignDesc_Aggregate_2eproto(); + friend void protobuf_ShutdownFile_Aggregate_2eproto(); + + void InitAsDefaultInstance(); + static AggregateResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// AggregateRequest + +// required string interpreter_class_name = 1; +inline bool AggregateRequest::has_interpreter_class_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AggregateRequest::set_has_interpreter_class_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void AggregateRequest::clear_has_interpreter_class_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AggregateRequest::clear_interpreter_class_name() { + if (interpreter_class_name_ != &::google::protobuf::internal::kEmptyString) { + interpreter_class_name_->clear(); + } + clear_has_interpreter_class_name(); +} +inline const ::std::string& AggregateRequest::interpreter_class_name() const { + return *interpreter_class_name_; +} +inline void AggregateRequest::set_interpreter_class_name(const ::std::string& value) { + set_has_interpreter_class_name(); + if (interpreter_class_name_ == &::google::protobuf::internal::kEmptyString) { + interpreter_class_name_ = new ::std::string; + } + interpreter_class_name_->assign(value); +} +inline void AggregateRequest::set_interpreter_class_name(const char* value) { + set_has_interpreter_class_name(); + if (interpreter_class_name_ == &::google::protobuf::internal::kEmptyString) { + interpreter_class_name_ = new ::std::string; + } + interpreter_class_name_->assign(value); +} +inline void AggregateRequest::set_interpreter_class_name(const char* value, size_t size) { + set_has_interpreter_class_name(); + if (interpreter_class_name_ == &::google::protobuf::internal::kEmptyString) { + interpreter_class_name_ = new ::std::string; + } + interpreter_class_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AggregateRequest::mutable_interpreter_class_name() { + set_has_interpreter_class_name(); + if (interpreter_class_name_ == &::google::protobuf::internal::kEmptyString) { + interpreter_class_name_ = new ::std::string; + } + return interpreter_class_name_; +} +inline ::std::string* AggregateRequest::release_interpreter_class_name() { + clear_has_interpreter_class_name(); + if (interpreter_class_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = interpreter_class_name_; + interpreter_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void AggregateRequest::set_allocated_interpreter_class_name(::std::string* interpreter_class_name) { + if (interpreter_class_name_ != &::google::protobuf::internal::kEmptyString) { + delete interpreter_class_name_; + } + if (interpreter_class_name) { + set_has_interpreter_class_name(); + interpreter_class_name_ = interpreter_class_name; + } else { + clear_has_interpreter_class_name(); + interpreter_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required .hbase.pb.Scan scan = 2; +inline bool AggregateRequest::has_scan() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AggregateRequest::set_has_scan() { + _has_bits_[0] |= 0x00000002u; +} +inline void AggregateRequest::clear_has_scan() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AggregateRequest::clear_scan() { + if (scan_ != NULL) scan_->::hbase::pb::Scan::Clear(); + clear_has_scan(); +} +inline const ::hbase::pb::Scan& AggregateRequest::scan() const { + return scan_ != NULL ? *scan_ : *default_instance_->scan_; +} +inline ::hbase::pb::Scan* AggregateRequest::mutable_scan() { + set_has_scan(); + if (scan_ == NULL) scan_ = new ::hbase::pb::Scan; + return scan_; +} +inline ::hbase::pb::Scan* AggregateRequest::release_scan() { + clear_has_scan(); + ::hbase::pb::Scan* temp = scan_; + scan_ = NULL; + return temp; +} +inline void AggregateRequest::set_allocated_scan(::hbase::pb::Scan* scan) { + delete scan_; + scan_ = scan; + if (scan) { + set_has_scan(); + } else { + clear_has_scan(); + } +} + +// optional bytes interpreter_specific_bytes = 3; +inline bool AggregateRequest::has_interpreter_specific_bytes() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AggregateRequest::set_has_interpreter_specific_bytes() { + _has_bits_[0] |= 0x00000004u; +} +inline void AggregateRequest::clear_has_interpreter_specific_bytes() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AggregateRequest::clear_interpreter_specific_bytes() { + if (interpreter_specific_bytes_ != &::google::protobuf::internal::kEmptyString) { + interpreter_specific_bytes_->clear(); + } + clear_has_interpreter_specific_bytes(); +} +inline const ::std::string& AggregateRequest::interpreter_specific_bytes() const { + return *interpreter_specific_bytes_; +} +inline void AggregateRequest::set_interpreter_specific_bytes(const ::std::string& value) { + set_has_interpreter_specific_bytes(); + if (interpreter_specific_bytes_ == &::google::protobuf::internal::kEmptyString) { + interpreter_specific_bytes_ = new ::std::string; + } + interpreter_specific_bytes_->assign(value); +} +inline void AggregateRequest::set_interpreter_specific_bytes(const char* value) { + set_has_interpreter_specific_bytes(); + if (interpreter_specific_bytes_ == &::google::protobuf::internal::kEmptyString) { + interpreter_specific_bytes_ = new ::std::string; + } + interpreter_specific_bytes_->assign(value); +} +inline void AggregateRequest::set_interpreter_specific_bytes(const void* value, size_t size) { + set_has_interpreter_specific_bytes(); + if (interpreter_specific_bytes_ == &::google::protobuf::internal::kEmptyString) { + interpreter_specific_bytes_ = new ::std::string; + } + interpreter_specific_bytes_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AggregateRequest::mutable_interpreter_specific_bytes() { + set_has_interpreter_specific_bytes(); + if (interpreter_specific_bytes_ == &::google::protobuf::internal::kEmptyString) { + interpreter_specific_bytes_ = new ::std::string; + } + return interpreter_specific_bytes_; +} +inline ::std::string* AggregateRequest::release_interpreter_specific_bytes() { + clear_has_interpreter_specific_bytes(); + if (interpreter_specific_bytes_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = interpreter_specific_bytes_; + interpreter_specific_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void AggregateRequest::set_allocated_interpreter_specific_bytes(::std::string* interpreter_specific_bytes) { + if (interpreter_specific_bytes_ != &::google::protobuf::internal::kEmptyString) { + delete interpreter_specific_bytes_; + } + if (interpreter_specific_bytes) { + set_has_interpreter_specific_bytes(); + interpreter_specific_bytes_ = interpreter_specific_bytes; + } else { + clear_has_interpreter_specific_bytes(); + interpreter_specific_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// AggregateResponse + +// repeated bytes first_part = 1; +inline int AggregateResponse::first_part_size() const { + return first_part_.size(); +} +inline void AggregateResponse::clear_first_part() { + first_part_.Clear(); +} +inline const ::std::string& AggregateResponse::first_part(int index) const { + return first_part_.Get(index); +} +inline ::std::string* AggregateResponse::mutable_first_part(int index) { + return first_part_.Mutable(index); +} +inline void AggregateResponse::set_first_part(int index, const ::std::string& value) { + first_part_.Mutable(index)->assign(value); +} +inline void AggregateResponse::set_first_part(int index, const char* value) { + first_part_.Mutable(index)->assign(value); +} +inline void AggregateResponse::set_first_part(int index, const void* value, size_t size) { + first_part_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* AggregateResponse::add_first_part() { + return first_part_.Add(); +} +inline void AggregateResponse::add_first_part(const ::std::string& value) { + first_part_.Add()->assign(value); +} +inline void AggregateResponse::add_first_part(const char* value) { + first_part_.Add()->assign(value); +} +inline void AggregateResponse::add_first_part(const void* value, size_t size) { + first_part_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +AggregateResponse::first_part() const { + return first_part_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +AggregateResponse::mutable_first_part() { + return &first_part_; +} + +// optional bytes second_part = 2; +inline bool AggregateResponse::has_second_part() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AggregateResponse::set_has_second_part() { + _has_bits_[0] |= 0x00000002u; +} +inline void AggregateResponse::clear_has_second_part() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AggregateResponse::clear_second_part() { + if (second_part_ != &::google::protobuf::internal::kEmptyString) { + second_part_->clear(); + } + clear_has_second_part(); +} +inline const ::std::string& AggregateResponse::second_part() const { + return *second_part_; +} +inline void AggregateResponse::set_second_part(const ::std::string& value) { + set_has_second_part(); + if (second_part_ == &::google::protobuf::internal::kEmptyString) { + second_part_ = new ::std::string; + } + second_part_->assign(value); +} +inline void AggregateResponse::set_second_part(const char* value) { + set_has_second_part(); + if (second_part_ == &::google::protobuf::internal::kEmptyString) { + second_part_ = new ::std::string; + } + second_part_->assign(value); +} +inline void AggregateResponse::set_second_part(const void* value, size_t size) { + set_has_second_part(); + if (second_part_ == &::google::protobuf::internal::kEmptyString) { + second_part_ = new ::std::string; + } + second_part_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AggregateResponse::mutable_second_part() { + set_has_second_part(); + if (second_part_ == &::google::protobuf::internal::kEmptyString) { + second_part_ = new ::std::string; + } + return second_part_; +} +inline ::std::string* AggregateResponse::release_second_part() { + clear_has_second_part(); + if (second_part_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = second_part_; + second_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void AggregateResponse::set_allocated_second_part(::std::string* second_part) { + if (second_part_ != &::google::protobuf::internal::kEmptyString) { + delete second_part_; + } + if (second_part) { + set_has_second_part(); + second_part_ = second_part; + } else { + clear_has_second_part(); + second_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Aggregate_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Authentication.pb.cc b/hbase-native-client/src/rpc/generated/Authentication.pb.cc new file mode 100644 index 0000000..0b59fe4 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Authentication.pb.cc @@ -0,0 +1,2134 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Authentication.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Authentication.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* AuthenticationKey_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AuthenticationKey_reflection_ = NULL; +const ::google::protobuf::Descriptor* TokenIdentifier_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TokenIdentifier_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* TokenIdentifier_Kind_descriptor_ = NULL; +const ::google::protobuf::Descriptor* Token_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Token_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetAuthenticationTokenRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetAuthenticationTokenRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetAuthenticationTokenResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetAuthenticationTokenResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* WhoAmIRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WhoAmIRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* WhoAmIResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WhoAmIResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Authentication_2eproto() { + protobuf_AddDesc_Authentication_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Authentication.proto"); + GOOGLE_CHECK(file != NULL); + AuthenticationKey_descriptor_ = file->message_type(0); + static const int AuthenticationKey_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticationKey, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticationKey, expiration_date_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticationKey, key_), + }; + AuthenticationKey_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AuthenticationKey_descriptor_, + AuthenticationKey::default_instance_, + AuthenticationKey_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticationKey, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthenticationKey, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AuthenticationKey)); + TokenIdentifier_descriptor_ = file->message_type(1); + static const int TokenIdentifier_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenIdentifier, kind_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenIdentifier, username_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenIdentifier, key_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenIdentifier, issue_date_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenIdentifier, expiration_date_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenIdentifier, sequence_number_), + }; + TokenIdentifier_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TokenIdentifier_descriptor_, + TokenIdentifier::default_instance_, + TokenIdentifier_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenIdentifier, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenIdentifier, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TokenIdentifier)); + TokenIdentifier_Kind_descriptor_ = TokenIdentifier_descriptor_->enum_type(0); + Token_descriptor_ = file->message_type(2); + static const int Token_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Token, identifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Token, password_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Token, service_), + }; + Token_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Token_descriptor_, + Token::default_instance_, + Token_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Token, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Token, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Token)); + GetAuthenticationTokenRequest_descriptor_ = file->message_type(3); + static const int GetAuthenticationTokenRequest_offsets_[1] = { + }; + GetAuthenticationTokenRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetAuthenticationTokenRequest_descriptor_, + GetAuthenticationTokenRequest::default_instance_, + GetAuthenticationTokenRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthenticationTokenRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthenticationTokenRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetAuthenticationTokenRequest)); + GetAuthenticationTokenResponse_descriptor_ = file->message_type(4); + static const int GetAuthenticationTokenResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthenticationTokenResponse, token_), + }; + GetAuthenticationTokenResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetAuthenticationTokenResponse_descriptor_, + GetAuthenticationTokenResponse::default_instance_, + GetAuthenticationTokenResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthenticationTokenResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthenticationTokenResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetAuthenticationTokenResponse)); + WhoAmIRequest_descriptor_ = file->message_type(5); + static const int WhoAmIRequest_offsets_[1] = { + }; + WhoAmIRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WhoAmIRequest_descriptor_, + WhoAmIRequest::default_instance_, + WhoAmIRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhoAmIRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhoAmIRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WhoAmIRequest)); + WhoAmIResponse_descriptor_ = file->message_type(6); + static const int WhoAmIResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhoAmIResponse, username_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhoAmIResponse, auth_method_), + }; + WhoAmIResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WhoAmIResponse_descriptor_, + WhoAmIResponse::default_instance_, + WhoAmIResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhoAmIResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhoAmIResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WhoAmIResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Authentication_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AuthenticationKey_descriptor_, &AuthenticationKey::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TokenIdentifier_descriptor_, &TokenIdentifier::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Token_descriptor_, &Token::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetAuthenticationTokenRequest_descriptor_, &GetAuthenticationTokenRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetAuthenticationTokenResponse_descriptor_, &GetAuthenticationTokenResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WhoAmIRequest_descriptor_, &WhoAmIRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WhoAmIResponse_descriptor_, &WhoAmIResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Authentication_2eproto() { + delete AuthenticationKey::default_instance_; + delete AuthenticationKey_reflection_; + delete TokenIdentifier::default_instance_; + delete TokenIdentifier_reflection_; + delete Token::default_instance_; + delete Token_reflection_; + delete GetAuthenticationTokenRequest::default_instance_; + delete GetAuthenticationTokenRequest_reflection_; + delete GetAuthenticationTokenResponse::default_instance_; + delete GetAuthenticationTokenResponse_reflection_; + delete WhoAmIRequest::default_instance_; + delete WhoAmIRequest_reflection_; + delete WhoAmIResponse::default_instance_; + delete WhoAmIResponse_reflection_; +} + +void protobuf_AddDesc_Authentication_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\024Authentication.proto\022\010hbase.pb\"E\n\021Auth" + "enticationKey\022\n\n\002id\030\001 \002(\005\022\027\n\017expiration_" + "date\030\002 \002(\003\022\013\n\003key\030\003 \002(\014\"\305\001\n\017TokenIdentif" + "ier\022,\n\004kind\030\001 \002(\0162\036.hbase.pb.TokenIdenti" + "fier.Kind\022\020\n\010username\030\002 \002(\014\022\016\n\006key_id\030\003 " + "\002(\005\022\022\n\nissue_date\030\004 \001(\003\022\027\n\017expiration_da" + "te\030\005 \001(\003\022\027\n\017sequence_number\030\006 \001(\003\"\034\n\004Kin" + "d\022\024\n\020HBASE_AUTH_TOKEN\020\000\">\n\005Token\022\022\n\niden" + "tifier\030\001 \001(\014\022\020\n\010password\030\002 \001(\014\022\017\n\007servic" + "e\030\003 \001(\014\"\037\n\035GetAuthenticationTokenRequest" + "\"@\n\036GetAuthenticationTokenResponse\022\036\n\005to" + "ken\030\001 \001(\0132\017.hbase.pb.Token\"\017\n\rWhoAmIRequ" + "est\"7\n\016WhoAmIResponse\022\020\n\010username\030\001 \001(\t\022" + "\023\n\013auth_method\030\002 \001(\t2\301\001\n\025AuthenticationS" + "ervice\022k\n\026GetAuthenticationToken\022\'.hbase" + ".pb.GetAuthenticationTokenRequest\032(.hbas" + "e.pb.GetAuthenticationTokenResponse\022;\n\006W" + "hoAmI\022\027.hbase.pb.WhoAmIRequest\032\030.hbase.p" + "b.WhoAmIResponseBJ\n*org.apache.hadoop.hb" + "ase.protobuf.generatedB\024AuthenticationPr" + "otosH\001\210\001\001\240\001\001", 812); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Authentication.proto", &protobuf_RegisterTypes); + AuthenticationKey::default_instance_ = new AuthenticationKey(); + TokenIdentifier::default_instance_ = new TokenIdentifier(); + Token::default_instance_ = new Token(); + GetAuthenticationTokenRequest::default_instance_ = new GetAuthenticationTokenRequest(); + GetAuthenticationTokenResponse::default_instance_ = new GetAuthenticationTokenResponse(); + WhoAmIRequest::default_instance_ = new WhoAmIRequest(); + WhoAmIResponse::default_instance_ = new WhoAmIResponse(); + AuthenticationKey::default_instance_->InitAsDefaultInstance(); + TokenIdentifier::default_instance_->InitAsDefaultInstance(); + Token::default_instance_->InitAsDefaultInstance(); + GetAuthenticationTokenRequest::default_instance_->InitAsDefaultInstance(); + GetAuthenticationTokenResponse::default_instance_->InitAsDefaultInstance(); + WhoAmIRequest::default_instance_->InitAsDefaultInstance(); + WhoAmIResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Authentication_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Authentication_2eproto { + StaticDescriptorInitializer_Authentication_2eproto() { + protobuf_AddDesc_Authentication_2eproto(); + } +} static_descriptor_initializer_Authentication_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int AuthenticationKey::kIdFieldNumber; +const int AuthenticationKey::kExpirationDateFieldNumber; +const int AuthenticationKey::kKeyFieldNumber; +#endif // !_MSC_VER + +AuthenticationKey::AuthenticationKey() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AuthenticationKey::InitAsDefaultInstance() { +} + +AuthenticationKey::AuthenticationKey(const AuthenticationKey& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AuthenticationKey::SharedCtor() { + _cached_size_ = 0; + id_ = 0; + expiration_date_ = GOOGLE_LONGLONG(0); + key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AuthenticationKey::~AuthenticationKey() { + SharedDtor(); +} + +void AuthenticationKey::SharedDtor() { + if (key_ != &::google::protobuf::internal::kEmptyString) { + delete key_; + } + if (this != default_instance_) { + } +} + +void AuthenticationKey::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AuthenticationKey::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AuthenticationKey_descriptor_; +} + +const AuthenticationKey& AuthenticationKey::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Authentication_2eproto(); + return *default_instance_; +} + +AuthenticationKey* AuthenticationKey::default_instance_ = NULL; + +AuthenticationKey* AuthenticationKey::New() const { + return new AuthenticationKey; +} + +void AuthenticationKey::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + id_ = 0; + expiration_date_ = GOOGLE_LONGLONG(0); + if (has_key()) { + if (key_ != &::google::protobuf::internal::kEmptyString) { + key_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AuthenticationKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required int32 id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &id_))); + set_has_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_expiration_date; + break; + } + + // required int64 expiration_date = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_expiration_date: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &expiration_date_))); + set_has_expiration_date(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_key; + break; + } + + // required bytes key = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_key: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_key())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AuthenticationKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required int32 id = 1; + if (has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output); + } + + // required int64 expiration_date = 2; + if (has_expiration_date()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->expiration_date(), output); + } + + // required bytes key = 3; + if (has_key()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->key(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AuthenticationKey::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required int32 id = 1; + if (has_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target); + } + + // required int64 expiration_date = 2; + if (has_expiration_date()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->expiration_date(), target); + } + + // required bytes key = 3; + if (has_key()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->key(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AuthenticationKey::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required int32 id = 1; + if (has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->id()); + } + + // required int64 expiration_date = 2; + if (has_expiration_date()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->expiration_date()); + } + + // required bytes key = 3; + if (has_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->key()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AuthenticationKey::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AuthenticationKey* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AuthenticationKey::MergeFrom(const AuthenticationKey& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_id()) { + set_id(from.id()); + } + if (from.has_expiration_date()) { + set_expiration_date(from.expiration_date()); + } + if (from.has_key()) { + set_key(from.key()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AuthenticationKey::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AuthenticationKey::CopyFrom(const AuthenticationKey& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthenticationKey::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void AuthenticationKey::Swap(AuthenticationKey* other) { + if (other != this) { + std::swap(id_, other->id_); + std::swap(expiration_date_, other->expiration_date_); + std::swap(key_, other->key_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AuthenticationKey::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AuthenticationKey_descriptor_; + metadata.reflection = AuthenticationKey_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* TokenIdentifier_Kind_descriptor() { + protobuf_AssignDescriptorsOnce(); + return TokenIdentifier_Kind_descriptor_; +} +bool TokenIdentifier_Kind_IsValid(int value) { + switch(value) { + case 0: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const TokenIdentifier_Kind TokenIdentifier::HBASE_AUTH_TOKEN; +const TokenIdentifier_Kind TokenIdentifier::Kind_MIN; +const TokenIdentifier_Kind TokenIdentifier::Kind_MAX; +const int TokenIdentifier::Kind_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int TokenIdentifier::kKindFieldNumber; +const int TokenIdentifier::kUsernameFieldNumber; +const int TokenIdentifier::kKeyIdFieldNumber; +const int TokenIdentifier::kIssueDateFieldNumber; +const int TokenIdentifier::kExpirationDateFieldNumber; +const int TokenIdentifier::kSequenceNumberFieldNumber; +#endif // !_MSC_VER + +TokenIdentifier::TokenIdentifier() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TokenIdentifier::InitAsDefaultInstance() { +} + +TokenIdentifier::TokenIdentifier(const TokenIdentifier& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TokenIdentifier::SharedCtor() { + _cached_size_ = 0; + kind_ = 0; + username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + key_id_ = 0; + issue_date_ = GOOGLE_LONGLONG(0); + expiration_date_ = GOOGLE_LONGLONG(0); + sequence_number_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TokenIdentifier::~TokenIdentifier() { + SharedDtor(); +} + +void TokenIdentifier::SharedDtor() { + if (username_ != &::google::protobuf::internal::kEmptyString) { + delete username_; + } + if (this != default_instance_) { + } +} + +void TokenIdentifier::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TokenIdentifier::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TokenIdentifier_descriptor_; +} + +const TokenIdentifier& TokenIdentifier::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Authentication_2eproto(); + return *default_instance_; +} + +TokenIdentifier* TokenIdentifier::default_instance_ = NULL; + +TokenIdentifier* TokenIdentifier::New() const { + return new TokenIdentifier; +} + +void TokenIdentifier::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + kind_ = 0; + if (has_username()) { + if (username_ != &::google::protobuf::internal::kEmptyString) { + username_->clear(); + } + } + key_id_ = 0; + issue_date_ = GOOGLE_LONGLONG(0); + expiration_date_ = GOOGLE_LONGLONG(0); + sequence_number_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TokenIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TokenIdentifier.Kind kind = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::TokenIdentifier_Kind_IsValid(value)) { + set_kind(static_cast< ::hbase::pb::TokenIdentifier_Kind >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_username; + break; + } + + // required bytes username = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_username: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_username())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_key_id; + break; + } + + // required int32 key_id = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_key_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &key_id_))); + set_has_key_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_issue_date; + break; + } + + // optional int64 issue_date = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_issue_date: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &issue_date_))); + set_has_issue_date(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_expiration_date; + break; + } + + // optional int64 expiration_date = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_expiration_date: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &expiration_date_))); + set_has_expiration_date(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_sequence_number; + break; + } + + // optional int64 sequence_number = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_sequence_number: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &sequence_number_))); + set_has_sequence_number(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TokenIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TokenIdentifier.Kind kind = 1; + if (has_kind()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->kind(), output); + } + + // required bytes username = 2; + if (has_username()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->username(), output); + } + + // required int32 key_id = 3; + if (has_key_id()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->key_id(), output); + } + + // optional int64 issue_date = 4; + if (has_issue_date()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->issue_date(), output); + } + + // optional int64 expiration_date = 5; + if (has_expiration_date()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->expiration_date(), output); + } + + // optional int64 sequence_number = 6; + if (has_sequence_number()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->sequence_number(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TokenIdentifier::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TokenIdentifier.Kind kind = 1; + if (has_kind()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->kind(), target); + } + + // required bytes username = 2; + if (has_username()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->username(), target); + } + + // required int32 key_id = 3; + if (has_key_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->key_id(), target); + } + + // optional int64 issue_date = 4; + if (has_issue_date()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->issue_date(), target); + } + + // optional int64 expiration_date = 5; + if (has_expiration_date()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->expiration_date(), target); + } + + // optional int64 sequence_number = 6; + if (has_sequence_number()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->sequence_number(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TokenIdentifier::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TokenIdentifier.Kind kind = 1; + if (has_kind()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind()); + } + + // required bytes username = 2; + if (has_username()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->username()); + } + + // required int32 key_id = 3; + if (has_key_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->key_id()); + } + + // optional int64 issue_date = 4; + if (has_issue_date()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->issue_date()); + } + + // optional int64 expiration_date = 5; + if (has_expiration_date()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->expiration_date()); + } + + // optional int64 sequence_number = 6; + if (has_sequence_number()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->sequence_number()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TokenIdentifier::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TokenIdentifier* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TokenIdentifier::MergeFrom(const TokenIdentifier& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_kind()) { + set_kind(from.kind()); + } + if (from.has_username()) { + set_username(from.username()); + } + if (from.has_key_id()) { + set_key_id(from.key_id()); + } + if (from.has_issue_date()) { + set_issue_date(from.issue_date()); + } + if (from.has_expiration_date()) { + set_expiration_date(from.expiration_date()); + } + if (from.has_sequence_number()) { + set_sequence_number(from.sequence_number()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TokenIdentifier::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TokenIdentifier::CopyFrom(const TokenIdentifier& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TokenIdentifier::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void TokenIdentifier::Swap(TokenIdentifier* other) { + if (other != this) { + std::swap(kind_, other->kind_); + std::swap(username_, other->username_); + std::swap(key_id_, other->key_id_); + std::swap(issue_date_, other->issue_date_); + std::swap(expiration_date_, other->expiration_date_); + std::swap(sequence_number_, other->sequence_number_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TokenIdentifier::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TokenIdentifier_descriptor_; + metadata.reflection = TokenIdentifier_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Token::kIdentifierFieldNumber; +const int Token::kPasswordFieldNumber; +const int Token::kServiceFieldNumber; +#endif // !_MSC_VER + +Token::Token() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Token::InitAsDefaultInstance() { +} + +Token::Token(const Token& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Token::SharedCtor() { + _cached_size_ = 0; + identifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + service_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Token::~Token() { + SharedDtor(); +} + +void Token::SharedDtor() { + if (identifier_ != &::google::protobuf::internal::kEmptyString) { + delete identifier_; + } + if (password_ != &::google::protobuf::internal::kEmptyString) { + delete password_; + } + if (service_ != &::google::protobuf::internal::kEmptyString) { + delete service_; + } + if (this != default_instance_) { + } +} + +void Token::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Token::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Token_descriptor_; +} + +const Token& Token::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Authentication_2eproto(); + return *default_instance_; +} + +Token* Token::default_instance_ = NULL; + +Token* Token::New() const { + return new Token; +} + +void Token::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_identifier()) { + if (identifier_ != &::google::protobuf::internal::kEmptyString) { + identifier_->clear(); + } + } + if (has_password()) { + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + } + if (has_service()) { + if (service_ != &::google::protobuf::internal::kEmptyString) { + service_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Token::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes identifier = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_identifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_password; + break; + } + + // optional bytes password = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_password: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_password())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_service; + break; + } + + // optional bytes service = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_service: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_service())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Token::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes identifier = 1; + if (has_identifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->identifier(), output); + } + + // optional bytes password = 2; + if (has_password()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->password(), output); + } + + // optional bytes service = 3; + if (has_service()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->service(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Token::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes identifier = 1; + if (has_identifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->identifier(), target); + } + + // optional bytes password = 2; + if (has_password()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->password(), target); + } + + // optional bytes service = 3; + if (has_service()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->service(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Token::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes identifier = 1; + if (has_identifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->identifier()); + } + + // optional bytes password = 2; + if (has_password()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->password()); + } + + // optional bytes service = 3; + if (has_service()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->service()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Token::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Token* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Token::MergeFrom(const Token& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_identifier()) { + set_identifier(from.identifier()); + } + if (from.has_password()) { + set_password(from.password()); + } + if (from.has_service()) { + set_service(from.service()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Token::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Token::CopyFrom(const Token& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Token::IsInitialized() const { + + return true; +} + +void Token::Swap(Token* other) { + if (other != this) { + std::swap(identifier_, other->identifier_); + std::swap(password_, other->password_); + std::swap(service_, other->service_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Token::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Token_descriptor_; + metadata.reflection = Token_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +GetAuthenticationTokenRequest::GetAuthenticationTokenRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetAuthenticationTokenRequest::InitAsDefaultInstance() { +} + +GetAuthenticationTokenRequest::GetAuthenticationTokenRequest(const GetAuthenticationTokenRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetAuthenticationTokenRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetAuthenticationTokenRequest::~GetAuthenticationTokenRequest() { + SharedDtor(); +} + +void GetAuthenticationTokenRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetAuthenticationTokenRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetAuthenticationTokenRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetAuthenticationTokenRequest_descriptor_; +} + +const GetAuthenticationTokenRequest& GetAuthenticationTokenRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Authentication_2eproto(); + return *default_instance_; +} + +GetAuthenticationTokenRequest* GetAuthenticationTokenRequest::default_instance_ = NULL; + +GetAuthenticationTokenRequest* GetAuthenticationTokenRequest::New() const { + return new GetAuthenticationTokenRequest; +} + +void GetAuthenticationTokenRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetAuthenticationTokenRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void GetAuthenticationTokenRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetAuthenticationTokenRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetAuthenticationTokenRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetAuthenticationTokenRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetAuthenticationTokenRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetAuthenticationTokenRequest::MergeFrom(const GetAuthenticationTokenRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetAuthenticationTokenRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetAuthenticationTokenRequest::CopyFrom(const GetAuthenticationTokenRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAuthenticationTokenRequest::IsInitialized() const { + + return true; +} + +void GetAuthenticationTokenRequest::Swap(GetAuthenticationTokenRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetAuthenticationTokenRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetAuthenticationTokenRequest_descriptor_; + metadata.reflection = GetAuthenticationTokenRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetAuthenticationTokenResponse::kTokenFieldNumber; +#endif // !_MSC_VER + +GetAuthenticationTokenResponse::GetAuthenticationTokenResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetAuthenticationTokenResponse::InitAsDefaultInstance() { + token_ = const_cast< ::hbase::pb::Token*>(&::hbase::pb::Token::default_instance()); +} + +GetAuthenticationTokenResponse::GetAuthenticationTokenResponse(const GetAuthenticationTokenResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetAuthenticationTokenResponse::SharedCtor() { + _cached_size_ = 0; + token_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetAuthenticationTokenResponse::~GetAuthenticationTokenResponse() { + SharedDtor(); +} + +void GetAuthenticationTokenResponse::SharedDtor() { + if (this != default_instance_) { + delete token_; + } +} + +void GetAuthenticationTokenResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetAuthenticationTokenResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetAuthenticationTokenResponse_descriptor_; +} + +const GetAuthenticationTokenResponse& GetAuthenticationTokenResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Authentication_2eproto(); + return *default_instance_; +} + +GetAuthenticationTokenResponse* GetAuthenticationTokenResponse::default_instance_ = NULL; + +GetAuthenticationTokenResponse* GetAuthenticationTokenResponse::New() const { + return new GetAuthenticationTokenResponse; +} + +void GetAuthenticationTokenResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_token()) { + if (token_ != NULL) token_->::hbase::pb::Token::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetAuthenticationTokenResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.Token token = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_token())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetAuthenticationTokenResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.Token token = 1; + if (has_token()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->token(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetAuthenticationTokenResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.Token token = 1; + if (has_token()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->token(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetAuthenticationTokenResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.Token token = 1; + if (has_token()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->token()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetAuthenticationTokenResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetAuthenticationTokenResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetAuthenticationTokenResponse::MergeFrom(const GetAuthenticationTokenResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_token()) { + mutable_token()->::hbase::pb::Token::MergeFrom(from.token()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetAuthenticationTokenResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetAuthenticationTokenResponse::CopyFrom(const GetAuthenticationTokenResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAuthenticationTokenResponse::IsInitialized() const { + + return true; +} + +void GetAuthenticationTokenResponse::Swap(GetAuthenticationTokenResponse* other) { + if (other != this) { + std::swap(token_, other->token_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetAuthenticationTokenResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetAuthenticationTokenResponse_descriptor_; + metadata.reflection = GetAuthenticationTokenResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +WhoAmIRequest::WhoAmIRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WhoAmIRequest::InitAsDefaultInstance() { +} + +WhoAmIRequest::WhoAmIRequest(const WhoAmIRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WhoAmIRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WhoAmIRequest::~WhoAmIRequest() { + SharedDtor(); +} + +void WhoAmIRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void WhoAmIRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WhoAmIRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WhoAmIRequest_descriptor_; +} + +const WhoAmIRequest& WhoAmIRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Authentication_2eproto(); + return *default_instance_; +} + +WhoAmIRequest* WhoAmIRequest::default_instance_ = NULL; + +WhoAmIRequest* WhoAmIRequest::New() const { + return new WhoAmIRequest; +} + +void WhoAmIRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WhoAmIRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void WhoAmIRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WhoAmIRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WhoAmIRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WhoAmIRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WhoAmIRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WhoAmIRequest::MergeFrom(const WhoAmIRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WhoAmIRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WhoAmIRequest::CopyFrom(const WhoAmIRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WhoAmIRequest::IsInitialized() const { + + return true; +} + +void WhoAmIRequest::Swap(WhoAmIRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WhoAmIRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WhoAmIRequest_descriptor_; + metadata.reflection = WhoAmIRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int WhoAmIResponse::kUsernameFieldNumber; +const int WhoAmIResponse::kAuthMethodFieldNumber; +#endif // !_MSC_VER + +WhoAmIResponse::WhoAmIResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WhoAmIResponse::InitAsDefaultInstance() { +} + +WhoAmIResponse::WhoAmIResponse(const WhoAmIResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WhoAmIResponse::SharedCtor() { + _cached_size_ = 0; + username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + auth_method_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WhoAmIResponse::~WhoAmIResponse() { + SharedDtor(); +} + +void WhoAmIResponse::SharedDtor() { + if (username_ != &::google::protobuf::internal::kEmptyString) { + delete username_; + } + if (auth_method_ != &::google::protobuf::internal::kEmptyString) { + delete auth_method_; + } + if (this != default_instance_) { + } +} + +void WhoAmIResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WhoAmIResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WhoAmIResponse_descriptor_; +} + +const WhoAmIResponse& WhoAmIResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Authentication_2eproto(); + return *default_instance_; +} + +WhoAmIResponse* WhoAmIResponse::default_instance_ = NULL; + +WhoAmIResponse* WhoAmIResponse::New() const { + return new WhoAmIResponse; +} + +void WhoAmIResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_username()) { + if (username_ != &::google::protobuf::internal::kEmptyString) { + username_->clear(); + } + } + if (has_auth_method()) { + if (auth_method_ != &::google::protobuf::internal::kEmptyString) { + auth_method_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WhoAmIResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string username = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_username())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->username().data(), this->username().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_auth_method; + break; + } + + // optional string auth_method = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_auth_method: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_auth_method())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->auth_method().data(), this->auth_method().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void WhoAmIResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string username = 1; + if (has_username()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->username().data(), this->username().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->username(), output); + } + + // optional string auth_method = 2; + if (has_auth_method()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->auth_method().data(), this->auth_method().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->auth_method(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WhoAmIResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string username = 1; + if (has_username()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->username().data(), this->username().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->username(), target); + } + + // optional string auth_method = 2; + if (has_auth_method()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->auth_method().data(), this->auth_method().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->auth_method(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WhoAmIResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string username = 1; + if (has_username()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->username()); + } + + // optional string auth_method = 2; + if (has_auth_method()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->auth_method()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WhoAmIResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WhoAmIResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WhoAmIResponse::MergeFrom(const WhoAmIResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_username()) { + set_username(from.username()); + } + if (from.has_auth_method()) { + set_auth_method(from.auth_method()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WhoAmIResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WhoAmIResponse::CopyFrom(const WhoAmIResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WhoAmIResponse::IsInitialized() const { + + return true; +} + +void WhoAmIResponse::Swap(WhoAmIResponse* other) { + if (other != this) { + std::swap(username_, other->username_); + std::swap(auth_method_, other->auth_method_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WhoAmIResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WhoAmIResponse_descriptor_; + metadata.reflection = WhoAmIResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Authentication.pb.h b/hbase-native-client/src/rpc/generated/Authentication.pb.h new file mode 100644 index 0000000..ced3384 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Authentication.pb.h @@ -0,0 +1,1513 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Authentication.proto + +#ifndef PROTOBUF_Authentication_2eproto__INCLUDED +#define PROTOBUF_Authentication_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Authentication_2eproto(); +void protobuf_AssignDesc_Authentication_2eproto(); +void protobuf_ShutdownFile_Authentication_2eproto(); + +class AuthenticationKey; +class TokenIdentifier; +class Token; +class GetAuthenticationTokenRequest; +class GetAuthenticationTokenResponse; +class WhoAmIRequest; +class WhoAmIResponse; + +enum TokenIdentifier_Kind { + TokenIdentifier_Kind_HBASE_AUTH_TOKEN = 0 +}; +bool TokenIdentifier_Kind_IsValid(int value); +const TokenIdentifier_Kind TokenIdentifier_Kind_Kind_MIN = TokenIdentifier_Kind_HBASE_AUTH_TOKEN; +const TokenIdentifier_Kind TokenIdentifier_Kind_Kind_MAX = TokenIdentifier_Kind_HBASE_AUTH_TOKEN; +const int TokenIdentifier_Kind_Kind_ARRAYSIZE = TokenIdentifier_Kind_Kind_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TokenIdentifier_Kind_descriptor(); +inline const ::std::string& TokenIdentifier_Kind_Name(TokenIdentifier_Kind value) { + return ::google::protobuf::internal::NameOfEnum( + TokenIdentifier_Kind_descriptor(), value); +} +inline bool TokenIdentifier_Kind_Parse( + const ::std::string& name, TokenIdentifier_Kind* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TokenIdentifier_Kind_descriptor(), name, value); +} +// =================================================================== + +class AuthenticationKey : public ::google::protobuf::Message { + public: + AuthenticationKey(); + virtual ~AuthenticationKey(); + + AuthenticationKey(const AuthenticationKey& from); + + inline AuthenticationKey& operator=(const AuthenticationKey& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AuthenticationKey& default_instance(); + + void Swap(AuthenticationKey* other); + + // implements Message ---------------------------------------------- + + AuthenticationKey* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AuthenticationKey& from); + void MergeFrom(const AuthenticationKey& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required int32 id = 1; + inline bool has_id() const; + inline void clear_id(); + static const int kIdFieldNumber = 1; + inline ::google::protobuf::int32 id() const; + inline void set_id(::google::protobuf::int32 value); + + // required int64 expiration_date = 2; + inline bool has_expiration_date() const; + inline void clear_expiration_date(); + static const int kExpirationDateFieldNumber = 2; + inline ::google::protobuf::int64 expiration_date() const; + inline void set_expiration_date(::google::protobuf::int64 value); + + // required bytes key = 3; + inline bool has_key() const; + inline void clear_key(); + static const int kKeyFieldNumber = 3; + inline const ::std::string& key() const; + inline void set_key(const ::std::string& value); + inline void set_key(const char* value); + inline void set_key(const void* value, size_t size); + inline ::std::string* mutable_key(); + inline ::std::string* release_key(); + inline void set_allocated_key(::std::string* key); + + // @@protoc_insertion_point(class_scope:hbase.pb.AuthenticationKey) + private: + inline void set_has_id(); + inline void clear_has_id(); + inline void set_has_expiration_date(); + inline void clear_has_expiration_date(); + inline void set_has_key(); + inline void clear_has_key(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int64 expiration_date_; + ::std::string* key_; + ::google::protobuf::int32 id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Authentication_2eproto(); + friend void protobuf_AssignDesc_Authentication_2eproto(); + friend void protobuf_ShutdownFile_Authentication_2eproto(); + + void InitAsDefaultInstance(); + static AuthenticationKey* default_instance_; +}; +// ------------------------------------------------------------------- + +class TokenIdentifier : public ::google::protobuf::Message { + public: + TokenIdentifier(); + virtual ~TokenIdentifier(); + + TokenIdentifier(const TokenIdentifier& from); + + inline TokenIdentifier& operator=(const TokenIdentifier& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TokenIdentifier& default_instance(); + + void Swap(TokenIdentifier* other); + + // implements Message ---------------------------------------------- + + TokenIdentifier* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TokenIdentifier& from); + void MergeFrom(const TokenIdentifier& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef TokenIdentifier_Kind Kind; + static const Kind HBASE_AUTH_TOKEN = TokenIdentifier_Kind_HBASE_AUTH_TOKEN; + static inline bool Kind_IsValid(int value) { + return TokenIdentifier_Kind_IsValid(value); + } + static const Kind Kind_MIN = + TokenIdentifier_Kind_Kind_MIN; + static const Kind Kind_MAX = + TokenIdentifier_Kind_Kind_MAX; + static const int Kind_ARRAYSIZE = + TokenIdentifier_Kind_Kind_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Kind_descriptor() { + return TokenIdentifier_Kind_descriptor(); + } + static inline const ::std::string& Kind_Name(Kind value) { + return TokenIdentifier_Kind_Name(value); + } + static inline bool Kind_Parse(const ::std::string& name, + Kind* value) { + return TokenIdentifier_Kind_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TokenIdentifier.Kind kind = 1; + inline bool has_kind() const; + inline void clear_kind(); + static const int kKindFieldNumber = 1; + inline ::hbase::pb::TokenIdentifier_Kind kind() const; + inline void set_kind(::hbase::pb::TokenIdentifier_Kind value); + + // required bytes username = 2; + inline bool has_username() const; + inline void clear_username(); + static const int kUsernameFieldNumber = 2; + inline const ::std::string& username() const; + inline void set_username(const ::std::string& value); + inline void set_username(const char* value); + inline void set_username(const void* value, size_t size); + inline ::std::string* mutable_username(); + inline ::std::string* release_username(); + inline void set_allocated_username(::std::string* username); + + // required int32 key_id = 3; + inline bool has_key_id() const; + inline void clear_key_id(); + static const int kKeyIdFieldNumber = 3; + inline ::google::protobuf::int32 key_id() const; + inline void set_key_id(::google::protobuf::int32 value); + + // optional int64 issue_date = 4; + inline bool has_issue_date() const; + inline void clear_issue_date(); + static const int kIssueDateFieldNumber = 4; + inline ::google::protobuf::int64 issue_date() const; + inline void set_issue_date(::google::protobuf::int64 value); + + // optional int64 expiration_date = 5; + inline bool has_expiration_date() const; + inline void clear_expiration_date(); + static const int kExpirationDateFieldNumber = 5; + inline ::google::protobuf::int64 expiration_date() const; + inline void set_expiration_date(::google::protobuf::int64 value); + + // optional int64 sequence_number = 6; + inline bool has_sequence_number() const; + inline void clear_sequence_number(); + static const int kSequenceNumberFieldNumber = 6; + inline ::google::protobuf::int64 sequence_number() const; + inline void set_sequence_number(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.TokenIdentifier) + private: + inline void set_has_kind(); + inline void clear_has_kind(); + inline void set_has_username(); + inline void clear_has_username(); + inline void set_has_key_id(); + inline void clear_has_key_id(); + inline void set_has_issue_date(); + inline void clear_has_issue_date(); + inline void set_has_expiration_date(); + inline void clear_has_expiration_date(); + inline void set_has_sequence_number(); + inline void clear_has_sequence_number(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* username_; + int kind_; + ::google::protobuf::int32 key_id_; + ::google::protobuf::int64 issue_date_; + ::google::protobuf::int64 expiration_date_; + ::google::protobuf::int64 sequence_number_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_Authentication_2eproto(); + friend void protobuf_AssignDesc_Authentication_2eproto(); + friend void protobuf_ShutdownFile_Authentication_2eproto(); + + void InitAsDefaultInstance(); + static TokenIdentifier* default_instance_; +}; +// ------------------------------------------------------------------- + +class Token : public ::google::protobuf::Message { + public: + Token(); + virtual ~Token(); + + Token(const Token& from); + + inline Token& operator=(const Token& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Token& default_instance(); + + void Swap(Token* other); + + // implements Message ---------------------------------------------- + + Token* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Token& from); + void MergeFrom(const Token& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes identifier = 1; + inline bool has_identifier() const; + inline void clear_identifier(); + static const int kIdentifierFieldNumber = 1; + inline const ::std::string& identifier() const; + inline void set_identifier(const ::std::string& value); + inline void set_identifier(const char* value); + inline void set_identifier(const void* value, size_t size); + inline ::std::string* mutable_identifier(); + inline ::std::string* release_identifier(); + inline void set_allocated_identifier(::std::string* identifier); + + // optional bytes password = 2; + inline bool has_password() const; + inline void clear_password(); + static const int kPasswordFieldNumber = 2; + inline const ::std::string& password() const; + inline void set_password(const ::std::string& value); + inline void set_password(const char* value); + inline void set_password(const void* value, size_t size); + inline ::std::string* mutable_password(); + inline ::std::string* release_password(); + inline void set_allocated_password(::std::string* password); + + // optional bytes service = 3; + inline bool has_service() const; + inline void clear_service(); + static const int kServiceFieldNumber = 3; + inline const ::std::string& service() const; + inline void set_service(const ::std::string& value); + inline void set_service(const char* value); + inline void set_service(const void* value, size_t size); + inline ::std::string* mutable_service(); + inline ::std::string* release_service(); + inline void set_allocated_service(::std::string* service); + + // @@protoc_insertion_point(class_scope:hbase.pb.Token) + private: + inline void set_has_identifier(); + inline void clear_has_identifier(); + inline void set_has_password(); + inline void clear_has_password(); + inline void set_has_service(); + inline void clear_has_service(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* identifier_; + ::std::string* password_; + ::std::string* service_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Authentication_2eproto(); + friend void protobuf_AssignDesc_Authentication_2eproto(); + friend void protobuf_ShutdownFile_Authentication_2eproto(); + + void InitAsDefaultInstance(); + static Token* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetAuthenticationTokenRequest : public ::google::protobuf::Message { + public: + GetAuthenticationTokenRequest(); + virtual ~GetAuthenticationTokenRequest(); + + GetAuthenticationTokenRequest(const GetAuthenticationTokenRequest& from); + + inline GetAuthenticationTokenRequest& operator=(const GetAuthenticationTokenRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetAuthenticationTokenRequest& default_instance(); + + void Swap(GetAuthenticationTokenRequest* other); + + // implements Message ---------------------------------------------- + + GetAuthenticationTokenRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetAuthenticationTokenRequest& from); + void MergeFrom(const GetAuthenticationTokenRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.GetAuthenticationTokenRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Authentication_2eproto(); + friend void protobuf_AssignDesc_Authentication_2eproto(); + friend void protobuf_ShutdownFile_Authentication_2eproto(); + + void InitAsDefaultInstance(); + static GetAuthenticationTokenRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetAuthenticationTokenResponse : public ::google::protobuf::Message { + public: + GetAuthenticationTokenResponse(); + virtual ~GetAuthenticationTokenResponse(); + + GetAuthenticationTokenResponse(const GetAuthenticationTokenResponse& from); + + inline GetAuthenticationTokenResponse& operator=(const GetAuthenticationTokenResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetAuthenticationTokenResponse& default_instance(); + + void Swap(GetAuthenticationTokenResponse* other); + + // implements Message ---------------------------------------------- + + GetAuthenticationTokenResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetAuthenticationTokenResponse& from); + void MergeFrom(const GetAuthenticationTokenResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.Token token = 1; + inline bool has_token() const; + inline void clear_token(); + static const int kTokenFieldNumber = 1; + inline const ::hbase::pb::Token& token() const; + inline ::hbase::pb::Token* mutable_token(); + inline ::hbase::pb::Token* release_token(); + inline void set_allocated_token(::hbase::pb::Token* token); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetAuthenticationTokenResponse) + private: + inline void set_has_token(); + inline void clear_has_token(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Token* token_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Authentication_2eproto(); + friend void protobuf_AssignDesc_Authentication_2eproto(); + friend void protobuf_ShutdownFile_Authentication_2eproto(); + + void InitAsDefaultInstance(); + static GetAuthenticationTokenResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class WhoAmIRequest : public ::google::protobuf::Message { + public: + WhoAmIRequest(); + virtual ~WhoAmIRequest(); + + WhoAmIRequest(const WhoAmIRequest& from); + + inline WhoAmIRequest& operator=(const WhoAmIRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WhoAmIRequest& default_instance(); + + void Swap(WhoAmIRequest* other); + + // implements Message ---------------------------------------------- + + WhoAmIRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WhoAmIRequest& from); + void MergeFrom(const WhoAmIRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.WhoAmIRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Authentication_2eproto(); + friend void protobuf_AssignDesc_Authentication_2eproto(); + friend void protobuf_ShutdownFile_Authentication_2eproto(); + + void InitAsDefaultInstance(); + static WhoAmIRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class WhoAmIResponse : public ::google::protobuf::Message { + public: + WhoAmIResponse(); + virtual ~WhoAmIResponse(); + + WhoAmIResponse(const WhoAmIResponse& from); + + inline WhoAmIResponse& operator=(const WhoAmIResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WhoAmIResponse& default_instance(); + + void Swap(WhoAmIResponse* other); + + // implements Message ---------------------------------------------- + + WhoAmIResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WhoAmIResponse& from); + void MergeFrom(const WhoAmIResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string username = 1; + inline bool has_username() const; + inline void clear_username(); + static const int kUsernameFieldNumber = 1; + inline const ::std::string& username() const; + inline void set_username(const ::std::string& value); + inline void set_username(const char* value); + inline void set_username(const char* value, size_t size); + inline ::std::string* mutable_username(); + inline ::std::string* release_username(); + inline void set_allocated_username(::std::string* username); + + // optional string auth_method = 2; + inline bool has_auth_method() const; + inline void clear_auth_method(); + static const int kAuthMethodFieldNumber = 2; + inline const ::std::string& auth_method() const; + inline void set_auth_method(const ::std::string& value); + inline void set_auth_method(const char* value); + inline void set_auth_method(const char* value, size_t size); + inline ::std::string* mutable_auth_method(); + inline ::std::string* release_auth_method(); + inline void set_allocated_auth_method(::std::string* auth_method); + + // @@protoc_insertion_point(class_scope:hbase.pb.WhoAmIResponse) + private: + inline void set_has_username(); + inline void clear_has_username(); + inline void set_has_auth_method(); + inline void clear_has_auth_method(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* username_; + ::std::string* auth_method_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Authentication_2eproto(); + friend void protobuf_AssignDesc_Authentication_2eproto(); + friend void protobuf_ShutdownFile_Authentication_2eproto(); + + void InitAsDefaultInstance(); + static WhoAmIResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// AuthenticationKey + +// required int32 id = 1; +inline bool AuthenticationKey::has_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AuthenticationKey::set_has_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void AuthenticationKey::clear_has_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AuthenticationKey::clear_id() { + id_ = 0; + clear_has_id(); +} +inline ::google::protobuf::int32 AuthenticationKey::id() const { + return id_; +} +inline void AuthenticationKey::set_id(::google::protobuf::int32 value) { + set_has_id(); + id_ = value; +} + +// required int64 expiration_date = 2; +inline bool AuthenticationKey::has_expiration_date() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AuthenticationKey::set_has_expiration_date() { + _has_bits_[0] |= 0x00000002u; +} +inline void AuthenticationKey::clear_has_expiration_date() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AuthenticationKey::clear_expiration_date() { + expiration_date_ = GOOGLE_LONGLONG(0); + clear_has_expiration_date(); +} +inline ::google::protobuf::int64 AuthenticationKey::expiration_date() const { + return expiration_date_; +} +inline void AuthenticationKey::set_expiration_date(::google::protobuf::int64 value) { + set_has_expiration_date(); + expiration_date_ = value; +} + +// required bytes key = 3; +inline bool AuthenticationKey::has_key() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AuthenticationKey::set_has_key() { + _has_bits_[0] |= 0x00000004u; +} +inline void AuthenticationKey::clear_has_key() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AuthenticationKey::clear_key() { + if (key_ != &::google::protobuf::internal::kEmptyString) { + key_->clear(); + } + clear_has_key(); +} +inline const ::std::string& AuthenticationKey::key() const { + return *key_; +} +inline void AuthenticationKey::set_key(const ::std::string& value) { + set_has_key(); + if (key_ == &::google::protobuf::internal::kEmptyString) { + key_ = new ::std::string; + } + key_->assign(value); +} +inline void AuthenticationKey::set_key(const char* value) { + set_has_key(); + if (key_ == &::google::protobuf::internal::kEmptyString) { + key_ = new ::std::string; + } + key_->assign(value); +} +inline void AuthenticationKey::set_key(const void* value, size_t size) { + set_has_key(); + if (key_ == &::google::protobuf::internal::kEmptyString) { + key_ = new ::std::string; + } + key_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AuthenticationKey::mutable_key() { + set_has_key(); + if (key_ == &::google::protobuf::internal::kEmptyString) { + key_ = new ::std::string; + } + return key_; +} +inline ::std::string* AuthenticationKey::release_key() { + clear_has_key(); + if (key_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = key_; + key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void AuthenticationKey::set_allocated_key(::std::string* key) { + if (key_ != &::google::protobuf::internal::kEmptyString) { + delete key_; + } + if (key) { + set_has_key(); + key_ = key; + } else { + clear_has_key(); + key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// TokenIdentifier + +// required .hbase.pb.TokenIdentifier.Kind kind = 1; +inline bool TokenIdentifier::has_kind() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TokenIdentifier::set_has_kind() { + _has_bits_[0] |= 0x00000001u; +} +inline void TokenIdentifier::clear_has_kind() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TokenIdentifier::clear_kind() { + kind_ = 0; + clear_has_kind(); +} +inline ::hbase::pb::TokenIdentifier_Kind TokenIdentifier::kind() const { + return static_cast< ::hbase::pb::TokenIdentifier_Kind >(kind_); +} +inline void TokenIdentifier::set_kind(::hbase::pb::TokenIdentifier_Kind value) { + assert(::hbase::pb::TokenIdentifier_Kind_IsValid(value)); + set_has_kind(); + kind_ = value; +} + +// required bytes username = 2; +inline bool TokenIdentifier::has_username() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TokenIdentifier::set_has_username() { + _has_bits_[0] |= 0x00000002u; +} +inline void TokenIdentifier::clear_has_username() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TokenIdentifier::clear_username() { + if (username_ != &::google::protobuf::internal::kEmptyString) { + username_->clear(); + } + clear_has_username(); +} +inline const ::std::string& TokenIdentifier::username() const { + return *username_; +} +inline void TokenIdentifier::set_username(const ::std::string& value) { + set_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + username_ = new ::std::string; + } + username_->assign(value); +} +inline void TokenIdentifier::set_username(const char* value) { + set_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + username_ = new ::std::string; + } + username_->assign(value); +} +inline void TokenIdentifier::set_username(const void* value, size_t size) { + set_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + username_ = new ::std::string; + } + username_->assign(reinterpret_cast(value), size); +} +inline ::std::string* TokenIdentifier::mutable_username() { + set_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + username_ = new ::std::string; + } + return username_; +} +inline ::std::string* TokenIdentifier::release_username() { + clear_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = username_; + username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void TokenIdentifier::set_allocated_username(::std::string* username) { + if (username_ != &::google::protobuf::internal::kEmptyString) { + delete username_; + } + if (username) { + set_has_username(); + username_ = username; + } else { + clear_has_username(); + username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required int32 key_id = 3; +inline bool TokenIdentifier::has_key_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TokenIdentifier::set_has_key_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void TokenIdentifier::clear_has_key_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TokenIdentifier::clear_key_id() { + key_id_ = 0; + clear_has_key_id(); +} +inline ::google::protobuf::int32 TokenIdentifier::key_id() const { + return key_id_; +} +inline void TokenIdentifier::set_key_id(::google::protobuf::int32 value) { + set_has_key_id(); + key_id_ = value; +} + +// optional int64 issue_date = 4; +inline bool TokenIdentifier::has_issue_date() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TokenIdentifier::set_has_issue_date() { + _has_bits_[0] |= 0x00000008u; +} +inline void TokenIdentifier::clear_has_issue_date() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TokenIdentifier::clear_issue_date() { + issue_date_ = GOOGLE_LONGLONG(0); + clear_has_issue_date(); +} +inline ::google::protobuf::int64 TokenIdentifier::issue_date() const { + return issue_date_; +} +inline void TokenIdentifier::set_issue_date(::google::protobuf::int64 value) { + set_has_issue_date(); + issue_date_ = value; +} + +// optional int64 expiration_date = 5; +inline bool TokenIdentifier::has_expiration_date() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TokenIdentifier::set_has_expiration_date() { + _has_bits_[0] |= 0x00000010u; +} +inline void TokenIdentifier::clear_has_expiration_date() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TokenIdentifier::clear_expiration_date() { + expiration_date_ = GOOGLE_LONGLONG(0); + clear_has_expiration_date(); +} +inline ::google::protobuf::int64 TokenIdentifier::expiration_date() const { + return expiration_date_; +} +inline void TokenIdentifier::set_expiration_date(::google::protobuf::int64 value) { + set_has_expiration_date(); + expiration_date_ = value; +} + +// optional int64 sequence_number = 6; +inline bool TokenIdentifier::has_sequence_number() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TokenIdentifier::set_has_sequence_number() { + _has_bits_[0] |= 0x00000020u; +} +inline void TokenIdentifier::clear_has_sequence_number() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TokenIdentifier::clear_sequence_number() { + sequence_number_ = GOOGLE_LONGLONG(0); + clear_has_sequence_number(); +} +inline ::google::protobuf::int64 TokenIdentifier::sequence_number() const { + return sequence_number_; +} +inline void TokenIdentifier::set_sequence_number(::google::protobuf::int64 value) { + set_has_sequence_number(); + sequence_number_ = value; +} + +// ------------------------------------------------------------------- + +// Token + +// optional bytes identifier = 1; +inline bool Token::has_identifier() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Token::set_has_identifier() { + _has_bits_[0] |= 0x00000001u; +} +inline void Token::clear_has_identifier() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Token::clear_identifier() { + if (identifier_ != &::google::protobuf::internal::kEmptyString) { + identifier_->clear(); + } + clear_has_identifier(); +} +inline const ::std::string& Token::identifier() const { + return *identifier_; +} +inline void Token::set_identifier(const ::std::string& value) { + set_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + identifier_ = new ::std::string; + } + identifier_->assign(value); +} +inline void Token::set_identifier(const char* value) { + set_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + identifier_ = new ::std::string; + } + identifier_->assign(value); +} +inline void Token::set_identifier(const void* value, size_t size) { + set_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + identifier_ = new ::std::string; + } + identifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Token::mutable_identifier() { + set_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + identifier_ = new ::std::string; + } + return identifier_; +} +inline ::std::string* Token::release_identifier() { + clear_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = identifier_; + identifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Token::set_allocated_identifier(::std::string* identifier) { + if (identifier_ != &::google::protobuf::internal::kEmptyString) { + delete identifier_; + } + if (identifier) { + set_has_identifier(); + identifier_ = identifier; + } else { + clear_has_identifier(); + identifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes password = 2; +inline bool Token::has_password() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Token::set_has_password() { + _has_bits_[0] |= 0x00000002u; +} +inline void Token::clear_has_password() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Token::clear_password() { + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + clear_has_password(); +} +inline const ::std::string& Token::password() const { + return *password_; +} +inline void Token::set_password(const ::std::string& value) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); +} +inline void Token::set_password(const char* value) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); +} +inline void Token::set_password(const void* value, size_t size) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Token::mutable_password() { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + return password_; +} +inline ::std::string* Token::release_password() { + clear_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = password_; + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Token::set_allocated_password(::std::string* password) { + if (password_ != &::google::protobuf::internal::kEmptyString) { + delete password_; + } + if (password) { + set_has_password(); + password_ = password; + } else { + clear_has_password(); + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes service = 3; +inline bool Token::has_service() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Token::set_has_service() { + _has_bits_[0] |= 0x00000004u; +} +inline void Token::clear_has_service() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Token::clear_service() { + if (service_ != &::google::protobuf::internal::kEmptyString) { + service_->clear(); + } + clear_has_service(); +} +inline const ::std::string& Token::service() const { + return *service_; +} +inline void Token::set_service(const ::std::string& value) { + set_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + service_ = new ::std::string; + } + service_->assign(value); +} +inline void Token::set_service(const char* value) { + set_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + service_ = new ::std::string; + } + service_->assign(value); +} +inline void Token::set_service(const void* value, size_t size) { + set_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + service_ = new ::std::string; + } + service_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Token::mutable_service() { + set_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + service_ = new ::std::string; + } + return service_; +} +inline ::std::string* Token::release_service() { + clear_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = service_; + service_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Token::set_allocated_service(::std::string* service) { + if (service_ != &::google::protobuf::internal::kEmptyString) { + delete service_; + } + if (service) { + set_has_service(); + service_ = service; + } else { + clear_has_service(); + service_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// GetAuthenticationTokenRequest + +// ------------------------------------------------------------------- + +// GetAuthenticationTokenResponse + +// optional .hbase.pb.Token token = 1; +inline bool GetAuthenticationTokenResponse::has_token() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetAuthenticationTokenResponse::set_has_token() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetAuthenticationTokenResponse::clear_has_token() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetAuthenticationTokenResponse::clear_token() { + if (token_ != NULL) token_->::hbase::pb::Token::Clear(); + clear_has_token(); +} +inline const ::hbase::pb::Token& GetAuthenticationTokenResponse::token() const { + return token_ != NULL ? *token_ : *default_instance_->token_; +} +inline ::hbase::pb::Token* GetAuthenticationTokenResponse::mutable_token() { + set_has_token(); + if (token_ == NULL) token_ = new ::hbase::pb::Token; + return token_; +} +inline ::hbase::pb::Token* GetAuthenticationTokenResponse::release_token() { + clear_has_token(); + ::hbase::pb::Token* temp = token_; + token_ = NULL; + return temp; +} +inline void GetAuthenticationTokenResponse::set_allocated_token(::hbase::pb::Token* token) { + delete token_; + token_ = token; + if (token) { + set_has_token(); + } else { + clear_has_token(); + } +} + +// ------------------------------------------------------------------- + +// WhoAmIRequest + +// ------------------------------------------------------------------- + +// WhoAmIResponse + +// optional string username = 1; +inline bool WhoAmIResponse::has_username() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WhoAmIResponse::set_has_username() { + _has_bits_[0] |= 0x00000001u; +} +inline void WhoAmIResponse::clear_has_username() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WhoAmIResponse::clear_username() { + if (username_ != &::google::protobuf::internal::kEmptyString) { + username_->clear(); + } + clear_has_username(); +} +inline const ::std::string& WhoAmIResponse::username() const { + return *username_; +} +inline void WhoAmIResponse::set_username(const ::std::string& value) { + set_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + username_ = new ::std::string; + } + username_->assign(value); +} +inline void WhoAmIResponse::set_username(const char* value) { + set_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + username_ = new ::std::string; + } + username_->assign(value); +} +inline void WhoAmIResponse::set_username(const char* value, size_t size) { + set_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + username_ = new ::std::string; + } + username_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WhoAmIResponse::mutable_username() { + set_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + username_ = new ::std::string; + } + return username_; +} +inline ::std::string* WhoAmIResponse::release_username() { + clear_has_username(); + if (username_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = username_; + username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WhoAmIResponse::set_allocated_username(::std::string* username) { + if (username_ != &::google::protobuf::internal::kEmptyString) { + delete username_; + } + if (username) { + set_has_username(); + username_ = username; + } else { + clear_has_username(); + username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string auth_method = 2; +inline bool WhoAmIResponse::has_auth_method() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void WhoAmIResponse::set_has_auth_method() { + _has_bits_[0] |= 0x00000002u; +} +inline void WhoAmIResponse::clear_has_auth_method() { + _has_bits_[0] &= ~0x00000002u; +} +inline void WhoAmIResponse::clear_auth_method() { + if (auth_method_ != &::google::protobuf::internal::kEmptyString) { + auth_method_->clear(); + } + clear_has_auth_method(); +} +inline const ::std::string& WhoAmIResponse::auth_method() const { + return *auth_method_; +} +inline void WhoAmIResponse::set_auth_method(const ::std::string& value) { + set_has_auth_method(); + if (auth_method_ == &::google::protobuf::internal::kEmptyString) { + auth_method_ = new ::std::string; + } + auth_method_->assign(value); +} +inline void WhoAmIResponse::set_auth_method(const char* value) { + set_has_auth_method(); + if (auth_method_ == &::google::protobuf::internal::kEmptyString) { + auth_method_ = new ::std::string; + } + auth_method_->assign(value); +} +inline void WhoAmIResponse::set_auth_method(const char* value, size_t size) { + set_has_auth_method(); + if (auth_method_ == &::google::protobuf::internal::kEmptyString) { + auth_method_ = new ::std::string; + } + auth_method_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WhoAmIResponse::mutable_auth_method() { + set_has_auth_method(); + if (auth_method_ == &::google::protobuf::internal::kEmptyString) { + auth_method_ = new ::std::string; + } + return auth_method_; +} +inline ::std::string* WhoAmIResponse::release_auth_method() { + clear_has_auth_method(); + if (auth_method_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = auth_method_; + auth_method_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WhoAmIResponse::set_allocated_auth_method(::std::string* auth_method) { + if (auth_method_ != &::google::protobuf::internal::kEmptyString) { + delete auth_method_; + } + if (auth_method) { + set_has_auth_method(); + auth_method_ = auth_method; + } else { + clear_has_auth_method(); + auth_method_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::TokenIdentifier_Kind>() { + return ::hbase::pb::TokenIdentifier_Kind_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Authentication_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Cell.pb.cc b/hbase-native-client/src/rpc/generated/Cell.pb.cc new file mode 100644 index 0000000..b3fd3b5 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Cell.pb.cc @@ -0,0 +1,1158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Cell.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Cell.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* Cell_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Cell_reflection_ = NULL; +const ::google::protobuf::Descriptor* KeyValue_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + KeyValue_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* CellType_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Cell_2eproto() { + protobuf_AddDesc_Cell_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Cell.proto"); + GOOGLE_CHECK(file != NULL); + Cell_descriptor_ = file->message_type(0); + static const int Cell_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, qualifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, timestamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, cell_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, tags_), + }; + Cell_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Cell_descriptor_, + Cell::default_instance_, + Cell_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Cell)); + KeyValue_descriptor_ = file->message_type(1); + static const int KeyValue_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, qualifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, timestamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, key_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, tags_), + }; + KeyValue_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + KeyValue_descriptor_, + KeyValue::default_instance_, + KeyValue_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyValue, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(KeyValue)); + CellType_descriptor_ = file->enum_type(0); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Cell_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Cell_descriptor_, &Cell::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + KeyValue_descriptor_, &KeyValue::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Cell_2eproto() { + delete Cell::default_instance_; + delete Cell_reflection_; + delete KeyValue::default_instance_; + delete KeyValue_reflection_; +} + +void protobuf_AddDesc_Cell_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\nCell.proto\022\010hbase.pb\"\215\001\n\004Cell\022\013\n\003row\030\001" + " \001(\014\022\016\n\006family\030\002 \001(\014\022\021\n\tqualifier\030\003 \001(\014\022" + "\021\n\ttimestamp\030\004 \001(\004\022%\n\tcell_type\030\005 \001(\0162\022." + "hbase.pb.CellType\022\r\n\005value\030\006 \001(\014\022\014\n\004tags" + "\030\007 \001(\014\"\220\001\n\010KeyValue\022\013\n\003row\030\001 \002(\014\022\016\n\006fami" + "ly\030\002 \002(\014\022\021\n\tqualifier\030\003 \002(\014\022\021\n\ttimestamp" + "\030\004 \001(\004\022$\n\010key_type\030\005 \001(\0162\022.hbase.pb.Cell" + "Type\022\r\n\005value\030\006 \001(\014\022\014\n\004tags\030\007 \001(\014*`\n\010Cel" + "lType\022\013\n\007MINIMUM\020\000\022\007\n\003PUT\020\004\022\n\n\006DELETE\020\010\022" + "\021\n\rDELETE_COLUMN\020\014\022\021\n\rDELETE_FAMILY\020\016\022\014\n" + "\007MAXIMUM\020\377\001B=\n*org.apache.hadoop.hbase.p" + "rotobuf.generatedB\nCellProtosH\001\240\001\001", 474); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Cell.proto", &protobuf_RegisterTypes); + Cell::default_instance_ = new Cell(); + KeyValue::default_instance_ = new KeyValue(); + Cell::default_instance_->InitAsDefaultInstance(); + KeyValue::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Cell_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Cell_2eproto { + StaticDescriptorInitializer_Cell_2eproto() { + protobuf_AddDesc_Cell_2eproto(); + } +} static_descriptor_initializer_Cell_2eproto_; +const ::google::protobuf::EnumDescriptor* CellType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return CellType_descriptor_; +} +bool CellType_IsValid(int value) { + switch(value) { + case 0: + case 4: + case 8: + case 12: + case 14: + case 255: + return true; + default: + return false; + } +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Cell::kRowFieldNumber; +const int Cell::kFamilyFieldNumber; +const int Cell::kQualifierFieldNumber; +const int Cell::kTimestampFieldNumber; +const int Cell::kCellTypeFieldNumber; +const int Cell::kValueFieldNumber; +const int Cell::kTagsFieldNumber; +#endif // !_MSC_VER + +Cell::Cell() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Cell::InitAsDefaultInstance() { +} + +Cell::Cell(const Cell& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Cell::SharedCtor() { + _cached_size_ = 0; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + timestamp_ = GOOGLE_ULONGLONG(0); + cell_type_ = 0; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Cell::~Cell() { + SharedDtor(); +} + +void Cell::SharedDtor() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (tags_ != &::google::protobuf::internal::kEmptyString) { + delete tags_; + } + if (this != default_instance_) { + } +} + +void Cell::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Cell::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Cell_descriptor_; +} + +const Cell& Cell::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Cell_2eproto(); + return *default_instance_; +} + +Cell* Cell::default_instance_ = NULL; + +Cell* Cell::New() const { + return new Cell; +} + +void Cell::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_row()) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + } + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + if (has_qualifier()) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + } + timestamp_ = GOOGLE_ULONGLONG(0); + cell_type_ = 0; + if (has_value()) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + } + if (has_tags()) { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + tags_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Cell::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes row = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_family; + break; + } + + // optional bytes family = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_qualifier; + break; + } + + // optional bytes qualifier = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_qualifier: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_timestamp; + break; + } + + // optional uint64 timestamp = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_timestamp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ×tamp_))); + set_has_timestamp(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_cell_type; + break; + } + + // optional .hbase.pb.CellType cell_type = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_cell_type: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::CellType_IsValid(value)) { + set_cell_type(static_cast< ::hbase::pb::CellType >(value)); + } else { + mutable_unknown_fields()->AddVarint(5, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_value; + break; + } + + // optional bytes value = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(58)) goto parse_tags; + break; + } + + // optional bytes tags = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_tags: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tags())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Cell::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes row = 1; + if (has_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->row(), output); + } + + // optional bytes family = 2; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->family(), output); + } + + // optional bytes qualifier = 3; + if (has_qualifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->qualifier(), output); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->timestamp(), output); + } + + // optional .hbase.pb.CellType cell_type = 5; + if (has_cell_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->cell_type(), output); + } + + // optional bytes value = 6; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 6, this->value(), output); + } + + // optional bytes tags = 7; + if (has_tags()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 7, this->tags(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Cell::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes row = 1; + if (has_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->row(), target); + } + + // optional bytes family = 2; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->family(), target); + } + + // optional bytes qualifier = 3; + if (has_qualifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->qualifier(), target); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->timestamp(), target); + } + + // optional .hbase.pb.CellType cell_type = 5; + if (has_cell_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->cell_type(), target); + } + + // optional bytes value = 6; + if (has_value()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->value(), target); + } + + // optional bytes tags = 7; + if (has_tags()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->tags(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Cell::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes row = 1; + if (has_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->row()); + } + + // optional bytes family = 2; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + // optional bytes qualifier = 3; + if (has_qualifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->qualifier()); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->timestamp()); + } + + // optional .hbase.pb.CellType cell_type = 5; + if (has_cell_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cell_type()); + } + + // optional bytes value = 6; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + // optional bytes tags = 7; + if (has_tags()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tags()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Cell::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Cell* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Cell::MergeFrom(const Cell& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_row()) { + set_row(from.row()); + } + if (from.has_family()) { + set_family(from.family()); + } + if (from.has_qualifier()) { + set_qualifier(from.qualifier()); + } + if (from.has_timestamp()) { + set_timestamp(from.timestamp()); + } + if (from.has_cell_type()) { + set_cell_type(from.cell_type()); + } + if (from.has_value()) { + set_value(from.value()); + } + if (from.has_tags()) { + set_tags(from.tags()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Cell::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Cell::CopyFrom(const Cell& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Cell::IsInitialized() const { + + return true; +} + +void Cell::Swap(Cell* other) { + if (other != this) { + std::swap(row_, other->row_); + std::swap(family_, other->family_); + std::swap(qualifier_, other->qualifier_); + std::swap(timestamp_, other->timestamp_); + std::swap(cell_type_, other->cell_type_); + std::swap(value_, other->value_); + std::swap(tags_, other->tags_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Cell::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Cell_descriptor_; + metadata.reflection = Cell_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int KeyValue::kRowFieldNumber; +const int KeyValue::kFamilyFieldNumber; +const int KeyValue::kQualifierFieldNumber; +const int KeyValue::kTimestampFieldNumber; +const int KeyValue::kKeyTypeFieldNumber; +const int KeyValue::kValueFieldNumber; +const int KeyValue::kTagsFieldNumber; +#endif // !_MSC_VER + +KeyValue::KeyValue() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void KeyValue::InitAsDefaultInstance() { +} + +KeyValue::KeyValue(const KeyValue& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void KeyValue::SharedCtor() { + _cached_size_ = 0; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + timestamp_ = GOOGLE_ULONGLONG(0); + key_type_ = 0; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +KeyValue::~KeyValue() { + SharedDtor(); +} + +void KeyValue::SharedDtor() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (tags_ != &::google::protobuf::internal::kEmptyString) { + delete tags_; + } + if (this != default_instance_) { + } +} + +void KeyValue::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* KeyValue::descriptor() { + protobuf_AssignDescriptorsOnce(); + return KeyValue_descriptor_; +} + +const KeyValue& KeyValue::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Cell_2eproto(); + return *default_instance_; +} + +KeyValue* KeyValue::default_instance_ = NULL; + +KeyValue* KeyValue::New() const { + return new KeyValue; +} + +void KeyValue::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_row()) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + } + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + if (has_qualifier()) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + } + timestamp_ = GOOGLE_ULONGLONG(0); + key_type_ = 0; + if (has_value()) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + } + if (has_tags()) { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + tags_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool KeyValue::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes row = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_family; + break; + } + + // required bytes family = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_qualifier; + break; + } + + // required bytes qualifier = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_qualifier: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_timestamp; + break; + } + + // optional uint64 timestamp = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_timestamp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ×tamp_))); + set_has_timestamp(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_key_type; + break; + } + + // optional .hbase.pb.CellType key_type = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_key_type: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::CellType_IsValid(value)) { + set_key_type(static_cast< ::hbase::pb::CellType >(value)); + } else { + mutable_unknown_fields()->AddVarint(5, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_value; + break; + } + + // optional bytes value = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(58)) goto parse_tags; + break; + } + + // optional bytes tags = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_tags: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tags())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void KeyValue::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes row = 1; + if (has_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->row(), output); + } + + // required bytes family = 2; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->family(), output); + } + + // required bytes qualifier = 3; + if (has_qualifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->qualifier(), output); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->timestamp(), output); + } + + // optional .hbase.pb.CellType key_type = 5; + if (has_key_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->key_type(), output); + } + + // optional bytes value = 6; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 6, this->value(), output); + } + + // optional bytes tags = 7; + if (has_tags()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 7, this->tags(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* KeyValue::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes row = 1; + if (has_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->row(), target); + } + + // required bytes family = 2; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->family(), target); + } + + // required bytes qualifier = 3; + if (has_qualifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->qualifier(), target); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->timestamp(), target); + } + + // optional .hbase.pb.CellType key_type = 5; + if (has_key_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->key_type(), target); + } + + // optional bytes value = 6; + if (has_value()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->value(), target); + } + + // optional bytes tags = 7; + if (has_tags()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->tags(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int KeyValue::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes row = 1; + if (has_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->row()); + } + + // required bytes family = 2; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + // required bytes qualifier = 3; + if (has_qualifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->qualifier()); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->timestamp()); + } + + // optional .hbase.pb.CellType key_type = 5; + if (has_key_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->key_type()); + } + + // optional bytes value = 6; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + // optional bytes tags = 7; + if (has_tags()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tags()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void KeyValue::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const KeyValue* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void KeyValue::MergeFrom(const KeyValue& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_row()) { + set_row(from.row()); + } + if (from.has_family()) { + set_family(from.family()); + } + if (from.has_qualifier()) { + set_qualifier(from.qualifier()); + } + if (from.has_timestamp()) { + set_timestamp(from.timestamp()); + } + if (from.has_key_type()) { + set_key_type(from.key_type()); + } + if (from.has_value()) { + set_value(from.value()); + } + if (from.has_tags()) { + set_tags(from.tags()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void KeyValue::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void KeyValue::CopyFrom(const KeyValue& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KeyValue::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void KeyValue::Swap(KeyValue* other) { + if (other != this) { + std::swap(row_, other->row_); + std::swap(family_, other->family_); + std::swap(qualifier_, other->qualifier_); + std::swap(timestamp_, other->timestamp_); + std::swap(key_type_, other->key_type_); + std::swap(value_, other->value_); + std::swap(tags_, other->tags_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata KeyValue::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = KeyValue_descriptor_; + metadata.reflection = KeyValue_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Cell.pb.h b/hbase-native-client/src/rpc/generated/Cell.pb.h new file mode 100644 index 0000000..33938e5 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Cell.pb.h @@ -0,0 +1,1220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Cell.proto + +#ifndef PROTOBUF_Cell_2eproto__INCLUDED +#define PROTOBUF_Cell_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Cell_2eproto(); +void protobuf_AssignDesc_Cell_2eproto(); +void protobuf_ShutdownFile_Cell_2eproto(); + +class Cell; +class KeyValue; + +enum CellType { + MINIMUM = 0, + PUT = 4, + DELETE = 8, + DELETE_COLUMN = 12, + DELETE_FAMILY = 14, + MAXIMUM = 255 +}; +bool CellType_IsValid(int value); +const CellType CellType_MIN = MINIMUM; +const CellType CellType_MAX = MAXIMUM; +const int CellType_ARRAYSIZE = CellType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* CellType_descriptor(); +inline const ::std::string& CellType_Name(CellType value) { + return ::google::protobuf::internal::NameOfEnum( + CellType_descriptor(), value); +} +inline bool CellType_Parse( + const ::std::string& name, CellType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CellType_descriptor(), name, value); +} +// =================================================================== + +class Cell : public ::google::protobuf::Message { + public: + Cell(); + virtual ~Cell(); + + Cell(const Cell& from); + + inline Cell& operator=(const Cell& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Cell& default_instance(); + + void Swap(Cell* other); + + // implements Message ---------------------------------------------- + + Cell* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Cell& from); + void MergeFrom(const Cell& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes row = 1; + inline bool has_row() const; + inline void clear_row(); + static const int kRowFieldNumber = 1; + inline const ::std::string& row() const; + inline void set_row(const ::std::string& value); + inline void set_row(const char* value); + inline void set_row(const void* value, size_t size); + inline ::std::string* mutable_row(); + inline ::std::string* release_row(); + inline void set_allocated_row(::std::string* row); + + // optional bytes family = 2; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 2; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // optional bytes qualifier = 3; + inline bool has_qualifier() const; + inline void clear_qualifier(); + static const int kQualifierFieldNumber = 3; + inline const ::std::string& qualifier() const; + inline void set_qualifier(const ::std::string& value); + inline void set_qualifier(const char* value); + inline void set_qualifier(const void* value, size_t size); + inline ::std::string* mutable_qualifier(); + inline ::std::string* release_qualifier(); + inline void set_allocated_qualifier(::std::string* qualifier); + + // optional uint64 timestamp = 4; + inline bool has_timestamp() const; + inline void clear_timestamp(); + static const int kTimestampFieldNumber = 4; + inline ::google::protobuf::uint64 timestamp() const; + inline void set_timestamp(::google::protobuf::uint64 value); + + // optional .hbase.pb.CellType cell_type = 5; + inline bool has_cell_type() const; + inline void clear_cell_type(); + static const int kCellTypeFieldNumber = 5; + inline ::hbase::pb::CellType cell_type() const; + inline void set_cell_type(::hbase::pb::CellType value); + + // optional bytes value = 6; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 6; + inline const ::std::string& value() const; + inline void set_value(const ::std::string& value); + inline void set_value(const char* value); + inline void set_value(const void* value, size_t size); + inline ::std::string* mutable_value(); + inline ::std::string* release_value(); + inline void set_allocated_value(::std::string* value); + + // optional bytes tags = 7; + inline bool has_tags() const; + inline void clear_tags(); + static const int kTagsFieldNumber = 7; + inline const ::std::string& tags() const; + inline void set_tags(const ::std::string& value); + inline void set_tags(const char* value); + inline void set_tags(const void* value, size_t size); + inline ::std::string* mutable_tags(); + inline ::std::string* release_tags(); + inline void set_allocated_tags(::std::string* tags); + + // @@protoc_insertion_point(class_scope:hbase.pb.Cell) + private: + inline void set_has_row(); + inline void clear_has_row(); + inline void set_has_family(); + inline void clear_has_family(); + inline void set_has_qualifier(); + inline void clear_has_qualifier(); + inline void set_has_timestamp(); + inline void clear_has_timestamp(); + inline void set_has_cell_type(); + inline void clear_has_cell_type(); + inline void set_has_value(); + inline void clear_has_value(); + inline void set_has_tags(); + inline void clear_has_tags(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* row_; + ::std::string* family_; + ::std::string* qualifier_; + ::google::protobuf::uint64 timestamp_; + ::std::string* value_; + ::std::string* tags_; + int cell_type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + + friend void protobuf_AddDesc_Cell_2eproto(); + friend void protobuf_AssignDesc_Cell_2eproto(); + friend void protobuf_ShutdownFile_Cell_2eproto(); + + void InitAsDefaultInstance(); + static Cell* default_instance_; +}; +// ------------------------------------------------------------------- + +class KeyValue : public ::google::protobuf::Message { + public: + KeyValue(); + virtual ~KeyValue(); + + KeyValue(const KeyValue& from); + + inline KeyValue& operator=(const KeyValue& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const KeyValue& default_instance(); + + void Swap(KeyValue* other); + + // implements Message ---------------------------------------------- + + KeyValue* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const KeyValue& from); + void MergeFrom(const KeyValue& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes row = 1; + inline bool has_row() const; + inline void clear_row(); + static const int kRowFieldNumber = 1; + inline const ::std::string& row() const; + inline void set_row(const ::std::string& value); + inline void set_row(const char* value); + inline void set_row(const void* value, size_t size); + inline ::std::string* mutable_row(); + inline ::std::string* release_row(); + inline void set_allocated_row(::std::string* row); + + // required bytes family = 2; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 2; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // required bytes qualifier = 3; + inline bool has_qualifier() const; + inline void clear_qualifier(); + static const int kQualifierFieldNumber = 3; + inline const ::std::string& qualifier() const; + inline void set_qualifier(const ::std::string& value); + inline void set_qualifier(const char* value); + inline void set_qualifier(const void* value, size_t size); + inline ::std::string* mutable_qualifier(); + inline ::std::string* release_qualifier(); + inline void set_allocated_qualifier(::std::string* qualifier); + + // optional uint64 timestamp = 4; + inline bool has_timestamp() const; + inline void clear_timestamp(); + static const int kTimestampFieldNumber = 4; + inline ::google::protobuf::uint64 timestamp() const; + inline void set_timestamp(::google::protobuf::uint64 value); + + // optional .hbase.pb.CellType key_type = 5; + inline bool has_key_type() const; + inline void clear_key_type(); + static const int kKeyTypeFieldNumber = 5; + inline ::hbase::pb::CellType key_type() const; + inline void set_key_type(::hbase::pb::CellType value); + + // optional bytes value = 6; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 6; + inline const ::std::string& value() const; + inline void set_value(const ::std::string& value); + inline void set_value(const char* value); + inline void set_value(const void* value, size_t size); + inline ::std::string* mutable_value(); + inline ::std::string* release_value(); + inline void set_allocated_value(::std::string* value); + + // optional bytes tags = 7; + inline bool has_tags() const; + inline void clear_tags(); + static const int kTagsFieldNumber = 7; + inline const ::std::string& tags() const; + inline void set_tags(const ::std::string& value); + inline void set_tags(const char* value); + inline void set_tags(const void* value, size_t size); + inline ::std::string* mutable_tags(); + inline ::std::string* release_tags(); + inline void set_allocated_tags(::std::string* tags); + + // @@protoc_insertion_point(class_scope:hbase.pb.KeyValue) + private: + inline void set_has_row(); + inline void clear_has_row(); + inline void set_has_family(); + inline void clear_has_family(); + inline void set_has_qualifier(); + inline void clear_has_qualifier(); + inline void set_has_timestamp(); + inline void clear_has_timestamp(); + inline void set_has_key_type(); + inline void clear_has_key_type(); + inline void set_has_value(); + inline void clear_has_value(); + inline void set_has_tags(); + inline void clear_has_tags(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* row_; + ::std::string* family_; + ::std::string* qualifier_; + ::google::protobuf::uint64 timestamp_; + ::std::string* value_; + ::std::string* tags_; + int key_type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + + friend void protobuf_AddDesc_Cell_2eproto(); + friend void protobuf_AssignDesc_Cell_2eproto(); + friend void protobuf_ShutdownFile_Cell_2eproto(); + + void InitAsDefaultInstance(); + static KeyValue* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// Cell + +// optional bytes row = 1; +inline bool Cell::has_row() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Cell::set_has_row() { + _has_bits_[0] |= 0x00000001u; +} +inline void Cell::clear_has_row() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Cell::clear_row() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + clear_has_row(); +} +inline const ::std::string& Cell::row() const { + return *row_; +} +inline void Cell::set_row(const ::std::string& value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void Cell::set_row(const char* value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void Cell::set_row(const void* value, size_t size) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Cell::mutable_row() { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + return row_; +} +inline ::std::string* Cell::release_row() { + clear_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Cell::set_allocated_row(::std::string* row) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (row) { + set_has_row(); + row_ = row; + } else { + clear_has_row(); + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes family = 2; +inline bool Cell::has_family() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Cell::set_has_family() { + _has_bits_[0] |= 0x00000002u; +} +inline void Cell::clear_has_family() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Cell::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& Cell::family() const { + return *family_; +} +inline void Cell::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void Cell::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void Cell::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Cell::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* Cell::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Cell::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes qualifier = 3; +inline bool Cell::has_qualifier() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Cell::set_has_qualifier() { + _has_bits_[0] |= 0x00000004u; +} +inline void Cell::clear_has_qualifier() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Cell::clear_qualifier() { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + clear_has_qualifier(); +} +inline const ::std::string& Cell::qualifier() const { + return *qualifier_; +} +inline void Cell::set_qualifier(const ::std::string& value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void Cell::set_qualifier(const char* value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void Cell::set_qualifier(const void* value, size_t size) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Cell::mutable_qualifier() { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + return qualifier_; +} +inline ::std::string* Cell::release_qualifier() { + clear_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = qualifier_; + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Cell::set_allocated_qualifier(::std::string* qualifier) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (qualifier) { + set_has_qualifier(); + qualifier_ = qualifier; + } else { + clear_has_qualifier(); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 timestamp = 4; +inline bool Cell::has_timestamp() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Cell::set_has_timestamp() { + _has_bits_[0] |= 0x00000008u; +} +inline void Cell::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Cell::clear_timestamp() { + timestamp_ = GOOGLE_ULONGLONG(0); + clear_has_timestamp(); +} +inline ::google::protobuf::uint64 Cell::timestamp() const { + return timestamp_; +} +inline void Cell::set_timestamp(::google::protobuf::uint64 value) { + set_has_timestamp(); + timestamp_ = value; +} + +// optional .hbase.pb.CellType cell_type = 5; +inline bool Cell::has_cell_type() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Cell::set_has_cell_type() { + _has_bits_[0] |= 0x00000010u; +} +inline void Cell::clear_has_cell_type() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Cell::clear_cell_type() { + cell_type_ = 0; + clear_has_cell_type(); +} +inline ::hbase::pb::CellType Cell::cell_type() const { + return static_cast< ::hbase::pb::CellType >(cell_type_); +} +inline void Cell::set_cell_type(::hbase::pb::CellType value) { + assert(::hbase::pb::CellType_IsValid(value)); + set_has_cell_type(); + cell_type_ = value; +} + +// optional bytes value = 6; +inline bool Cell::has_value() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void Cell::set_has_value() { + _has_bits_[0] |= 0x00000020u; +} +inline void Cell::clear_has_value() { + _has_bits_[0] &= ~0x00000020u; +} +inline void Cell::clear_value() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + clear_has_value(); +} +inline const ::std::string& Cell::value() const { + return *value_; +} +inline void Cell::set_value(const ::std::string& value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void Cell::set_value(const char* value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void Cell::set_value(const void* value, size_t size) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Cell::mutable_value() { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + return value_; +} +inline ::std::string* Cell::release_value() { + clear_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = value_; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Cell::set_allocated_value(::std::string* value) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (value) { + set_has_value(); + value_ = value; + } else { + clear_has_value(); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes tags = 7; +inline bool Cell::has_tags() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void Cell::set_has_tags() { + _has_bits_[0] |= 0x00000040u; +} +inline void Cell::clear_has_tags() { + _has_bits_[0] &= ~0x00000040u; +} +inline void Cell::clear_tags() { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + tags_->clear(); + } + clear_has_tags(); +} +inline const ::std::string& Cell::tags() const { + return *tags_; +} +inline void Cell::set_tags(const ::std::string& value) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(value); +} +inline void Cell::set_tags(const char* value) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(value); +} +inline void Cell::set_tags(const void* value, size_t size) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Cell::mutable_tags() { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + return tags_; +} +inline ::std::string* Cell::release_tags() { + clear_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = tags_; + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Cell::set_allocated_tags(::std::string* tags) { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + delete tags_; + } + if (tags) { + set_has_tags(); + tags_ = tags; + } else { + clear_has_tags(); + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// KeyValue + +// required bytes row = 1; +inline bool KeyValue::has_row() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void KeyValue::set_has_row() { + _has_bits_[0] |= 0x00000001u; +} +inline void KeyValue::clear_has_row() { + _has_bits_[0] &= ~0x00000001u; +} +inline void KeyValue::clear_row() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + clear_has_row(); +} +inline const ::std::string& KeyValue::row() const { + return *row_; +} +inline void KeyValue::set_row(const ::std::string& value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void KeyValue::set_row(const char* value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void KeyValue::set_row(const void* value, size_t size) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* KeyValue::mutable_row() { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + return row_; +} +inline ::std::string* KeyValue::release_row() { + clear_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void KeyValue::set_allocated_row(::std::string* row) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (row) { + set_has_row(); + row_ = row; + } else { + clear_has_row(); + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes family = 2; +inline bool KeyValue::has_family() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void KeyValue::set_has_family() { + _has_bits_[0] |= 0x00000002u; +} +inline void KeyValue::clear_has_family() { + _has_bits_[0] &= ~0x00000002u; +} +inline void KeyValue::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& KeyValue::family() const { + return *family_; +} +inline void KeyValue::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void KeyValue::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void KeyValue::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* KeyValue::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* KeyValue::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void KeyValue::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes qualifier = 3; +inline bool KeyValue::has_qualifier() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void KeyValue::set_has_qualifier() { + _has_bits_[0] |= 0x00000004u; +} +inline void KeyValue::clear_has_qualifier() { + _has_bits_[0] &= ~0x00000004u; +} +inline void KeyValue::clear_qualifier() { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + clear_has_qualifier(); +} +inline const ::std::string& KeyValue::qualifier() const { + return *qualifier_; +} +inline void KeyValue::set_qualifier(const ::std::string& value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void KeyValue::set_qualifier(const char* value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void KeyValue::set_qualifier(const void* value, size_t size) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* KeyValue::mutable_qualifier() { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + return qualifier_; +} +inline ::std::string* KeyValue::release_qualifier() { + clear_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = qualifier_; + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void KeyValue::set_allocated_qualifier(::std::string* qualifier) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (qualifier) { + set_has_qualifier(); + qualifier_ = qualifier; + } else { + clear_has_qualifier(); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 timestamp = 4; +inline bool KeyValue::has_timestamp() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void KeyValue::set_has_timestamp() { + _has_bits_[0] |= 0x00000008u; +} +inline void KeyValue::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000008u; +} +inline void KeyValue::clear_timestamp() { + timestamp_ = GOOGLE_ULONGLONG(0); + clear_has_timestamp(); +} +inline ::google::protobuf::uint64 KeyValue::timestamp() const { + return timestamp_; +} +inline void KeyValue::set_timestamp(::google::protobuf::uint64 value) { + set_has_timestamp(); + timestamp_ = value; +} + +// optional .hbase.pb.CellType key_type = 5; +inline bool KeyValue::has_key_type() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void KeyValue::set_has_key_type() { + _has_bits_[0] |= 0x00000010u; +} +inline void KeyValue::clear_has_key_type() { + _has_bits_[0] &= ~0x00000010u; +} +inline void KeyValue::clear_key_type() { + key_type_ = 0; + clear_has_key_type(); +} +inline ::hbase::pb::CellType KeyValue::key_type() const { + return static_cast< ::hbase::pb::CellType >(key_type_); +} +inline void KeyValue::set_key_type(::hbase::pb::CellType value) { + assert(::hbase::pb::CellType_IsValid(value)); + set_has_key_type(); + key_type_ = value; +} + +// optional bytes value = 6; +inline bool KeyValue::has_value() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void KeyValue::set_has_value() { + _has_bits_[0] |= 0x00000020u; +} +inline void KeyValue::clear_has_value() { + _has_bits_[0] &= ~0x00000020u; +} +inline void KeyValue::clear_value() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + clear_has_value(); +} +inline const ::std::string& KeyValue::value() const { + return *value_; +} +inline void KeyValue::set_value(const ::std::string& value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void KeyValue::set_value(const char* value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void KeyValue::set_value(const void* value, size_t size) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(reinterpret_cast(value), size); +} +inline ::std::string* KeyValue::mutable_value() { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + return value_; +} +inline ::std::string* KeyValue::release_value() { + clear_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = value_; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void KeyValue::set_allocated_value(::std::string* value) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (value) { + set_has_value(); + value_ = value; + } else { + clear_has_value(); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes tags = 7; +inline bool KeyValue::has_tags() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void KeyValue::set_has_tags() { + _has_bits_[0] |= 0x00000040u; +} +inline void KeyValue::clear_has_tags() { + _has_bits_[0] &= ~0x00000040u; +} +inline void KeyValue::clear_tags() { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + tags_->clear(); + } + clear_has_tags(); +} +inline const ::std::string& KeyValue::tags() const { + return *tags_; +} +inline void KeyValue::set_tags(const ::std::string& value) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(value); +} +inline void KeyValue::set_tags(const char* value) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(value); +} +inline void KeyValue::set_tags(const void* value, size_t size) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(reinterpret_cast(value), size); +} +inline ::std::string* KeyValue::mutable_tags() { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + return tags_; +} +inline ::std::string* KeyValue::release_tags() { + clear_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = tags_; + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void KeyValue::set_allocated_tags(::std::string* tags) { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + delete tags_; + } + if (tags) { + set_has_tags(); + tags_ = tags; + } else { + clear_has_tags(); + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::CellType>() { + return ::hbase::pb::CellType_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Cell_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Client.pb.cc b/hbase-native-client/src/rpc/generated/Client.pb.cc new file mode 100644 index 0000000..66ddfff --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Client.pb.cc @@ -0,0 +1,12098 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Client.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Client.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* Authorizations_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Authorizations_reflection_ = NULL; +const ::google::protobuf::Descriptor* CellVisibility_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CellVisibility_reflection_ = NULL; +const ::google::protobuf::Descriptor* Column_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Column_reflection_ = NULL; +const ::google::protobuf::Descriptor* Get_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Get_reflection_ = NULL; +const ::google::protobuf::Descriptor* Result_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Result_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* Condition_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Condition_reflection_ = NULL; +const ::google::protobuf::Descriptor* MutationProto_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MutationProto_reflection_ = NULL; +const ::google::protobuf::Descriptor* MutationProto_ColumnValue_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MutationProto_ColumnValue_reflection_ = NULL; +const ::google::protobuf::Descriptor* MutationProto_ColumnValue_QualifierValue_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MutationProto_ColumnValue_QualifierValue_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* MutationProto_Durability_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* MutationProto_MutationType_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* MutationProto_DeleteType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* MutateRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MutateRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MutateResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MutateResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* Scan_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Scan_reflection_ = NULL; +const ::google::protobuf::Descriptor* ScanRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ScanRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ScanResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ScanResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* BulkLoadHFileRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BulkLoadHFileRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* BulkLoadHFileRequest_FamilyPath_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BulkLoadHFileRequest_FamilyPath_reflection_ = NULL; +const ::google::protobuf::Descriptor* BulkLoadHFileResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BulkLoadHFileResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* CoprocessorServiceCall_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CoprocessorServiceCall_reflection_ = NULL; +const ::google::protobuf::Descriptor* CoprocessorServiceResult_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CoprocessorServiceResult_reflection_ = NULL; +const ::google::protobuf::Descriptor* CoprocessorServiceRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CoprocessorServiceRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* CoprocessorServiceResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CoprocessorServiceResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* Action_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Action_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionAction_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionAction_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionLoadStats_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionLoadStats_reflection_ = NULL; +const ::google::protobuf::Descriptor* MultiRegionLoadStats_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MultiRegionLoadStats_reflection_ = NULL; +const ::google::protobuf::Descriptor* ResultOrException_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ResultOrException_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionActionResult_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionActionResult_reflection_ = NULL; +const ::google::protobuf::Descriptor* MultiRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MultiRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MultiResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MultiResponse_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* Consistency_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Client_2eproto() { + protobuf_AddDesc_Client_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Client.proto"); + GOOGLE_CHECK(file != NULL); + Authorizations_descriptor_ = file->message_type(0); + static const int Authorizations_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Authorizations, label_), + }; + Authorizations_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Authorizations_descriptor_, + Authorizations::default_instance_, + Authorizations_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Authorizations, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Authorizations, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Authorizations)); + CellVisibility_descriptor_ = file->message_type(1); + static const int CellVisibility_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellVisibility, expression_), + }; + CellVisibility_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CellVisibility_descriptor_, + CellVisibility::default_instance_, + CellVisibility_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellVisibility, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellVisibility, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CellVisibility)); + Column_descriptor_ = file->message_type(2); + static const int Column_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Column, family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Column, qualifier_), + }; + Column_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Column_descriptor_, + Column::default_instance_, + Column_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Column, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Column, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Column)); + Get_descriptor_ = file->message_type(3); + static const int Get_offsets_[12] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, column_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, attribute_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, filter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, time_range_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, max_versions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, cache_blocks_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, store_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, store_offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, existence_only_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, consistency_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, cf_time_range_), + }; + Get_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Get_descriptor_, + Get::default_instance_, + Get_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Get, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Get)); + Result_descriptor_ = file->message_type(4); + static const int Result_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Result, cell_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Result, associated_cell_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Result, exists_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Result, stale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Result, partial_), + }; + Result_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Result_descriptor_, + Result::default_instance_, + Result_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Result, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Result, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Result)); + GetRequest_descriptor_ = file->message_type(5); + static const int GetRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRequest, get_), + }; + GetRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRequest_descriptor_, + GetRequest::default_instance_, + GetRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRequest)); + GetResponse_descriptor_ = file->message_type(6); + static const int GetResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetResponse, result_), + }; + GetResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetResponse_descriptor_, + GetResponse::default_instance_, + GetResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetResponse)); + Condition_descriptor_ = file->message_type(7); + static const int Condition_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Condition, row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Condition, family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Condition, qualifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Condition, compare_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Condition, comparator_), + }; + Condition_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Condition_descriptor_, + Condition::default_instance_, + Condition_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Condition, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Condition, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Condition)); + MutationProto_descriptor_ = file->message_type(8); + static const int MutationProto_offsets_[9] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, mutate_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, column_value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, timestamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, attribute_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, durability_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, time_range_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, associated_cell_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, nonce_), + }; + MutationProto_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MutationProto_descriptor_, + MutationProto::default_instance_, + MutationProto_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MutationProto)); + MutationProto_ColumnValue_descriptor_ = MutationProto_descriptor_->nested_type(0); + static const int MutationProto_ColumnValue_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue, family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue, qualifier_value_), + }; + MutationProto_ColumnValue_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MutationProto_ColumnValue_descriptor_, + MutationProto_ColumnValue::default_instance_, + MutationProto_ColumnValue_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MutationProto_ColumnValue)); + MutationProto_ColumnValue_QualifierValue_descriptor_ = MutationProto_ColumnValue_descriptor_->nested_type(0); + static const int MutationProto_ColumnValue_QualifierValue_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue_QualifierValue, qualifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue_QualifierValue, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue_QualifierValue, timestamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue_QualifierValue, delete_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue_QualifierValue, tags_), + }; + MutationProto_ColumnValue_QualifierValue_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MutationProto_ColumnValue_QualifierValue_descriptor_, + MutationProto_ColumnValue_QualifierValue::default_instance_, + MutationProto_ColumnValue_QualifierValue_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue_QualifierValue, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutationProto_ColumnValue_QualifierValue, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MutationProto_ColumnValue_QualifierValue)); + MutationProto_Durability_descriptor_ = MutationProto_descriptor_->enum_type(0); + MutationProto_MutationType_descriptor_ = MutationProto_descriptor_->enum_type(1); + MutationProto_DeleteType_descriptor_ = MutationProto_descriptor_->enum_type(2); + MutateRequest_descriptor_ = file->message_type(9); + static const int MutateRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRequest, mutation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRequest, condition_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRequest, nonce_group_), + }; + MutateRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MutateRequest_descriptor_, + MutateRequest::default_instance_, + MutateRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MutateRequest)); + MutateResponse_descriptor_ = file->message_type(10); + static const int MutateResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateResponse, result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateResponse, processed_), + }; + MutateResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MutateResponse_descriptor_, + MutateResponse::default_instance_, + MutateResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MutateResponse)); + Scan_descriptor_ = file->message_type(11); + static const int Scan_offsets_[19] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, column_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, attribute_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, start_row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, stop_row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, filter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, time_range_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, max_versions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, cache_blocks_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, batch_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, max_result_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, store_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, store_offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, load_column_families_on_demand_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, small_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, reversed_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, consistency_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, caching_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, allow_partial_results_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, cf_time_range_), + }; + Scan_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Scan_descriptor_, + Scan::default_instance_, + Scan_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Scan, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Scan)); + ScanRequest_descriptor_ = file->message_type(12); + static const int ScanRequest_offsets_[10] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, scan_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, scanner_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, number_of_rows_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, close_scanner_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, next_call_seq_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, client_handles_partials_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, client_handles_heartbeats_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, track_scan_metrics_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, renew_), + }; + ScanRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ScanRequest_descriptor_, + ScanRequest::default_instance_, + ScanRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ScanRequest)); + ScanResponse_descriptor_ = file->message_type(13); + static const int ScanResponse_offsets_[10] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, cells_per_result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, scanner_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, more_results_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, ttl_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, results_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, stale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, partial_flag_per_result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, more_results_in_region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, heartbeat_message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, scan_metrics_), + }; + ScanResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ScanResponse_descriptor_, + ScanResponse::default_instance_, + ScanResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ScanResponse)); + BulkLoadHFileRequest_descriptor_ = file->message_type(14); + static const int BulkLoadHFileRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest, family_path_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest, assign_seq_num_), + }; + BulkLoadHFileRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BulkLoadHFileRequest_descriptor_, + BulkLoadHFileRequest::default_instance_, + BulkLoadHFileRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BulkLoadHFileRequest)); + BulkLoadHFileRequest_FamilyPath_descriptor_ = BulkLoadHFileRequest_descriptor_->nested_type(0); + static const int BulkLoadHFileRequest_FamilyPath_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest_FamilyPath, family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest_FamilyPath, path_), + }; + BulkLoadHFileRequest_FamilyPath_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BulkLoadHFileRequest_FamilyPath_descriptor_, + BulkLoadHFileRequest_FamilyPath::default_instance_, + BulkLoadHFileRequest_FamilyPath_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest_FamilyPath, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileRequest_FamilyPath, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BulkLoadHFileRequest_FamilyPath)); + BulkLoadHFileResponse_descriptor_ = file->message_type(15); + static const int BulkLoadHFileResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileResponse, loaded_), + }; + BulkLoadHFileResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BulkLoadHFileResponse_descriptor_, + BulkLoadHFileResponse::default_instance_, + BulkLoadHFileResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadHFileResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BulkLoadHFileResponse)); + CoprocessorServiceCall_descriptor_ = file->message_type(16); + static const int CoprocessorServiceCall_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceCall, row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceCall, service_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceCall, method_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceCall, request_), + }; + CoprocessorServiceCall_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CoprocessorServiceCall_descriptor_, + CoprocessorServiceCall::default_instance_, + CoprocessorServiceCall_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceCall, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceCall, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CoprocessorServiceCall)); + CoprocessorServiceResult_descriptor_ = file->message_type(17); + static const int CoprocessorServiceResult_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceResult, value_), + }; + CoprocessorServiceResult_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CoprocessorServiceResult_descriptor_, + CoprocessorServiceResult::default_instance_, + CoprocessorServiceResult_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceResult, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceResult, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CoprocessorServiceResult)); + CoprocessorServiceRequest_descriptor_ = file->message_type(18); + static const int CoprocessorServiceRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceRequest, call_), + }; + CoprocessorServiceRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CoprocessorServiceRequest_descriptor_, + CoprocessorServiceRequest::default_instance_, + CoprocessorServiceRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CoprocessorServiceRequest)); + CoprocessorServiceResponse_descriptor_ = file->message_type(19); + static const int CoprocessorServiceResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceResponse, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceResponse, value_), + }; + CoprocessorServiceResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CoprocessorServiceResponse_descriptor_, + CoprocessorServiceResponse::default_instance_, + CoprocessorServiceResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoprocessorServiceResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CoprocessorServiceResponse)); + Action_descriptor_ = file->message_type(20); + static const int Action_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Action, index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Action, mutation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Action, get_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Action, service_call_), + }; + Action_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Action_descriptor_, + Action::default_instance_, + Action_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Action, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Action, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Action)); + RegionAction_descriptor_ = file->message_type(21); + static const int RegionAction_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionAction, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionAction, atomic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionAction, action_), + }; + RegionAction_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionAction_descriptor_, + RegionAction::default_instance_, + RegionAction_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionAction, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionAction, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionAction)); + RegionLoadStats_descriptor_ = file->message_type(22); + static const int RegionLoadStats_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoadStats, memstoreload_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoadStats, heapoccupancy_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoadStats, compactionpressure_), + }; + RegionLoadStats_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionLoadStats_descriptor_, + RegionLoadStats::default_instance_, + RegionLoadStats_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoadStats, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoadStats, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionLoadStats)); + MultiRegionLoadStats_descriptor_ = file->message_type(23); + static const int MultiRegionLoadStats_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRegionLoadStats, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRegionLoadStats, stat_), + }; + MultiRegionLoadStats_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MultiRegionLoadStats_descriptor_, + MultiRegionLoadStats::default_instance_, + MultiRegionLoadStats_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRegionLoadStats, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRegionLoadStats, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MultiRegionLoadStats)); + ResultOrException_descriptor_ = file->message_type(24); + static const int ResultOrException_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultOrException, index_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultOrException, result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultOrException, exception_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultOrException, service_result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultOrException, loadstats_), + }; + ResultOrException_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ResultOrException_descriptor_, + ResultOrException::default_instance_, + ResultOrException_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultOrException, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultOrException, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ResultOrException)); + RegionActionResult_descriptor_ = file->message_type(25); + static const int RegionActionResult_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionActionResult, resultorexception_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionActionResult, exception_), + }; + RegionActionResult_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionActionResult_descriptor_, + RegionActionResult::default_instance_, + RegionActionResult_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionActionResult, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionActionResult, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionActionResult)); + MultiRequest_descriptor_ = file->message_type(26); + static const int MultiRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRequest, regionaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRequest, noncegroup_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRequest, condition_), + }; + MultiRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MultiRequest_descriptor_, + MultiRequest::default_instance_, + MultiRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MultiRequest)); + MultiResponse_descriptor_ = file->message_type(27); + static const int MultiResponse_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiResponse, regionactionresult_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiResponse, processed_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiResponse, regionstatistics_), + }; + MultiResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MultiResponse_descriptor_, + MultiResponse::default_instance_, + MultiResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MultiResponse)); + Consistency_descriptor_ = file->enum_type(0); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Client_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Authorizations_descriptor_, &Authorizations::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CellVisibility_descriptor_, &CellVisibility::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Column_descriptor_, &Column::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Get_descriptor_, &Get::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Result_descriptor_, &Result::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRequest_descriptor_, &GetRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetResponse_descriptor_, &GetResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Condition_descriptor_, &Condition::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MutationProto_descriptor_, &MutationProto::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MutationProto_ColumnValue_descriptor_, &MutationProto_ColumnValue::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MutationProto_ColumnValue_QualifierValue_descriptor_, &MutationProto_ColumnValue_QualifierValue::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MutateRequest_descriptor_, &MutateRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MutateResponse_descriptor_, &MutateResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Scan_descriptor_, &Scan::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ScanRequest_descriptor_, &ScanRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ScanResponse_descriptor_, &ScanResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BulkLoadHFileRequest_descriptor_, &BulkLoadHFileRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BulkLoadHFileRequest_FamilyPath_descriptor_, &BulkLoadHFileRequest_FamilyPath::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BulkLoadHFileResponse_descriptor_, &BulkLoadHFileResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CoprocessorServiceCall_descriptor_, &CoprocessorServiceCall::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CoprocessorServiceResult_descriptor_, &CoprocessorServiceResult::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CoprocessorServiceRequest_descriptor_, &CoprocessorServiceRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CoprocessorServiceResponse_descriptor_, &CoprocessorServiceResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Action_descriptor_, &Action::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionAction_descriptor_, &RegionAction::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionLoadStats_descriptor_, &RegionLoadStats::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MultiRegionLoadStats_descriptor_, &MultiRegionLoadStats::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ResultOrException_descriptor_, &ResultOrException::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionActionResult_descriptor_, &RegionActionResult::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MultiRequest_descriptor_, &MultiRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MultiResponse_descriptor_, &MultiResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Client_2eproto() { + delete Authorizations::default_instance_; + delete Authorizations_reflection_; + delete CellVisibility::default_instance_; + delete CellVisibility_reflection_; + delete Column::default_instance_; + delete Column_reflection_; + delete Get::default_instance_; + delete Get_reflection_; + delete Result::default_instance_; + delete Result_reflection_; + delete GetRequest::default_instance_; + delete GetRequest_reflection_; + delete GetResponse::default_instance_; + delete GetResponse_reflection_; + delete Condition::default_instance_; + delete Condition_reflection_; + delete MutationProto::default_instance_; + delete MutationProto_reflection_; + delete MutationProto_ColumnValue::default_instance_; + delete MutationProto_ColumnValue_reflection_; + delete MutationProto_ColumnValue_QualifierValue::default_instance_; + delete MutationProto_ColumnValue_QualifierValue_reflection_; + delete MutateRequest::default_instance_; + delete MutateRequest_reflection_; + delete MutateResponse::default_instance_; + delete MutateResponse_reflection_; + delete Scan::default_instance_; + delete Scan_reflection_; + delete ScanRequest::default_instance_; + delete ScanRequest_reflection_; + delete ScanResponse::default_instance_; + delete ScanResponse_reflection_; + delete BulkLoadHFileRequest::default_instance_; + delete BulkLoadHFileRequest_reflection_; + delete BulkLoadHFileRequest_FamilyPath::default_instance_; + delete BulkLoadHFileRequest_FamilyPath_reflection_; + delete BulkLoadHFileResponse::default_instance_; + delete BulkLoadHFileResponse_reflection_; + delete CoprocessorServiceCall::default_instance_; + delete CoprocessorServiceCall_reflection_; + delete CoprocessorServiceResult::default_instance_; + delete CoprocessorServiceResult_reflection_; + delete CoprocessorServiceRequest::default_instance_; + delete CoprocessorServiceRequest_reflection_; + delete CoprocessorServiceResponse::default_instance_; + delete CoprocessorServiceResponse_reflection_; + delete Action::default_instance_; + delete Action_reflection_; + delete RegionAction::default_instance_; + delete RegionAction_reflection_; + delete RegionLoadStats::default_instance_; + delete RegionLoadStats_reflection_; + delete MultiRegionLoadStats::default_instance_; + delete MultiRegionLoadStats_reflection_; + delete ResultOrException::default_instance_; + delete ResultOrException_reflection_; + delete RegionActionResult::default_instance_; + delete RegionActionResult_reflection_; + delete MultiRequest::default_instance_; + delete MultiRequest_reflection_; + delete MultiResponse::default_instance_; + delete MultiResponse_reflection_; +} + +void protobuf_AddDesc_Client_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_Filter_2eproto(); + ::hbase::pb::protobuf_AddDesc_Cell_2eproto(); + ::hbase::pb::protobuf_AddDesc_Comparator_2eproto(); + ::hbase::pb::protobuf_AddDesc_MapReduce_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\014Client.proto\022\010hbase.pb\032\013HBase.proto\032\014F" + "ilter.proto\032\nCell.proto\032\020Comparator.prot" + "o\032\017MapReduce.proto\"\037\n\016Authorizations\022\r\n\005" + "label\030\001 \003(\t\"$\n\016CellVisibility\022\022\n\nexpress" + "ion\030\001 \002(\t\"+\n\006Column\022\016\n\006family\030\001 \002(\014\022\021\n\tq" + "ualifier\030\002 \003(\014\"\226\003\n\003Get\022\013\n\003row\030\001 \002(\014\022 \n\006c" + "olumn\030\002 \003(\0132\020.hbase.pb.Column\022*\n\tattribu" + "te\030\003 \003(\0132\027.hbase.pb.NameBytesPair\022 \n\006fil" + "ter\030\004 \001(\0132\020.hbase.pb.Filter\022\'\n\ntime_rang" + "e\030\005 \001(\0132\023.hbase.pb.TimeRange\022\027\n\014max_vers" + "ions\030\006 \001(\r:\0011\022\032\n\014cache_blocks\030\007 \001(\010:\004tru" + "e\022\023\n\013store_limit\030\010 \001(\r\022\024\n\014store_offset\030\t" + " \001(\r\022\035\n\016existence_only\030\n \001(\010:\005false\0222\n\013c" + "onsistency\030\014 \001(\0162\025.hbase.pb.Consistency:" + "\006STRONG\0226\n\rcf_time_range\030\r \003(\0132\037.hbase.p" + "b.ColumnFamilyTimeRange\"\203\001\n\006Result\022\034\n\004ce" + "ll\030\001 \003(\0132\016.hbase.pb.Cell\022\035\n\025associated_c" + "ell_count\030\002 \001(\005\022\016\n\006exists\030\003 \001(\010\022\024\n\005stale" + "\030\004 \001(\010:\005false\022\026\n\007partial\030\005 \001(\010:\005false\"S\n" + "\nGetRequest\022)\n\006region\030\001 \002(\0132\031.hbase.pb.R" + "egionSpecifier\022\032\n\003get\030\002 \002(\0132\r.hbase.pb.G" + "et\"/\n\013GetResponse\022 \n\006result\030\001 \001(\0132\020.hbas" + "e.pb.Result\"\222\001\n\tCondition\022\013\n\003row\030\001 \002(\014\022\016" + "\n\006family\030\002 \002(\014\022\021\n\tqualifier\030\003 \002(\014\022+\n\014com" + "pare_type\030\004 \002(\0162\025.hbase.pb.CompareType\022(" + "\n\ncomparator\030\005 \002(\0132\024.hbase.pb.Comparator" + "\"\364\006\n\rMutationProto\022\013\n\003row\030\001 \001(\014\0229\n\013mutat" + "e_type\030\002 \001(\0162$.hbase.pb.MutationProto.Mu" + "tationType\0229\n\014column_value\030\003 \003(\0132#.hbase" + ".pb.MutationProto.ColumnValue\022\021\n\ttimesta" + "mp\030\004 \001(\004\022*\n\tattribute\030\005 \003(\0132\027.hbase.pb.N" + "ameBytesPair\022C\n\ndurability\030\006 \001(\0162\".hbase" + ".pb.MutationProto.Durability:\013USE_DEFAUL" + "T\022\'\n\ntime_range\030\007 \001(\0132\023.hbase.pb.TimeRan" + "ge\022\035\n\025associated_cell_count\030\010 \001(\005\022\r\n\005non" + "ce\030\t \001(\004\032\371\001\n\013ColumnValue\022\016\n\006family\030\001 \002(\014" + "\022K\n\017qualifier_value\030\002 \003(\01322.hbase.pb.Mut" + "ationProto.ColumnValue.QualifierValue\032\214\001" + "\n\016QualifierValue\022\021\n\tqualifier\030\001 \001(\014\022\r\n\005v" + "alue\030\002 \001(\014\022\021\n\ttimestamp\030\003 \001(\004\0227\n\013delete_" + "type\030\004 \001(\0162\".hbase.pb.MutationProto.Dele" + "teType\022\014\n\004tags\030\005 \001(\014\"W\n\nDurability\022\017\n\013US" + "E_DEFAULT\020\000\022\014\n\010SKIP_WAL\020\001\022\r\n\tASYNC_WAL\020\002" + "\022\014\n\010SYNC_WAL\020\003\022\r\n\tFSYNC_WAL\020\004\">\n\014Mutatio" + "nType\022\n\n\006APPEND\020\000\022\r\n\tINCREMENT\020\001\022\007\n\003PUT\020" + "\002\022\n\n\006DELETE\020\003\"p\n\nDeleteType\022\026\n\022DELETE_ON" + "E_VERSION\020\000\022\034\n\030DELETE_MULTIPLE_VERSIONS\020" + "\001\022\021\n\rDELETE_FAMILY\020\002\022\031\n\025DELETE_FAMILY_VE" + "RSION\020\003\"\242\001\n\rMutateRequest\022)\n\006region\030\001 \002(" + "\0132\031.hbase.pb.RegionSpecifier\022)\n\010mutation" + "\030\002 \002(\0132\027.hbase.pb.MutationProto\022&\n\tcondi" + "tion\030\003 \001(\0132\023.hbase.pb.Condition\022\023\n\013nonce" + "_group\030\004 \001(\004\"E\n\016MutateResponse\022 \n\006result" + "\030\001 \001(\0132\020.hbase.pb.Result\022\021\n\tprocessed\030\002 " + "\001(\010\"\275\004\n\004Scan\022 \n\006column\030\001 \003(\0132\020.hbase.pb." + "Column\022*\n\tattribute\030\002 \003(\0132\027.hbase.pb.Nam" + "eBytesPair\022\021\n\tstart_row\030\003 \001(\014\022\020\n\010stop_ro" + "w\030\004 \001(\014\022 \n\006filter\030\005 \001(\0132\020.hbase.pb.Filte" + "r\022\'\n\ntime_range\030\006 \001(\0132\023.hbase.pb.TimeRan" + "ge\022\027\n\014max_versions\030\007 \001(\r:\0011\022\032\n\014cache_blo" + "cks\030\010 \001(\010:\004true\022\022\n\nbatch_size\030\t \001(\r\022\027\n\017m" + "ax_result_size\030\n \001(\004\022\023\n\013store_limit\030\013 \001(" + "\r\022\024\n\014store_offset\030\014 \001(\r\022&\n\036load_column_f" + "amilies_on_demand\030\r \001(\010\022\r\n\005small\030\016 \001(\010\022\027" + "\n\010reversed\030\017 \001(\010:\005false\0222\n\013consistency\030\020" + " \001(\0162\025.hbase.pb.Consistency:\006STRONG\022\017\n\007c" + "aching\030\021 \001(\r\022\035\n\025allow_partial_results\030\022 " + "\001(\010\0226\n\rcf_time_range\030\023 \003(\0132\037.hbase.pb.Co" + "lumnFamilyTimeRange\"\246\002\n\013ScanRequest\022)\n\006r" + "egion\030\001 \001(\0132\031.hbase.pb.RegionSpecifier\022\034" + "\n\004scan\030\002 \001(\0132\016.hbase.pb.Scan\022\022\n\nscanner_" + "id\030\003 \001(\004\022\026\n\016number_of_rows\030\004 \001(\r\022\025\n\rclos" + "e_scanner\030\005 \001(\010\022\025\n\rnext_call_seq\030\006 \001(\004\022\037" + "\n\027client_handles_partials\030\007 \001(\010\022!\n\031clien" + "t_handles_heartbeats\030\010 \001(\010\022\032\n\022track_scan" + "_metrics\030\t \001(\010\022\024\n\005renew\030\n \001(\010:\005false\"\232\002\n" + "\014ScanResponse\022\030\n\020cells_per_result\030\001 \003(\r\022" + "\022\n\nscanner_id\030\002 \001(\004\022\024\n\014more_results\030\003 \001(" + "\010\022\013\n\003ttl\030\004 \001(\r\022!\n\007results\030\005 \003(\0132\020.hbase." + "pb.Result\022\r\n\005stale\030\006 \001(\010\022\037\n\027partial_flag" + "_per_result\030\007 \003(\010\022\036\n\026more_results_in_reg" + "ion\030\010 \001(\010\022\031\n\021heartbeat_message\030\t \001(\010\022+\n\014" + "scan_metrics\030\n \001(\0132\025.hbase.pb.ScanMetric" + "s\"\305\001\n\024BulkLoadHFileRequest\022)\n\006region\030\001 \002" + "(\0132\031.hbase.pb.RegionSpecifier\022>\n\013family_" + "path\030\002 \003(\0132).hbase.pb.BulkLoadHFileReque" + "st.FamilyPath\022\026\n\016assign_seq_num\030\003 \001(\010\032*\n" + "\nFamilyPath\022\016\n\006family\030\001 \002(\014\022\014\n\004path\030\002 \002(" + "\t\"\'\n\025BulkLoadHFileResponse\022\016\n\006loaded\030\001 \002" + "(\010\"a\n\026CoprocessorServiceCall\022\013\n\003row\030\001 \002(" + "\014\022\024\n\014service_name\030\002 \002(\t\022\023\n\013method_name\030\003" + " \002(\t\022\017\n\007request\030\004 \002(\014\"B\n\030CoprocessorServ" + "iceResult\022&\n\005value\030\001 \001(\0132\027.hbase.pb.Name" + "BytesPair\"v\n\031CoprocessorServiceRequest\022)" + "\n\006region\030\001 \002(\0132\031.hbase.pb.RegionSpecifie" + "r\022.\n\004call\030\002 \002(\0132 .hbase.pb.CoprocessorSe" + "rviceCall\"o\n\032CoprocessorServiceResponse\022" + ")\n\006region\030\001 \002(\0132\031.hbase.pb.RegionSpecifi" + "er\022&\n\005value\030\002 \002(\0132\027.hbase.pb.NameBytesPa" + "ir\"\226\001\n\006Action\022\r\n\005index\030\001 \001(\r\022)\n\010mutation" + "\030\002 \001(\0132\027.hbase.pb.MutationProto\022\032\n\003get\030\003" + " \001(\0132\r.hbase.pb.Get\0226\n\014service_call\030\004 \001(" + "\0132 .hbase.pb.CoprocessorServiceCall\"k\n\014R" + "egionAction\022)\n\006region\030\001 \002(\0132\031.hbase.pb.R" + "egionSpecifier\022\016\n\006atomic\030\002 \001(\010\022 \n\006action" + "\030\003 \003(\0132\020.hbase.pb.Action\"c\n\017RegionLoadSt" + "ats\022\027\n\014memstoreLoad\030\001 \001(\005:\0010\022\030\n\rheapOccu" + "pancy\030\002 \001(\005:\0010\022\035\n\022compactionPressure\030\003 \001" + "(\005:\0010\"j\n\024MultiRegionLoadStats\022)\n\006region\030" + "\001 \003(\0132\031.hbase.pb.RegionSpecifier\022\'\n\004stat" + "\030\002 \003(\0132\031.hbase.pb.RegionLoadStats\"\336\001\n\021Re" + "sultOrException\022\r\n\005index\030\001 \001(\r\022 \n\006result" + "\030\002 \001(\0132\020.hbase.pb.Result\022*\n\texception\030\003 " + "\001(\0132\027.hbase.pb.NameBytesPair\022:\n\016service_" + "result\030\004 \001(\0132\".hbase.pb.CoprocessorServi" + "ceResult\0220\n\tloadStats\030\005 \001(\0132\031.hbase.pb.R" + "egionLoadStatsB\002\030\001\"x\n\022RegionActionResult" + "\0226\n\021resultOrException\030\001 \003(\0132\033.hbase.pb.R" + "esultOrException\022*\n\texception\030\002 \001(\0132\027.hb" + "ase.pb.NameBytesPair\"x\n\014MultiRequest\022,\n\014" + "regionAction\030\001 \003(\0132\026.hbase.pb.RegionActi" + "on\022\022\n\nnonceGroup\030\002 \001(\004\022&\n\tcondition\030\003 \001(" + "\0132\023.hbase.pb.Condition\"\226\001\n\rMultiResponse" + "\0228\n\022regionActionResult\030\001 \003(\0132\034.hbase.pb." + "RegionActionResult\022\021\n\tprocessed\030\002 \001(\010\0228\n" + "\020regionStatistics\030\003 \001(\0132\036.hbase.pb.Multi" + "RegionLoadStats*\'\n\013Consistency\022\n\n\006STRONG" + "\020\000\022\014\n\010TIMELINE\020\0012\203\004\n\rClientService\0222\n\003Ge" + "t\022\024.hbase.pb.GetRequest\032\025.hbase.pb.GetRe" + "sponse\022;\n\006Mutate\022\027.hbase.pb.MutateReques" + "t\032\030.hbase.pb.MutateResponse\0225\n\004Scan\022\025.hb" + "ase.pb.ScanRequest\032\026.hbase.pb.ScanRespon" + "se\022P\n\rBulkLoadHFile\022\036.hbase.pb.BulkLoadH" + "FileRequest\032\037.hbase.pb.BulkLoadHFileResp" + "onse\022X\n\013ExecService\022#.hbase.pb.Coprocess" + "orServiceRequest\032$.hbase.pb.CoprocessorS" + "erviceResponse\022d\n\027ExecRegionServerServic" + "e\022#.hbase.pb.CoprocessorServiceRequest\032$" + ".hbase.pb.CoprocessorServiceResponse\0228\n\005" + "Multi\022\026.hbase.pb.MultiRequest\032\027.hbase.pb" + ".MultiResponseBB\n*org.apache.hadoop.hbas" + "e.protobuf.generatedB\014ClientProtosH\001\210\001\001\240" + "\001\001", 5682); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Client.proto", &protobuf_RegisterTypes); + Authorizations::default_instance_ = new Authorizations(); + CellVisibility::default_instance_ = new CellVisibility(); + Column::default_instance_ = new Column(); + Get::default_instance_ = new Get(); + Result::default_instance_ = new Result(); + GetRequest::default_instance_ = new GetRequest(); + GetResponse::default_instance_ = new GetResponse(); + Condition::default_instance_ = new Condition(); + MutationProto::default_instance_ = new MutationProto(); + MutationProto_ColumnValue::default_instance_ = new MutationProto_ColumnValue(); + MutationProto_ColumnValue_QualifierValue::default_instance_ = new MutationProto_ColumnValue_QualifierValue(); + MutateRequest::default_instance_ = new MutateRequest(); + MutateResponse::default_instance_ = new MutateResponse(); + Scan::default_instance_ = new Scan(); + ScanRequest::default_instance_ = new ScanRequest(); + ScanResponse::default_instance_ = new ScanResponse(); + BulkLoadHFileRequest::default_instance_ = new BulkLoadHFileRequest(); + BulkLoadHFileRequest_FamilyPath::default_instance_ = new BulkLoadHFileRequest_FamilyPath(); + BulkLoadHFileResponse::default_instance_ = new BulkLoadHFileResponse(); + CoprocessorServiceCall::default_instance_ = new CoprocessorServiceCall(); + CoprocessorServiceResult::default_instance_ = new CoprocessorServiceResult(); + CoprocessorServiceRequest::default_instance_ = new CoprocessorServiceRequest(); + CoprocessorServiceResponse::default_instance_ = new CoprocessorServiceResponse(); + Action::default_instance_ = new Action(); + RegionAction::default_instance_ = new RegionAction(); + RegionLoadStats::default_instance_ = new RegionLoadStats(); + MultiRegionLoadStats::default_instance_ = new MultiRegionLoadStats(); + ResultOrException::default_instance_ = new ResultOrException(); + RegionActionResult::default_instance_ = new RegionActionResult(); + MultiRequest::default_instance_ = new MultiRequest(); + MultiResponse::default_instance_ = new MultiResponse(); + Authorizations::default_instance_->InitAsDefaultInstance(); + CellVisibility::default_instance_->InitAsDefaultInstance(); + Column::default_instance_->InitAsDefaultInstance(); + Get::default_instance_->InitAsDefaultInstance(); + Result::default_instance_->InitAsDefaultInstance(); + GetRequest::default_instance_->InitAsDefaultInstance(); + GetResponse::default_instance_->InitAsDefaultInstance(); + Condition::default_instance_->InitAsDefaultInstance(); + MutationProto::default_instance_->InitAsDefaultInstance(); + MutationProto_ColumnValue::default_instance_->InitAsDefaultInstance(); + MutationProto_ColumnValue_QualifierValue::default_instance_->InitAsDefaultInstance(); + MutateRequest::default_instance_->InitAsDefaultInstance(); + MutateResponse::default_instance_->InitAsDefaultInstance(); + Scan::default_instance_->InitAsDefaultInstance(); + ScanRequest::default_instance_->InitAsDefaultInstance(); + ScanResponse::default_instance_->InitAsDefaultInstance(); + BulkLoadHFileRequest::default_instance_->InitAsDefaultInstance(); + BulkLoadHFileRequest_FamilyPath::default_instance_->InitAsDefaultInstance(); + BulkLoadHFileResponse::default_instance_->InitAsDefaultInstance(); + CoprocessorServiceCall::default_instance_->InitAsDefaultInstance(); + CoprocessorServiceResult::default_instance_->InitAsDefaultInstance(); + CoprocessorServiceRequest::default_instance_->InitAsDefaultInstance(); + CoprocessorServiceResponse::default_instance_->InitAsDefaultInstance(); + Action::default_instance_->InitAsDefaultInstance(); + RegionAction::default_instance_->InitAsDefaultInstance(); + RegionLoadStats::default_instance_->InitAsDefaultInstance(); + MultiRegionLoadStats::default_instance_->InitAsDefaultInstance(); + ResultOrException::default_instance_->InitAsDefaultInstance(); + RegionActionResult::default_instance_->InitAsDefaultInstance(); + MultiRequest::default_instance_->InitAsDefaultInstance(); + MultiResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Client_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Client_2eproto { + StaticDescriptorInitializer_Client_2eproto() { + protobuf_AddDesc_Client_2eproto(); + } +} static_descriptor_initializer_Client_2eproto_; +const ::google::protobuf::EnumDescriptor* Consistency_descriptor() { + protobuf_AssignDescriptorsOnce(); + return Consistency_descriptor_; +} +bool Consistency_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Authorizations::kLabelFieldNumber; +#endif // !_MSC_VER + +Authorizations::Authorizations() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Authorizations::InitAsDefaultInstance() { +} + +Authorizations::Authorizations(const Authorizations& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Authorizations::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Authorizations::~Authorizations() { + SharedDtor(); +} + +void Authorizations::SharedDtor() { + if (this != default_instance_) { + } +} + +void Authorizations::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Authorizations::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Authorizations_descriptor_; +} + +const Authorizations& Authorizations::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +Authorizations* Authorizations::default_instance_ = NULL; + +Authorizations* Authorizations::New() const { + return new Authorizations; +} + +void Authorizations::Clear() { + label_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Authorizations::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string label = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_label: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_label())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->label(this->label_size() - 1).data(), + this->label(this->label_size() - 1).length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_label; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Authorizations::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated string label = 1; + for (int i = 0; i < this->label_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->label(i).data(), this->label(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->label(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Authorizations::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated string label = 1; + for (int i = 0; i < this->label_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->label(i).data(), this->label(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->label(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Authorizations::ByteSize() const { + int total_size = 0; + + // repeated string label = 1; + total_size += 1 * this->label_size(); + for (int i = 0; i < this->label_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->label(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Authorizations::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Authorizations* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Authorizations::MergeFrom(const Authorizations& from) { + GOOGLE_CHECK_NE(&from, this); + label_.MergeFrom(from.label_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Authorizations::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Authorizations::CopyFrom(const Authorizations& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Authorizations::IsInitialized() const { + + return true; +} + +void Authorizations::Swap(Authorizations* other) { + if (other != this) { + label_.Swap(&other->label_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Authorizations::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Authorizations_descriptor_; + metadata.reflection = Authorizations_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CellVisibility::kExpressionFieldNumber; +#endif // !_MSC_VER + +CellVisibility::CellVisibility() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CellVisibility::InitAsDefaultInstance() { +} + +CellVisibility::CellVisibility(const CellVisibility& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CellVisibility::SharedCtor() { + _cached_size_ = 0; + expression_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CellVisibility::~CellVisibility() { + SharedDtor(); +} + +void CellVisibility::SharedDtor() { + if (expression_ != &::google::protobuf::internal::kEmptyString) { + delete expression_; + } + if (this != default_instance_) { + } +} + +void CellVisibility::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CellVisibility::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CellVisibility_descriptor_; +} + +const CellVisibility& CellVisibility::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +CellVisibility* CellVisibility::default_instance_ = NULL; + +CellVisibility* CellVisibility::New() const { + return new CellVisibility; +} + +void CellVisibility::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_expression()) { + if (expression_ != &::google::protobuf::internal::kEmptyString) { + expression_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CellVisibility::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string expression = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_expression())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->expression().data(), this->expression().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CellVisibility::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string expression = 1; + if (has_expression()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->expression().data(), this->expression().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->expression(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CellVisibility::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string expression = 1; + if (has_expression()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->expression().data(), this->expression().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->expression(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CellVisibility::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string expression = 1; + if (has_expression()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->expression()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CellVisibility::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CellVisibility* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CellVisibility::MergeFrom(const CellVisibility& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_expression()) { + set_expression(from.expression()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CellVisibility::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CellVisibility::CopyFrom(const CellVisibility& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CellVisibility::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void CellVisibility::Swap(CellVisibility* other) { + if (other != this) { + std::swap(expression_, other->expression_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CellVisibility::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CellVisibility_descriptor_; + metadata.reflection = CellVisibility_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Column::kFamilyFieldNumber; +const int Column::kQualifierFieldNumber; +#endif // !_MSC_VER + +Column::Column() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Column::InitAsDefaultInstance() { +} + +Column::Column(const Column& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Column::SharedCtor() { + _cached_size_ = 0; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Column::~Column() { + SharedDtor(); +} + +void Column::SharedDtor() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (this != default_instance_) { + } +} + +void Column::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Column::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Column_descriptor_; +} + +const Column& Column::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +Column* Column::default_instance_ = NULL; + +Column* Column::New() const { + return new Column; +} + +void Column::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + } + qualifier_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Column::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes family = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_qualifier; + break; + } + + // repeated bytes qualifier = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_qualifier: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_qualifier; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Column::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes family = 1; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->family(), output); + } + + // repeated bytes qualifier = 2; + for (int i = 0; i < this->qualifier_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->qualifier(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Column::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes family = 1; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->family(), target); + } + + // repeated bytes qualifier = 2; + for (int i = 0; i < this->qualifier_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(2, this->qualifier(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Column::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes family = 1; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + } + // repeated bytes qualifier = 2; + total_size += 1 * this->qualifier_size(); + for (int i = 0; i < this->qualifier_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->qualifier(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Column::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Column* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Column::MergeFrom(const Column& from) { + GOOGLE_CHECK_NE(&from, this); + qualifier_.MergeFrom(from.qualifier_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_family()) { + set_family(from.family()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Column::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Column::CopyFrom(const Column& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Column::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void Column::Swap(Column* other) { + if (other != this) { + std::swap(family_, other->family_); + qualifier_.Swap(&other->qualifier_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Column::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Column_descriptor_; + metadata.reflection = Column_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Get::kRowFieldNumber; +const int Get::kColumnFieldNumber; +const int Get::kAttributeFieldNumber; +const int Get::kFilterFieldNumber; +const int Get::kTimeRangeFieldNumber; +const int Get::kMaxVersionsFieldNumber; +const int Get::kCacheBlocksFieldNumber; +const int Get::kStoreLimitFieldNumber; +const int Get::kStoreOffsetFieldNumber; +const int Get::kExistenceOnlyFieldNumber; +const int Get::kConsistencyFieldNumber; +const int Get::kCfTimeRangeFieldNumber; +#endif // !_MSC_VER + +Get::Get() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Get::InitAsDefaultInstance() { + filter_ = const_cast< ::hbase::pb::Filter*>(&::hbase::pb::Filter::default_instance()); + time_range_ = const_cast< ::hbase::pb::TimeRange*>(&::hbase::pb::TimeRange::default_instance()); +} + +Get::Get(const Get& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Get::SharedCtor() { + _cached_size_ = 0; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + filter_ = NULL; + time_range_ = NULL; + max_versions_ = 1u; + cache_blocks_ = true; + store_limit_ = 0u; + store_offset_ = 0u; + existence_only_ = false; + consistency_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Get::~Get() { + SharedDtor(); +} + +void Get::SharedDtor() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (this != default_instance_) { + delete filter_; + delete time_range_; + } +} + +void Get::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Get::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Get_descriptor_; +} + +const Get& Get::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +Get* Get::default_instance_ = NULL; + +Get* Get::New() const { + return new Get; +} + +void Get::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_row()) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + } + if (has_filter()) { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + } + if (has_time_range()) { + if (time_range_ != NULL) time_range_->::hbase::pb::TimeRange::Clear(); + } + max_versions_ = 1u; + cache_blocks_ = true; + store_limit_ = 0u; + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + store_offset_ = 0u; + existence_only_ = false; + consistency_ = 0; + } + column_.Clear(); + attribute_.Clear(); + cf_time_range_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Get::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes row = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_column; + break; + } + + // repeated .hbase.pb.Column column = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_column())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_column; + if (input->ExpectTag(26)) goto parse_attribute; + break; + } + + // repeated .hbase.pb.NameBytesPair attribute = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_attribute: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_attribute())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_attribute; + if (input->ExpectTag(34)) goto parse_filter; + break; + } + + // optional .hbase.pb.Filter filter = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_filter: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_time_range; + break; + } + + // optional .hbase.pb.TimeRange time_range = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_time_range: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_time_range())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_max_versions; + break; + } + + // optional uint32 max_versions = 6 [default = 1]; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_max_versions: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &max_versions_))); + set_has_max_versions(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_cache_blocks; + break; + } + + // optional bool cache_blocks = 7 [default = true]; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_cache_blocks: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &cache_blocks_))); + set_has_cache_blocks(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_store_limit; + break; + } + + // optional uint32 store_limit = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_store_limit: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &store_limit_))); + set_has_store_limit(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_store_offset; + break; + } + + // optional uint32 store_offset = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_store_offset: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &store_offset_))); + set_has_store_offset(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(80)) goto parse_existence_only; + break; + } + + // optional bool existence_only = 10 [default = false]; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_existence_only: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &existence_only_))); + set_has_existence_only(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(96)) goto parse_consistency; + break; + } + + // optional .hbase.pb.Consistency consistency = 12 [default = STRONG]; + case 12: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_consistency: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::Consistency_IsValid(value)) { + set_consistency(static_cast< ::hbase::pb::Consistency >(value)); + } else { + mutable_unknown_fields()->AddVarint(12, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(106)) goto parse_cf_time_range; + break; + } + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 13; + case 13: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cf_time_range: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_cf_time_range())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(106)) goto parse_cf_time_range; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Get::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes row = 1; + if (has_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->row(), output); + } + + // repeated .hbase.pb.Column column = 2; + for (int i = 0; i < this->column_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->column(i), output); + } + + // repeated .hbase.pb.NameBytesPair attribute = 3; + for (int i = 0; i < this->attribute_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->attribute(i), output); + } + + // optional .hbase.pb.Filter filter = 4; + if (has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->filter(), output); + } + + // optional .hbase.pb.TimeRange time_range = 5; + if (has_time_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->time_range(), output); + } + + // optional uint32 max_versions = 6 [default = 1]; + if (has_max_versions()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->max_versions(), output); + } + + // optional bool cache_blocks = 7 [default = true]; + if (has_cache_blocks()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->cache_blocks(), output); + } + + // optional uint32 store_limit = 8; + if (has_store_limit()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->store_limit(), output); + } + + // optional uint32 store_offset = 9; + if (has_store_offset()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->store_offset(), output); + } + + // optional bool existence_only = 10 [default = false]; + if (has_existence_only()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->existence_only(), output); + } + + // optional .hbase.pb.Consistency consistency = 12 [default = STRONG]; + if (has_consistency()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 12, this->consistency(), output); + } + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 13; + for (int i = 0; i < this->cf_time_range_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 13, this->cf_time_range(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Get::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes row = 1; + if (has_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->row(), target); + } + + // repeated .hbase.pb.Column column = 2; + for (int i = 0; i < this->column_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->column(i), target); + } + + // repeated .hbase.pb.NameBytesPair attribute = 3; + for (int i = 0; i < this->attribute_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->attribute(i), target); + } + + // optional .hbase.pb.Filter filter = 4; + if (has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->filter(), target); + } + + // optional .hbase.pb.TimeRange time_range = 5; + if (has_time_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->time_range(), target); + } + + // optional uint32 max_versions = 6 [default = 1]; + if (has_max_versions()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->max_versions(), target); + } + + // optional bool cache_blocks = 7 [default = true]; + if (has_cache_blocks()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->cache_blocks(), target); + } + + // optional uint32 store_limit = 8; + if (has_store_limit()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->store_limit(), target); + } + + // optional uint32 store_offset = 9; + if (has_store_offset()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->store_offset(), target); + } + + // optional bool existence_only = 10 [default = false]; + if (has_existence_only()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->existence_only(), target); + } + + // optional .hbase.pb.Consistency consistency = 12 [default = STRONG]; + if (has_consistency()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 12, this->consistency(), target); + } + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 13; + for (int i = 0; i < this->cf_time_range_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 13, this->cf_time_range(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Get::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes row = 1; + if (has_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->row()); + } + + // optional .hbase.pb.Filter filter = 4; + if (has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->filter()); + } + + // optional .hbase.pb.TimeRange time_range = 5; + if (has_time_range()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->time_range()); + } + + // optional uint32 max_versions = 6 [default = 1]; + if (has_max_versions()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_versions()); + } + + // optional bool cache_blocks = 7 [default = true]; + if (has_cache_blocks()) { + total_size += 1 + 1; + } + + // optional uint32 store_limit = 8; + if (has_store_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->store_limit()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional uint32 store_offset = 9; + if (has_store_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->store_offset()); + } + + // optional bool existence_only = 10 [default = false]; + if (has_existence_only()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.Consistency consistency = 12 [default = STRONG]; + if (has_consistency()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->consistency()); + } + + } + // repeated .hbase.pb.Column column = 2; + total_size += 1 * this->column_size(); + for (int i = 0; i < this->column_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->column(i)); + } + + // repeated .hbase.pb.NameBytesPair attribute = 3; + total_size += 1 * this->attribute_size(); + for (int i = 0; i < this->attribute_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->attribute(i)); + } + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 13; + total_size += 1 * this->cf_time_range_size(); + for (int i = 0; i < this->cf_time_range_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cf_time_range(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Get::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Get* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Get::MergeFrom(const Get& from) { + GOOGLE_CHECK_NE(&from, this); + column_.MergeFrom(from.column_); + attribute_.MergeFrom(from.attribute_); + cf_time_range_.MergeFrom(from.cf_time_range_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_row()) { + set_row(from.row()); + } + if (from.has_filter()) { + mutable_filter()->::hbase::pb::Filter::MergeFrom(from.filter()); + } + if (from.has_time_range()) { + mutable_time_range()->::hbase::pb::TimeRange::MergeFrom(from.time_range()); + } + if (from.has_max_versions()) { + set_max_versions(from.max_versions()); + } + if (from.has_cache_blocks()) { + set_cache_blocks(from.cache_blocks()); + } + if (from.has_store_limit()) { + set_store_limit(from.store_limit()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_store_offset()) { + set_store_offset(from.store_offset()); + } + if (from.has_existence_only()) { + set_existence_only(from.existence_only()); + } + if (from.has_consistency()) { + set_consistency(from.consistency()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Get::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Get::CopyFrom(const Get& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Get::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < column_size(); i++) { + if (!this->column(i).IsInitialized()) return false; + } + for (int i = 0; i < attribute_size(); i++) { + if (!this->attribute(i).IsInitialized()) return false; + } + if (has_filter()) { + if (!this->filter().IsInitialized()) return false; + } + for (int i = 0; i < cf_time_range_size(); i++) { + if (!this->cf_time_range(i).IsInitialized()) return false; + } + return true; +} + +void Get::Swap(Get* other) { + if (other != this) { + std::swap(row_, other->row_); + column_.Swap(&other->column_); + attribute_.Swap(&other->attribute_); + std::swap(filter_, other->filter_); + std::swap(time_range_, other->time_range_); + std::swap(max_versions_, other->max_versions_); + std::swap(cache_blocks_, other->cache_blocks_); + std::swap(store_limit_, other->store_limit_); + std::swap(store_offset_, other->store_offset_); + std::swap(existence_only_, other->existence_only_); + std::swap(consistency_, other->consistency_); + cf_time_range_.Swap(&other->cf_time_range_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Get::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Get_descriptor_; + metadata.reflection = Get_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Result::kCellFieldNumber; +const int Result::kAssociatedCellCountFieldNumber; +const int Result::kExistsFieldNumber; +const int Result::kStaleFieldNumber; +const int Result::kPartialFieldNumber; +#endif // !_MSC_VER + +Result::Result() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Result::InitAsDefaultInstance() { +} + +Result::Result(const Result& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Result::SharedCtor() { + _cached_size_ = 0; + associated_cell_count_ = 0; + exists_ = false; + stale_ = false; + partial_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Result::~Result() { + SharedDtor(); +} + +void Result::SharedDtor() { + if (this != default_instance_) { + } +} + +void Result::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Result::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Result_descriptor_; +} + +const Result& Result::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +Result* Result::default_instance_ = NULL; + +Result* Result::New() const { + return new Result; +} + +void Result::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + associated_cell_count_ = 0; + exists_ = false; + stale_ = false; + partial_ = false; + } + cell_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Result::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.Cell cell = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cell: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_cell())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_cell; + if (input->ExpectTag(16)) goto parse_associated_cell_count; + break; + } + + // optional int32 associated_cell_count = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_associated_cell_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &associated_cell_count_))); + set_has_associated_cell_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_exists; + break; + } + + // optional bool exists = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_exists: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &exists_))); + set_has_exists(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_stale; + break; + } + + // optional bool stale = 4 [default = false]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_stale: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &stale_))); + set_has_stale(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_partial; + break; + } + + // optional bool partial = 5 [default = false]; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_partial: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &partial_))); + set_has_partial(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Result::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.Cell cell = 1; + for (int i = 0; i < this->cell_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->cell(i), output); + } + + // optional int32 associated_cell_count = 2; + if (has_associated_cell_count()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->associated_cell_count(), output); + } + + // optional bool exists = 3; + if (has_exists()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->exists(), output); + } + + // optional bool stale = 4 [default = false]; + if (has_stale()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->stale(), output); + } + + // optional bool partial = 5 [default = false]; + if (has_partial()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->partial(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Result::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.Cell cell = 1; + for (int i = 0; i < this->cell_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->cell(i), target); + } + + // optional int32 associated_cell_count = 2; + if (has_associated_cell_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->associated_cell_count(), target); + } + + // optional bool exists = 3; + if (has_exists()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->exists(), target); + } + + // optional bool stale = 4 [default = false]; + if (has_stale()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->stale(), target); + } + + // optional bool partial = 5 [default = false]; + if (has_partial()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->partial(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Result::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional int32 associated_cell_count = 2; + if (has_associated_cell_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->associated_cell_count()); + } + + // optional bool exists = 3; + if (has_exists()) { + total_size += 1 + 1; + } + + // optional bool stale = 4 [default = false]; + if (has_stale()) { + total_size += 1 + 1; + } + + // optional bool partial = 5 [default = false]; + if (has_partial()) { + total_size += 1 + 1; + } + + } + // repeated .hbase.pb.Cell cell = 1; + total_size += 1 * this->cell_size(); + for (int i = 0; i < this->cell_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cell(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Result::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Result* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Result::MergeFrom(const Result& from) { + GOOGLE_CHECK_NE(&from, this); + cell_.MergeFrom(from.cell_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_associated_cell_count()) { + set_associated_cell_count(from.associated_cell_count()); + } + if (from.has_exists()) { + set_exists(from.exists()); + } + if (from.has_stale()) { + set_stale(from.stale()); + } + if (from.has_partial()) { + set_partial(from.partial()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Result::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Result::CopyFrom(const Result& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Result::IsInitialized() const { + + return true; +} + +void Result::Swap(Result* other) { + if (other != this) { + cell_.Swap(&other->cell_); + std::swap(associated_cell_count_, other->associated_cell_count_); + std::swap(exists_, other->exists_); + std::swap(stale_, other->stale_); + std::swap(partial_, other->partial_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Result::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Result_descriptor_; + metadata.reflection = Result_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetRequest::kRegionFieldNumber; +const int GetRequest::kGetFieldNumber; +#endif // !_MSC_VER + +GetRequest::GetRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + get_ = const_cast< ::hbase::pb::Get*>(&::hbase::pb::Get::default_instance()); +} + +GetRequest::GetRequest(const GetRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + get_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRequest::~GetRequest() { + SharedDtor(); +} + +void GetRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + delete get_; + } +} + +void GetRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRequest_descriptor_; +} + +const GetRequest& GetRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +GetRequest* GetRequest::default_instance_ = NULL; + +GetRequest* GetRequest::New() const { + return new GetRequest; +} + +void GetRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_get()) { + if (get_ != NULL) get_->::hbase::pb::Get::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_get; + break; + } + + // required .hbase.pb.Get get = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_get: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_get())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // required .hbase.pb.Get get = 2; + if (has_get()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->get(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // required .hbase.pb.Get get = 2; + if (has_get()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->get(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // required .hbase.pb.Get get = 2; + if (has_get()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->get()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRequest::MergeFrom(const GetRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_get()) { + mutable_get()->::hbase::pb::Get::MergeFrom(from.get()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRequest::CopyFrom(const GetRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + if (has_get()) { + if (!this->get().IsInitialized()) return false; + } + return true; +} + +void GetRequest::Swap(GetRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(get_, other->get_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRequest_descriptor_; + metadata.reflection = GetRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetResponse::kResultFieldNumber; +#endif // !_MSC_VER + +GetResponse::GetResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetResponse::InitAsDefaultInstance() { + result_ = const_cast< ::hbase::pb::Result*>(&::hbase::pb::Result::default_instance()); +} + +GetResponse::GetResponse(const GetResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetResponse::SharedCtor() { + _cached_size_ = 0; + result_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetResponse::~GetResponse() { + SharedDtor(); +} + +void GetResponse::SharedDtor() { + if (this != default_instance_) { + delete result_; + } +} + +void GetResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetResponse_descriptor_; +} + +const GetResponse& GetResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +GetResponse* GetResponse::default_instance_ = NULL; + +GetResponse* GetResponse::New() const { + return new GetResponse; +} + +void GetResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_result()) { + if (result_ != NULL) result_->::hbase::pb::Result::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.Result result = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_result())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.Result result = 1; + if (has_result()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->result(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.Result result = 1; + if (has_result()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->result(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.Result result = 1; + if (has_result()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->result()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetResponse::MergeFrom(const GetResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_result()) { + mutable_result()->::hbase::pb::Result::MergeFrom(from.result()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetResponse::CopyFrom(const GetResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetResponse::IsInitialized() const { + + return true; +} + +void GetResponse::Swap(GetResponse* other) { + if (other != this) { + std::swap(result_, other->result_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetResponse_descriptor_; + metadata.reflection = GetResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Condition::kRowFieldNumber; +const int Condition::kFamilyFieldNumber; +const int Condition::kQualifierFieldNumber; +const int Condition::kCompareTypeFieldNumber; +const int Condition::kComparatorFieldNumber; +#endif // !_MSC_VER + +Condition::Condition() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Condition::InitAsDefaultInstance() { + comparator_ = const_cast< ::hbase::pb::Comparator*>(&::hbase::pb::Comparator::default_instance()); +} + +Condition::Condition(const Condition& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Condition::SharedCtor() { + _cached_size_ = 0; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + compare_type_ = 0; + comparator_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Condition::~Condition() { + SharedDtor(); +} + +void Condition::SharedDtor() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (this != default_instance_) { + delete comparator_; + } +} + +void Condition::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Condition::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Condition_descriptor_; +} + +const Condition& Condition::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +Condition* Condition::default_instance_ = NULL; + +Condition* Condition::New() const { + return new Condition; +} + +void Condition::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_row()) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + } + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + if (has_qualifier()) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + } + compare_type_ = 0; + if (has_comparator()) { + if (comparator_ != NULL) comparator_->::hbase::pb::Comparator::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Condition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes row = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_family; + break; + } + + // required bytes family = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_qualifier; + break; + } + + // required bytes qualifier = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_qualifier: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_compare_type; + break; + } + + // required .hbase.pb.CompareType compare_type = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_compare_type: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::CompareType_IsValid(value)) { + set_compare_type(static_cast< ::hbase::pb::CompareType >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_comparator; + break; + } + + // required .hbase.pb.Comparator comparator = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_comparator: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_comparator())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Condition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes row = 1; + if (has_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->row(), output); + } + + // required bytes family = 2; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->family(), output); + } + + // required bytes qualifier = 3; + if (has_qualifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->qualifier(), output); + } + + // required .hbase.pb.CompareType compare_type = 4; + if (has_compare_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->compare_type(), output); + } + + // required .hbase.pb.Comparator comparator = 5; + if (has_comparator()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->comparator(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Condition::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes row = 1; + if (has_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->row(), target); + } + + // required bytes family = 2; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->family(), target); + } + + // required bytes qualifier = 3; + if (has_qualifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->qualifier(), target); + } + + // required .hbase.pb.CompareType compare_type = 4; + if (has_compare_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->compare_type(), target); + } + + // required .hbase.pb.Comparator comparator = 5; + if (has_comparator()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->comparator(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Condition::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes row = 1; + if (has_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->row()); + } + + // required bytes family = 2; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + // required bytes qualifier = 3; + if (has_qualifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->qualifier()); + } + + // required .hbase.pb.CompareType compare_type = 4; + if (has_compare_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->compare_type()); + } + + // required .hbase.pb.Comparator comparator = 5; + if (has_comparator()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->comparator()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Condition::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Condition* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Condition::MergeFrom(const Condition& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_row()) { + set_row(from.row()); + } + if (from.has_family()) { + set_family(from.family()); + } + if (from.has_qualifier()) { + set_qualifier(from.qualifier()); + } + if (from.has_compare_type()) { + set_compare_type(from.compare_type()); + } + if (from.has_comparator()) { + mutable_comparator()->::hbase::pb::Comparator::MergeFrom(from.comparator()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Condition::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Condition::CopyFrom(const Condition& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Condition::IsInitialized() const { + if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; + + if (has_comparator()) { + if (!this->comparator().IsInitialized()) return false; + } + return true; +} + +void Condition::Swap(Condition* other) { + if (other != this) { + std::swap(row_, other->row_); + std::swap(family_, other->family_); + std::swap(qualifier_, other->qualifier_); + std::swap(compare_type_, other->compare_type_); + std::swap(comparator_, other->comparator_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Condition::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Condition_descriptor_; + metadata.reflection = Condition_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* MutationProto_Durability_descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutationProto_Durability_descriptor_; +} +bool MutationProto_Durability_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const MutationProto_Durability MutationProto::USE_DEFAULT; +const MutationProto_Durability MutationProto::SKIP_WAL; +const MutationProto_Durability MutationProto::ASYNC_WAL; +const MutationProto_Durability MutationProto::SYNC_WAL; +const MutationProto_Durability MutationProto::FSYNC_WAL; +const MutationProto_Durability MutationProto::Durability_MIN; +const MutationProto_Durability MutationProto::Durability_MAX; +const int MutationProto::Durability_ARRAYSIZE; +#endif // _MSC_VER +const ::google::protobuf::EnumDescriptor* MutationProto_MutationType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutationProto_MutationType_descriptor_; +} +bool MutationProto_MutationType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const MutationProto_MutationType MutationProto::APPEND; +const MutationProto_MutationType MutationProto::INCREMENT; +const MutationProto_MutationType MutationProto::PUT; +const MutationProto_MutationType MutationProto::DELETE; +const MutationProto_MutationType MutationProto::MutationType_MIN; +const MutationProto_MutationType MutationProto::MutationType_MAX; +const int MutationProto::MutationType_ARRAYSIZE; +#endif // _MSC_VER +const ::google::protobuf::EnumDescriptor* MutationProto_DeleteType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutationProto_DeleteType_descriptor_; +} +bool MutationProto_DeleteType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const MutationProto_DeleteType MutationProto::DELETE_ONE_VERSION; +const MutationProto_DeleteType MutationProto::DELETE_MULTIPLE_VERSIONS; +const MutationProto_DeleteType MutationProto::DELETE_FAMILY; +const MutationProto_DeleteType MutationProto::DELETE_FAMILY_VERSION; +const MutationProto_DeleteType MutationProto::DeleteType_MIN; +const MutationProto_DeleteType MutationProto::DeleteType_MAX; +const int MutationProto::DeleteType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int MutationProto_ColumnValue_QualifierValue::kQualifierFieldNumber; +const int MutationProto_ColumnValue_QualifierValue::kValueFieldNumber; +const int MutationProto_ColumnValue_QualifierValue::kTimestampFieldNumber; +const int MutationProto_ColumnValue_QualifierValue::kDeleteTypeFieldNumber; +const int MutationProto_ColumnValue_QualifierValue::kTagsFieldNumber; +#endif // !_MSC_VER + +MutationProto_ColumnValue_QualifierValue::MutationProto_ColumnValue_QualifierValue() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MutationProto_ColumnValue_QualifierValue::InitAsDefaultInstance() { +} + +MutationProto_ColumnValue_QualifierValue::MutationProto_ColumnValue_QualifierValue(const MutationProto_ColumnValue_QualifierValue& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MutationProto_ColumnValue_QualifierValue::SharedCtor() { + _cached_size_ = 0; + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + timestamp_ = GOOGLE_ULONGLONG(0); + delete_type_ = 0; + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MutationProto_ColumnValue_QualifierValue::~MutationProto_ColumnValue_QualifierValue() { + SharedDtor(); +} + +void MutationProto_ColumnValue_QualifierValue::SharedDtor() { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (tags_ != &::google::protobuf::internal::kEmptyString) { + delete tags_; + } + if (this != default_instance_) { + } +} + +void MutationProto_ColumnValue_QualifierValue::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MutationProto_ColumnValue_QualifierValue::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutationProto_ColumnValue_QualifierValue_descriptor_; +} + +const MutationProto_ColumnValue_QualifierValue& MutationProto_ColumnValue_QualifierValue::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +MutationProto_ColumnValue_QualifierValue* MutationProto_ColumnValue_QualifierValue::default_instance_ = NULL; + +MutationProto_ColumnValue_QualifierValue* MutationProto_ColumnValue_QualifierValue::New() const { + return new MutationProto_ColumnValue_QualifierValue; +} + +void MutationProto_ColumnValue_QualifierValue::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_qualifier()) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + } + if (has_value()) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + } + timestamp_ = GOOGLE_ULONGLONG(0); + delete_type_ = 0; + if (has_tags()) { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + tags_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MutationProto_ColumnValue_QualifierValue::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes qualifier = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_value; + break; + } + + // optional bytes value = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_timestamp; + break; + } + + // optional uint64 timestamp = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_timestamp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ×tamp_))); + set_has_timestamp(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_delete_type; + break; + } + + // optional .hbase.pb.MutationProto.DeleteType delete_type = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_delete_type: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::MutationProto_DeleteType_IsValid(value)) { + set_delete_type(static_cast< ::hbase::pb::MutationProto_DeleteType >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_tags; + break; + } + + // optional bytes tags = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_tags: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_tags())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MutationProto_ColumnValue_QualifierValue::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes qualifier = 1; + if (has_qualifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->qualifier(), output); + } + + // optional bytes value = 2; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->value(), output); + } + + // optional uint64 timestamp = 3; + if (has_timestamp()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->timestamp(), output); + } + + // optional .hbase.pb.MutationProto.DeleteType delete_type = 4; + if (has_delete_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->delete_type(), output); + } + + // optional bytes tags = 5; + if (has_tags()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 5, this->tags(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MutationProto_ColumnValue_QualifierValue::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes qualifier = 1; + if (has_qualifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->qualifier(), target); + } + + // optional bytes value = 2; + if (has_value()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->value(), target); + } + + // optional uint64 timestamp = 3; + if (has_timestamp()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->timestamp(), target); + } + + // optional .hbase.pb.MutationProto.DeleteType delete_type = 4; + if (has_delete_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->delete_type(), target); + } + + // optional bytes tags = 5; + if (has_tags()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->tags(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MutationProto_ColumnValue_QualifierValue::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes qualifier = 1; + if (has_qualifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->qualifier()); + } + + // optional bytes value = 2; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + // optional uint64 timestamp = 3; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->timestamp()); + } + + // optional .hbase.pb.MutationProto.DeleteType delete_type = 4; + if (has_delete_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->delete_type()); + } + + // optional bytes tags = 5; + if (has_tags()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tags()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MutationProto_ColumnValue_QualifierValue::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MutationProto_ColumnValue_QualifierValue* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MutationProto_ColumnValue_QualifierValue::MergeFrom(const MutationProto_ColumnValue_QualifierValue& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_qualifier()) { + set_qualifier(from.qualifier()); + } + if (from.has_value()) { + set_value(from.value()); + } + if (from.has_timestamp()) { + set_timestamp(from.timestamp()); + } + if (from.has_delete_type()) { + set_delete_type(from.delete_type()); + } + if (from.has_tags()) { + set_tags(from.tags()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MutationProto_ColumnValue_QualifierValue::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MutationProto_ColumnValue_QualifierValue::CopyFrom(const MutationProto_ColumnValue_QualifierValue& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MutationProto_ColumnValue_QualifierValue::IsInitialized() const { + + return true; +} + +void MutationProto_ColumnValue_QualifierValue::Swap(MutationProto_ColumnValue_QualifierValue* other) { + if (other != this) { + std::swap(qualifier_, other->qualifier_); + std::swap(value_, other->value_); + std::swap(timestamp_, other->timestamp_); + std::swap(delete_type_, other->delete_type_); + std::swap(tags_, other->tags_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MutationProto_ColumnValue_QualifierValue::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MutationProto_ColumnValue_QualifierValue_descriptor_; + metadata.reflection = MutationProto_ColumnValue_QualifierValue_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int MutationProto_ColumnValue::kFamilyFieldNumber; +const int MutationProto_ColumnValue::kQualifierValueFieldNumber; +#endif // !_MSC_VER + +MutationProto_ColumnValue::MutationProto_ColumnValue() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MutationProto_ColumnValue::InitAsDefaultInstance() { +} + +MutationProto_ColumnValue::MutationProto_ColumnValue(const MutationProto_ColumnValue& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MutationProto_ColumnValue::SharedCtor() { + _cached_size_ = 0; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MutationProto_ColumnValue::~MutationProto_ColumnValue() { + SharedDtor(); +} + +void MutationProto_ColumnValue::SharedDtor() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (this != default_instance_) { + } +} + +void MutationProto_ColumnValue::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MutationProto_ColumnValue::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutationProto_ColumnValue_descriptor_; +} + +const MutationProto_ColumnValue& MutationProto_ColumnValue::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +MutationProto_ColumnValue* MutationProto_ColumnValue::default_instance_ = NULL; + +MutationProto_ColumnValue* MutationProto_ColumnValue::New() const { + return new MutationProto_ColumnValue; +} + +void MutationProto_ColumnValue::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + } + qualifier_value_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MutationProto_ColumnValue::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes family = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_qualifier_value; + break; + } + + // repeated .hbase.pb.MutationProto.ColumnValue.QualifierValue qualifier_value = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_qualifier_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_qualifier_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_qualifier_value; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MutationProto_ColumnValue::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes family = 1; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->family(), output); + } + + // repeated .hbase.pb.MutationProto.ColumnValue.QualifierValue qualifier_value = 2; + for (int i = 0; i < this->qualifier_value_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->qualifier_value(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MutationProto_ColumnValue::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes family = 1; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->family(), target); + } + + // repeated .hbase.pb.MutationProto.ColumnValue.QualifierValue qualifier_value = 2; + for (int i = 0; i < this->qualifier_value_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->qualifier_value(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MutationProto_ColumnValue::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes family = 1; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + } + // repeated .hbase.pb.MutationProto.ColumnValue.QualifierValue qualifier_value = 2; + total_size += 1 * this->qualifier_value_size(); + for (int i = 0; i < this->qualifier_value_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->qualifier_value(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MutationProto_ColumnValue::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MutationProto_ColumnValue* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MutationProto_ColumnValue::MergeFrom(const MutationProto_ColumnValue& from) { + GOOGLE_CHECK_NE(&from, this); + qualifier_value_.MergeFrom(from.qualifier_value_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_family()) { + set_family(from.family()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MutationProto_ColumnValue::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MutationProto_ColumnValue::CopyFrom(const MutationProto_ColumnValue& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MutationProto_ColumnValue::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void MutationProto_ColumnValue::Swap(MutationProto_ColumnValue* other) { + if (other != this) { + std::swap(family_, other->family_); + qualifier_value_.Swap(&other->qualifier_value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MutationProto_ColumnValue::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MutationProto_ColumnValue_descriptor_; + metadata.reflection = MutationProto_ColumnValue_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int MutationProto::kRowFieldNumber; +const int MutationProto::kMutateTypeFieldNumber; +const int MutationProto::kColumnValueFieldNumber; +const int MutationProto::kTimestampFieldNumber; +const int MutationProto::kAttributeFieldNumber; +const int MutationProto::kDurabilityFieldNumber; +const int MutationProto::kTimeRangeFieldNumber; +const int MutationProto::kAssociatedCellCountFieldNumber; +const int MutationProto::kNonceFieldNumber; +#endif // !_MSC_VER + +MutationProto::MutationProto() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MutationProto::InitAsDefaultInstance() { + time_range_ = const_cast< ::hbase::pb::TimeRange*>(&::hbase::pb::TimeRange::default_instance()); +} + +MutationProto::MutationProto(const MutationProto& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MutationProto::SharedCtor() { + _cached_size_ = 0; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + mutate_type_ = 0; + timestamp_ = GOOGLE_ULONGLONG(0); + durability_ = 0; + time_range_ = NULL; + associated_cell_count_ = 0; + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MutationProto::~MutationProto() { + SharedDtor(); +} + +void MutationProto::SharedDtor() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (this != default_instance_) { + delete time_range_; + } +} + +void MutationProto::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MutationProto::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutationProto_descriptor_; +} + +const MutationProto& MutationProto::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +MutationProto* MutationProto::default_instance_ = NULL; + +MutationProto* MutationProto::New() const { + return new MutationProto; +} + +void MutationProto::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_row()) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + } + mutate_type_ = 0; + timestamp_ = GOOGLE_ULONGLONG(0); + durability_ = 0; + if (has_time_range()) { + if (time_range_ != NULL) time_range_->::hbase::pb::TimeRange::Clear(); + } + associated_cell_count_ = 0; + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + nonce_ = GOOGLE_ULONGLONG(0); + } + column_value_.Clear(); + attribute_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MutationProto::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes row = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_mutate_type; + break; + } + + // optional .hbase.pb.MutationProto.MutationType mutate_type = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_mutate_type: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::MutationProto_MutationType_IsValid(value)) { + set_mutate_type(static_cast< ::hbase::pb::MutationProto_MutationType >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_column_value; + break; + } + + // repeated .hbase.pb.MutationProto.ColumnValue column_value = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_column_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_column_value; + if (input->ExpectTag(32)) goto parse_timestamp; + break; + } + + // optional uint64 timestamp = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_timestamp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ×tamp_))); + set_has_timestamp(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_attribute; + break; + } + + // repeated .hbase.pb.NameBytesPair attribute = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_attribute: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_attribute())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_attribute; + if (input->ExpectTag(48)) goto parse_durability; + break; + } + + // optional .hbase.pb.MutationProto.Durability durability = 6 [default = USE_DEFAULT]; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_durability: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::MutationProto_Durability_IsValid(value)) { + set_durability(static_cast< ::hbase::pb::MutationProto_Durability >(value)); + } else { + mutable_unknown_fields()->AddVarint(6, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(58)) goto parse_time_range; + break; + } + + // optional .hbase.pb.TimeRange time_range = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_time_range: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_time_range())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_associated_cell_count; + break; + } + + // optional int32 associated_cell_count = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_associated_cell_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &associated_cell_count_))); + set_has_associated_cell_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MutationProto::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes row = 1; + if (has_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->row(), output); + } + + // optional .hbase.pb.MutationProto.MutationType mutate_type = 2; + if (has_mutate_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->mutate_type(), output); + } + + // repeated .hbase.pb.MutationProto.ColumnValue column_value = 3; + for (int i = 0; i < this->column_value_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->column_value(i), output); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->timestamp(), output); + } + + // repeated .hbase.pb.NameBytesPair attribute = 5; + for (int i = 0; i < this->attribute_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->attribute(i), output); + } + + // optional .hbase.pb.MutationProto.Durability durability = 6 [default = USE_DEFAULT]; + if (has_durability()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->durability(), output); + } + + // optional .hbase.pb.TimeRange time_range = 7; + if (has_time_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->time_range(), output); + } + + // optional int32 associated_cell_count = 8; + if (has_associated_cell_count()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->associated_cell_count(), output); + } + + // optional uint64 nonce = 9; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MutationProto::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes row = 1; + if (has_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->row(), target); + } + + // optional .hbase.pb.MutationProto.MutationType mutate_type = 2; + if (has_mutate_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->mutate_type(), target); + } + + // repeated .hbase.pb.MutationProto.ColumnValue column_value = 3; + for (int i = 0; i < this->column_value_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->column_value(i), target); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->timestamp(), target); + } + + // repeated .hbase.pb.NameBytesPair attribute = 5; + for (int i = 0; i < this->attribute_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->attribute(i), target); + } + + // optional .hbase.pb.MutationProto.Durability durability = 6 [default = USE_DEFAULT]; + if (has_durability()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->durability(), target); + } + + // optional .hbase.pb.TimeRange time_range = 7; + if (has_time_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 7, this->time_range(), target); + } + + // optional int32 associated_cell_count = 8; + if (has_associated_cell_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->associated_cell_count(), target); + } + + // optional uint64 nonce = 9; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MutationProto::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes row = 1; + if (has_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->row()); + } + + // optional .hbase.pb.MutationProto.MutationType mutate_type = 2; + if (has_mutate_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->mutate_type()); + } + + // optional uint64 timestamp = 4; + if (has_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->timestamp()); + } + + // optional .hbase.pb.MutationProto.Durability durability = 6 [default = USE_DEFAULT]; + if (has_durability()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->durability()); + } + + // optional .hbase.pb.TimeRange time_range = 7; + if (has_time_range()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->time_range()); + } + + // optional int32 associated_cell_count = 8; + if (has_associated_cell_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->associated_cell_count()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional uint64 nonce = 9; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + // repeated .hbase.pb.MutationProto.ColumnValue column_value = 3; + total_size += 1 * this->column_value_size(); + for (int i = 0; i < this->column_value_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->column_value(i)); + } + + // repeated .hbase.pb.NameBytesPair attribute = 5; + total_size += 1 * this->attribute_size(); + for (int i = 0; i < this->attribute_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->attribute(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MutationProto::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MutationProto* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MutationProto::MergeFrom(const MutationProto& from) { + GOOGLE_CHECK_NE(&from, this); + column_value_.MergeFrom(from.column_value_); + attribute_.MergeFrom(from.attribute_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_row()) { + set_row(from.row()); + } + if (from.has_mutate_type()) { + set_mutate_type(from.mutate_type()); + } + if (from.has_timestamp()) { + set_timestamp(from.timestamp()); + } + if (from.has_durability()) { + set_durability(from.durability()); + } + if (from.has_time_range()) { + mutable_time_range()->::hbase::pb::TimeRange::MergeFrom(from.time_range()); + } + if (from.has_associated_cell_count()) { + set_associated_cell_count(from.associated_cell_count()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MutationProto::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MutationProto::CopyFrom(const MutationProto& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MutationProto::IsInitialized() const { + + for (int i = 0; i < column_value_size(); i++) { + if (!this->column_value(i).IsInitialized()) return false; + } + for (int i = 0; i < attribute_size(); i++) { + if (!this->attribute(i).IsInitialized()) return false; + } + return true; +} + +void MutationProto::Swap(MutationProto* other) { + if (other != this) { + std::swap(row_, other->row_); + std::swap(mutate_type_, other->mutate_type_); + column_value_.Swap(&other->column_value_); + std::swap(timestamp_, other->timestamp_); + attribute_.Swap(&other->attribute_); + std::swap(durability_, other->durability_); + std::swap(time_range_, other->time_range_); + std::swap(associated_cell_count_, other->associated_cell_count_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MutationProto::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MutationProto_descriptor_; + metadata.reflection = MutationProto_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MutateRequest::kRegionFieldNumber; +const int MutateRequest::kMutationFieldNumber; +const int MutateRequest::kConditionFieldNumber; +const int MutateRequest::kNonceGroupFieldNumber; +#endif // !_MSC_VER + +MutateRequest::MutateRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MutateRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + mutation_ = const_cast< ::hbase::pb::MutationProto*>(&::hbase::pb::MutationProto::default_instance()); + condition_ = const_cast< ::hbase::pb::Condition*>(&::hbase::pb::Condition::default_instance()); +} + +MutateRequest::MutateRequest(const MutateRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MutateRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + mutation_ = NULL; + condition_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MutateRequest::~MutateRequest() { + SharedDtor(); +} + +void MutateRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + delete mutation_; + delete condition_; + } +} + +void MutateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MutateRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutateRequest_descriptor_; +} + +const MutateRequest& MutateRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +MutateRequest* MutateRequest::default_instance_ = NULL; + +MutateRequest* MutateRequest::New() const { + return new MutateRequest; +} + +void MutateRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_mutation()) { + if (mutation_ != NULL) mutation_->::hbase::pb::MutationProto::Clear(); + } + if (has_condition()) { + if (condition_ != NULL) condition_->::hbase::pb::Condition::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MutateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_mutation; + break; + } + + // required .hbase.pb.MutationProto mutation = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_mutation: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_mutation())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_condition; + break; + } + + // optional .hbase.pb.Condition condition = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_condition: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_condition())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MutateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // required .hbase.pb.MutationProto mutation = 2; + if (has_mutation()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->mutation(), output); + } + + // optional .hbase.pb.Condition condition = 3; + if (has_condition()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->condition(), output); + } + + // optional uint64 nonce_group = 4; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->nonce_group(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MutateRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // required .hbase.pb.MutationProto mutation = 2; + if (has_mutation()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->mutation(), target); + } + + // optional .hbase.pb.Condition condition = 3; + if (has_condition()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->condition(), target); + } + + // optional uint64 nonce_group = 4; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->nonce_group(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MutateRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // required .hbase.pb.MutationProto mutation = 2; + if (has_mutation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->mutation()); + } + + // optional .hbase.pb.Condition condition = 3; + if (has_condition()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->condition()); + } + + // optional uint64 nonce_group = 4; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MutateRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MutateRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MutateRequest::MergeFrom(const MutateRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_mutation()) { + mutable_mutation()->::hbase::pb::MutationProto::MergeFrom(from.mutation()); + } + if (from.has_condition()) { + mutable_condition()->::hbase::pb::Condition::MergeFrom(from.condition()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MutateRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MutateRequest::CopyFrom(const MutateRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MutateRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + if (has_mutation()) { + if (!this->mutation().IsInitialized()) return false; + } + if (has_condition()) { + if (!this->condition().IsInitialized()) return false; + } + return true; +} + +void MutateRequest::Swap(MutateRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(mutation_, other->mutation_); + std::swap(condition_, other->condition_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MutateRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MutateRequest_descriptor_; + metadata.reflection = MutateRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MutateResponse::kResultFieldNumber; +const int MutateResponse::kProcessedFieldNumber; +#endif // !_MSC_VER + +MutateResponse::MutateResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MutateResponse::InitAsDefaultInstance() { + result_ = const_cast< ::hbase::pb::Result*>(&::hbase::pb::Result::default_instance()); +} + +MutateResponse::MutateResponse(const MutateResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MutateResponse::SharedCtor() { + _cached_size_ = 0; + result_ = NULL; + processed_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MutateResponse::~MutateResponse() { + SharedDtor(); +} + +void MutateResponse::SharedDtor() { + if (this != default_instance_) { + delete result_; + } +} + +void MutateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MutateResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutateResponse_descriptor_; +} + +const MutateResponse& MutateResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +MutateResponse* MutateResponse::default_instance_ = NULL; + +MutateResponse* MutateResponse::New() const { + return new MutateResponse; +} + +void MutateResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_result()) { + if (result_ != NULL) result_->::hbase::pb::Result::Clear(); + } + processed_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MutateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.Result result = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_result())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_processed; + break; + } + + // optional bool processed = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_processed: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &processed_))); + set_has_processed(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MutateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.Result result = 1; + if (has_result()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->result(), output); + } + + // optional bool processed = 2; + if (has_processed()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->processed(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MutateResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.Result result = 1; + if (has_result()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->result(), target); + } + + // optional bool processed = 2; + if (has_processed()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->processed(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MutateResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.Result result = 1; + if (has_result()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->result()); + } + + // optional bool processed = 2; + if (has_processed()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MutateResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MutateResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MutateResponse::MergeFrom(const MutateResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_result()) { + mutable_result()->::hbase::pb::Result::MergeFrom(from.result()); + } + if (from.has_processed()) { + set_processed(from.processed()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MutateResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MutateResponse::CopyFrom(const MutateResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MutateResponse::IsInitialized() const { + + return true; +} + +void MutateResponse::Swap(MutateResponse* other) { + if (other != this) { + std::swap(result_, other->result_); + std::swap(processed_, other->processed_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MutateResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MutateResponse_descriptor_; + metadata.reflection = MutateResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Scan::kColumnFieldNumber; +const int Scan::kAttributeFieldNumber; +const int Scan::kStartRowFieldNumber; +const int Scan::kStopRowFieldNumber; +const int Scan::kFilterFieldNumber; +const int Scan::kTimeRangeFieldNumber; +const int Scan::kMaxVersionsFieldNumber; +const int Scan::kCacheBlocksFieldNumber; +const int Scan::kBatchSizeFieldNumber; +const int Scan::kMaxResultSizeFieldNumber; +const int Scan::kStoreLimitFieldNumber; +const int Scan::kStoreOffsetFieldNumber; +const int Scan::kLoadColumnFamiliesOnDemandFieldNumber; +const int Scan::kSmallFieldNumber; +const int Scan::kReversedFieldNumber; +const int Scan::kConsistencyFieldNumber; +const int Scan::kCachingFieldNumber; +const int Scan::kAllowPartialResultsFieldNumber; +const int Scan::kCfTimeRangeFieldNumber; +#endif // !_MSC_VER + +Scan::Scan() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Scan::InitAsDefaultInstance() { + filter_ = const_cast< ::hbase::pb::Filter*>(&::hbase::pb::Filter::default_instance()); + time_range_ = const_cast< ::hbase::pb::TimeRange*>(&::hbase::pb::TimeRange::default_instance()); +} + +Scan::Scan(const Scan& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Scan::SharedCtor() { + _cached_size_ = 0; + start_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + stop_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + filter_ = NULL; + time_range_ = NULL; + max_versions_ = 1u; + cache_blocks_ = true; + batch_size_ = 0u; + max_result_size_ = GOOGLE_ULONGLONG(0); + store_limit_ = 0u; + store_offset_ = 0u; + load_column_families_on_demand_ = false; + small_ = false; + reversed_ = false; + consistency_ = 0; + caching_ = 0u; + allow_partial_results_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Scan::~Scan() { + SharedDtor(); +} + +void Scan::SharedDtor() { + if (start_row_ != &::google::protobuf::internal::kEmptyString) { + delete start_row_; + } + if (stop_row_ != &::google::protobuf::internal::kEmptyString) { + delete stop_row_; + } + if (this != default_instance_) { + delete filter_; + delete time_range_; + } +} + +void Scan::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Scan::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Scan_descriptor_; +} + +const Scan& Scan::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +Scan* Scan::default_instance_ = NULL; + +Scan* Scan::New() const { + return new Scan; +} + +void Scan::Clear() { + if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { + if (has_start_row()) { + if (start_row_ != &::google::protobuf::internal::kEmptyString) { + start_row_->clear(); + } + } + if (has_stop_row()) { + if (stop_row_ != &::google::protobuf::internal::kEmptyString) { + stop_row_->clear(); + } + } + if (has_filter()) { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + } + if (has_time_range()) { + if (time_range_ != NULL) time_range_->::hbase::pb::TimeRange::Clear(); + } + max_versions_ = 1u; + cache_blocks_ = true; + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + batch_size_ = 0u; + max_result_size_ = GOOGLE_ULONGLONG(0); + store_limit_ = 0u; + store_offset_ = 0u; + load_column_families_on_demand_ = false; + small_ = false; + reversed_ = false; + consistency_ = 0; + } + if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { + caching_ = 0u; + allow_partial_results_ = false; + } + column_.Clear(); + attribute_.Clear(); + cf_time_range_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Scan::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.Column column = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_column())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_column; + if (input->ExpectTag(18)) goto parse_attribute; + break; + } + + // repeated .hbase.pb.NameBytesPair attribute = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_attribute: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_attribute())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_attribute; + if (input->ExpectTag(26)) goto parse_start_row; + break; + } + + // optional bytes start_row = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_start_row: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_start_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_stop_row; + break; + } + + // optional bytes stop_row = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_stop_row: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_stop_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_filter; + break; + } + + // optional .hbase.pb.Filter filter = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_filter: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_time_range; + break; + } + + // optional .hbase.pb.TimeRange time_range = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_time_range: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_time_range())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_max_versions; + break; + } + + // optional uint32 max_versions = 7 [default = 1]; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_max_versions: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &max_versions_))); + set_has_max_versions(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_cache_blocks; + break; + } + + // optional bool cache_blocks = 8 [default = true]; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_cache_blocks: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &cache_blocks_))); + set_has_cache_blocks(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_batch_size; + break; + } + + // optional uint32 batch_size = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_batch_size: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &batch_size_))); + set_has_batch_size(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(80)) goto parse_max_result_size; + break; + } + + // optional uint64 max_result_size = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_max_result_size: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &max_result_size_))); + set_has_max_result_size(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(88)) goto parse_store_limit; + break; + } + + // optional uint32 store_limit = 11; + case 11: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_store_limit: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &store_limit_))); + set_has_store_limit(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(96)) goto parse_store_offset; + break; + } + + // optional uint32 store_offset = 12; + case 12: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_store_offset: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &store_offset_))); + set_has_store_offset(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(104)) goto parse_load_column_families_on_demand; + break; + } + + // optional bool load_column_families_on_demand = 13; + case 13: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_load_column_families_on_demand: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &load_column_families_on_demand_))); + set_has_load_column_families_on_demand(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(112)) goto parse_small; + break; + } + + // optional bool small = 14; + case 14: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_small: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &small_))); + set_has_small(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(120)) goto parse_reversed; + break; + } + + // optional bool reversed = 15 [default = false]; + case 15: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_reversed: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &reversed_))); + set_has_reversed(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(128)) goto parse_consistency; + break; + } + + // optional .hbase.pb.Consistency consistency = 16 [default = STRONG]; + case 16: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_consistency: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::Consistency_IsValid(value)) { + set_consistency(static_cast< ::hbase::pb::Consistency >(value)); + } else { + mutable_unknown_fields()->AddVarint(16, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(136)) goto parse_caching; + break; + } + + // optional uint32 caching = 17; + case 17: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_caching: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &caching_))); + set_has_caching(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(144)) goto parse_allow_partial_results; + break; + } + + // optional bool allow_partial_results = 18; + case 18: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_allow_partial_results: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &allow_partial_results_))); + set_has_allow_partial_results(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(154)) goto parse_cf_time_range; + break; + } + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 19; + case 19: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cf_time_range: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_cf_time_range())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(154)) goto parse_cf_time_range; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Scan::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.Column column = 1; + for (int i = 0; i < this->column_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->column(i), output); + } + + // repeated .hbase.pb.NameBytesPair attribute = 2; + for (int i = 0; i < this->attribute_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->attribute(i), output); + } + + // optional bytes start_row = 3; + if (has_start_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->start_row(), output); + } + + // optional bytes stop_row = 4; + if (has_stop_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 4, this->stop_row(), output); + } + + // optional .hbase.pb.Filter filter = 5; + if (has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->filter(), output); + } + + // optional .hbase.pb.TimeRange time_range = 6; + if (has_time_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->time_range(), output); + } + + // optional uint32 max_versions = 7 [default = 1]; + if (has_max_versions()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->max_versions(), output); + } + + // optional bool cache_blocks = 8 [default = true]; + if (has_cache_blocks()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->cache_blocks(), output); + } + + // optional uint32 batch_size = 9; + if (has_batch_size()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->batch_size(), output); + } + + // optional uint64 max_result_size = 10; + if (has_max_result_size()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->max_result_size(), output); + } + + // optional uint32 store_limit = 11; + if (has_store_limit()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->store_limit(), output); + } + + // optional uint32 store_offset = 12; + if (has_store_offset()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->store_offset(), output); + } + + // optional bool load_column_families_on_demand = 13; + if (has_load_column_families_on_demand()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->load_column_families_on_demand(), output); + } + + // optional bool small = 14; + if (has_small()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->small(), output); + } + + // optional bool reversed = 15 [default = false]; + if (has_reversed()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->reversed(), output); + } + + // optional .hbase.pb.Consistency consistency = 16 [default = STRONG]; + if (has_consistency()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 16, this->consistency(), output); + } + + // optional uint32 caching = 17; + if (has_caching()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(17, this->caching(), output); + } + + // optional bool allow_partial_results = 18; + if (has_allow_partial_results()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->allow_partial_results(), output); + } + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 19; + for (int i = 0; i < this->cf_time_range_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 19, this->cf_time_range(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Scan::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.Column column = 1; + for (int i = 0; i < this->column_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->column(i), target); + } + + // repeated .hbase.pb.NameBytesPair attribute = 2; + for (int i = 0; i < this->attribute_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->attribute(i), target); + } + + // optional bytes start_row = 3; + if (has_start_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->start_row(), target); + } + + // optional bytes stop_row = 4; + if (has_stop_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->stop_row(), target); + } + + // optional .hbase.pb.Filter filter = 5; + if (has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->filter(), target); + } + + // optional .hbase.pb.TimeRange time_range = 6; + if (has_time_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->time_range(), target); + } + + // optional uint32 max_versions = 7 [default = 1]; + if (has_max_versions()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->max_versions(), target); + } + + // optional bool cache_blocks = 8 [default = true]; + if (has_cache_blocks()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->cache_blocks(), target); + } + + // optional uint32 batch_size = 9; + if (has_batch_size()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->batch_size(), target); + } + + // optional uint64 max_result_size = 10; + if (has_max_result_size()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->max_result_size(), target); + } + + // optional uint32 store_limit = 11; + if (has_store_limit()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->store_limit(), target); + } + + // optional uint32 store_offset = 12; + if (has_store_offset()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->store_offset(), target); + } + + // optional bool load_column_families_on_demand = 13; + if (has_load_column_families_on_demand()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->load_column_families_on_demand(), target); + } + + // optional bool small = 14; + if (has_small()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->small(), target); + } + + // optional bool reversed = 15 [default = false]; + if (has_reversed()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->reversed(), target); + } + + // optional .hbase.pb.Consistency consistency = 16 [default = STRONG]; + if (has_consistency()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 16, this->consistency(), target); + } + + // optional uint32 caching = 17; + if (has_caching()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(17, this->caching(), target); + } + + // optional bool allow_partial_results = 18; + if (has_allow_partial_results()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->allow_partial_results(), target); + } + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 19; + for (int i = 0; i < this->cf_time_range_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 19, this->cf_time_range(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Scan::ByteSize() const { + int total_size = 0; + + if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) { + // optional bytes start_row = 3; + if (has_start_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->start_row()); + } + + // optional bytes stop_row = 4; + if (has_stop_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->stop_row()); + } + + // optional .hbase.pb.Filter filter = 5; + if (has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->filter()); + } + + // optional .hbase.pb.TimeRange time_range = 6; + if (has_time_range()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->time_range()); + } + + // optional uint32 max_versions = 7 [default = 1]; + if (has_max_versions()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_versions()); + } + + // optional bool cache_blocks = 8 [default = true]; + if (has_cache_blocks()) { + total_size += 1 + 1; + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional uint32 batch_size = 9; + if (has_batch_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->batch_size()); + } + + // optional uint64 max_result_size = 10; + if (has_max_result_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->max_result_size()); + } + + // optional uint32 store_limit = 11; + if (has_store_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->store_limit()); + } + + // optional uint32 store_offset = 12; + if (has_store_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->store_offset()); + } + + // optional bool load_column_families_on_demand = 13; + if (has_load_column_families_on_demand()) { + total_size += 1 + 1; + } + + // optional bool small = 14; + if (has_small()) { + total_size += 1 + 1; + } + + // optional bool reversed = 15 [default = false]; + if (has_reversed()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.Consistency consistency = 16 [default = STRONG]; + if (has_consistency()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->consistency()); + } + + } + if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { + // optional uint32 caching = 17; + if (has_caching()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->caching()); + } + + // optional bool allow_partial_results = 18; + if (has_allow_partial_results()) { + total_size += 2 + 1; + } + + } + // repeated .hbase.pb.Column column = 1; + total_size += 1 * this->column_size(); + for (int i = 0; i < this->column_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->column(i)); + } + + // repeated .hbase.pb.NameBytesPair attribute = 2; + total_size += 1 * this->attribute_size(); + for (int i = 0; i < this->attribute_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->attribute(i)); + } + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 19; + total_size += 2 * this->cf_time_range_size(); + for (int i = 0; i < this->cf_time_range_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cf_time_range(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Scan::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Scan* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Scan::MergeFrom(const Scan& from) { + GOOGLE_CHECK_NE(&from, this); + column_.MergeFrom(from.column_); + attribute_.MergeFrom(from.attribute_); + cf_time_range_.MergeFrom(from.cf_time_range_); + if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { + if (from.has_start_row()) { + set_start_row(from.start_row()); + } + if (from.has_stop_row()) { + set_stop_row(from.stop_row()); + } + if (from.has_filter()) { + mutable_filter()->::hbase::pb::Filter::MergeFrom(from.filter()); + } + if (from.has_time_range()) { + mutable_time_range()->::hbase::pb::TimeRange::MergeFrom(from.time_range()); + } + if (from.has_max_versions()) { + set_max_versions(from.max_versions()); + } + if (from.has_cache_blocks()) { + set_cache_blocks(from.cache_blocks()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_batch_size()) { + set_batch_size(from.batch_size()); + } + if (from.has_max_result_size()) { + set_max_result_size(from.max_result_size()); + } + if (from.has_store_limit()) { + set_store_limit(from.store_limit()); + } + if (from.has_store_offset()) { + set_store_offset(from.store_offset()); + } + if (from.has_load_column_families_on_demand()) { + set_load_column_families_on_demand(from.load_column_families_on_demand()); + } + if (from.has_small()) { + set_small(from.small()); + } + if (from.has_reversed()) { + set_reversed(from.reversed()); + } + if (from.has_consistency()) { + set_consistency(from.consistency()); + } + } + if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { + if (from.has_caching()) { + set_caching(from.caching()); + } + if (from.has_allow_partial_results()) { + set_allow_partial_results(from.allow_partial_results()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Scan::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Scan::CopyFrom(const Scan& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Scan::IsInitialized() const { + + for (int i = 0; i < column_size(); i++) { + if (!this->column(i).IsInitialized()) return false; + } + for (int i = 0; i < attribute_size(); i++) { + if (!this->attribute(i).IsInitialized()) return false; + } + if (has_filter()) { + if (!this->filter().IsInitialized()) return false; + } + for (int i = 0; i < cf_time_range_size(); i++) { + if (!this->cf_time_range(i).IsInitialized()) return false; + } + return true; +} + +void Scan::Swap(Scan* other) { + if (other != this) { + column_.Swap(&other->column_); + attribute_.Swap(&other->attribute_); + std::swap(start_row_, other->start_row_); + std::swap(stop_row_, other->stop_row_); + std::swap(filter_, other->filter_); + std::swap(time_range_, other->time_range_); + std::swap(max_versions_, other->max_versions_); + std::swap(cache_blocks_, other->cache_blocks_); + std::swap(batch_size_, other->batch_size_); + std::swap(max_result_size_, other->max_result_size_); + std::swap(store_limit_, other->store_limit_); + std::swap(store_offset_, other->store_offset_); + std::swap(load_column_families_on_demand_, other->load_column_families_on_demand_); + std::swap(small_, other->small_); + std::swap(reversed_, other->reversed_); + std::swap(consistency_, other->consistency_); + std::swap(caching_, other->caching_); + std::swap(allow_partial_results_, other->allow_partial_results_); + cf_time_range_.Swap(&other->cf_time_range_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Scan::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Scan_descriptor_; + metadata.reflection = Scan_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ScanRequest::kRegionFieldNumber; +const int ScanRequest::kScanFieldNumber; +const int ScanRequest::kScannerIdFieldNumber; +const int ScanRequest::kNumberOfRowsFieldNumber; +const int ScanRequest::kCloseScannerFieldNumber; +const int ScanRequest::kNextCallSeqFieldNumber; +const int ScanRequest::kClientHandlesPartialsFieldNumber; +const int ScanRequest::kClientHandlesHeartbeatsFieldNumber; +const int ScanRequest::kTrackScanMetricsFieldNumber; +const int ScanRequest::kRenewFieldNumber; +#endif // !_MSC_VER + +ScanRequest::ScanRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ScanRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + scan_ = const_cast< ::hbase::pb::Scan*>(&::hbase::pb::Scan::default_instance()); +} + +ScanRequest::ScanRequest(const ScanRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ScanRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + scan_ = NULL; + scanner_id_ = GOOGLE_ULONGLONG(0); + number_of_rows_ = 0u; + close_scanner_ = false; + next_call_seq_ = GOOGLE_ULONGLONG(0); + client_handles_partials_ = false; + client_handles_heartbeats_ = false; + track_scan_metrics_ = false; + renew_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ScanRequest::~ScanRequest() { + SharedDtor(); +} + +void ScanRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + delete scan_; + } +} + +void ScanRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ScanRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ScanRequest_descriptor_; +} + +const ScanRequest& ScanRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +ScanRequest* ScanRequest::default_instance_ = NULL; + +ScanRequest* ScanRequest::New() const { + return new ScanRequest; +} + +void ScanRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_scan()) { + if (scan_ != NULL) scan_->::hbase::pb::Scan::Clear(); + } + scanner_id_ = GOOGLE_ULONGLONG(0); + number_of_rows_ = 0u; + close_scanner_ = false; + next_call_seq_ = GOOGLE_ULONGLONG(0); + client_handles_partials_ = false; + client_handles_heartbeats_ = false; + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + track_scan_metrics_ = false; + renew_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ScanRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_scan; + break; + } + + // optional .hbase.pb.Scan scan = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_scan: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_scan())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_scanner_id; + break; + } + + // optional uint64 scanner_id = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_scanner_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &scanner_id_))); + set_has_scanner_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_number_of_rows; + break; + } + + // optional uint32 number_of_rows = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_number_of_rows: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &number_of_rows_))); + set_has_number_of_rows(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_close_scanner; + break; + } + + // optional bool close_scanner = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_close_scanner: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &close_scanner_))); + set_has_close_scanner(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_next_call_seq; + break; + } + + // optional uint64 next_call_seq = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_next_call_seq: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &next_call_seq_))); + set_has_next_call_seq(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_client_handles_partials; + break; + } + + // optional bool client_handles_partials = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_client_handles_partials: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &client_handles_partials_))); + set_has_client_handles_partials(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_client_handles_heartbeats; + break; + } + + // optional bool client_handles_heartbeats = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_client_handles_heartbeats: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &client_handles_heartbeats_))); + set_has_client_handles_heartbeats(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_track_scan_metrics; + break; + } + + // optional bool track_scan_metrics = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_track_scan_metrics: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &track_scan_metrics_))); + set_has_track_scan_metrics(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(80)) goto parse_renew; + break; + } + + // optional bool renew = 10 [default = false]; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_renew: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &renew_))); + set_has_renew(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ScanRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional .hbase.pb.Scan scan = 2; + if (has_scan()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->scan(), output); + } + + // optional uint64 scanner_id = 3; + if (has_scanner_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->scanner_id(), output); + } + + // optional uint32 number_of_rows = 4; + if (has_number_of_rows()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->number_of_rows(), output); + } + + // optional bool close_scanner = 5; + if (has_close_scanner()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->close_scanner(), output); + } + + // optional uint64 next_call_seq = 6; + if (has_next_call_seq()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->next_call_seq(), output); + } + + // optional bool client_handles_partials = 7; + if (has_client_handles_partials()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->client_handles_partials(), output); + } + + // optional bool client_handles_heartbeats = 8; + if (has_client_handles_heartbeats()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->client_handles_heartbeats(), output); + } + + // optional bool track_scan_metrics = 9; + if (has_track_scan_metrics()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->track_scan_metrics(), output); + } + + // optional bool renew = 10 [default = false]; + if (has_renew()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->renew(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ScanRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional .hbase.pb.Scan scan = 2; + if (has_scan()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->scan(), target); + } + + // optional uint64 scanner_id = 3; + if (has_scanner_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->scanner_id(), target); + } + + // optional uint32 number_of_rows = 4; + if (has_number_of_rows()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->number_of_rows(), target); + } + + // optional bool close_scanner = 5; + if (has_close_scanner()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->close_scanner(), target); + } + + // optional uint64 next_call_seq = 6; + if (has_next_call_seq()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->next_call_seq(), target); + } + + // optional bool client_handles_partials = 7; + if (has_client_handles_partials()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->client_handles_partials(), target); + } + + // optional bool client_handles_heartbeats = 8; + if (has_client_handles_heartbeats()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->client_handles_heartbeats(), target); + } + + // optional bool track_scan_metrics = 9; + if (has_track_scan_metrics()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->track_scan_metrics(), target); + } + + // optional bool renew = 10 [default = false]; + if (has_renew()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->renew(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ScanRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional .hbase.pb.Scan scan = 2; + if (has_scan()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->scan()); + } + + // optional uint64 scanner_id = 3; + if (has_scanner_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->scanner_id()); + } + + // optional uint32 number_of_rows = 4; + if (has_number_of_rows()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->number_of_rows()); + } + + // optional bool close_scanner = 5; + if (has_close_scanner()) { + total_size += 1 + 1; + } + + // optional uint64 next_call_seq = 6; + if (has_next_call_seq()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->next_call_seq()); + } + + // optional bool client_handles_partials = 7; + if (has_client_handles_partials()) { + total_size += 1 + 1; + } + + // optional bool client_handles_heartbeats = 8; + if (has_client_handles_heartbeats()) { + total_size += 1 + 1; + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional bool track_scan_metrics = 9; + if (has_track_scan_metrics()) { + total_size += 1 + 1; + } + + // optional bool renew = 10 [default = false]; + if (has_renew()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ScanRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ScanRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ScanRequest::MergeFrom(const ScanRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_scan()) { + mutable_scan()->::hbase::pb::Scan::MergeFrom(from.scan()); + } + if (from.has_scanner_id()) { + set_scanner_id(from.scanner_id()); + } + if (from.has_number_of_rows()) { + set_number_of_rows(from.number_of_rows()); + } + if (from.has_close_scanner()) { + set_close_scanner(from.close_scanner()); + } + if (from.has_next_call_seq()) { + set_next_call_seq(from.next_call_seq()); + } + if (from.has_client_handles_partials()) { + set_client_handles_partials(from.client_handles_partials()); + } + if (from.has_client_handles_heartbeats()) { + set_client_handles_heartbeats(from.client_handles_heartbeats()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_track_scan_metrics()) { + set_track_scan_metrics(from.track_scan_metrics()); + } + if (from.has_renew()) { + set_renew(from.renew()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ScanRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ScanRequest::CopyFrom(const ScanRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ScanRequest::IsInitialized() const { + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + if (has_scan()) { + if (!this->scan().IsInitialized()) return false; + } + return true; +} + +void ScanRequest::Swap(ScanRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(scan_, other->scan_); + std::swap(scanner_id_, other->scanner_id_); + std::swap(number_of_rows_, other->number_of_rows_); + std::swap(close_scanner_, other->close_scanner_); + std::swap(next_call_seq_, other->next_call_seq_); + std::swap(client_handles_partials_, other->client_handles_partials_); + std::swap(client_handles_heartbeats_, other->client_handles_heartbeats_); + std::swap(track_scan_metrics_, other->track_scan_metrics_); + std::swap(renew_, other->renew_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ScanRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ScanRequest_descriptor_; + metadata.reflection = ScanRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ScanResponse::kCellsPerResultFieldNumber; +const int ScanResponse::kScannerIdFieldNumber; +const int ScanResponse::kMoreResultsFieldNumber; +const int ScanResponse::kTtlFieldNumber; +const int ScanResponse::kResultsFieldNumber; +const int ScanResponse::kStaleFieldNumber; +const int ScanResponse::kPartialFlagPerResultFieldNumber; +const int ScanResponse::kMoreResultsInRegionFieldNumber; +const int ScanResponse::kHeartbeatMessageFieldNumber; +const int ScanResponse::kScanMetricsFieldNumber; +#endif // !_MSC_VER + +ScanResponse::ScanResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ScanResponse::InitAsDefaultInstance() { + scan_metrics_ = const_cast< ::hbase::pb::ScanMetrics*>(&::hbase::pb::ScanMetrics::default_instance()); +} + +ScanResponse::ScanResponse(const ScanResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ScanResponse::SharedCtor() { + _cached_size_ = 0; + scanner_id_ = GOOGLE_ULONGLONG(0); + more_results_ = false; + ttl_ = 0u; + stale_ = false; + more_results_in_region_ = false; + heartbeat_message_ = false; + scan_metrics_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ScanResponse::~ScanResponse() { + SharedDtor(); +} + +void ScanResponse::SharedDtor() { + if (this != default_instance_) { + delete scan_metrics_; + } +} + +void ScanResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ScanResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ScanResponse_descriptor_; +} + +const ScanResponse& ScanResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +ScanResponse* ScanResponse::default_instance_ = NULL; + +ScanResponse* ScanResponse::New() const { + return new ScanResponse; +} + +void ScanResponse::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + scanner_id_ = GOOGLE_ULONGLONG(0); + more_results_ = false; + ttl_ = 0u; + stale_ = false; + more_results_in_region_ = false; + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + heartbeat_message_ = false; + if (has_scan_metrics()) { + if (scan_metrics_ != NULL) scan_metrics_->::hbase::pb::ScanMetrics::Clear(); + } + } + cells_per_result_.Clear(); + results_.Clear(); + partial_flag_per_result_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ScanResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 cells_per_result = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_cells_per_result: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8, input, this->mutable_cells_per_result()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_cells_per_result()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(8)) goto parse_cells_per_result; + if (input->ExpectTag(16)) goto parse_scanner_id; + break; + } + + // optional uint64 scanner_id = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_scanner_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &scanner_id_))); + set_has_scanner_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_more_results; + break; + } + + // optional bool more_results = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_more_results: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &more_results_))); + set_has_more_results(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_ttl; + break; + } + + // optional uint32 ttl = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_ttl: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &ttl_))); + set_has_ttl(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_results; + break; + } + + // repeated .hbase.pb.Result results = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_results: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_results())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_results; + if (input->ExpectTag(48)) goto parse_stale; + break; + } + + // optional bool stale = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_stale: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &stale_))); + set_has_stale(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_partial_flag_per_result; + break; + } + + // repeated bool partial_flag_per_result = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_partial_flag_per_result: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + 1, 56, input, this->mutable_partial_flag_per_result()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, this->mutable_partial_flag_per_result()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_partial_flag_per_result; + if (input->ExpectTag(64)) goto parse_more_results_in_region; + break; + } + + // optional bool more_results_in_region = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_more_results_in_region: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &more_results_in_region_))); + set_has_more_results_in_region(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_heartbeat_message; + break; + } + + // optional bool heartbeat_message = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_heartbeat_message: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &heartbeat_message_))); + set_has_heartbeat_message(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(82)) goto parse_scan_metrics; + break; + } + + // optional .hbase.pb.ScanMetrics scan_metrics = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_scan_metrics: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_scan_metrics())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ScanResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated uint32 cells_per_result = 1; + for (int i = 0; i < this->cells_per_result_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->cells_per_result(i), output); + } + + // optional uint64 scanner_id = 2; + if (has_scanner_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->scanner_id(), output); + } + + // optional bool more_results = 3; + if (has_more_results()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->more_results(), output); + } + + // optional uint32 ttl = 4; + if (has_ttl()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->ttl(), output); + } + + // repeated .hbase.pb.Result results = 5; + for (int i = 0; i < this->results_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->results(i), output); + } + + // optional bool stale = 6; + if (has_stale()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->stale(), output); + } + + // repeated bool partial_flag_per_result = 7; + for (int i = 0; i < this->partial_flag_per_result_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBool( + 7, this->partial_flag_per_result(i), output); + } + + // optional bool more_results_in_region = 8; + if (has_more_results_in_region()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->more_results_in_region(), output); + } + + // optional bool heartbeat_message = 9; + if (has_heartbeat_message()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->heartbeat_message(), output); + } + + // optional .hbase.pb.ScanMetrics scan_metrics = 10; + if (has_scan_metrics()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, this->scan_metrics(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ScanResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated uint32 cells_per_result = 1; + for (int i = 0; i < this->cells_per_result_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->cells_per_result(i), target); + } + + // optional uint64 scanner_id = 2; + if (has_scanner_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->scanner_id(), target); + } + + // optional bool more_results = 3; + if (has_more_results()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->more_results(), target); + } + + // optional uint32 ttl = 4; + if (has_ttl()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->ttl(), target); + } + + // repeated .hbase.pb.Result results = 5; + for (int i = 0; i < this->results_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->results(i), target); + } + + // optional bool stale = 6; + if (has_stale()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->stale(), target); + } + + // repeated bool partial_flag_per_result = 7; + for (int i = 0; i < this->partial_flag_per_result_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBoolToArray(7, this->partial_flag_per_result(i), target); + } + + // optional bool more_results_in_region = 8; + if (has_more_results_in_region()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->more_results_in_region(), target); + } + + // optional bool heartbeat_message = 9; + if (has_heartbeat_message()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->heartbeat_message(), target); + } + + // optional .hbase.pb.ScanMetrics scan_metrics = 10; + if (has_scan_metrics()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 10, this->scan_metrics(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ScanResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional uint64 scanner_id = 2; + if (has_scanner_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->scanner_id()); + } + + // optional bool more_results = 3; + if (has_more_results()) { + total_size += 1 + 1; + } + + // optional uint32 ttl = 4; + if (has_ttl()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->ttl()); + } + + // optional bool stale = 6; + if (has_stale()) { + total_size += 1 + 1; + } + + // optional bool more_results_in_region = 8; + if (has_more_results_in_region()) { + total_size += 1 + 1; + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional bool heartbeat_message = 9; + if (has_heartbeat_message()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.ScanMetrics scan_metrics = 10; + if (has_scan_metrics()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->scan_metrics()); + } + + } + // repeated uint32 cells_per_result = 1; + { + int data_size = 0; + for (int i = 0; i < this->cells_per_result_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->cells_per_result(i)); + } + total_size += 1 * this->cells_per_result_size() + data_size; + } + + // repeated .hbase.pb.Result results = 5; + total_size += 1 * this->results_size(); + for (int i = 0; i < this->results_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->results(i)); + } + + // repeated bool partial_flag_per_result = 7; + { + int data_size = 0; + data_size = 1 * this->partial_flag_per_result_size(); + total_size += 1 * this->partial_flag_per_result_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ScanResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ScanResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ScanResponse::MergeFrom(const ScanResponse& from) { + GOOGLE_CHECK_NE(&from, this); + cells_per_result_.MergeFrom(from.cells_per_result_); + results_.MergeFrom(from.results_); + partial_flag_per_result_.MergeFrom(from.partial_flag_per_result_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_scanner_id()) { + set_scanner_id(from.scanner_id()); + } + if (from.has_more_results()) { + set_more_results(from.more_results()); + } + if (from.has_ttl()) { + set_ttl(from.ttl()); + } + if (from.has_stale()) { + set_stale(from.stale()); + } + if (from.has_more_results_in_region()) { + set_more_results_in_region(from.more_results_in_region()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_heartbeat_message()) { + set_heartbeat_message(from.heartbeat_message()); + } + if (from.has_scan_metrics()) { + mutable_scan_metrics()->::hbase::pb::ScanMetrics::MergeFrom(from.scan_metrics()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ScanResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ScanResponse::CopyFrom(const ScanResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ScanResponse::IsInitialized() const { + + return true; +} + +void ScanResponse::Swap(ScanResponse* other) { + if (other != this) { + cells_per_result_.Swap(&other->cells_per_result_); + std::swap(scanner_id_, other->scanner_id_); + std::swap(more_results_, other->more_results_); + std::swap(ttl_, other->ttl_); + results_.Swap(&other->results_); + std::swap(stale_, other->stale_); + partial_flag_per_result_.Swap(&other->partial_flag_per_result_); + std::swap(more_results_in_region_, other->more_results_in_region_); + std::swap(heartbeat_message_, other->heartbeat_message_); + std::swap(scan_metrics_, other->scan_metrics_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ScanResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ScanResponse_descriptor_; + metadata.reflection = ScanResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BulkLoadHFileRequest_FamilyPath::kFamilyFieldNumber; +const int BulkLoadHFileRequest_FamilyPath::kPathFieldNumber; +#endif // !_MSC_VER + +BulkLoadHFileRequest_FamilyPath::BulkLoadHFileRequest_FamilyPath() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BulkLoadHFileRequest_FamilyPath::InitAsDefaultInstance() { +} + +BulkLoadHFileRequest_FamilyPath::BulkLoadHFileRequest_FamilyPath(const BulkLoadHFileRequest_FamilyPath& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BulkLoadHFileRequest_FamilyPath::SharedCtor() { + _cached_size_ = 0; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + path_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BulkLoadHFileRequest_FamilyPath::~BulkLoadHFileRequest_FamilyPath() { + SharedDtor(); +} + +void BulkLoadHFileRequest_FamilyPath::SharedDtor() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (path_ != &::google::protobuf::internal::kEmptyString) { + delete path_; + } + if (this != default_instance_) { + } +} + +void BulkLoadHFileRequest_FamilyPath::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BulkLoadHFileRequest_FamilyPath::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BulkLoadHFileRequest_FamilyPath_descriptor_; +} + +const BulkLoadHFileRequest_FamilyPath& BulkLoadHFileRequest_FamilyPath::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +BulkLoadHFileRequest_FamilyPath* BulkLoadHFileRequest_FamilyPath::default_instance_ = NULL; + +BulkLoadHFileRequest_FamilyPath* BulkLoadHFileRequest_FamilyPath::New() const { + return new BulkLoadHFileRequest_FamilyPath; +} + +void BulkLoadHFileRequest_FamilyPath::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + if (has_path()) { + if (path_ != &::google::protobuf::internal::kEmptyString) { + path_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BulkLoadHFileRequest_FamilyPath::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes family = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_path; + break; + } + + // required string path = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_path: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_path())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->path().data(), this->path().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BulkLoadHFileRequest_FamilyPath::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes family = 1; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->family(), output); + } + + // required string path = 2; + if (has_path()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->path().data(), this->path().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->path(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BulkLoadHFileRequest_FamilyPath::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes family = 1; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->family(), target); + } + + // required string path = 2; + if (has_path()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->path().data(), this->path().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->path(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BulkLoadHFileRequest_FamilyPath::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes family = 1; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + // required string path = 2; + if (has_path()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->path()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BulkLoadHFileRequest_FamilyPath::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BulkLoadHFileRequest_FamilyPath* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BulkLoadHFileRequest_FamilyPath::MergeFrom(const BulkLoadHFileRequest_FamilyPath& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_family()) { + set_family(from.family()); + } + if (from.has_path()) { + set_path(from.path()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BulkLoadHFileRequest_FamilyPath::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BulkLoadHFileRequest_FamilyPath::CopyFrom(const BulkLoadHFileRequest_FamilyPath& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BulkLoadHFileRequest_FamilyPath::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void BulkLoadHFileRequest_FamilyPath::Swap(BulkLoadHFileRequest_FamilyPath* other) { + if (other != this) { + std::swap(family_, other->family_); + std::swap(path_, other->path_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BulkLoadHFileRequest_FamilyPath::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BulkLoadHFileRequest_FamilyPath_descriptor_; + metadata.reflection = BulkLoadHFileRequest_FamilyPath_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int BulkLoadHFileRequest::kRegionFieldNumber; +const int BulkLoadHFileRequest::kFamilyPathFieldNumber; +const int BulkLoadHFileRequest::kAssignSeqNumFieldNumber; +#endif // !_MSC_VER + +BulkLoadHFileRequest::BulkLoadHFileRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BulkLoadHFileRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +BulkLoadHFileRequest::BulkLoadHFileRequest(const BulkLoadHFileRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BulkLoadHFileRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + assign_seq_num_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BulkLoadHFileRequest::~BulkLoadHFileRequest() { + SharedDtor(); +} + +void BulkLoadHFileRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void BulkLoadHFileRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BulkLoadHFileRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BulkLoadHFileRequest_descriptor_; +} + +const BulkLoadHFileRequest& BulkLoadHFileRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +BulkLoadHFileRequest* BulkLoadHFileRequest::default_instance_ = NULL; + +BulkLoadHFileRequest* BulkLoadHFileRequest::New() const { + return new BulkLoadHFileRequest; +} + +void BulkLoadHFileRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + assign_seq_num_ = false; + } + family_path_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BulkLoadHFileRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_family_path; + break; + } + + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family_path: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_family_path())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_family_path; + if (input->ExpectTag(24)) goto parse_assign_seq_num; + break; + } + + // optional bool assign_seq_num = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_assign_seq_num: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &assign_seq_num_))); + set_has_assign_seq_num(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BulkLoadHFileRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 2; + for (int i = 0; i < this->family_path_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->family_path(i), output); + } + + // optional bool assign_seq_num = 3; + if (has_assign_seq_num()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->assign_seq_num(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BulkLoadHFileRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 2; + for (int i = 0; i < this->family_path_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->family_path(i), target); + } + + // optional bool assign_seq_num = 3; + if (has_assign_seq_num()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->assign_seq_num(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BulkLoadHFileRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional bool assign_seq_num = 3; + if (has_assign_seq_num()) { + total_size += 1 + 1; + } + + } + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 2; + total_size += 1 * this->family_path_size(); + for (int i = 0; i < this->family_path_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->family_path(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BulkLoadHFileRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BulkLoadHFileRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BulkLoadHFileRequest::MergeFrom(const BulkLoadHFileRequest& from) { + GOOGLE_CHECK_NE(&from, this); + family_path_.MergeFrom(from.family_path_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_assign_seq_num()) { + set_assign_seq_num(from.assign_seq_num()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BulkLoadHFileRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BulkLoadHFileRequest::CopyFrom(const BulkLoadHFileRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BulkLoadHFileRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + for (int i = 0; i < family_path_size(); i++) { + if (!this->family_path(i).IsInitialized()) return false; + } + return true; +} + +void BulkLoadHFileRequest::Swap(BulkLoadHFileRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + family_path_.Swap(&other->family_path_); + std::swap(assign_seq_num_, other->assign_seq_num_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BulkLoadHFileRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BulkLoadHFileRequest_descriptor_; + metadata.reflection = BulkLoadHFileRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BulkLoadHFileResponse::kLoadedFieldNumber; +#endif // !_MSC_VER + +BulkLoadHFileResponse::BulkLoadHFileResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BulkLoadHFileResponse::InitAsDefaultInstance() { +} + +BulkLoadHFileResponse::BulkLoadHFileResponse(const BulkLoadHFileResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BulkLoadHFileResponse::SharedCtor() { + _cached_size_ = 0; + loaded_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BulkLoadHFileResponse::~BulkLoadHFileResponse() { + SharedDtor(); +} + +void BulkLoadHFileResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void BulkLoadHFileResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BulkLoadHFileResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BulkLoadHFileResponse_descriptor_; +} + +const BulkLoadHFileResponse& BulkLoadHFileResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +BulkLoadHFileResponse* BulkLoadHFileResponse::default_instance_ = NULL; + +BulkLoadHFileResponse* BulkLoadHFileResponse::New() const { + return new BulkLoadHFileResponse; +} + +void BulkLoadHFileResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + loaded_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BulkLoadHFileResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool loaded = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &loaded_))); + set_has_loaded(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BulkLoadHFileResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool loaded = 1; + if (has_loaded()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->loaded(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BulkLoadHFileResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool loaded = 1; + if (has_loaded()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->loaded(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BulkLoadHFileResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool loaded = 1; + if (has_loaded()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BulkLoadHFileResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BulkLoadHFileResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BulkLoadHFileResponse::MergeFrom(const BulkLoadHFileResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_loaded()) { + set_loaded(from.loaded()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BulkLoadHFileResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BulkLoadHFileResponse::CopyFrom(const BulkLoadHFileResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BulkLoadHFileResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void BulkLoadHFileResponse::Swap(BulkLoadHFileResponse* other) { + if (other != this) { + std::swap(loaded_, other->loaded_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BulkLoadHFileResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BulkLoadHFileResponse_descriptor_; + metadata.reflection = BulkLoadHFileResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CoprocessorServiceCall::kRowFieldNumber; +const int CoprocessorServiceCall::kServiceNameFieldNumber; +const int CoprocessorServiceCall::kMethodNameFieldNumber; +const int CoprocessorServiceCall::kRequestFieldNumber; +#endif // !_MSC_VER + +CoprocessorServiceCall::CoprocessorServiceCall() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CoprocessorServiceCall::InitAsDefaultInstance() { +} + +CoprocessorServiceCall::CoprocessorServiceCall(const CoprocessorServiceCall& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CoprocessorServiceCall::SharedCtor() { + _cached_size_ = 0; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + request_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CoprocessorServiceCall::~CoprocessorServiceCall() { + SharedDtor(); +} + +void CoprocessorServiceCall::SharedDtor() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (service_name_ != &::google::protobuf::internal::kEmptyString) { + delete service_name_; + } + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + delete method_name_; + } + if (request_ != &::google::protobuf::internal::kEmptyString) { + delete request_; + } + if (this != default_instance_) { + } +} + +void CoprocessorServiceCall::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CoprocessorServiceCall::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CoprocessorServiceCall_descriptor_; +} + +const CoprocessorServiceCall& CoprocessorServiceCall::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +CoprocessorServiceCall* CoprocessorServiceCall::default_instance_ = NULL; + +CoprocessorServiceCall* CoprocessorServiceCall::New() const { + return new CoprocessorServiceCall; +} + +void CoprocessorServiceCall::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_row()) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + } + if (has_service_name()) { + if (service_name_ != &::google::protobuf::internal::kEmptyString) { + service_name_->clear(); + } + } + if (has_method_name()) { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + method_name_->clear(); + } + } + if (has_request()) { + if (request_ != &::google::protobuf::internal::kEmptyString) { + request_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CoprocessorServiceCall::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes row = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_service_name; + break; + } + + // required string service_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_service_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_service_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service_name().data(), this->service_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_method_name; + break; + } + + // required string method_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_method_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_method_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_request; + break; + } + + // required bytes request = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_request: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_request())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CoprocessorServiceCall::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes row = 1; + if (has_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->row(), output); + } + + // required string service_name = 2; + if (has_service_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service_name().data(), this->service_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->service_name(), output); + } + + // required string method_name = 3; + if (has_method_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->method_name(), output); + } + + // required bytes request = 4; + if (has_request()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 4, this->request(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CoprocessorServiceCall::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes row = 1; + if (has_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->row(), target); + } + + // required string service_name = 2; + if (has_service_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service_name().data(), this->service_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->service_name(), target); + } + + // required string method_name = 3; + if (has_method_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->method_name(), target); + } + + // required bytes request = 4; + if (has_request()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->request(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CoprocessorServiceCall::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes row = 1; + if (has_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->row()); + } + + // required string service_name = 2; + if (has_service_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->service_name()); + } + + // required string method_name = 3; + if (has_method_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->method_name()); + } + + // required bytes request = 4; + if (has_request()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->request()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CoprocessorServiceCall::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CoprocessorServiceCall* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CoprocessorServiceCall::MergeFrom(const CoprocessorServiceCall& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_row()) { + set_row(from.row()); + } + if (from.has_service_name()) { + set_service_name(from.service_name()); + } + if (from.has_method_name()) { + set_method_name(from.method_name()); + } + if (from.has_request()) { + set_request(from.request()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CoprocessorServiceCall::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CoprocessorServiceCall::CopyFrom(const CoprocessorServiceCall& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CoprocessorServiceCall::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; + + return true; +} + +void CoprocessorServiceCall::Swap(CoprocessorServiceCall* other) { + if (other != this) { + std::swap(row_, other->row_); + std::swap(service_name_, other->service_name_); + std::swap(method_name_, other->method_name_); + std::swap(request_, other->request_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CoprocessorServiceCall::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CoprocessorServiceCall_descriptor_; + metadata.reflection = CoprocessorServiceCall_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CoprocessorServiceResult::kValueFieldNumber; +#endif // !_MSC_VER + +CoprocessorServiceResult::CoprocessorServiceResult() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CoprocessorServiceResult::InitAsDefaultInstance() { + value_ = const_cast< ::hbase::pb::NameBytesPair*>(&::hbase::pb::NameBytesPair::default_instance()); +} + +CoprocessorServiceResult::CoprocessorServiceResult(const CoprocessorServiceResult& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CoprocessorServiceResult::SharedCtor() { + _cached_size_ = 0; + value_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CoprocessorServiceResult::~CoprocessorServiceResult() { + SharedDtor(); +} + +void CoprocessorServiceResult::SharedDtor() { + if (this != default_instance_) { + delete value_; + } +} + +void CoprocessorServiceResult::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CoprocessorServiceResult::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CoprocessorServiceResult_descriptor_; +} + +const CoprocessorServiceResult& CoprocessorServiceResult::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +CoprocessorServiceResult* CoprocessorServiceResult::default_instance_ = NULL; + +CoprocessorServiceResult* CoprocessorServiceResult::New() const { + return new CoprocessorServiceResult; +} + +void CoprocessorServiceResult::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_value()) { + if (value_ != NULL) value_->::hbase::pb::NameBytesPair::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CoprocessorServiceResult::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.NameBytesPair value = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CoprocessorServiceResult::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.NameBytesPair value = 1; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CoprocessorServiceResult::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.NameBytesPair value = 1; + if (has_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CoprocessorServiceResult::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.NameBytesPair value = 1; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->value()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CoprocessorServiceResult::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CoprocessorServiceResult* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CoprocessorServiceResult::MergeFrom(const CoprocessorServiceResult& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_value()) { + mutable_value()->::hbase::pb::NameBytesPair::MergeFrom(from.value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CoprocessorServiceResult::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CoprocessorServiceResult::CopyFrom(const CoprocessorServiceResult& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CoprocessorServiceResult::IsInitialized() const { + + if (has_value()) { + if (!this->value().IsInitialized()) return false; + } + return true; +} + +void CoprocessorServiceResult::Swap(CoprocessorServiceResult* other) { + if (other != this) { + std::swap(value_, other->value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CoprocessorServiceResult::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CoprocessorServiceResult_descriptor_; + metadata.reflection = CoprocessorServiceResult_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CoprocessorServiceRequest::kRegionFieldNumber; +const int CoprocessorServiceRequest::kCallFieldNumber; +#endif // !_MSC_VER + +CoprocessorServiceRequest::CoprocessorServiceRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CoprocessorServiceRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + call_ = const_cast< ::hbase::pb::CoprocessorServiceCall*>(&::hbase::pb::CoprocessorServiceCall::default_instance()); +} + +CoprocessorServiceRequest::CoprocessorServiceRequest(const CoprocessorServiceRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CoprocessorServiceRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + call_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CoprocessorServiceRequest::~CoprocessorServiceRequest() { + SharedDtor(); +} + +void CoprocessorServiceRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + delete call_; + } +} + +void CoprocessorServiceRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CoprocessorServiceRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CoprocessorServiceRequest_descriptor_; +} + +const CoprocessorServiceRequest& CoprocessorServiceRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +CoprocessorServiceRequest* CoprocessorServiceRequest::default_instance_ = NULL; + +CoprocessorServiceRequest* CoprocessorServiceRequest::New() const { + return new CoprocessorServiceRequest; +} + +void CoprocessorServiceRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_call()) { + if (call_ != NULL) call_->::hbase::pb::CoprocessorServiceCall::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CoprocessorServiceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_call; + break; + } + + // required .hbase.pb.CoprocessorServiceCall call = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_call: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_call())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CoprocessorServiceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // required .hbase.pb.CoprocessorServiceCall call = 2; + if (has_call()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->call(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CoprocessorServiceRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // required .hbase.pb.CoprocessorServiceCall call = 2; + if (has_call()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->call(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CoprocessorServiceRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // required .hbase.pb.CoprocessorServiceCall call = 2; + if (has_call()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->call()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CoprocessorServiceRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CoprocessorServiceRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CoprocessorServiceRequest::MergeFrom(const CoprocessorServiceRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_call()) { + mutable_call()->::hbase::pb::CoprocessorServiceCall::MergeFrom(from.call()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CoprocessorServiceRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CoprocessorServiceRequest::CopyFrom(const CoprocessorServiceRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CoprocessorServiceRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + if (has_call()) { + if (!this->call().IsInitialized()) return false; + } + return true; +} + +void CoprocessorServiceRequest::Swap(CoprocessorServiceRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(call_, other->call_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CoprocessorServiceRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CoprocessorServiceRequest_descriptor_; + metadata.reflection = CoprocessorServiceRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CoprocessorServiceResponse::kRegionFieldNumber; +const int CoprocessorServiceResponse::kValueFieldNumber; +#endif // !_MSC_VER + +CoprocessorServiceResponse::CoprocessorServiceResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CoprocessorServiceResponse::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + value_ = const_cast< ::hbase::pb::NameBytesPair*>(&::hbase::pb::NameBytesPair::default_instance()); +} + +CoprocessorServiceResponse::CoprocessorServiceResponse(const CoprocessorServiceResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CoprocessorServiceResponse::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + value_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CoprocessorServiceResponse::~CoprocessorServiceResponse() { + SharedDtor(); +} + +void CoprocessorServiceResponse::SharedDtor() { + if (this != default_instance_) { + delete region_; + delete value_; + } +} + +void CoprocessorServiceResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CoprocessorServiceResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CoprocessorServiceResponse_descriptor_; +} + +const CoprocessorServiceResponse& CoprocessorServiceResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +CoprocessorServiceResponse* CoprocessorServiceResponse::default_instance_ = NULL; + +CoprocessorServiceResponse* CoprocessorServiceResponse::New() const { + return new CoprocessorServiceResponse; +} + +void CoprocessorServiceResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_value()) { + if (value_ != NULL) value_->::hbase::pb::NameBytesPair::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CoprocessorServiceResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_value; + break; + } + + // required .hbase.pb.NameBytesPair value = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CoprocessorServiceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // required .hbase.pb.NameBytesPair value = 2; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CoprocessorServiceResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // required .hbase.pb.NameBytesPair value = 2; + if (has_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CoprocessorServiceResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // required .hbase.pb.NameBytesPair value = 2; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->value()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CoprocessorServiceResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CoprocessorServiceResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CoprocessorServiceResponse::MergeFrom(const CoprocessorServiceResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_value()) { + mutable_value()->::hbase::pb::NameBytesPair::MergeFrom(from.value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CoprocessorServiceResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CoprocessorServiceResponse::CopyFrom(const CoprocessorServiceResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CoprocessorServiceResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + if (has_value()) { + if (!this->value().IsInitialized()) return false; + } + return true; +} + +void CoprocessorServiceResponse::Swap(CoprocessorServiceResponse* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(value_, other->value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CoprocessorServiceResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CoprocessorServiceResponse_descriptor_; + metadata.reflection = CoprocessorServiceResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Action::kIndexFieldNumber; +const int Action::kMutationFieldNumber; +const int Action::kGetFieldNumber; +const int Action::kServiceCallFieldNumber; +#endif // !_MSC_VER + +Action::Action() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Action::InitAsDefaultInstance() { + mutation_ = const_cast< ::hbase::pb::MutationProto*>(&::hbase::pb::MutationProto::default_instance()); + get_ = const_cast< ::hbase::pb::Get*>(&::hbase::pb::Get::default_instance()); + service_call_ = const_cast< ::hbase::pb::CoprocessorServiceCall*>(&::hbase::pb::CoprocessorServiceCall::default_instance()); +} + +Action::Action(const Action& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Action::SharedCtor() { + _cached_size_ = 0; + index_ = 0u; + mutation_ = NULL; + get_ = NULL; + service_call_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Action::~Action() { + SharedDtor(); +} + +void Action::SharedDtor() { + if (this != default_instance_) { + delete mutation_; + delete get_; + delete service_call_; + } +} + +void Action::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Action::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Action_descriptor_; +} + +const Action& Action::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +Action* Action::default_instance_ = NULL; + +Action* Action::New() const { + return new Action; +} + +void Action::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + index_ = 0u; + if (has_mutation()) { + if (mutation_ != NULL) mutation_->::hbase::pb::MutationProto::Clear(); + } + if (has_get()) { + if (get_ != NULL) get_->::hbase::pb::Get::Clear(); + } + if (has_service_call()) { + if (service_call_ != NULL) service_call_->::hbase::pb::CoprocessorServiceCall::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Action::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 index = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &index_))); + set_has_index(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_mutation; + break; + } + + // optional .hbase.pb.MutationProto mutation = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_mutation: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_mutation())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_get; + break; + } + + // optional .hbase.pb.Get get = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_get: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_get())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_service_call; + break; + } + + // optional .hbase.pb.CoprocessorServiceCall service_call = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_service_call: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_service_call())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Action::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 index = 1; + if (has_index()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->index(), output); + } + + // optional .hbase.pb.MutationProto mutation = 2; + if (has_mutation()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->mutation(), output); + } + + // optional .hbase.pb.Get get = 3; + if (has_get()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->get(), output); + } + + // optional .hbase.pb.CoprocessorServiceCall service_call = 4; + if (has_service_call()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->service_call(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Action::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 index = 1; + if (has_index()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->index(), target); + } + + // optional .hbase.pb.MutationProto mutation = 2; + if (has_mutation()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->mutation(), target); + } + + // optional .hbase.pb.Get get = 3; + if (has_get()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->get(), target); + } + + // optional .hbase.pb.CoprocessorServiceCall service_call = 4; + if (has_service_call()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->service_call(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Action::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 index = 1; + if (has_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->index()); + } + + // optional .hbase.pb.MutationProto mutation = 2; + if (has_mutation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->mutation()); + } + + // optional .hbase.pb.Get get = 3; + if (has_get()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->get()); + } + + // optional .hbase.pb.CoprocessorServiceCall service_call = 4; + if (has_service_call()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->service_call()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Action::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Action* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Action::MergeFrom(const Action& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_index()) { + set_index(from.index()); + } + if (from.has_mutation()) { + mutable_mutation()->::hbase::pb::MutationProto::MergeFrom(from.mutation()); + } + if (from.has_get()) { + mutable_get()->::hbase::pb::Get::MergeFrom(from.get()); + } + if (from.has_service_call()) { + mutable_service_call()->::hbase::pb::CoprocessorServiceCall::MergeFrom(from.service_call()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Action::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Action::CopyFrom(const Action& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Action::IsInitialized() const { + + if (has_mutation()) { + if (!this->mutation().IsInitialized()) return false; + } + if (has_get()) { + if (!this->get().IsInitialized()) return false; + } + if (has_service_call()) { + if (!this->service_call().IsInitialized()) return false; + } + return true; +} + +void Action::Swap(Action* other) { + if (other != this) { + std::swap(index_, other->index_); + std::swap(mutation_, other->mutation_); + std::swap(get_, other->get_); + std::swap(service_call_, other->service_call_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Action::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Action_descriptor_; + metadata.reflection = Action_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionAction::kRegionFieldNumber; +const int RegionAction::kAtomicFieldNumber; +const int RegionAction::kActionFieldNumber; +#endif // !_MSC_VER + +RegionAction::RegionAction() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionAction::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +RegionAction::RegionAction(const RegionAction& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionAction::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + atomic_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionAction::~RegionAction() { + SharedDtor(); +} + +void RegionAction::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void RegionAction::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionAction::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionAction_descriptor_; +} + +const RegionAction& RegionAction::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +RegionAction* RegionAction::default_instance_ = NULL; + +RegionAction* RegionAction::New() const { + return new RegionAction; +} + +void RegionAction::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + atomic_ = false; + } + action_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionAction::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_atomic; + break; + } + + // optional bool atomic = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_atomic: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &atomic_))); + set_has_atomic(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_action; + break; + } + + // repeated .hbase.pb.Action action = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_action: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_action())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_action; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionAction::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional bool atomic = 2; + if (has_atomic()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->atomic(), output); + } + + // repeated .hbase.pb.Action action = 3; + for (int i = 0; i < this->action_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->action(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionAction::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional bool atomic = 2; + if (has_atomic()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->atomic(), target); + } + + // repeated .hbase.pb.Action action = 3; + for (int i = 0; i < this->action_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->action(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionAction::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional bool atomic = 2; + if (has_atomic()) { + total_size += 1 + 1; + } + + } + // repeated .hbase.pb.Action action = 3; + total_size += 1 * this->action_size(); + for (int i = 0; i < this->action_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->action(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionAction::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionAction* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionAction::MergeFrom(const RegionAction& from) { + GOOGLE_CHECK_NE(&from, this); + action_.MergeFrom(from.action_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_atomic()) { + set_atomic(from.atomic()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionAction::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionAction::CopyFrom(const RegionAction& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionAction::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + for (int i = 0; i < action_size(); i++) { + if (!this->action(i).IsInitialized()) return false; + } + return true; +} + +void RegionAction::Swap(RegionAction* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(atomic_, other->atomic_); + action_.Swap(&other->action_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionAction::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionAction_descriptor_; + metadata.reflection = RegionAction_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionLoadStats::kMemstoreLoadFieldNumber; +const int RegionLoadStats::kHeapOccupancyFieldNumber; +const int RegionLoadStats::kCompactionPressureFieldNumber; +#endif // !_MSC_VER + +RegionLoadStats::RegionLoadStats() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionLoadStats::InitAsDefaultInstance() { +} + +RegionLoadStats::RegionLoadStats(const RegionLoadStats& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionLoadStats::SharedCtor() { + _cached_size_ = 0; + memstoreload_ = 0; + heapoccupancy_ = 0; + compactionpressure_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionLoadStats::~RegionLoadStats() { + SharedDtor(); +} + +void RegionLoadStats::SharedDtor() { + if (this != default_instance_) { + } +} + +void RegionLoadStats::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionLoadStats::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionLoadStats_descriptor_; +} + +const RegionLoadStats& RegionLoadStats::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +RegionLoadStats* RegionLoadStats::default_instance_ = NULL; + +RegionLoadStats* RegionLoadStats::New() const { + return new RegionLoadStats; +} + +void RegionLoadStats::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + memstoreload_ = 0; + heapoccupancy_ = 0; + compactionpressure_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionLoadStats::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 memstoreLoad = 1 [default = 0]; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &memstoreload_))); + set_has_memstoreload(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_heapOccupancy; + break; + } + + // optional int32 heapOccupancy = 2 [default = 0]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_heapOccupancy: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &heapoccupancy_))); + set_has_heapoccupancy(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_compactionPressure; + break; + } + + // optional int32 compactionPressure = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_compactionPressure: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &compactionpressure_))); + set_has_compactionpressure(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionLoadStats::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional int32 memstoreLoad = 1 [default = 0]; + if (has_memstoreload()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->memstoreload(), output); + } + + // optional int32 heapOccupancy = 2 [default = 0]; + if (has_heapoccupancy()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->heapoccupancy(), output); + } + + // optional int32 compactionPressure = 3 [default = 0]; + if (has_compactionpressure()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->compactionpressure(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionLoadStats::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional int32 memstoreLoad = 1 [default = 0]; + if (has_memstoreload()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->memstoreload(), target); + } + + // optional int32 heapOccupancy = 2 [default = 0]; + if (has_heapoccupancy()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->heapoccupancy(), target); + } + + // optional int32 compactionPressure = 3 [default = 0]; + if (has_compactionpressure()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->compactionpressure(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionLoadStats::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional int32 memstoreLoad = 1 [default = 0]; + if (has_memstoreload()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->memstoreload()); + } + + // optional int32 heapOccupancy = 2 [default = 0]; + if (has_heapoccupancy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->heapoccupancy()); + } + + // optional int32 compactionPressure = 3 [default = 0]; + if (has_compactionpressure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->compactionpressure()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionLoadStats::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionLoadStats* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionLoadStats::MergeFrom(const RegionLoadStats& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_memstoreload()) { + set_memstoreload(from.memstoreload()); + } + if (from.has_heapoccupancy()) { + set_heapoccupancy(from.heapoccupancy()); + } + if (from.has_compactionpressure()) { + set_compactionpressure(from.compactionpressure()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionLoadStats::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionLoadStats::CopyFrom(const RegionLoadStats& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionLoadStats::IsInitialized() const { + + return true; +} + +void RegionLoadStats::Swap(RegionLoadStats* other) { + if (other != this) { + std::swap(memstoreload_, other->memstoreload_); + std::swap(heapoccupancy_, other->heapoccupancy_); + std::swap(compactionpressure_, other->compactionpressure_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionLoadStats::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionLoadStats_descriptor_; + metadata.reflection = RegionLoadStats_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MultiRegionLoadStats::kRegionFieldNumber; +const int MultiRegionLoadStats::kStatFieldNumber; +#endif // !_MSC_VER + +MultiRegionLoadStats::MultiRegionLoadStats() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MultiRegionLoadStats::InitAsDefaultInstance() { +} + +MultiRegionLoadStats::MultiRegionLoadStats(const MultiRegionLoadStats& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MultiRegionLoadStats::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MultiRegionLoadStats::~MultiRegionLoadStats() { + SharedDtor(); +} + +void MultiRegionLoadStats::SharedDtor() { + if (this != default_instance_) { + } +} + +void MultiRegionLoadStats::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MultiRegionLoadStats::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MultiRegionLoadStats_descriptor_; +} + +const MultiRegionLoadStats& MultiRegionLoadStats::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +MultiRegionLoadStats* MultiRegionLoadStats::default_instance_ = NULL; + +MultiRegionLoadStats* MultiRegionLoadStats::New() const { + return new MultiRegionLoadStats; +} + +void MultiRegionLoadStats::Clear() { + region_.Clear(); + stat_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MultiRegionLoadStats::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_region; + if (input->ExpectTag(18)) goto parse_stat; + break; + } + + // repeated .hbase.pb.RegionLoadStats stat = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_stat: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_stat())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_stat; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MultiRegionLoadStats::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.RegionSpecifier region = 1; + for (int i = 0; i < this->region_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(i), output); + } + + // repeated .hbase.pb.RegionLoadStats stat = 2; + for (int i = 0; i < this->stat_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->stat(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MultiRegionLoadStats::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.RegionSpecifier region = 1; + for (int i = 0; i < this->region_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(i), target); + } + + // repeated .hbase.pb.RegionLoadStats stat = 2; + for (int i = 0; i < this->stat_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->stat(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MultiRegionLoadStats::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.RegionSpecifier region = 1; + total_size += 1 * this->region_size(); + for (int i = 0; i < this->region_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region(i)); + } + + // repeated .hbase.pb.RegionLoadStats stat = 2; + total_size += 1 * this->stat_size(); + for (int i = 0; i < this->stat_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->stat(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MultiRegionLoadStats::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MultiRegionLoadStats* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MultiRegionLoadStats::MergeFrom(const MultiRegionLoadStats& from) { + GOOGLE_CHECK_NE(&from, this); + region_.MergeFrom(from.region_); + stat_.MergeFrom(from.stat_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MultiRegionLoadStats::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultiRegionLoadStats::CopyFrom(const MultiRegionLoadStats& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultiRegionLoadStats::IsInitialized() const { + + for (int i = 0; i < region_size(); i++) { + if (!this->region(i).IsInitialized()) return false; + } + return true; +} + +void MultiRegionLoadStats::Swap(MultiRegionLoadStats* other) { + if (other != this) { + region_.Swap(&other->region_); + stat_.Swap(&other->stat_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MultiRegionLoadStats::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MultiRegionLoadStats_descriptor_; + metadata.reflection = MultiRegionLoadStats_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ResultOrException::kIndexFieldNumber; +const int ResultOrException::kResultFieldNumber; +const int ResultOrException::kExceptionFieldNumber; +const int ResultOrException::kServiceResultFieldNumber; +const int ResultOrException::kLoadStatsFieldNumber; +#endif // !_MSC_VER + +ResultOrException::ResultOrException() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ResultOrException::InitAsDefaultInstance() { + result_ = const_cast< ::hbase::pb::Result*>(&::hbase::pb::Result::default_instance()); + exception_ = const_cast< ::hbase::pb::NameBytesPair*>(&::hbase::pb::NameBytesPair::default_instance()); + service_result_ = const_cast< ::hbase::pb::CoprocessorServiceResult*>(&::hbase::pb::CoprocessorServiceResult::default_instance()); + loadstats_ = const_cast< ::hbase::pb::RegionLoadStats*>(&::hbase::pb::RegionLoadStats::default_instance()); +} + +ResultOrException::ResultOrException(const ResultOrException& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ResultOrException::SharedCtor() { + _cached_size_ = 0; + index_ = 0u; + result_ = NULL; + exception_ = NULL; + service_result_ = NULL; + loadstats_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ResultOrException::~ResultOrException() { + SharedDtor(); +} + +void ResultOrException::SharedDtor() { + if (this != default_instance_) { + delete result_; + delete exception_; + delete service_result_; + delete loadstats_; + } +} + +void ResultOrException::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ResultOrException::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ResultOrException_descriptor_; +} + +const ResultOrException& ResultOrException::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +ResultOrException* ResultOrException::default_instance_ = NULL; + +ResultOrException* ResultOrException::New() const { + return new ResultOrException; +} + +void ResultOrException::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + index_ = 0u; + if (has_result()) { + if (result_ != NULL) result_->::hbase::pb::Result::Clear(); + } + if (has_exception()) { + if (exception_ != NULL) exception_->::hbase::pb::NameBytesPair::Clear(); + } + if (has_service_result()) { + if (service_result_ != NULL) service_result_->::hbase::pb::CoprocessorServiceResult::Clear(); + } + if (has_loadstats()) { + if (loadstats_ != NULL) loadstats_->::hbase::pb::RegionLoadStats::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ResultOrException::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 index = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &index_))); + set_has_index(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_result; + break; + } + + // optional .hbase.pb.Result result = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_result: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_result())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_exception; + break; + } + + // optional .hbase.pb.NameBytesPair exception = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_exception: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_exception())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_service_result; + break; + } + + // optional .hbase.pb.CoprocessorServiceResult service_result = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_service_result: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_service_result())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_loadStats; + break; + } + + // optional .hbase.pb.RegionLoadStats loadStats = 5 [deprecated = true]; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_loadStats: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_loadstats())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ResultOrException::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 index = 1; + if (has_index()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->index(), output); + } + + // optional .hbase.pb.Result result = 2; + if (has_result()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->result(), output); + } + + // optional .hbase.pb.NameBytesPair exception = 3; + if (has_exception()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->exception(), output); + } + + // optional .hbase.pb.CoprocessorServiceResult service_result = 4; + if (has_service_result()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->service_result(), output); + } + + // optional .hbase.pb.RegionLoadStats loadStats = 5 [deprecated = true]; + if (has_loadstats()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->loadstats(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ResultOrException::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 index = 1; + if (has_index()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->index(), target); + } + + // optional .hbase.pb.Result result = 2; + if (has_result()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->result(), target); + } + + // optional .hbase.pb.NameBytesPair exception = 3; + if (has_exception()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->exception(), target); + } + + // optional .hbase.pb.CoprocessorServiceResult service_result = 4; + if (has_service_result()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->service_result(), target); + } + + // optional .hbase.pb.RegionLoadStats loadStats = 5 [deprecated = true]; + if (has_loadstats()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->loadstats(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ResultOrException::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 index = 1; + if (has_index()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->index()); + } + + // optional .hbase.pb.Result result = 2; + if (has_result()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->result()); + } + + // optional .hbase.pb.NameBytesPair exception = 3; + if (has_exception()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->exception()); + } + + // optional .hbase.pb.CoprocessorServiceResult service_result = 4; + if (has_service_result()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->service_result()); + } + + // optional .hbase.pb.RegionLoadStats loadStats = 5 [deprecated = true]; + if (has_loadstats()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->loadstats()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ResultOrException::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ResultOrException* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ResultOrException::MergeFrom(const ResultOrException& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_index()) { + set_index(from.index()); + } + if (from.has_result()) { + mutable_result()->::hbase::pb::Result::MergeFrom(from.result()); + } + if (from.has_exception()) { + mutable_exception()->::hbase::pb::NameBytesPair::MergeFrom(from.exception()); + } + if (from.has_service_result()) { + mutable_service_result()->::hbase::pb::CoprocessorServiceResult::MergeFrom(from.service_result()); + } + if (from.has_loadstats()) { + mutable_loadstats()->::hbase::pb::RegionLoadStats::MergeFrom(from.loadstats()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ResultOrException::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResultOrException::CopyFrom(const ResultOrException& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResultOrException::IsInitialized() const { + + if (has_exception()) { + if (!this->exception().IsInitialized()) return false; + } + if (has_service_result()) { + if (!this->service_result().IsInitialized()) return false; + } + return true; +} + +void ResultOrException::Swap(ResultOrException* other) { + if (other != this) { + std::swap(index_, other->index_); + std::swap(result_, other->result_); + std::swap(exception_, other->exception_); + std::swap(service_result_, other->service_result_); + std::swap(loadstats_, other->loadstats_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ResultOrException::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ResultOrException_descriptor_; + metadata.reflection = ResultOrException_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionActionResult::kResultOrExceptionFieldNumber; +const int RegionActionResult::kExceptionFieldNumber; +#endif // !_MSC_VER + +RegionActionResult::RegionActionResult() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionActionResult::InitAsDefaultInstance() { + exception_ = const_cast< ::hbase::pb::NameBytesPair*>(&::hbase::pb::NameBytesPair::default_instance()); +} + +RegionActionResult::RegionActionResult(const RegionActionResult& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionActionResult::SharedCtor() { + _cached_size_ = 0; + exception_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionActionResult::~RegionActionResult() { + SharedDtor(); +} + +void RegionActionResult::SharedDtor() { + if (this != default_instance_) { + delete exception_; + } +} + +void RegionActionResult::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionActionResult::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionActionResult_descriptor_; +} + +const RegionActionResult& RegionActionResult::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +RegionActionResult* RegionActionResult::default_instance_ = NULL; + +RegionActionResult* RegionActionResult::New() const { + return new RegionActionResult; +} + +void RegionActionResult::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (has_exception()) { + if (exception_ != NULL) exception_->::hbase::pb::NameBytesPair::Clear(); + } + } + resultorexception_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionActionResult::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.ResultOrException resultOrException = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_resultOrException: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_resultorexception())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_resultOrException; + if (input->ExpectTag(18)) goto parse_exception; + break; + } + + // optional .hbase.pb.NameBytesPair exception = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_exception: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_exception())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionActionResult::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.ResultOrException resultOrException = 1; + for (int i = 0; i < this->resultorexception_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->resultorexception(i), output); + } + + // optional .hbase.pb.NameBytesPair exception = 2; + if (has_exception()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->exception(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionActionResult::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.ResultOrException resultOrException = 1; + for (int i = 0; i < this->resultorexception_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->resultorexception(i), target); + } + + // optional .hbase.pb.NameBytesPair exception = 2; + if (has_exception()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->exception(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionActionResult::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional .hbase.pb.NameBytesPair exception = 2; + if (has_exception()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->exception()); + } + + } + // repeated .hbase.pb.ResultOrException resultOrException = 1; + total_size += 1 * this->resultorexception_size(); + for (int i = 0; i < this->resultorexception_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->resultorexception(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionActionResult::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionActionResult* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionActionResult::MergeFrom(const RegionActionResult& from) { + GOOGLE_CHECK_NE(&from, this); + resultorexception_.MergeFrom(from.resultorexception_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_exception()) { + mutable_exception()->::hbase::pb::NameBytesPair::MergeFrom(from.exception()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionActionResult::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionActionResult::CopyFrom(const RegionActionResult& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionActionResult::IsInitialized() const { + + for (int i = 0; i < resultorexception_size(); i++) { + if (!this->resultorexception(i).IsInitialized()) return false; + } + if (has_exception()) { + if (!this->exception().IsInitialized()) return false; + } + return true; +} + +void RegionActionResult::Swap(RegionActionResult* other) { + if (other != this) { + resultorexception_.Swap(&other->resultorexception_); + std::swap(exception_, other->exception_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionActionResult::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionActionResult_descriptor_; + metadata.reflection = RegionActionResult_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MultiRequest::kRegionActionFieldNumber; +const int MultiRequest::kNonceGroupFieldNumber; +const int MultiRequest::kConditionFieldNumber; +#endif // !_MSC_VER + +MultiRequest::MultiRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MultiRequest::InitAsDefaultInstance() { + condition_ = const_cast< ::hbase::pb::Condition*>(&::hbase::pb::Condition::default_instance()); +} + +MultiRequest::MultiRequest(const MultiRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MultiRequest::SharedCtor() { + _cached_size_ = 0; + noncegroup_ = GOOGLE_ULONGLONG(0); + condition_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MultiRequest::~MultiRequest() { + SharedDtor(); +} + +void MultiRequest::SharedDtor() { + if (this != default_instance_) { + delete condition_; + } +} + +void MultiRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MultiRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MultiRequest_descriptor_; +} + +const MultiRequest& MultiRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +MultiRequest* MultiRequest::default_instance_ = NULL; + +MultiRequest* MultiRequest::New() const { + return new MultiRequest; +} + +void MultiRequest::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + noncegroup_ = GOOGLE_ULONGLONG(0); + if (has_condition()) { + if (condition_ != NULL) condition_->::hbase::pb::Condition::Clear(); + } + } + regionaction_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MultiRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.RegionAction regionAction = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_regionAction: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_regionaction())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_regionAction; + if (input->ExpectTag(16)) goto parse_nonceGroup; + break; + } + + // optional uint64 nonceGroup = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonceGroup: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &noncegroup_))); + set_has_noncegroup(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_condition; + break; + } + + // optional .hbase.pb.Condition condition = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_condition: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_condition())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MultiRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.RegionAction regionAction = 1; + for (int i = 0; i < this->regionaction_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->regionaction(i), output); + } + + // optional uint64 nonceGroup = 2; + if (has_noncegroup()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->noncegroup(), output); + } + + // optional .hbase.pb.Condition condition = 3; + if (has_condition()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->condition(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MultiRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.RegionAction regionAction = 1; + for (int i = 0; i < this->regionaction_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->regionaction(i), target); + } + + // optional uint64 nonceGroup = 2; + if (has_noncegroup()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->noncegroup(), target); + } + + // optional .hbase.pb.Condition condition = 3; + if (has_condition()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->condition(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MultiRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional uint64 nonceGroup = 2; + if (has_noncegroup()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->noncegroup()); + } + + // optional .hbase.pb.Condition condition = 3; + if (has_condition()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->condition()); + } + + } + // repeated .hbase.pb.RegionAction regionAction = 1; + total_size += 1 * this->regionaction_size(); + for (int i = 0; i < this->regionaction_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->regionaction(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MultiRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MultiRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MultiRequest::MergeFrom(const MultiRequest& from) { + GOOGLE_CHECK_NE(&from, this); + regionaction_.MergeFrom(from.regionaction_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_noncegroup()) { + set_noncegroup(from.noncegroup()); + } + if (from.has_condition()) { + mutable_condition()->::hbase::pb::Condition::MergeFrom(from.condition()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MultiRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultiRequest::CopyFrom(const MultiRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultiRequest::IsInitialized() const { + + for (int i = 0; i < regionaction_size(); i++) { + if (!this->regionaction(i).IsInitialized()) return false; + } + if (has_condition()) { + if (!this->condition().IsInitialized()) return false; + } + return true; +} + +void MultiRequest::Swap(MultiRequest* other) { + if (other != this) { + regionaction_.Swap(&other->regionaction_); + std::swap(noncegroup_, other->noncegroup_); + std::swap(condition_, other->condition_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MultiRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MultiRequest_descriptor_; + metadata.reflection = MultiRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MultiResponse::kRegionActionResultFieldNumber; +const int MultiResponse::kProcessedFieldNumber; +const int MultiResponse::kRegionStatisticsFieldNumber; +#endif // !_MSC_VER + +MultiResponse::MultiResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MultiResponse::InitAsDefaultInstance() { + regionstatistics_ = const_cast< ::hbase::pb::MultiRegionLoadStats*>(&::hbase::pb::MultiRegionLoadStats::default_instance()); +} + +MultiResponse::MultiResponse(const MultiResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MultiResponse::SharedCtor() { + _cached_size_ = 0; + processed_ = false; + regionstatistics_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MultiResponse::~MultiResponse() { + SharedDtor(); +} + +void MultiResponse::SharedDtor() { + if (this != default_instance_) { + delete regionstatistics_; + } +} + +void MultiResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MultiResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MultiResponse_descriptor_; +} + +const MultiResponse& MultiResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Client_2eproto(); + return *default_instance_; +} + +MultiResponse* MultiResponse::default_instance_ = NULL; + +MultiResponse* MultiResponse::New() const { + return new MultiResponse; +} + +void MultiResponse::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + processed_ = false; + if (has_regionstatistics()) { + if (regionstatistics_ != NULL) regionstatistics_->::hbase::pb::MultiRegionLoadStats::Clear(); + } + } + regionactionresult_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MultiResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.RegionActionResult regionActionResult = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_regionActionResult: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_regionactionresult())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_regionActionResult; + if (input->ExpectTag(16)) goto parse_processed; + break; + } + + // optional bool processed = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_processed: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &processed_))); + set_has_processed(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_regionStatistics; + break; + } + + // optional .hbase.pb.MultiRegionLoadStats regionStatistics = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_regionStatistics: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_regionstatistics())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MultiResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.RegionActionResult regionActionResult = 1; + for (int i = 0; i < this->regionactionresult_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->regionactionresult(i), output); + } + + // optional bool processed = 2; + if (has_processed()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->processed(), output); + } + + // optional .hbase.pb.MultiRegionLoadStats regionStatistics = 3; + if (has_regionstatistics()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->regionstatistics(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MultiResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.RegionActionResult regionActionResult = 1; + for (int i = 0; i < this->regionactionresult_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->regionactionresult(i), target); + } + + // optional bool processed = 2; + if (has_processed()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->processed(), target); + } + + // optional .hbase.pb.MultiRegionLoadStats regionStatistics = 3; + if (has_regionstatistics()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->regionstatistics(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MultiResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional bool processed = 2; + if (has_processed()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.MultiRegionLoadStats regionStatistics = 3; + if (has_regionstatistics()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->regionstatistics()); + } + + } + // repeated .hbase.pb.RegionActionResult regionActionResult = 1; + total_size += 1 * this->regionactionresult_size(); + for (int i = 0; i < this->regionactionresult_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->regionactionresult(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MultiResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MultiResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MultiResponse::MergeFrom(const MultiResponse& from) { + GOOGLE_CHECK_NE(&from, this); + regionactionresult_.MergeFrom(from.regionactionresult_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_processed()) { + set_processed(from.processed()); + } + if (from.has_regionstatistics()) { + mutable_regionstatistics()->::hbase::pb::MultiRegionLoadStats::MergeFrom(from.regionstatistics()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MultiResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultiResponse::CopyFrom(const MultiResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultiResponse::IsInitialized() const { + + for (int i = 0; i < regionactionresult_size(); i++) { + if (!this->regionactionresult(i).IsInitialized()) return false; + } + if (has_regionstatistics()) { + if (!this->regionstatistics().IsInitialized()) return false; + } + return true; +} + +void MultiResponse::Swap(MultiResponse* other) { + if (other != this) { + regionactionresult_.Swap(&other->regionactionresult_); + std::swap(processed_, other->processed_); + std::swap(regionstatistics_, other->regionstatistics_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MultiResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MultiResponse_descriptor_; + metadata.reflection = MultiResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Client.pb.h b/hbase-native-client/src/rpc/generated/Client.pb.h new file mode 100644 index 0000000..fea2570 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Client.pb.h @@ -0,0 +1,8580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Client.proto + +#ifndef PROTOBUF_Client_2eproto__INCLUDED +#define PROTOBUF_Client_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "Filter.pb.h" +#include "Cell.pb.h" +#include "Comparator.pb.h" +#include "MapReduce.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Client_2eproto(); +void protobuf_AssignDesc_Client_2eproto(); +void protobuf_ShutdownFile_Client_2eproto(); + +class Authorizations; +class CellVisibility; +class Column; +class Get; +class Result; +class GetRequest; +class GetResponse; +class Condition; +class MutationProto; +class MutationProto_ColumnValue; +class MutationProto_ColumnValue_QualifierValue; +class MutateRequest; +class MutateResponse; +class Scan; +class ScanRequest; +class ScanResponse; +class BulkLoadHFileRequest; +class BulkLoadHFileRequest_FamilyPath; +class BulkLoadHFileResponse; +class CoprocessorServiceCall; +class CoprocessorServiceResult; +class CoprocessorServiceRequest; +class CoprocessorServiceResponse; +class Action; +class RegionAction; +class RegionLoadStats; +class MultiRegionLoadStats; +class ResultOrException; +class RegionActionResult; +class MultiRequest; +class MultiResponse; + +enum MutationProto_Durability { + MutationProto_Durability_USE_DEFAULT = 0, + MutationProto_Durability_SKIP_WAL = 1, + MutationProto_Durability_ASYNC_WAL = 2, + MutationProto_Durability_SYNC_WAL = 3, + MutationProto_Durability_FSYNC_WAL = 4 +}; +bool MutationProto_Durability_IsValid(int value); +const MutationProto_Durability MutationProto_Durability_Durability_MIN = MutationProto_Durability_USE_DEFAULT; +const MutationProto_Durability MutationProto_Durability_Durability_MAX = MutationProto_Durability_FSYNC_WAL; +const int MutationProto_Durability_Durability_ARRAYSIZE = MutationProto_Durability_Durability_MAX + 1; + +const ::google::protobuf::EnumDescriptor* MutationProto_Durability_descriptor(); +inline const ::std::string& MutationProto_Durability_Name(MutationProto_Durability value) { + return ::google::protobuf::internal::NameOfEnum( + MutationProto_Durability_descriptor(), value); +} +inline bool MutationProto_Durability_Parse( + const ::std::string& name, MutationProto_Durability* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MutationProto_Durability_descriptor(), name, value); +} +enum MutationProto_MutationType { + MutationProto_MutationType_APPEND = 0, + MutationProto_MutationType_INCREMENT = 1, + MutationProto_MutationType_PUT = 2, + MutationProto_MutationType_DELETE = 3 +}; +bool MutationProto_MutationType_IsValid(int value); +const MutationProto_MutationType MutationProto_MutationType_MutationType_MIN = MutationProto_MutationType_APPEND; +const MutationProto_MutationType MutationProto_MutationType_MutationType_MAX = MutationProto_MutationType_DELETE; +const int MutationProto_MutationType_MutationType_ARRAYSIZE = MutationProto_MutationType_MutationType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* MutationProto_MutationType_descriptor(); +inline const ::std::string& MutationProto_MutationType_Name(MutationProto_MutationType value) { + return ::google::protobuf::internal::NameOfEnum( + MutationProto_MutationType_descriptor(), value); +} +inline bool MutationProto_MutationType_Parse( + const ::std::string& name, MutationProto_MutationType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MutationProto_MutationType_descriptor(), name, value); +} +enum MutationProto_DeleteType { + MutationProto_DeleteType_DELETE_ONE_VERSION = 0, + MutationProto_DeleteType_DELETE_MULTIPLE_VERSIONS = 1, + MutationProto_DeleteType_DELETE_FAMILY = 2, + MutationProto_DeleteType_DELETE_FAMILY_VERSION = 3 +}; +bool MutationProto_DeleteType_IsValid(int value); +const MutationProto_DeleteType MutationProto_DeleteType_DeleteType_MIN = MutationProto_DeleteType_DELETE_ONE_VERSION; +const MutationProto_DeleteType MutationProto_DeleteType_DeleteType_MAX = MutationProto_DeleteType_DELETE_FAMILY_VERSION; +const int MutationProto_DeleteType_DeleteType_ARRAYSIZE = MutationProto_DeleteType_DeleteType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* MutationProto_DeleteType_descriptor(); +inline const ::std::string& MutationProto_DeleteType_Name(MutationProto_DeleteType value) { + return ::google::protobuf::internal::NameOfEnum( + MutationProto_DeleteType_descriptor(), value); +} +inline bool MutationProto_DeleteType_Parse( + const ::std::string& name, MutationProto_DeleteType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MutationProto_DeleteType_descriptor(), name, value); +} +enum Consistency { + STRONG = 0, + TIMELINE = 1 +}; +bool Consistency_IsValid(int value); +const Consistency Consistency_MIN = STRONG; +const Consistency Consistency_MAX = TIMELINE; +const int Consistency_ARRAYSIZE = Consistency_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Consistency_descriptor(); +inline const ::std::string& Consistency_Name(Consistency value) { + return ::google::protobuf::internal::NameOfEnum( + Consistency_descriptor(), value); +} +inline bool Consistency_Parse( + const ::std::string& name, Consistency* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Consistency_descriptor(), name, value); +} +// =================================================================== + +class Authorizations : public ::google::protobuf::Message { + public: + Authorizations(); + virtual ~Authorizations(); + + Authorizations(const Authorizations& from); + + inline Authorizations& operator=(const Authorizations& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Authorizations& default_instance(); + + void Swap(Authorizations* other); + + // implements Message ---------------------------------------------- + + Authorizations* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Authorizations& from); + void MergeFrom(const Authorizations& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string label = 1; + inline int label_size() const; + inline void clear_label(); + static const int kLabelFieldNumber = 1; + inline const ::std::string& label(int index) const; + inline ::std::string* mutable_label(int index); + inline void set_label(int index, const ::std::string& value); + inline void set_label(int index, const char* value); + inline void set_label(int index, const char* value, size_t size); + inline ::std::string* add_label(); + inline void add_label(const ::std::string& value); + inline void add_label(const char* value); + inline void add_label(const char* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& label() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_label(); + + // @@protoc_insertion_point(class_scope:hbase.pb.Authorizations) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> label_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static Authorizations* default_instance_; +}; +// ------------------------------------------------------------------- + +class CellVisibility : public ::google::protobuf::Message { + public: + CellVisibility(); + virtual ~CellVisibility(); + + CellVisibility(const CellVisibility& from); + + inline CellVisibility& operator=(const CellVisibility& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CellVisibility& default_instance(); + + void Swap(CellVisibility* other); + + // implements Message ---------------------------------------------- + + CellVisibility* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CellVisibility& from); + void MergeFrom(const CellVisibility& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string expression = 1; + inline bool has_expression() const; + inline void clear_expression(); + static const int kExpressionFieldNumber = 1; + inline const ::std::string& expression() const; + inline void set_expression(const ::std::string& value); + inline void set_expression(const char* value); + inline void set_expression(const char* value, size_t size); + inline ::std::string* mutable_expression(); + inline ::std::string* release_expression(); + inline void set_allocated_expression(::std::string* expression); + + // @@protoc_insertion_point(class_scope:hbase.pb.CellVisibility) + private: + inline void set_has_expression(); + inline void clear_has_expression(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* expression_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static CellVisibility* default_instance_; +}; +// ------------------------------------------------------------------- + +class Column : public ::google::protobuf::Message { + public: + Column(); + virtual ~Column(); + + Column(const Column& from); + + inline Column& operator=(const Column& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Column& default_instance(); + + void Swap(Column* other); + + // implements Message ---------------------------------------------- + + Column* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Column& from); + void MergeFrom(const Column& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes family = 1; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 1; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // repeated bytes qualifier = 2; + inline int qualifier_size() const; + inline void clear_qualifier(); + static const int kQualifierFieldNumber = 2; + inline const ::std::string& qualifier(int index) const; + inline ::std::string* mutable_qualifier(int index); + inline void set_qualifier(int index, const ::std::string& value); + inline void set_qualifier(int index, const char* value); + inline void set_qualifier(int index, const void* value, size_t size); + inline ::std::string* add_qualifier(); + inline void add_qualifier(const ::std::string& value); + inline void add_qualifier(const char* value); + inline void add_qualifier(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& qualifier() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_qualifier(); + + // @@protoc_insertion_point(class_scope:hbase.pb.Column) + private: + inline void set_has_family(); + inline void clear_has_family(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* family_; + ::google::protobuf::RepeatedPtrField< ::std::string> qualifier_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static Column* default_instance_; +}; +// ------------------------------------------------------------------- + +class Get : public ::google::protobuf::Message { + public: + Get(); + virtual ~Get(); + + Get(const Get& from); + + inline Get& operator=(const Get& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Get& default_instance(); + + void Swap(Get* other); + + // implements Message ---------------------------------------------- + + Get* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Get& from); + void MergeFrom(const Get& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes row = 1; + inline bool has_row() const; + inline void clear_row(); + static const int kRowFieldNumber = 1; + inline const ::std::string& row() const; + inline void set_row(const ::std::string& value); + inline void set_row(const char* value); + inline void set_row(const void* value, size_t size); + inline ::std::string* mutable_row(); + inline ::std::string* release_row(); + inline void set_allocated_row(::std::string* row); + + // repeated .hbase.pb.Column column = 2; + inline int column_size() const; + inline void clear_column(); + static const int kColumnFieldNumber = 2; + inline const ::hbase::pb::Column& column(int index) const; + inline ::hbase::pb::Column* mutable_column(int index); + inline ::hbase::pb::Column* add_column(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column >& + column() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column >* + mutable_column(); + + // repeated .hbase.pb.NameBytesPair attribute = 3; + inline int attribute_size() const; + inline void clear_attribute(); + static const int kAttributeFieldNumber = 3; + inline const ::hbase::pb::NameBytesPair& attribute(int index) const; + inline ::hbase::pb::NameBytesPair* mutable_attribute(int index); + inline ::hbase::pb::NameBytesPair* add_attribute(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >& + attribute() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >* + mutable_attribute(); + + // optional .hbase.pb.Filter filter = 4; + inline bool has_filter() const; + inline void clear_filter(); + static const int kFilterFieldNumber = 4; + inline const ::hbase::pb::Filter& filter() const; + inline ::hbase::pb::Filter* mutable_filter(); + inline ::hbase::pb::Filter* release_filter(); + inline void set_allocated_filter(::hbase::pb::Filter* filter); + + // optional .hbase.pb.TimeRange time_range = 5; + inline bool has_time_range() const; + inline void clear_time_range(); + static const int kTimeRangeFieldNumber = 5; + inline const ::hbase::pb::TimeRange& time_range() const; + inline ::hbase::pb::TimeRange* mutable_time_range(); + inline ::hbase::pb::TimeRange* release_time_range(); + inline void set_allocated_time_range(::hbase::pb::TimeRange* time_range); + + // optional uint32 max_versions = 6 [default = 1]; + inline bool has_max_versions() const; + inline void clear_max_versions(); + static const int kMaxVersionsFieldNumber = 6; + inline ::google::protobuf::uint32 max_versions() const; + inline void set_max_versions(::google::protobuf::uint32 value); + + // optional bool cache_blocks = 7 [default = true]; + inline bool has_cache_blocks() const; + inline void clear_cache_blocks(); + static const int kCacheBlocksFieldNumber = 7; + inline bool cache_blocks() const; + inline void set_cache_blocks(bool value); + + // optional uint32 store_limit = 8; + inline bool has_store_limit() const; + inline void clear_store_limit(); + static const int kStoreLimitFieldNumber = 8; + inline ::google::protobuf::uint32 store_limit() const; + inline void set_store_limit(::google::protobuf::uint32 value); + + // optional uint32 store_offset = 9; + inline bool has_store_offset() const; + inline void clear_store_offset(); + static const int kStoreOffsetFieldNumber = 9; + inline ::google::protobuf::uint32 store_offset() const; + inline void set_store_offset(::google::protobuf::uint32 value); + + // optional bool existence_only = 10 [default = false]; + inline bool has_existence_only() const; + inline void clear_existence_only(); + static const int kExistenceOnlyFieldNumber = 10; + inline bool existence_only() const; + inline void set_existence_only(bool value); + + // optional .hbase.pb.Consistency consistency = 12 [default = STRONG]; + inline bool has_consistency() const; + inline void clear_consistency(); + static const int kConsistencyFieldNumber = 12; + inline ::hbase::pb::Consistency consistency() const; + inline void set_consistency(::hbase::pb::Consistency value); + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 13; + inline int cf_time_range_size() const; + inline void clear_cf_time_range(); + static const int kCfTimeRangeFieldNumber = 13; + inline const ::hbase::pb::ColumnFamilyTimeRange& cf_time_range(int index) const; + inline ::hbase::pb::ColumnFamilyTimeRange* mutable_cf_time_range(int index); + inline ::hbase::pb::ColumnFamilyTimeRange* add_cf_time_range(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange >& + cf_time_range() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange >* + mutable_cf_time_range(); + + // @@protoc_insertion_point(class_scope:hbase.pb.Get) + private: + inline void set_has_row(); + inline void clear_has_row(); + inline void set_has_filter(); + inline void clear_has_filter(); + inline void set_has_time_range(); + inline void clear_has_time_range(); + inline void set_has_max_versions(); + inline void clear_has_max_versions(); + inline void set_has_cache_blocks(); + inline void clear_has_cache_blocks(); + inline void set_has_store_limit(); + inline void clear_has_store_limit(); + inline void set_has_store_offset(); + inline void clear_has_store_offset(); + inline void set_has_existence_only(); + inline void clear_has_existence_only(); + inline void set_has_consistency(); + inline void clear_has_consistency(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* row_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column > column_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair > attribute_; + ::hbase::pb::Filter* filter_; + ::hbase::pb::TimeRange* time_range_; + ::google::protobuf::uint32 max_versions_; + ::google::protobuf::uint32 store_limit_; + bool cache_blocks_; + bool existence_only_; + ::google::protobuf::uint32 store_offset_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange > cf_time_range_; + int consistency_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(12 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static Get* default_instance_; +}; +// ------------------------------------------------------------------- + +class Result : public ::google::protobuf::Message { + public: + Result(); + virtual ~Result(); + + Result(const Result& from); + + inline Result& operator=(const Result& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Result& default_instance(); + + void Swap(Result* other); + + // implements Message ---------------------------------------------- + + Result* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Result& from); + void MergeFrom(const Result& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.Cell cell = 1; + inline int cell_size() const; + inline void clear_cell(); + static const int kCellFieldNumber = 1; + inline const ::hbase::pb::Cell& cell(int index) const; + inline ::hbase::pb::Cell* mutable_cell(int index); + inline ::hbase::pb::Cell* add_cell(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Cell >& + cell() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Cell >* + mutable_cell(); + + // optional int32 associated_cell_count = 2; + inline bool has_associated_cell_count() const; + inline void clear_associated_cell_count(); + static const int kAssociatedCellCountFieldNumber = 2; + inline ::google::protobuf::int32 associated_cell_count() const; + inline void set_associated_cell_count(::google::protobuf::int32 value); + + // optional bool exists = 3; + inline bool has_exists() const; + inline void clear_exists(); + static const int kExistsFieldNumber = 3; + inline bool exists() const; + inline void set_exists(bool value); + + // optional bool stale = 4 [default = false]; + inline bool has_stale() const; + inline void clear_stale(); + static const int kStaleFieldNumber = 4; + inline bool stale() const; + inline void set_stale(bool value); + + // optional bool partial = 5 [default = false]; + inline bool has_partial() const; + inline void clear_partial(); + static const int kPartialFieldNumber = 5; + inline bool partial() const; + inline void set_partial(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.Result) + private: + inline void set_has_associated_cell_count(); + inline void clear_has_associated_cell_count(); + inline void set_has_exists(); + inline void clear_has_exists(); + inline void set_has_stale(); + inline void clear_has_stale(); + inline void set_has_partial(); + inline void clear_has_partial(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Cell > cell_; + ::google::protobuf::int32 associated_cell_count_; + bool exists_; + bool stale_; + bool partial_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static Result* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetRequest : public ::google::protobuf::Message { + public: + GetRequest(); + virtual ~GetRequest(); + + GetRequest(const GetRequest& from); + + inline GetRequest& operator=(const GetRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRequest& default_instance(); + + void Swap(GetRequest* other); + + // implements Message ---------------------------------------------- + + GetRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRequest& from); + void MergeFrom(const GetRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // required .hbase.pb.Get get = 2; + inline bool has_get() const; + inline void clear_get(); + static const int kGetFieldNumber = 2; + inline const ::hbase::pb::Get& get() const; + inline ::hbase::pb::Get* mutable_get(); + inline ::hbase::pb::Get* release_get(); + inline void set_allocated_get(::hbase::pb::Get* get); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_get(); + inline void clear_has_get(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::hbase::pb::Get* get_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static GetRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetResponse : public ::google::protobuf::Message { + public: + GetResponse(); + virtual ~GetResponse(); + + GetResponse(const GetResponse& from); + + inline GetResponse& operator=(const GetResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetResponse& default_instance(); + + void Swap(GetResponse* other); + + // implements Message ---------------------------------------------- + + GetResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetResponse& from); + void MergeFrom(const GetResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.Result result = 1; + inline bool has_result() const; + inline void clear_result(); + static const int kResultFieldNumber = 1; + inline const ::hbase::pb::Result& result() const; + inline ::hbase::pb::Result* mutable_result(); + inline ::hbase::pb::Result* release_result(); + inline void set_allocated_result(::hbase::pb::Result* result); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetResponse) + private: + inline void set_has_result(); + inline void clear_has_result(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Result* result_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static GetResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class Condition : public ::google::protobuf::Message { + public: + Condition(); + virtual ~Condition(); + + Condition(const Condition& from); + + inline Condition& operator=(const Condition& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Condition& default_instance(); + + void Swap(Condition* other); + + // implements Message ---------------------------------------------- + + Condition* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Condition& from); + void MergeFrom(const Condition& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes row = 1; + inline bool has_row() const; + inline void clear_row(); + static const int kRowFieldNumber = 1; + inline const ::std::string& row() const; + inline void set_row(const ::std::string& value); + inline void set_row(const char* value); + inline void set_row(const void* value, size_t size); + inline ::std::string* mutable_row(); + inline ::std::string* release_row(); + inline void set_allocated_row(::std::string* row); + + // required bytes family = 2; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 2; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // required bytes qualifier = 3; + inline bool has_qualifier() const; + inline void clear_qualifier(); + static const int kQualifierFieldNumber = 3; + inline const ::std::string& qualifier() const; + inline void set_qualifier(const ::std::string& value); + inline void set_qualifier(const char* value); + inline void set_qualifier(const void* value, size_t size); + inline ::std::string* mutable_qualifier(); + inline ::std::string* release_qualifier(); + inline void set_allocated_qualifier(::std::string* qualifier); + + // required .hbase.pb.CompareType compare_type = 4; + inline bool has_compare_type() const; + inline void clear_compare_type(); + static const int kCompareTypeFieldNumber = 4; + inline ::hbase::pb::CompareType compare_type() const; + inline void set_compare_type(::hbase::pb::CompareType value); + + // required .hbase.pb.Comparator comparator = 5; + inline bool has_comparator() const; + inline void clear_comparator(); + static const int kComparatorFieldNumber = 5; + inline const ::hbase::pb::Comparator& comparator() const; + inline ::hbase::pb::Comparator* mutable_comparator(); + inline ::hbase::pb::Comparator* release_comparator(); + inline void set_allocated_comparator(::hbase::pb::Comparator* comparator); + + // @@protoc_insertion_point(class_scope:hbase.pb.Condition) + private: + inline void set_has_row(); + inline void clear_has_row(); + inline void set_has_family(); + inline void clear_has_family(); + inline void set_has_qualifier(); + inline void clear_has_qualifier(); + inline void set_has_compare_type(); + inline void clear_has_compare_type(); + inline void set_has_comparator(); + inline void clear_has_comparator(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* row_; + ::std::string* family_; + ::std::string* qualifier_; + ::hbase::pb::Comparator* comparator_; + int compare_type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static Condition* default_instance_; +}; +// ------------------------------------------------------------------- + +class MutationProto_ColumnValue_QualifierValue : public ::google::protobuf::Message { + public: + MutationProto_ColumnValue_QualifierValue(); + virtual ~MutationProto_ColumnValue_QualifierValue(); + + MutationProto_ColumnValue_QualifierValue(const MutationProto_ColumnValue_QualifierValue& from); + + inline MutationProto_ColumnValue_QualifierValue& operator=(const MutationProto_ColumnValue_QualifierValue& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MutationProto_ColumnValue_QualifierValue& default_instance(); + + void Swap(MutationProto_ColumnValue_QualifierValue* other); + + // implements Message ---------------------------------------------- + + MutationProto_ColumnValue_QualifierValue* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MutationProto_ColumnValue_QualifierValue& from); + void MergeFrom(const MutationProto_ColumnValue_QualifierValue& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes qualifier = 1; + inline bool has_qualifier() const; + inline void clear_qualifier(); + static const int kQualifierFieldNumber = 1; + inline const ::std::string& qualifier() const; + inline void set_qualifier(const ::std::string& value); + inline void set_qualifier(const char* value); + inline void set_qualifier(const void* value, size_t size); + inline ::std::string* mutable_qualifier(); + inline ::std::string* release_qualifier(); + inline void set_allocated_qualifier(::std::string* qualifier); + + // optional bytes value = 2; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 2; + inline const ::std::string& value() const; + inline void set_value(const ::std::string& value); + inline void set_value(const char* value); + inline void set_value(const void* value, size_t size); + inline ::std::string* mutable_value(); + inline ::std::string* release_value(); + inline void set_allocated_value(::std::string* value); + + // optional uint64 timestamp = 3; + inline bool has_timestamp() const; + inline void clear_timestamp(); + static const int kTimestampFieldNumber = 3; + inline ::google::protobuf::uint64 timestamp() const; + inline void set_timestamp(::google::protobuf::uint64 value); + + // optional .hbase.pb.MutationProto.DeleteType delete_type = 4; + inline bool has_delete_type() const; + inline void clear_delete_type(); + static const int kDeleteTypeFieldNumber = 4; + inline ::hbase::pb::MutationProto_DeleteType delete_type() const; + inline void set_delete_type(::hbase::pb::MutationProto_DeleteType value); + + // optional bytes tags = 5; + inline bool has_tags() const; + inline void clear_tags(); + static const int kTagsFieldNumber = 5; + inline const ::std::string& tags() const; + inline void set_tags(const ::std::string& value); + inline void set_tags(const char* value); + inline void set_tags(const void* value, size_t size); + inline ::std::string* mutable_tags(); + inline ::std::string* release_tags(); + inline void set_allocated_tags(::std::string* tags); + + // @@protoc_insertion_point(class_scope:hbase.pb.MutationProto.ColumnValue.QualifierValue) + private: + inline void set_has_qualifier(); + inline void clear_has_qualifier(); + inline void set_has_value(); + inline void clear_has_value(); + inline void set_has_timestamp(); + inline void clear_has_timestamp(); + inline void set_has_delete_type(); + inline void clear_has_delete_type(); + inline void set_has_tags(); + inline void clear_has_tags(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* qualifier_; + ::std::string* value_; + ::google::protobuf::uint64 timestamp_; + ::std::string* tags_; + int delete_type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static MutationProto_ColumnValue_QualifierValue* default_instance_; +}; +// ------------------------------------------------------------------- + +class MutationProto_ColumnValue : public ::google::protobuf::Message { + public: + MutationProto_ColumnValue(); + virtual ~MutationProto_ColumnValue(); + + MutationProto_ColumnValue(const MutationProto_ColumnValue& from); + + inline MutationProto_ColumnValue& operator=(const MutationProto_ColumnValue& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MutationProto_ColumnValue& default_instance(); + + void Swap(MutationProto_ColumnValue* other); + + // implements Message ---------------------------------------------- + + MutationProto_ColumnValue* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MutationProto_ColumnValue& from); + void MergeFrom(const MutationProto_ColumnValue& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef MutationProto_ColumnValue_QualifierValue QualifierValue; + + // accessors ------------------------------------------------------- + + // required bytes family = 1; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 1; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // repeated .hbase.pb.MutationProto.ColumnValue.QualifierValue qualifier_value = 2; + inline int qualifier_value_size() const; + inline void clear_qualifier_value(); + static const int kQualifierValueFieldNumber = 2; + inline const ::hbase::pb::MutationProto_ColumnValue_QualifierValue& qualifier_value(int index) const; + inline ::hbase::pb::MutationProto_ColumnValue_QualifierValue* mutable_qualifier_value(int index); + inline ::hbase::pb::MutationProto_ColumnValue_QualifierValue* add_qualifier_value(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue_QualifierValue >& + qualifier_value() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue_QualifierValue >* + mutable_qualifier_value(); + + // @@protoc_insertion_point(class_scope:hbase.pb.MutationProto.ColumnValue) + private: + inline void set_has_family(); + inline void clear_has_family(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* family_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue_QualifierValue > qualifier_value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static MutationProto_ColumnValue* default_instance_; +}; +// ------------------------------------------------------------------- + +class MutationProto : public ::google::protobuf::Message { + public: + MutationProto(); + virtual ~MutationProto(); + + MutationProto(const MutationProto& from); + + inline MutationProto& operator=(const MutationProto& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MutationProto& default_instance(); + + void Swap(MutationProto* other); + + // implements Message ---------------------------------------------- + + MutationProto* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MutationProto& from); + void MergeFrom(const MutationProto& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef MutationProto_ColumnValue ColumnValue; + + typedef MutationProto_Durability Durability; + static const Durability USE_DEFAULT = MutationProto_Durability_USE_DEFAULT; + static const Durability SKIP_WAL = MutationProto_Durability_SKIP_WAL; + static const Durability ASYNC_WAL = MutationProto_Durability_ASYNC_WAL; + static const Durability SYNC_WAL = MutationProto_Durability_SYNC_WAL; + static const Durability FSYNC_WAL = MutationProto_Durability_FSYNC_WAL; + static inline bool Durability_IsValid(int value) { + return MutationProto_Durability_IsValid(value); + } + static const Durability Durability_MIN = + MutationProto_Durability_Durability_MIN; + static const Durability Durability_MAX = + MutationProto_Durability_Durability_MAX; + static const int Durability_ARRAYSIZE = + MutationProto_Durability_Durability_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Durability_descriptor() { + return MutationProto_Durability_descriptor(); + } + static inline const ::std::string& Durability_Name(Durability value) { + return MutationProto_Durability_Name(value); + } + static inline bool Durability_Parse(const ::std::string& name, + Durability* value) { + return MutationProto_Durability_Parse(name, value); + } + + typedef MutationProto_MutationType MutationType; + static const MutationType APPEND = MutationProto_MutationType_APPEND; + static const MutationType INCREMENT = MutationProto_MutationType_INCREMENT; + static const MutationType PUT = MutationProto_MutationType_PUT; + static const MutationType DELETE = MutationProto_MutationType_DELETE; + static inline bool MutationType_IsValid(int value) { + return MutationProto_MutationType_IsValid(value); + } + static const MutationType MutationType_MIN = + MutationProto_MutationType_MutationType_MIN; + static const MutationType MutationType_MAX = + MutationProto_MutationType_MutationType_MAX; + static const int MutationType_ARRAYSIZE = + MutationProto_MutationType_MutationType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + MutationType_descriptor() { + return MutationProto_MutationType_descriptor(); + } + static inline const ::std::string& MutationType_Name(MutationType value) { + return MutationProto_MutationType_Name(value); + } + static inline bool MutationType_Parse(const ::std::string& name, + MutationType* value) { + return MutationProto_MutationType_Parse(name, value); + } + + typedef MutationProto_DeleteType DeleteType; + static const DeleteType DELETE_ONE_VERSION = MutationProto_DeleteType_DELETE_ONE_VERSION; + static const DeleteType DELETE_MULTIPLE_VERSIONS = MutationProto_DeleteType_DELETE_MULTIPLE_VERSIONS; + static const DeleteType DELETE_FAMILY = MutationProto_DeleteType_DELETE_FAMILY; + static const DeleteType DELETE_FAMILY_VERSION = MutationProto_DeleteType_DELETE_FAMILY_VERSION; + static inline bool DeleteType_IsValid(int value) { + return MutationProto_DeleteType_IsValid(value); + } + static const DeleteType DeleteType_MIN = + MutationProto_DeleteType_DeleteType_MIN; + static const DeleteType DeleteType_MAX = + MutationProto_DeleteType_DeleteType_MAX; + static const int DeleteType_ARRAYSIZE = + MutationProto_DeleteType_DeleteType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + DeleteType_descriptor() { + return MutationProto_DeleteType_descriptor(); + } + static inline const ::std::string& DeleteType_Name(DeleteType value) { + return MutationProto_DeleteType_Name(value); + } + static inline bool DeleteType_Parse(const ::std::string& name, + DeleteType* value) { + return MutationProto_DeleteType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional bytes row = 1; + inline bool has_row() const; + inline void clear_row(); + static const int kRowFieldNumber = 1; + inline const ::std::string& row() const; + inline void set_row(const ::std::string& value); + inline void set_row(const char* value); + inline void set_row(const void* value, size_t size); + inline ::std::string* mutable_row(); + inline ::std::string* release_row(); + inline void set_allocated_row(::std::string* row); + + // optional .hbase.pb.MutationProto.MutationType mutate_type = 2; + inline bool has_mutate_type() const; + inline void clear_mutate_type(); + static const int kMutateTypeFieldNumber = 2; + inline ::hbase::pb::MutationProto_MutationType mutate_type() const; + inline void set_mutate_type(::hbase::pb::MutationProto_MutationType value); + + // repeated .hbase.pb.MutationProto.ColumnValue column_value = 3; + inline int column_value_size() const; + inline void clear_column_value(); + static const int kColumnValueFieldNumber = 3; + inline const ::hbase::pb::MutationProto_ColumnValue& column_value(int index) const; + inline ::hbase::pb::MutationProto_ColumnValue* mutable_column_value(int index); + inline ::hbase::pb::MutationProto_ColumnValue* add_column_value(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue >& + column_value() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue >* + mutable_column_value(); + + // optional uint64 timestamp = 4; + inline bool has_timestamp() const; + inline void clear_timestamp(); + static const int kTimestampFieldNumber = 4; + inline ::google::protobuf::uint64 timestamp() const; + inline void set_timestamp(::google::protobuf::uint64 value); + + // repeated .hbase.pb.NameBytesPair attribute = 5; + inline int attribute_size() const; + inline void clear_attribute(); + static const int kAttributeFieldNumber = 5; + inline const ::hbase::pb::NameBytesPair& attribute(int index) const; + inline ::hbase::pb::NameBytesPair* mutable_attribute(int index); + inline ::hbase::pb::NameBytesPair* add_attribute(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >& + attribute() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >* + mutable_attribute(); + + // optional .hbase.pb.MutationProto.Durability durability = 6 [default = USE_DEFAULT]; + inline bool has_durability() const; + inline void clear_durability(); + static const int kDurabilityFieldNumber = 6; + inline ::hbase::pb::MutationProto_Durability durability() const; + inline void set_durability(::hbase::pb::MutationProto_Durability value); + + // optional .hbase.pb.TimeRange time_range = 7; + inline bool has_time_range() const; + inline void clear_time_range(); + static const int kTimeRangeFieldNumber = 7; + inline const ::hbase::pb::TimeRange& time_range() const; + inline ::hbase::pb::TimeRange* mutable_time_range(); + inline ::hbase::pb::TimeRange* release_time_range(); + inline void set_allocated_time_range(::hbase::pb::TimeRange* time_range); + + // optional int32 associated_cell_count = 8; + inline bool has_associated_cell_count() const; + inline void clear_associated_cell_count(); + static const int kAssociatedCellCountFieldNumber = 8; + inline ::google::protobuf::int32 associated_cell_count() const; + inline void set_associated_cell_count(::google::protobuf::int32 value); + + // optional uint64 nonce = 9; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 9; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.MutationProto) + private: + inline void set_has_row(); + inline void clear_has_row(); + inline void set_has_mutate_type(); + inline void clear_has_mutate_type(); + inline void set_has_timestamp(); + inline void clear_has_timestamp(); + inline void set_has_durability(); + inline void clear_has_durability(); + inline void set_has_time_range(); + inline void clear_has_time_range(); + inline void set_has_associated_cell_count(); + inline void clear_has_associated_cell_count(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* row_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue > column_value_; + ::google::protobuf::uint64 timestamp_; + int mutate_type_; + int durability_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair > attribute_; + ::hbase::pb::TimeRange* time_range_; + ::google::protobuf::uint64 nonce_; + ::google::protobuf::int32 associated_cell_count_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static MutationProto* default_instance_; +}; +// ------------------------------------------------------------------- + +class MutateRequest : public ::google::protobuf::Message { + public: + MutateRequest(); + virtual ~MutateRequest(); + + MutateRequest(const MutateRequest& from); + + inline MutateRequest& operator=(const MutateRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MutateRequest& default_instance(); + + void Swap(MutateRequest* other); + + // implements Message ---------------------------------------------- + + MutateRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MutateRequest& from); + void MergeFrom(const MutateRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // required .hbase.pb.MutationProto mutation = 2; + inline bool has_mutation() const; + inline void clear_mutation(); + static const int kMutationFieldNumber = 2; + inline const ::hbase::pb::MutationProto& mutation() const; + inline ::hbase::pb::MutationProto* mutable_mutation(); + inline ::hbase::pb::MutationProto* release_mutation(); + inline void set_allocated_mutation(::hbase::pb::MutationProto* mutation); + + // optional .hbase.pb.Condition condition = 3; + inline bool has_condition() const; + inline void clear_condition(); + static const int kConditionFieldNumber = 3; + inline const ::hbase::pb::Condition& condition() const; + inline ::hbase::pb::Condition* mutable_condition(); + inline ::hbase::pb::Condition* release_condition(); + inline void set_allocated_condition(::hbase::pb::Condition* condition); + + // optional uint64 nonce_group = 4; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 4; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.MutateRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_mutation(); + inline void clear_has_mutation(); + inline void set_has_condition(); + inline void clear_has_condition(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::hbase::pb::MutationProto* mutation_; + ::hbase::pb::Condition* condition_; + ::google::protobuf::uint64 nonce_group_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static MutateRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MutateResponse : public ::google::protobuf::Message { + public: + MutateResponse(); + virtual ~MutateResponse(); + + MutateResponse(const MutateResponse& from); + + inline MutateResponse& operator=(const MutateResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MutateResponse& default_instance(); + + void Swap(MutateResponse* other); + + // implements Message ---------------------------------------------- + + MutateResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MutateResponse& from); + void MergeFrom(const MutateResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.Result result = 1; + inline bool has_result() const; + inline void clear_result(); + static const int kResultFieldNumber = 1; + inline const ::hbase::pb::Result& result() const; + inline ::hbase::pb::Result* mutable_result(); + inline ::hbase::pb::Result* release_result(); + inline void set_allocated_result(::hbase::pb::Result* result); + + // optional bool processed = 2; + inline bool has_processed() const; + inline void clear_processed(); + static const int kProcessedFieldNumber = 2; + inline bool processed() const; + inline void set_processed(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.MutateResponse) + private: + inline void set_has_result(); + inline void clear_has_result(); + inline void set_has_processed(); + inline void clear_has_processed(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Result* result_; + bool processed_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static MutateResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class Scan : public ::google::protobuf::Message { + public: + Scan(); + virtual ~Scan(); + + Scan(const Scan& from); + + inline Scan& operator=(const Scan& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Scan& default_instance(); + + void Swap(Scan* other); + + // implements Message ---------------------------------------------- + + Scan* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Scan& from); + void MergeFrom(const Scan& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.Column column = 1; + inline int column_size() const; + inline void clear_column(); + static const int kColumnFieldNumber = 1; + inline const ::hbase::pb::Column& column(int index) const; + inline ::hbase::pb::Column* mutable_column(int index); + inline ::hbase::pb::Column* add_column(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column >& + column() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column >* + mutable_column(); + + // repeated .hbase.pb.NameBytesPair attribute = 2; + inline int attribute_size() const; + inline void clear_attribute(); + static const int kAttributeFieldNumber = 2; + inline const ::hbase::pb::NameBytesPair& attribute(int index) const; + inline ::hbase::pb::NameBytesPair* mutable_attribute(int index); + inline ::hbase::pb::NameBytesPair* add_attribute(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >& + attribute() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >* + mutable_attribute(); + + // optional bytes start_row = 3; + inline bool has_start_row() const; + inline void clear_start_row(); + static const int kStartRowFieldNumber = 3; + inline const ::std::string& start_row() const; + inline void set_start_row(const ::std::string& value); + inline void set_start_row(const char* value); + inline void set_start_row(const void* value, size_t size); + inline ::std::string* mutable_start_row(); + inline ::std::string* release_start_row(); + inline void set_allocated_start_row(::std::string* start_row); + + // optional bytes stop_row = 4; + inline bool has_stop_row() const; + inline void clear_stop_row(); + static const int kStopRowFieldNumber = 4; + inline const ::std::string& stop_row() const; + inline void set_stop_row(const ::std::string& value); + inline void set_stop_row(const char* value); + inline void set_stop_row(const void* value, size_t size); + inline ::std::string* mutable_stop_row(); + inline ::std::string* release_stop_row(); + inline void set_allocated_stop_row(::std::string* stop_row); + + // optional .hbase.pb.Filter filter = 5; + inline bool has_filter() const; + inline void clear_filter(); + static const int kFilterFieldNumber = 5; + inline const ::hbase::pb::Filter& filter() const; + inline ::hbase::pb::Filter* mutable_filter(); + inline ::hbase::pb::Filter* release_filter(); + inline void set_allocated_filter(::hbase::pb::Filter* filter); + + // optional .hbase.pb.TimeRange time_range = 6; + inline bool has_time_range() const; + inline void clear_time_range(); + static const int kTimeRangeFieldNumber = 6; + inline const ::hbase::pb::TimeRange& time_range() const; + inline ::hbase::pb::TimeRange* mutable_time_range(); + inline ::hbase::pb::TimeRange* release_time_range(); + inline void set_allocated_time_range(::hbase::pb::TimeRange* time_range); + + // optional uint32 max_versions = 7 [default = 1]; + inline bool has_max_versions() const; + inline void clear_max_versions(); + static const int kMaxVersionsFieldNumber = 7; + inline ::google::protobuf::uint32 max_versions() const; + inline void set_max_versions(::google::protobuf::uint32 value); + + // optional bool cache_blocks = 8 [default = true]; + inline bool has_cache_blocks() const; + inline void clear_cache_blocks(); + static const int kCacheBlocksFieldNumber = 8; + inline bool cache_blocks() const; + inline void set_cache_blocks(bool value); + + // optional uint32 batch_size = 9; + inline bool has_batch_size() const; + inline void clear_batch_size(); + static const int kBatchSizeFieldNumber = 9; + inline ::google::protobuf::uint32 batch_size() const; + inline void set_batch_size(::google::protobuf::uint32 value); + + // optional uint64 max_result_size = 10; + inline bool has_max_result_size() const; + inline void clear_max_result_size(); + static const int kMaxResultSizeFieldNumber = 10; + inline ::google::protobuf::uint64 max_result_size() const; + inline void set_max_result_size(::google::protobuf::uint64 value); + + // optional uint32 store_limit = 11; + inline bool has_store_limit() const; + inline void clear_store_limit(); + static const int kStoreLimitFieldNumber = 11; + inline ::google::protobuf::uint32 store_limit() const; + inline void set_store_limit(::google::protobuf::uint32 value); + + // optional uint32 store_offset = 12; + inline bool has_store_offset() const; + inline void clear_store_offset(); + static const int kStoreOffsetFieldNumber = 12; + inline ::google::protobuf::uint32 store_offset() const; + inline void set_store_offset(::google::protobuf::uint32 value); + + // optional bool load_column_families_on_demand = 13; + inline bool has_load_column_families_on_demand() const; + inline void clear_load_column_families_on_demand(); + static const int kLoadColumnFamiliesOnDemandFieldNumber = 13; + inline bool load_column_families_on_demand() const; + inline void set_load_column_families_on_demand(bool value); + + // optional bool small = 14; + inline bool has_small() const; + inline void clear_small(); + static const int kSmallFieldNumber = 14; + inline bool small() const; + inline void set_small(bool value); + + // optional bool reversed = 15 [default = false]; + inline bool has_reversed() const; + inline void clear_reversed(); + static const int kReversedFieldNumber = 15; + inline bool reversed() const; + inline void set_reversed(bool value); + + // optional .hbase.pb.Consistency consistency = 16 [default = STRONG]; + inline bool has_consistency() const; + inline void clear_consistency(); + static const int kConsistencyFieldNumber = 16; + inline ::hbase::pb::Consistency consistency() const; + inline void set_consistency(::hbase::pb::Consistency value); + + // optional uint32 caching = 17; + inline bool has_caching() const; + inline void clear_caching(); + static const int kCachingFieldNumber = 17; + inline ::google::protobuf::uint32 caching() const; + inline void set_caching(::google::protobuf::uint32 value); + + // optional bool allow_partial_results = 18; + inline bool has_allow_partial_results() const; + inline void clear_allow_partial_results(); + static const int kAllowPartialResultsFieldNumber = 18; + inline bool allow_partial_results() const; + inline void set_allow_partial_results(bool value); + + // repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 19; + inline int cf_time_range_size() const; + inline void clear_cf_time_range(); + static const int kCfTimeRangeFieldNumber = 19; + inline const ::hbase::pb::ColumnFamilyTimeRange& cf_time_range(int index) const; + inline ::hbase::pb::ColumnFamilyTimeRange* mutable_cf_time_range(int index); + inline ::hbase::pb::ColumnFamilyTimeRange* add_cf_time_range(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange >& + cf_time_range() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange >* + mutable_cf_time_range(); + + // @@protoc_insertion_point(class_scope:hbase.pb.Scan) + private: + inline void set_has_start_row(); + inline void clear_has_start_row(); + inline void set_has_stop_row(); + inline void clear_has_stop_row(); + inline void set_has_filter(); + inline void clear_has_filter(); + inline void set_has_time_range(); + inline void clear_has_time_range(); + inline void set_has_max_versions(); + inline void clear_has_max_versions(); + inline void set_has_cache_blocks(); + inline void clear_has_cache_blocks(); + inline void set_has_batch_size(); + inline void clear_has_batch_size(); + inline void set_has_max_result_size(); + inline void clear_has_max_result_size(); + inline void set_has_store_limit(); + inline void clear_has_store_limit(); + inline void set_has_store_offset(); + inline void clear_has_store_offset(); + inline void set_has_load_column_families_on_demand(); + inline void clear_has_load_column_families_on_demand(); + inline void set_has_small(); + inline void clear_has_small(); + inline void set_has_reversed(); + inline void clear_has_reversed(); + inline void set_has_consistency(); + inline void clear_has_consistency(); + inline void set_has_caching(); + inline void clear_has_caching(); + inline void set_has_allow_partial_results(); + inline void clear_has_allow_partial_results(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column > column_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair > attribute_; + ::std::string* start_row_; + ::std::string* stop_row_; + ::hbase::pb::Filter* filter_; + ::hbase::pb::TimeRange* time_range_; + ::google::protobuf::uint32 max_versions_; + ::google::protobuf::uint32 batch_size_; + ::google::protobuf::uint64 max_result_size_; + ::google::protobuf::uint32 store_limit_; + ::google::protobuf::uint32 store_offset_; + bool cache_blocks_; + bool load_column_families_on_demand_; + bool small_; + bool reversed_; + int consistency_; + ::google::protobuf::uint32 caching_; + bool allow_partial_results_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange > cf_time_range_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(19 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static Scan* default_instance_; +}; +// ------------------------------------------------------------------- + +class ScanRequest : public ::google::protobuf::Message { + public: + ScanRequest(); + virtual ~ScanRequest(); + + ScanRequest(const ScanRequest& from); + + inline ScanRequest& operator=(const ScanRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ScanRequest& default_instance(); + + void Swap(ScanRequest* other); + + // implements Message ---------------------------------------------- + + ScanRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ScanRequest& from); + void MergeFrom(const ScanRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional .hbase.pb.Scan scan = 2; + inline bool has_scan() const; + inline void clear_scan(); + static const int kScanFieldNumber = 2; + inline const ::hbase::pb::Scan& scan() const; + inline ::hbase::pb::Scan* mutable_scan(); + inline ::hbase::pb::Scan* release_scan(); + inline void set_allocated_scan(::hbase::pb::Scan* scan); + + // optional uint64 scanner_id = 3; + inline bool has_scanner_id() const; + inline void clear_scanner_id(); + static const int kScannerIdFieldNumber = 3; + inline ::google::protobuf::uint64 scanner_id() const; + inline void set_scanner_id(::google::protobuf::uint64 value); + + // optional uint32 number_of_rows = 4; + inline bool has_number_of_rows() const; + inline void clear_number_of_rows(); + static const int kNumberOfRowsFieldNumber = 4; + inline ::google::protobuf::uint32 number_of_rows() const; + inline void set_number_of_rows(::google::protobuf::uint32 value); + + // optional bool close_scanner = 5; + inline bool has_close_scanner() const; + inline void clear_close_scanner(); + static const int kCloseScannerFieldNumber = 5; + inline bool close_scanner() const; + inline void set_close_scanner(bool value); + + // optional uint64 next_call_seq = 6; + inline bool has_next_call_seq() const; + inline void clear_next_call_seq(); + static const int kNextCallSeqFieldNumber = 6; + inline ::google::protobuf::uint64 next_call_seq() const; + inline void set_next_call_seq(::google::protobuf::uint64 value); + + // optional bool client_handles_partials = 7; + inline bool has_client_handles_partials() const; + inline void clear_client_handles_partials(); + static const int kClientHandlesPartialsFieldNumber = 7; + inline bool client_handles_partials() const; + inline void set_client_handles_partials(bool value); + + // optional bool client_handles_heartbeats = 8; + inline bool has_client_handles_heartbeats() const; + inline void clear_client_handles_heartbeats(); + static const int kClientHandlesHeartbeatsFieldNumber = 8; + inline bool client_handles_heartbeats() const; + inline void set_client_handles_heartbeats(bool value); + + // optional bool track_scan_metrics = 9; + inline bool has_track_scan_metrics() const; + inline void clear_track_scan_metrics(); + static const int kTrackScanMetricsFieldNumber = 9; + inline bool track_scan_metrics() const; + inline void set_track_scan_metrics(bool value); + + // optional bool renew = 10 [default = false]; + inline bool has_renew() const; + inline void clear_renew(); + static const int kRenewFieldNumber = 10; + inline bool renew() const; + inline void set_renew(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ScanRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_scan(); + inline void clear_has_scan(); + inline void set_has_scanner_id(); + inline void clear_has_scanner_id(); + inline void set_has_number_of_rows(); + inline void clear_has_number_of_rows(); + inline void set_has_close_scanner(); + inline void clear_has_close_scanner(); + inline void set_has_next_call_seq(); + inline void clear_has_next_call_seq(); + inline void set_has_client_handles_partials(); + inline void clear_has_client_handles_partials(); + inline void set_has_client_handles_heartbeats(); + inline void clear_has_client_handles_heartbeats(); + inline void set_has_track_scan_metrics(); + inline void clear_has_track_scan_metrics(); + inline void set_has_renew(); + inline void clear_has_renew(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::hbase::pb::Scan* scan_; + ::google::protobuf::uint64 scanner_id_; + ::google::protobuf::uint64 next_call_seq_; + ::google::protobuf::uint32 number_of_rows_; + bool close_scanner_; + bool client_handles_partials_; + bool client_handles_heartbeats_; + bool track_scan_metrics_; + bool renew_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static ScanRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ScanResponse : public ::google::protobuf::Message { + public: + ScanResponse(); + virtual ~ScanResponse(); + + ScanResponse(const ScanResponse& from); + + inline ScanResponse& operator=(const ScanResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ScanResponse& default_instance(); + + void Swap(ScanResponse* other); + + // implements Message ---------------------------------------------- + + ScanResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ScanResponse& from); + void MergeFrom(const ScanResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 cells_per_result = 1; + inline int cells_per_result_size() const; + inline void clear_cells_per_result(); + static const int kCellsPerResultFieldNumber = 1; + inline ::google::protobuf::uint32 cells_per_result(int index) const; + inline void set_cells_per_result(int index, ::google::protobuf::uint32 value); + inline void add_cells_per_result(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + cells_per_result() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_cells_per_result(); + + // optional uint64 scanner_id = 2; + inline bool has_scanner_id() const; + inline void clear_scanner_id(); + static const int kScannerIdFieldNumber = 2; + inline ::google::protobuf::uint64 scanner_id() const; + inline void set_scanner_id(::google::protobuf::uint64 value); + + // optional bool more_results = 3; + inline bool has_more_results() const; + inline void clear_more_results(); + static const int kMoreResultsFieldNumber = 3; + inline bool more_results() const; + inline void set_more_results(bool value); + + // optional uint32 ttl = 4; + inline bool has_ttl() const; + inline void clear_ttl(); + static const int kTtlFieldNumber = 4; + inline ::google::protobuf::uint32 ttl() const; + inline void set_ttl(::google::protobuf::uint32 value); + + // repeated .hbase.pb.Result results = 5; + inline int results_size() const; + inline void clear_results(); + static const int kResultsFieldNumber = 5; + inline const ::hbase::pb::Result& results(int index) const; + inline ::hbase::pb::Result* mutable_results(int index); + inline ::hbase::pb::Result* add_results(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Result >& + results() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Result >* + mutable_results(); + + // optional bool stale = 6; + inline bool has_stale() const; + inline void clear_stale(); + static const int kStaleFieldNumber = 6; + inline bool stale() const; + inline void set_stale(bool value); + + // repeated bool partial_flag_per_result = 7; + inline int partial_flag_per_result_size() const; + inline void clear_partial_flag_per_result(); + static const int kPartialFlagPerResultFieldNumber = 7; + inline bool partial_flag_per_result(int index) const; + inline void set_partial_flag_per_result(int index, bool value); + inline void add_partial_flag_per_result(bool value); + inline const ::google::protobuf::RepeatedField< bool >& + partial_flag_per_result() const; + inline ::google::protobuf::RepeatedField< bool >* + mutable_partial_flag_per_result(); + + // optional bool more_results_in_region = 8; + inline bool has_more_results_in_region() const; + inline void clear_more_results_in_region(); + static const int kMoreResultsInRegionFieldNumber = 8; + inline bool more_results_in_region() const; + inline void set_more_results_in_region(bool value); + + // optional bool heartbeat_message = 9; + inline bool has_heartbeat_message() const; + inline void clear_heartbeat_message(); + static const int kHeartbeatMessageFieldNumber = 9; + inline bool heartbeat_message() const; + inline void set_heartbeat_message(bool value); + + // optional .hbase.pb.ScanMetrics scan_metrics = 10; + inline bool has_scan_metrics() const; + inline void clear_scan_metrics(); + static const int kScanMetricsFieldNumber = 10; + inline const ::hbase::pb::ScanMetrics& scan_metrics() const; + inline ::hbase::pb::ScanMetrics* mutable_scan_metrics(); + inline ::hbase::pb::ScanMetrics* release_scan_metrics(); + inline void set_allocated_scan_metrics(::hbase::pb::ScanMetrics* scan_metrics); + + // @@protoc_insertion_point(class_scope:hbase.pb.ScanResponse) + private: + inline void set_has_scanner_id(); + inline void clear_has_scanner_id(); + inline void set_has_more_results(); + inline void clear_has_more_results(); + inline void set_has_ttl(); + inline void clear_has_ttl(); + inline void set_has_stale(); + inline void clear_has_stale(); + inline void set_has_more_results_in_region(); + inline void clear_has_more_results_in_region(); + inline void set_has_heartbeat_message(); + inline void clear_has_heartbeat_message(); + inline void set_has_scan_metrics(); + inline void clear_has_scan_metrics(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > cells_per_result_; + ::google::protobuf::uint64 scanner_id_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Result > results_; + ::google::protobuf::uint32 ttl_; + bool more_results_; + bool stale_; + bool more_results_in_region_; + bool heartbeat_message_; + ::google::protobuf::RepeatedField< bool > partial_flag_per_result_; + ::hbase::pb::ScanMetrics* scan_metrics_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static ScanResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class BulkLoadHFileRequest_FamilyPath : public ::google::protobuf::Message { + public: + BulkLoadHFileRequest_FamilyPath(); + virtual ~BulkLoadHFileRequest_FamilyPath(); + + BulkLoadHFileRequest_FamilyPath(const BulkLoadHFileRequest_FamilyPath& from); + + inline BulkLoadHFileRequest_FamilyPath& operator=(const BulkLoadHFileRequest_FamilyPath& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BulkLoadHFileRequest_FamilyPath& default_instance(); + + void Swap(BulkLoadHFileRequest_FamilyPath* other); + + // implements Message ---------------------------------------------- + + BulkLoadHFileRequest_FamilyPath* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BulkLoadHFileRequest_FamilyPath& from); + void MergeFrom(const BulkLoadHFileRequest_FamilyPath& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes family = 1; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 1; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // required string path = 2; + inline bool has_path() const; + inline void clear_path(); + static const int kPathFieldNumber = 2; + inline const ::std::string& path() const; + inline void set_path(const ::std::string& value); + inline void set_path(const char* value); + inline void set_path(const char* value, size_t size); + inline ::std::string* mutable_path(); + inline ::std::string* release_path(); + inline void set_allocated_path(::std::string* path); + + // @@protoc_insertion_point(class_scope:hbase.pb.BulkLoadHFileRequest.FamilyPath) + private: + inline void set_has_family(); + inline void clear_has_family(); + inline void set_has_path(); + inline void clear_has_path(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* family_; + ::std::string* path_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static BulkLoadHFileRequest_FamilyPath* default_instance_; +}; +// ------------------------------------------------------------------- + +class BulkLoadHFileRequest : public ::google::protobuf::Message { + public: + BulkLoadHFileRequest(); + virtual ~BulkLoadHFileRequest(); + + BulkLoadHFileRequest(const BulkLoadHFileRequest& from); + + inline BulkLoadHFileRequest& operator=(const BulkLoadHFileRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BulkLoadHFileRequest& default_instance(); + + void Swap(BulkLoadHFileRequest* other); + + // implements Message ---------------------------------------------- + + BulkLoadHFileRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BulkLoadHFileRequest& from); + void MergeFrom(const BulkLoadHFileRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef BulkLoadHFileRequest_FamilyPath FamilyPath; + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 2; + inline int family_path_size() const; + inline void clear_family_path(); + static const int kFamilyPathFieldNumber = 2; + inline const ::hbase::pb::BulkLoadHFileRequest_FamilyPath& family_path(int index) const; + inline ::hbase::pb::BulkLoadHFileRequest_FamilyPath* mutable_family_path(int index); + inline ::hbase::pb::BulkLoadHFileRequest_FamilyPath* add_family_path(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath >& + family_path() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath >* + mutable_family_path(); + + // optional bool assign_seq_num = 3; + inline bool has_assign_seq_num() const; + inline void clear_assign_seq_num(); + static const int kAssignSeqNumFieldNumber = 3; + inline bool assign_seq_num() const; + inline void set_assign_seq_num(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.BulkLoadHFileRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_assign_seq_num(); + inline void clear_has_assign_seq_num(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath > family_path_; + bool assign_seq_num_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static BulkLoadHFileRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class BulkLoadHFileResponse : public ::google::protobuf::Message { + public: + BulkLoadHFileResponse(); + virtual ~BulkLoadHFileResponse(); + + BulkLoadHFileResponse(const BulkLoadHFileResponse& from); + + inline BulkLoadHFileResponse& operator=(const BulkLoadHFileResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BulkLoadHFileResponse& default_instance(); + + void Swap(BulkLoadHFileResponse* other); + + // implements Message ---------------------------------------------- + + BulkLoadHFileResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BulkLoadHFileResponse& from); + void MergeFrom(const BulkLoadHFileResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool loaded = 1; + inline bool has_loaded() const; + inline void clear_loaded(); + static const int kLoadedFieldNumber = 1; + inline bool loaded() const; + inline void set_loaded(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.BulkLoadHFileResponse) + private: + inline void set_has_loaded(); + inline void clear_has_loaded(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool loaded_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static BulkLoadHFileResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class CoprocessorServiceCall : public ::google::protobuf::Message { + public: + CoprocessorServiceCall(); + virtual ~CoprocessorServiceCall(); + + CoprocessorServiceCall(const CoprocessorServiceCall& from); + + inline CoprocessorServiceCall& operator=(const CoprocessorServiceCall& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CoprocessorServiceCall& default_instance(); + + void Swap(CoprocessorServiceCall* other); + + // implements Message ---------------------------------------------- + + CoprocessorServiceCall* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CoprocessorServiceCall& from); + void MergeFrom(const CoprocessorServiceCall& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes row = 1; + inline bool has_row() const; + inline void clear_row(); + static const int kRowFieldNumber = 1; + inline const ::std::string& row() const; + inline void set_row(const ::std::string& value); + inline void set_row(const char* value); + inline void set_row(const void* value, size_t size); + inline ::std::string* mutable_row(); + inline ::std::string* release_row(); + inline void set_allocated_row(::std::string* row); + + // required string service_name = 2; + inline bool has_service_name() const; + inline void clear_service_name(); + static const int kServiceNameFieldNumber = 2; + inline const ::std::string& service_name() const; + inline void set_service_name(const ::std::string& value); + inline void set_service_name(const char* value); + inline void set_service_name(const char* value, size_t size); + inline ::std::string* mutable_service_name(); + inline ::std::string* release_service_name(); + inline void set_allocated_service_name(::std::string* service_name); + + // required string method_name = 3; + inline bool has_method_name() const; + inline void clear_method_name(); + static const int kMethodNameFieldNumber = 3; + inline const ::std::string& method_name() const; + inline void set_method_name(const ::std::string& value); + inline void set_method_name(const char* value); + inline void set_method_name(const char* value, size_t size); + inline ::std::string* mutable_method_name(); + inline ::std::string* release_method_name(); + inline void set_allocated_method_name(::std::string* method_name); + + // required bytes request = 4; + inline bool has_request() const; + inline void clear_request(); + static const int kRequestFieldNumber = 4; + inline const ::std::string& request() const; + inline void set_request(const ::std::string& value); + inline void set_request(const char* value); + inline void set_request(const void* value, size_t size); + inline ::std::string* mutable_request(); + inline ::std::string* release_request(); + inline void set_allocated_request(::std::string* request); + + // @@protoc_insertion_point(class_scope:hbase.pb.CoprocessorServiceCall) + private: + inline void set_has_row(); + inline void clear_has_row(); + inline void set_has_service_name(); + inline void clear_has_service_name(); + inline void set_has_method_name(); + inline void clear_has_method_name(); + inline void set_has_request(); + inline void clear_has_request(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* row_; + ::std::string* service_name_; + ::std::string* method_name_; + ::std::string* request_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static CoprocessorServiceCall* default_instance_; +}; +// ------------------------------------------------------------------- + +class CoprocessorServiceResult : public ::google::protobuf::Message { + public: + CoprocessorServiceResult(); + virtual ~CoprocessorServiceResult(); + + CoprocessorServiceResult(const CoprocessorServiceResult& from); + + inline CoprocessorServiceResult& operator=(const CoprocessorServiceResult& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CoprocessorServiceResult& default_instance(); + + void Swap(CoprocessorServiceResult* other); + + // implements Message ---------------------------------------------- + + CoprocessorServiceResult* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CoprocessorServiceResult& from); + void MergeFrom(const CoprocessorServiceResult& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.NameBytesPair value = 1; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 1; + inline const ::hbase::pb::NameBytesPair& value() const; + inline ::hbase::pb::NameBytesPair* mutable_value(); + inline ::hbase::pb::NameBytesPair* release_value(); + inline void set_allocated_value(::hbase::pb::NameBytesPair* value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CoprocessorServiceResult) + private: + inline void set_has_value(); + inline void clear_has_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::NameBytesPair* value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static CoprocessorServiceResult* default_instance_; +}; +// ------------------------------------------------------------------- + +class CoprocessorServiceRequest : public ::google::protobuf::Message { + public: + CoprocessorServiceRequest(); + virtual ~CoprocessorServiceRequest(); + + CoprocessorServiceRequest(const CoprocessorServiceRequest& from); + + inline CoprocessorServiceRequest& operator=(const CoprocessorServiceRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CoprocessorServiceRequest& default_instance(); + + void Swap(CoprocessorServiceRequest* other); + + // implements Message ---------------------------------------------- + + CoprocessorServiceRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CoprocessorServiceRequest& from); + void MergeFrom(const CoprocessorServiceRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // required .hbase.pb.CoprocessorServiceCall call = 2; + inline bool has_call() const; + inline void clear_call(); + static const int kCallFieldNumber = 2; + inline const ::hbase::pb::CoprocessorServiceCall& call() const; + inline ::hbase::pb::CoprocessorServiceCall* mutable_call(); + inline ::hbase::pb::CoprocessorServiceCall* release_call(); + inline void set_allocated_call(::hbase::pb::CoprocessorServiceCall* call); + + // @@protoc_insertion_point(class_scope:hbase.pb.CoprocessorServiceRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_call(); + inline void clear_has_call(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::hbase::pb::CoprocessorServiceCall* call_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static CoprocessorServiceRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class CoprocessorServiceResponse : public ::google::protobuf::Message { + public: + CoprocessorServiceResponse(); + virtual ~CoprocessorServiceResponse(); + + CoprocessorServiceResponse(const CoprocessorServiceResponse& from); + + inline CoprocessorServiceResponse& operator=(const CoprocessorServiceResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CoprocessorServiceResponse& default_instance(); + + void Swap(CoprocessorServiceResponse* other); + + // implements Message ---------------------------------------------- + + CoprocessorServiceResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CoprocessorServiceResponse& from); + void MergeFrom(const CoprocessorServiceResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // required .hbase.pb.NameBytesPair value = 2; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 2; + inline const ::hbase::pb::NameBytesPair& value() const; + inline ::hbase::pb::NameBytesPair* mutable_value(); + inline ::hbase::pb::NameBytesPair* release_value(); + inline void set_allocated_value(::hbase::pb::NameBytesPair* value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CoprocessorServiceResponse) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_value(); + inline void clear_has_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::hbase::pb::NameBytesPair* value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static CoprocessorServiceResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class Action : public ::google::protobuf::Message { + public: + Action(); + virtual ~Action(); + + Action(const Action& from); + + inline Action& operator=(const Action& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Action& default_instance(); + + void Swap(Action* other); + + // implements Message ---------------------------------------------- + + Action* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Action& from); + void MergeFrom(const Action& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 index = 1; + inline bool has_index() const; + inline void clear_index(); + static const int kIndexFieldNumber = 1; + inline ::google::protobuf::uint32 index() const; + inline void set_index(::google::protobuf::uint32 value); + + // optional .hbase.pb.MutationProto mutation = 2; + inline bool has_mutation() const; + inline void clear_mutation(); + static const int kMutationFieldNumber = 2; + inline const ::hbase::pb::MutationProto& mutation() const; + inline ::hbase::pb::MutationProto* mutable_mutation(); + inline ::hbase::pb::MutationProto* release_mutation(); + inline void set_allocated_mutation(::hbase::pb::MutationProto* mutation); + + // optional .hbase.pb.Get get = 3; + inline bool has_get() const; + inline void clear_get(); + static const int kGetFieldNumber = 3; + inline const ::hbase::pb::Get& get() const; + inline ::hbase::pb::Get* mutable_get(); + inline ::hbase::pb::Get* release_get(); + inline void set_allocated_get(::hbase::pb::Get* get); + + // optional .hbase.pb.CoprocessorServiceCall service_call = 4; + inline bool has_service_call() const; + inline void clear_service_call(); + static const int kServiceCallFieldNumber = 4; + inline const ::hbase::pb::CoprocessorServiceCall& service_call() const; + inline ::hbase::pb::CoprocessorServiceCall* mutable_service_call(); + inline ::hbase::pb::CoprocessorServiceCall* release_service_call(); + inline void set_allocated_service_call(::hbase::pb::CoprocessorServiceCall* service_call); + + // @@protoc_insertion_point(class_scope:hbase.pb.Action) + private: + inline void set_has_index(); + inline void clear_has_index(); + inline void set_has_mutation(); + inline void clear_has_mutation(); + inline void set_has_get(); + inline void clear_has_get(); + inline void set_has_service_call(); + inline void clear_has_service_call(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::MutationProto* mutation_; + ::hbase::pb::Get* get_; + ::hbase::pb::CoprocessorServiceCall* service_call_; + ::google::protobuf::uint32 index_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static Action* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionAction : public ::google::protobuf::Message { + public: + RegionAction(); + virtual ~RegionAction(); + + RegionAction(const RegionAction& from); + + inline RegionAction& operator=(const RegionAction& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionAction& default_instance(); + + void Swap(RegionAction* other); + + // implements Message ---------------------------------------------- + + RegionAction* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionAction& from); + void MergeFrom(const RegionAction& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional bool atomic = 2; + inline bool has_atomic() const; + inline void clear_atomic(); + static const int kAtomicFieldNumber = 2; + inline bool atomic() const; + inline void set_atomic(bool value); + + // repeated .hbase.pb.Action action = 3; + inline int action_size() const; + inline void clear_action(); + static const int kActionFieldNumber = 3; + inline const ::hbase::pb::Action& action(int index) const; + inline ::hbase::pb::Action* mutable_action(int index); + inline ::hbase::pb::Action* add_action(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Action >& + action() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Action >* + mutable_action(); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionAction) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_atomic(); + inline void clear_has_atomic(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Action > action_; + bool atomic_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static RegionAction* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionLoadStats : public ::google::protobuf::Message { + public: + RegionLoadStats(); + virtual ~RegionLoadStats(); + + RegionLoadStats(const RegionLoadStats& from); + + inline RegionLoadStats& operator=(const RegionLoadStats& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionLoadStats& default_instance(); + + void Swap(RegionLoadStats* other); + + // implements Message ---------------------------------------------- + + RegionLoadStats* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionLoadStats& from); + void MergeFrom(const RegionLoadStats& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional int32 memstoreLoad = 1 [default = 0]; + inline bool has_memstoreload() const; + inline void clear_memstoreload(); + static const int kMemstoreLoadFieldNumber = 1; + inline ::google::protobuf::int32 memstoreload() const; + inline void set_memstoreload(::google::protobuf::int32 value); + + // optional int32 heapOccupancy = 2 [default = 0]; + inline bool has_heapoccupancy() const; + inline void clear_heapoccupancy(); + static const int kHeapOccupancyFieldNumber = 2; + inline ::google::protobuf::int32 heapoccupancy() const; + inline void set_heapoccupancy(::google::protobuf::int32 value); + + // optional int32 compactionPressure = 3 [default = 0]; + inline bool has_compactionpressure() const; + inline void clear_compactionpressure(); + static const int kCompactionPressureFieldNumber = 3; + inline ::google::protobuf::int32 compactionpressure() const; + inline void set_compactionpressure(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionLoadStats) + private: + inline void set_has_memstoreload(); + inline void clear_has_memstoreload(); + inline void set_has_heapoccupancy(); + inline void clear_has_heapoccupancy(); + inline void set_has_compactionpressure(); + inline void clear_has_compactionpressure(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int32 memstoreload_; + ::google::protobuf::int32 heapoccupancy_; + ::google::protobuf::int32 compactionpressure_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static RegionLoadStats* default_instance_; +}; +// ------------------------------------------------------------------- + +class MultiRegionLoadStats : public ::google::protobuf::Message { + public: + MultiRegionLoadStats(); + virtual ~MultiRegionLoadStats(); + + MultiRegionLoadStats(const MultiRegionLoadStats& from); + + inline MultiRegionLoadStats& operator=(const MultiRegionLoadStats& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultiRegionLoadStats& default_instance(); + + void Swap(MultiRegionLoadStats* other); + + // implements Message ---------------------------------------------- + + MultiRegionLoadStats* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MultiRegionLoadStats& from); + void MergeFrom(const MultiRegionLoadStats& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.RegionSpecifier region = 1; + inline int region_size() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region(int index) const; + inline ::hbase::pb::RegionSpecifier* mutable_region(int index); + inline ::hbase::pb::RegionSpecifier* add_region(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionSpecifier >& + region() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionSpecifier >* + mutable_region(); + + // repeated .hbase.pb.RegionLoadStats stat = 2; + inline int stat_size() const; + inline void clear_stat(); + static const int kStatFieldNumber = 2; + inline const ::hbase::pb::RegionLoadStats& stat(int index) const; + inline ::hbase::pb::RegionLoadStats* mutable_stat(int index); + inline ::hbase::pb::RegionLoadStats* add_stat(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoadStats >& + stat() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoadStats >* + mutable_stat(); + + // @@protoc_insertion_point(class_scope:hbase.pb.MultiRegionLoadStats) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionSpecifier > region_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoadStats > stat_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static MultiRegionLoadStats* default_instance_; +}; +// ------------------------------------------------------------------- + +class ResultOrException : public ::google::protobuf::Message { + public: + ResultOrException(); + virtual ~ResultOrException(); + + ResultOrException(const ResultOrException& from); + + inline ResultOrException& operator=(const ResultOrException& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ResultOrException& default_instance(); + + void Swap(ResultOrException* other); + + // implements Message ---------------------------------------------- + + ResultOrException* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ResultOrException& from); + void MergeFrom(const ResultOrException& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 index = 1; + inline bool has_index() const; + inline void clear_index(); + static const int kIndexFieldNumber = 1; + inline ::google::protobuf::uint32 index() const; + inline void set_index(::google::protobuf::uint32 value); + + // optional .hbase.pb.Result result = 2; + inline bool has_result() const; + inline void clear_result(); + static const int kResultFieldNumber = 2; + inline const ::hbase::pb::Result& result() const; + inline ::hbase::pb::Result* mutable_result(); + inline ::hbase::pb::Result* release_result(); + inline void set_allocated_result(::hbase::pb::Result* result); + + // optional .hbase.pb.NameBytesPair exception = 3; + inline bool has_exception() const; + inline void clear_exception(); + static const int kExceptionFieldNumber = 3; + inline const ::hbase::pb::NameBytesPair& exception() const; + inline ::hbase::pb::NameBytesPair* mutable_exception(); + inline ::hbase::pb::NameBytesPair* release_exception(); + inline void set_allocated_exception(::hbase::pb::NameBytesPair* exception); + + // optional .hbase.pb.CoprocessorServiceResult service_result = 4; + inline bool has_service_result() const; + inline void clear_service_result(); + static const int kServiceResultFieldNumber = 4; + inline const ::hbase::pb::CoprocessorServiceResult& service_result() const; + inline ::hbase::pb::CoprocessorServiceResult* mutable_service_result(); + inline ::hbase::pb::CoprocessorServiceResult* release_service_result(); + inline void set_allocated_service_result(::hbase::pb::CoprocessorServiceResult* service_result); + + // optional .hbase.pb.RegionLoadStats loadStats = 5 [deprecated = true]; + inline bool has_loadstats() const PROTOBUF_DEPRECATED; + inline void clear_loadstats() PROTOBUF_DEPRECATED; + static const int kLoadStatsFieldNumber = 5; + inline const ::hbase::pb::RegionLoadStats& loadstats() const PROTOBUF_DEPRECATED; + inline ::hbase::pb::RegionLoadStats* mutable_loadstats() PROTOBUF_DEPRECATED; + inline ::hbase::pb::RegionLoadStats* release_loadstats() PROTOBUF_DEPRECATED; + inline void set_allocated_loadstats(::hbase::pb::RegionLoadStats* loadstats) PROTOBUF_DEPRECATED; + + // @@protoc_insertion_point(class_scope:hbase.pb.ResultOrException) + private: + inline void set_has_index(); + inline void clear_has_index(); + inline void set_has_result(); + inline void clear_has_result(); + inline void set_has_exception(); + inline void clear_has_exception(); + inline void set_has_service_result(); + inline void clear_has_service_result(); + inline void set_has_loadstats(); + inline void clear_has_loadstats(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Result* result_; + ::hbase::pb::NameBytesPair* exception_; + ::hbase::pb::CoprocessorServiceResult* service_result_; + ::hbase::pb::RegionLoadStats* loadstats_; + ::google::protobuf::uint32 index_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static ResultOrException* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionActionResult : public ::google::protobuf::Message { + public: + RegionActionResult(); + virtual ~RegionActionResult(); + + RegionActionResult(const RegionActionResult& from); + + inline RegionActionResult& operator=(const RegionActionResult& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionActionResult& default_instance(); + + void Swap(RegionActionResult* other); + + // implements Message ---------------------------------------------- + + RegionActionResult* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionActionResult& from); + void MergeFrom(const RegionActionResult& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.ResultOrException resultOrException = 1; + inline int resultorexception_size() const; + inline void clear_resultorexception(); + static const int kResultOrExceptionFieldNumber = 1; + inline const ::hbase::pb::ResultOrException& resultorexception(int index) const; + inline ::hbase::pb::ResultOrException* mutable_resultorexception(int index); + inline ::hbase::pb::ResultOrException* add_resultorexception(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ResultOrException >& + resultorexception() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ResultOrException >* + mutable_resultorexception(); + + // optional .hbase.pb.NameBytesPair exception = 2; + inline bool has_exception() const; + inline void clear_exception(); + static const int kExceptionFieldNumber = 2; + inline const ::hbase::pb::NameBytesPair& exception() const; + inline ::hbase::pb::NameBytesPair* mutable_exception(); + inline ::hbase::pb::NameBytesPair* release_exception(); + inline void set_allocated_exception(::hbase::pb::NameBytesPair* exception); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionActionResult) + private: + inline void set_has_exception(); + inline void clear_has_exception(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ResultOrException > resultorexception_; + ::hbase::pb::NameBytesPair* exception_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static RegionActionResult* default_instance_; +}; +// ------------------------------------------------------------------- + +class MultiRequest : public ::google::protobuf::Message { + public: + MultiRequest(); + virtual ~MultiRequest(); + + MultiRequest(const MultiRequest& from); + + inline MultiRequest& operator=(const MultiRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultiRequest& default_instance(); + + void Swap(MultiRequest* other); + + // implements Message ---------------------------------------------- + + MultiRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MultiRequest& from); + void MergeFrom(const MultiRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.RegionAction regionAction = 1; + inline int regionaction_size() const; + inline void clear_regionaction(); + static const int kRegionActionFieldNumber = 1; + inline const ::hbase::pb::RegionAction& regionaction(int index) const; + inline ::hbase::pb::RegionAction* mutable_regionaction(int index); + inline ::hbase::pb::RegionAction* add_regionaction(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionAction >& + regionaction() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionAction >* + mutable_regionaction(); + + // optional uint64 nonceGroup = 2; + inline bool has_noncegroup() const; + inline void clear_noncegroup(); + static const int kNonceGroupFieldNumber = 2; + inline ::google::protobuf::uint64 noncegroup() const; + inline void set_noncegroup(::google::protobuf::uint64 value); + + // optional .hbase.pb.Condition condition = 3; + inline bool has_condition() const; + inline void clear_condition(); + static const int kConditionFieldNumber = 3; + inline const ::hbase::pb::Condition& condition() const; + inline ::hbase::pb::Condition* mutable_condition(); + inline ::hbase::pb::Condition* release_condition(); + inline void set_allocated_condition(::hbase::pb::Condition* condition); + + // @@protoc_insertion_point(class_scope:hbase.pb.MultiRequest) + private: + inline void set_has_noncegroup(); + inline void clear_has_noncegroup(); + inline void set_has_condition(); + inline void clear_has_condition(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionAction > regionaction_; + ::google::protobuf::uint64 noncegroup_; + ::hbase::pb::Condition* condition_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static MultiRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MultiResponse : public ::google::protobuf::Message { + public: + MultiResponse(); + virtual ~MultiResponse(); + + MultiResponse(const MultiResponse& from); + + inline MultiResponse& operator=(const MultiResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultiResponse& default_instance(); + + void Swap(MultiResponse* other); + + // implements Message ---------------------------------------------- + + MultiResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MultiResponse& from); + void MergeFrom(const MultiResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.RegionActionResult regionActionResult = 1; + inline int regionactionresult_size() const; + inline void clear_regionactionresult(); + static const int kRegionActionResultFieldNumber = 1; + inline const ::hbase::pb::RegionActionResult& regionactionresult(int index) const; + inline ::hbase::pb::RegionActionResult* mutable_regionactionresult(int index); + inline ::hbase::pb::RegionActionResult* add_regionactionresult(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult >& + regionactionresult() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult >* + mutable_regionactionresult(); + + // optional bool processed = 2; + inline bool has_processed() const; + inline void clear_processed(); + static const int kProcessedFieldNumber = 2; + inline bool processed() const; + inline void set_processed(bool value); + + // optional .hbase.pb.MultiRegionLoadStats regionStatistics = 3; + inline bool has_regionstatistics() const; + inline void clear_regionstatistics(); + static const int kRegionStatisticsFieldNumber = 3; + inline const ::hbase::pb::MultiRegionLoadStats& regionstatistics() const; + inline ::hbase::pb::MultiRegionLoadStats* mutable_regionstatistics(); + inline ::hbase::pb::MultiRegionLoadStats* release_regionstatistics(); + inline void set_allocated_regionstatistics(::hbase::pb::MultiRegionLoadStats* regionstatistics); + + // @@protoc_insertion_point(class_scope:hbase.pb.MultiResponse) + private: + inline void set_has_processed(); + inline void clear_has_processed(); + inline void set_has_regionstatistics(); + inline void clear_has_regionstatistics(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult > regionactionresult_; + ::hbase::pb::MultiRegionLoadStats* regionstatistics_; + bool processed_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Client_2eproto(); + friend void protobuf_AssignDesc_Client_2eproto(); + friend void protobuf_ShutdownFile_Client_2eproto(); + + void InitAsDefaultInstance(); + static MultiResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// Authorizations + +// repeated string label = 1; +inline int Authorizations::label_size() const { + return label_.size(); +} +inline void Authorizations::clear_label() { + label_.Clear(); +} +inline const ::std::string& Authorizations::label(int index) const { + return label_.Get(index); +} +inline ::std::string* Authorizations::mutable_label(int index) { + return label_.Mutable(index); +} +inline void Authorizations::set_label(int index, const ::std::string& value) { + label_.Mutable(index)->assign(value); +} +inline void Authorizations::set_label(int index, const char* value) { + label_.Mutable(index)->assign(value); +} +inline void Authorizations::set_label(int index, const char* value, size_t size) { + label_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* Authorizations::add_label() { + return label_.Add(); +} +inline void Authorizations::add_label(const ::std::string& value) { + label_.Add()->assign(value); +} +inline void Authorizations::add_label(const char* value) { + label_.Add()->assign(value); +} +inline void Authorizations::add_label(const char* value, size_t size) { + label_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +Authorizations::label() const { + return label_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +Authorizations::mutable_label() { + return &label_; +} + +// ------------------------------------------------------------------- + +// CellVisibility + +// required string expression = 1; +inline bool CellVisibility::has_expression() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CellVisibility::set_has_expression() { + _has_bits_[0] |= 0x00000001u; +} +inline void CellVisibility::clear_has_expression() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CellVisibility::clear_expression() { + if (expression_ != &::google::protobuf::internal::kEmptyString) { + expression_->clear(); + } + clear_has_expression(); +} +inline const ::std::string& CellVisibility::expression() const { + return *expression_; +} +inline void CellVisibility::set_expression(const ::std::string& value) { + set_has_expression(); + if (expression_ == &::google::protobuf::internal::kEmptyString) { + expression_ = new ::std::string; + } + expression_->assign(value); +} +inline void CellVisibility::set_expression(const char* value) { + set_has_expression(); + if (expression_ == &::google::protobuf::internal::kEmptyString) { + expression_ = new ::std::string; + } + expression_->assign(value); +} +inline void CellVisibility::set_expression(const char* value, size_t size) { + set_has_expression(); + if (expression_ == &::google::protobuf::internal::kEmptyString) { + expression_ = new ::std::string; + } + expression_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CellVisibility::mutable_expression() { + set_has_expression(); + if (expression_ == &::google::protobuf::internal::kEmptyString) { + expression_ = new ::std::string; + } + return expression_; +} +inline ::std::string* CellVisibility::release_expression() { + clear_has_expression(); + if (expression_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = expression_; + expression_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CellVisibility::set_allocated_expression(::std::string* expression) { + if (expression_ != &::google::protobuf::internal::kEmptyString) { + delete expression_; + } + if (expression) { + set_has_expression(); + expression_ = expression; + } else { + clear_has_expression(); + expression_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// Column + +// required bytes family = 1; +inline bool Column::has_family() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Column::set_has_family() { + _has_bits_[0] |= 0x00000001u; +} +inline void Column::clear_has_family() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Column::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& Column::family() const { + return *family_; +} +inline void Column::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void Column::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void Column::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Column::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* Column::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Column::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated bytes qualifier = 2; +inline int Column::qualifier_size() const { + return qualifier_.size(); +} +inline void Column::clear_qualifier() { + qualifier_.Clear(); +} +inline const ::std::string& Column::qualifier(int index) const { + return qualifier_.Get(index); +} +inline ::std::string* Column::mutable_qualifier(int index) { + return qualifier_.Mutable(index); +} +inline void Column::set_qualifier(int index, const ::std::string& value) { + qualifier_.Mutable(index)->assign(value); +} +inline void Column::set_qualifier(int index, const char* value) { + qualifier_.Mutable(index)->assign(value); +} +inline void Column::set_qualifier(int index, const void* value, size_t size) { + qualifier_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* Column::add_qualifier() { + return qualifier_.Add(); +} +inline void Column::add_qualifier(const ::std::string& value) { + qualifier_.Add()->assign(value); +} +inline void Column::add_qualifier(const char* value) { + qualifier_.Add()->assign(value); +} +inline void Column::add_qualifier(const void* value, size_t size) { + qualifier_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +Column::qualifier() const { + return qualifier_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +Column::mutable_qualifier() { + return &qualifier_; +} + +// ------------------------------------------------------------------- + +// Get + +// required bytes row = 1; +inline bool Get::has_row() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Get::set_has_row() { + _has_bits_[0] |= 0x00000001u; +} +inline void Get::clear_has_row() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Get::clear_row() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + clear_has_row(); +} +inline const ::std::string& Get::row() const { + return *row_; +} +inline void Get::set_row(const ::std::string& value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void Get::set_row(const char* value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void Get::set_row(const void* value, size_t size) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Get::mutable_row() { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + return row_; +} +inline ::std::string* Get::release_row() { + clear_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Get::set_allocated_row(::std::string* row) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (row) { + set_has_row(); + row_ = row; + } else { + clear_has_row(); + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.Column column = 2; +inline int Get::column_size() const { + return column_.size(); +} +inline void Get::clear_column() { + column_.Clear(); +} +inline const ::hbase::pb::Column& Get::column(int index) const { + return column_.Get(index); +} +inline ::hbase::pb::Column* Get::mutable_column(int index) { + return column_.Mutable(index); +} +inline ::hbase::pb::Column* Get::add_column() { + return column_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column >& +Get::column() const { + return column_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column >* +Get::mutable_column() { + return &column_; +} + +// repeated .hbase.pb.NameBytesPair attribute = 3; +inline int Get::attribute_size() const { + return attribute_.size(); +} +inline void Get::clear_attribute() { + attribute_.Clear(); +} +inline const ::hbase::pb::NameBytesPair& Get::attribute(int index) const { + return attribute_.Get(index); +} +inline ::hbase::pb::NameBytesPair* Get::mutable_attribute(int index) { + return attribute_.Mutable(index); +} +inline ::hbase::pb::NameBytesPair* Get::add_attribute() { + return attribute_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >& +Get::attribute() const { + return attribute_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >* +Get::mutable_attribute() { + return &attribute_; +} + +// optional .hbase.pb.Filter filter = 4; +inline bool Get::has_filter() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Get::set_has_filter() { + _has_bits_[0] |= 0x00000008u; +} +inline void Get::clear_has_filter() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Get::clear_filter() { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + clear_has_filter(); +} +inline const ::hbase::pb::Filter& Get::filter() const { + return filter_ != NULL ? *filter_ : *default_instance_->filter_; +} +inline ::hbase::pb::Filter* Get::mutable_filter() { + set_has_filter(); + if (filter_ == NULL) filter_ = new ::hbase::pb::Filter; + return filter_; +} +inline ::hbase::pb::Filter* Get::release_filter() { + clear_has_filter(); + ::hbase::pb::Filter* temp = filter_; + filter_ = NULL; + return temp; +} +inline void Get::set_allocated_filter(::hbase::pb::Filter* filter) { + delete filter_; + filter_ = filter; + if (filter) { + set_has_filter(); + } else { + clear_has_filter(); + } +} + +// optional .hbase.pb.TimeRange time_range = 5; +inline bool Get::has_time_range() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Get::set_has_time_range() { + _has_bits_[0] |= 0x00000010u; +} +inline void Get::clear_has_time_range() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Get::clear_time_range() { + if (time_range_ != NULL) time_range_->::hbase::pb::TimeRange::Clear(); + clear_has_time_range(); +} +inline const ::hbase::pb::TimeRange& Get::time_range() const { + return time_range_ != NULL ? *time_range_ : *default_instance_->time_range_; +} +inline ::hbase::pb::TimeRange* Get::mutable_time_range() { + set_has_time_range(); + if (time_range_ == NULL) time_range_ = new ::hbase::pb::TimeRange; + return time_range_; +} +inline ::hbase::pb::TimeRange* Get::release_time_range() { + clear_has_time_range(); + ::hbase::pb::TimeRange* temp = time_range_; + time_range_ = NULL; + return temp; +} +inline void Get::set_allocated_time_range(::hbase::pb::TimeRange* time_range) { + delete time_range_; + time_range_ = time_range; + if (time_range) { + set_has_time_range(); + } else { + clear_has_time_range(); + } +} + +// optional uint32 max_versions = 6 [default = 1]; +inline bool Get::has_max_versions() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void Get::set_has_max_versions() { + _has_bits_[0] |= 0x00000020u; +} +inline void Get::clear_has_max_versions() { + _has_bits_[0] &= ~0x00000020u; +} +inline void Get::clear_max_versions() { + max_versions_ = 1u; + clear_has_max_versions(); +} +inline ::google::protobuf::uint32 Get::max_versions() const { + return max_versions_; +} +inline void Get::set_max_versions(::google::protobuf::uint32 value) { + set_has_max_versions(); + max_versions_ = value; +} + +// optional bool cache_blocks = 7 [default = true]; +inline bool Get::has_cache_blocks() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void Get::set_has_cache_blocks() { + _has_bits_[0] |= 0x00000040u; +} +inline void Get::clear_has_cache_blocks() { + _has_bits_[0] &= ~0x00000040u; +} +inline void Get::clear_cache_blocks() { + cache_blocks_ = true; + clear_has_cache_blocks(); +} +inline bool Get::cache_blocks() const { + return cache_blocks_; +} +inline void Get::set_cache_blocks(bool value) { + set_has_cache_blocks(); + cache_blocks_ = value; +} + +// optional uint32 store_limit = 8; +inline bool Get::has_store_limit() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void Get::set_has_store_limit() { + _has_bits_[0] |= 0x00000080u; +} +inline void Get::clear_has_store_limit() { + _has_bits_[0] &= ~0x00000080u; +} +inline void Get::clear_store_limit() { + store_limit_ = 0u; + clear_has_store_limit(); +} +inline ::google::protobuf::uint32 Get::store_limit() const { + return store_limit_; +} +inline void Get::set_store_limit(::google::protobuf::uint32 value) { + set_has_store_limit(); + store_limit_ = value; +} + +// optional uint32 store_offset = 9; +inline bool Get::has_store_offset() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void Get::set_has_store_offset() { + _has_bits_[0] |= 0x00000100u; +} +inline void Get::clear_has_store_offset() { + _has_bits_[0] &= ~0x00000100u; +} +inline void Get::clear_store_offset() { + store_offset_ = 0u; + clear_has_store_offset(); +} +inline ::google::protobuf::uint32 Get::store_offset() const { + return store_offset_; +} +inline void Get::set_store_offset(::google::protobuf::uint32 value) { + set_has_store_offset(); + store_offset_ = value; +} + +// optional bool existence_only = 10 [default = false]; +inline bool Get::has_existence_only() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void Get::set_has_existence_only() { + _has_bits_[0] |= 0x00000200u; +} +inline void Get::clear_has_existence_only() { + _has_bits_[0] &= ~0x00000200u; +} +inline void Get::clear_existence_only() { + existence_only_ = false; + clear_has_existence_only(); +} +inline bool Get::existence_only() const { + return existence_only_; +} +inline void Get::set_existence_only(bool value) { + set_has_existence_only(); + existence_only_ = value; +} + +// optional .hbase.pb.Consistency consistency = 12 [default = STRONG]; +inline bool Get::has_consistency() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void Get::set_has_consistency() { + _has_bits_[0] |= 0x00000400u; +} +inline void Get::clear_has_consistency() { + _has_bits_[0] &= ~0x00000400u; +} +inline void Get::clear_consistency() { + consistency_ = 0; + clear_has_consistency(); +} +inline ::hbase::pb::Consistency Get::consistency() const { + return static_cast< ::hbase::pb::Consistency >(consistency_); +} +inline void Get::set_consistency(::hbase::pb::Consistency value) { + assert(::hbase::pb::Consistency_IsValid(value)); + set_has_consistency(); + consistency_ = value; +} + +// repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 13; +inline int Get::cf_time_range_size() const { + return cf_time_range_.size(); +} +inline void Get::clear_cf_time_range() { + cf_time_range_.Clear(); +} +inline const ::hbase::pb::ColumnFamilyTimeRange& Get::cf_time_range(int index) const { + return cf_time_range_.Get(index); +} +inline ::hbase::pb::ColumnFamilyTimeRange* Get::mutable_cf_time_range(int index) { + return cf_time_range_.Mutable(index); +} +inline ::hbase::pb::ColumnFamilyTimeRange* Get::add_cf_time_range() { + return cf_time_range_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange >& +Get::cf_time_range() const { + return cf_time_range_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange >* +Get::mutable_cf_time_range() { + return &cf_time_range_; +} + +// ------------------------------------------------------------------- + +// Result + +// repeated .hbase.pb.Cell cell = 1; +inline int Result::cell_size() const { + return cell_.size(); +} +inline void Result::clear_cell() { + cell_.Clear(); +} +inline const ::hbase::pb::Cell& Result::cell(int index) const { + return cell_.Get(index); +} +inline ::hbase::pb::Cell* Result::mutable_cell(int index) { + return cell_.Mutable(index); +} +inline ::hbase::pb::Cell* Result::add_cell() { + return cell_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Cell >& +Result::cell() const { + return cell_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Cell >* +Result::mutable_cell() { + return &cell_; +} + +// optional int32 associated_cell_count = 2; +inline bool Result::has_associated_cell_count() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Result::set_has_associated_cell_count() { + _has_bits_[0] |= 0x00000002u; +} +inline void Result::clear_has_associated_cell_count() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Result::clear_associated_cell_count() { + associated_cell_count_ = 0; + clear_has_associated_cell_count(); +} +inline ::google::protobuf::int32 Result::associated_cell_count() const { + return associated_cell_count_; +} +inline void Result::set_associated_cell_count(::google::protobuf::int32 value) { + set_has_associated_cell_count(); + associated_cell_count_ = value; +} + +// optional bool exists = 3; +inline bool Result::has_exists() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Result::set_has_exists() { + _has_bits_[0] |= 0x00000004u; +} +inline void Result::clear_has_exists() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Result::clear_exists() { + exists_ = false; + clear_has_exists(); +} +inline bool Result::exists() const { + return exists_; +} +inline void Result::set_exists(bool value) { + set_has_exists(); + exists_ = value; +} + +// optional bool stale = 4 [default = false]; +inline bool Result::has_stale() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Result::set_has_stale() { + _has_bits_[0] |= 0x00000008u; +} +inline void Result::clear_has_stale() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Result::clear_stale() { + stale_ = false; + clear_has_stale(); +} +inline bool Result::stale() const { + return stale_; +} +inline void Result::set_stale(bool value) { + set_has_stale(); + stale_ = value; +} + +// optional bool partial = 5 [default = false]; +inline bool Result::has_partial() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Result::set_has_partial() { + _has_bits_[0] |= 0x00000010u; +} +inline void Result::clear_has_partial() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Result::clear_partial() { + partial_ = false; + clear_has_partial(); +} +inline bool Result::partial() const { + return partial_; +} +inline void Result::set_partial(bool value) { + set_has_partial(); + partial_ = value; +} + +// ------------------------------------------------------------------- + +// GetRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool GetRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& GetRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* GetRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* GetRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void GetRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// required .hbase.pb.Get get = 2; +inline bool GetRequest::has_get() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetRequest::set_has_get() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetRequest::clear_has_get() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetRequest::clear_get() { + if (get_ != NULL) get_->::hbase::pb::Get::Clear(); + clear_has_get(); +} +inline const ::hbase::pb::Get& GetRequest::get() const { + return get_ != NULL ? *get_ : *default_instance_->get_; +} +inline ::hbase::pb::Get* GetRequest::mutable_get() { + set_has_get(); + if (get_ == NULL) get_ = new ::hbase::pb::Get; + return get_; +} +inline ::hbase::pb::Get* GetRequest::release_get() { + clear_has_get(); + ::hbase::pb::Get* temp = get_; + get_ = NULL; + return temp; +} +inline void GetRequest::set_allocated_get(::hbase::pb::Get* get) { + delete get_; + get_ = get; + if (get) { + set_has_get(); + } else { + clear_has_get(); + } +} + +// ------------------------------------------------------------------- + +// GetResponse + +// optional .hbase.pb.Result result = 1; +inline bool GetResponse::has_result() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetResponse::set_has_result() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetResponse::clear_has_result() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetResponse::clear_result() { + if (result_ != NULL) result_->::hbase::pb::Result::Clear(); + clear_has_result(); +} +inline const ::hbase::pb::Result& GetResponse::result() const { + return result_ != NULL ? *result_ : *default_instance_->result_; +} +inline ::hbase::pb::Result* GetResponse::mutable_result() { + set_has_result(); + if (result_ == NULL) result_ = new ::hbase::pb::Result; + return result_; +} +inline ::hbase::pb::Result* GetResponse::release_result() { + clear_has_result(); + ::hbase::pb::Result* temp = result_; + result_ = NULL; + return temp; +} +inline void GetResponse::set_allocated_result(::hbase::pb::Result* result) { + delete result_; + result_ = result; + if (result) { + set_has_result(); + } else { + clear_has_result(); + } +} + +// ------------------------------------------------------------------- + +// Condition + +// required bytes row = 1; +inline bool Condition::has_row() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Condition::set_has_row() { + _has_bits_[0] |= 0x00000001u; +} +inline void Condition::clear_has_row() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Condition::clear_row() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + clear_has_row(); +} +inline const ::std::string& Condition::row() const { + return *row_; +} +inline void Condition::set_row(const ::std::string& value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void Condition::set_row(const char* value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void Condition::set_row(const void* value, size_t size) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Condition::mutable_row() { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + return row_; +} +inline ::std::string* Condition::release_row() { + clear_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Condition::set_allocated_row(::std::string* row) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (row) { + set_has_row(); + row_ = row; + } else { + clear_has_row(); + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes family = 2; +inline bool Condition::has_family() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Condition::set_has_family() { + _has_bits_[0] |= 0x00000002u; +} +inline void Condition::clear_has_family() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Condition::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& Condition::family() const { + return *family_; +} +inline void Condition::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void Condition::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void Condition::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Condition::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* Condition::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Condition::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes qualifier = 3; +inline bool Condition::has_qualifier() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Condition::set_has_qualifier() { + _has_bits_[0] |= 0x00000004u; +} +inline void Condition::clear_has_qualifier() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Condition::clear_qualifier() { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + clear_has_qualifier(); +} +inline const ::std::string& Condition::qualifier() const { + return *qualifier_; +} +inline void Condition::set_qualifier(const ::std::string& value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void Condition::set_qualifier(const char* value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void Condition::set_qualifier(const void* value, size_t size) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Condition::mutable_qualifier() { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + return qualifier_; +} +inline ::std::string* Condition::release_qualifier() { + clear_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = qualifier_; + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Condition::set_allocated_qualifier(::std::string* qualifier) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (qualifier) { + set_has_qualifier(); + qualifier_ = qualifier; + } else { + clear_has_qualifier(); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required .hbase.pb.CompareType compare_type = 4; +inline bool Condition::has_compare_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Condition::set_has_compare_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void Condition::clear_has_compare_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Condition::clear_compare_type() { + compare_type_ = 0; + clear_has_compare_type(); +} +inline ::hbase::pb::CompareType Condition::compare_type() const { + return static_cast< ::hbase::pb::CompareType >(compare_type_); +} +inline void Condition::set_compare_type(::hbase::pb::CompareType value) { + assert(::hbase::pb::CompareType_IsValid(value)); + set_has_compare_type(); + compare_type_ = value; +} + +// required .hbase.pb.Comparator comparator = 5; +inline bool Condition::has_comparator() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Condition::set_has_comparator() { + _has_bits_[0] |= 0x00000010u; +} +inline void Condition::clear_has_comparator() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Condition::clear_comparator() { + if (comparator_ != NULL) comparator_->::hbase::pb::Comparator::Clear(); + clear_has_comparator(); +} +inline const ::hbase::pb::Comparator& Condition::comparator() const { + return comparator_ != NULL ? *comparator_ : *default_instance_->comparator_; +} +inline ::hbase::pb::Comparator* Condition::mutable_comparator() { + set_has_comparator(); + if (comparator_ == NULL) comparator_ = new ::hbase::pb::Comparator; + return comparator_; +} +inline ::hbase::pb::Comparator* Condition::release_comparator() { + clear_has_comparator(); + ::hbase::pb::Comparator* temp = comparator_; + comparator_ = NULL; + return temp; +} +inline void Condition::set_allocated_comparator(::hbase::pb::Comparator* comparator) { + delete comparator_; + comparator_ = comparator; + if (comparator) { + set_has_comparator(); + } else { + clear_has_comparator(); + } +} + +// ------------------------------------------------------------------- + +// MutationProto_ColumnValue_QualifierValue + +// optional bytes qualifier = 1; +inline bool MutationProto_ColumnValue_QualifierValue::has_qualifier() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MutationProto_ColumnValue_QualifierValue::set_has_qualifier() { + _has_bits_[0] |= 0x00000001u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_has_qualifier() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_qualifier() { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + clear_has_qualifier(); +} +inline const ::std::string& MutationProto_ColumnValue_QualifierValue::qualifier() const { + return *qualifier_; +} +inline void MutationProto_ColumnValue_QualifierValue::set_qualifier(const ::std::string& value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void MutationProto_ColumnValue_QualifierValue::set_qualifier(const char* value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void MutationProto_ColumnValue_QualifierValue::set_qualifier(const void* value, size_t size) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* MutationProto_ColumnValue_QualifierValue::mutable_qualifier() { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + return qualifier_; +} +inline ::std::string* MutationProto_ColumnValue_QualifierValue::release_qualifier() { + clear_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = qualifier_; + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void MutationProto_ColumnValue_QualifierValue::set_allocated_qualifier(::std::string* qualifier) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (qualifier) { + set_has_qualifier(); + qualifier_ = qualifier; + } else { + clear_has_qualifier(); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes value = 2; +inline bool MutationProto_ColumnValue_QualifierValue::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MutationProto_ColumnValue_QualifierValue::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_value() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + clear_has_value(); +} +inline const ::std::string& MutationProto_ColumnValue_QualifierValue::value() const { + return *value_; +} +inline void MutationProto_ColumnValue_QualifierValue::set_value(const ::std::string& value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void MutationProto_ColumnValue_QualifierValue::set_value(const char* value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void MutationProto_ColumnValue_QualifierValue::set_value(const void* value, size_t size) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(reinterpret_cast(value), size); +} +inline ::std::string* MutationProto_ColumnValue_QualifierValue::mutable_value() { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + return value_; +} +inline ::std::string* MutationProto_ColumnValue_QualifierValue::release_value() { + clear_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = value_; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void MutationProto_ColumnValue_QualifierValue::set_allocated_value(::std::string* value) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (value) { + set_has_value(); + value_ = value; + } else { + clear_has_value(); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 timestamp = 3; +inline bool MutationProto_ColumnValue_QualifierValue::has_timestamp() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MutationProto_ColumnValue_QualifierValue::set_has_timestamp() { + _has_bits_[0] |= 0x00000004u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_timestamp() { + timestamp_ = GOOGLE_ULONGLONG(0); + clear_has_timestamp(); +} +inline ::google::protobuf::uint64 MutationProto_ColumnValue_QualifierValue::timestamp() const { + return timestamp_; +} +inline void MutationProto_ColumnValue_QualifierValue::set_timestamp(::google::protobuf::uint64 value) { + set_has_timestamp(); + timestamp_ = value; +} + +// optional .hbase.pb.MutationProto.DeleteType delete_type = 4; +inline bool MutationProto_ColumnValue_QualifierValue::has_delete_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MutationProto_ColumnValue_QualifierValue::set_has_delete_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_has_delete_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_delete_type() { + delete_type_ = 0; + clear_has_delete_type(); +} +inline ::hbase::pb::MutationProto_DeleteType MutationProto_ColumnValue_QualifierValue::delete_type() const { + return static_cast< ::hbase::pb::MutationProto_DeleteType >(delete_type_); +} +inline void MutationProto_ColumnValue_QualifierValue::set_delete_type(::hbase::pb::MutationProto_DeleteType value) { + assert(::hbase::pb::MutationProto_DeleteType_IsValid(value)); + set_has_delete_type(); + delete_type_ = value; +} + +// optional bytes tags = 5; +inline bool MutationProto_ColumnValue_QualifierValue::has_tags() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MutationProto_ColumnValue_QualifierValue::set_has_tags() { + _has_bits_[0] |= 0x00000010u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_has_tags() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MutationProto_ColumnValue_QualifierValue::clear_tags() { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + tags_->clear(); + } + clear_has_tags(); +} +inline const ::std::string& MutationProto_ColumnValue_QualifierValue::tags() const { + return *tags_; +} +inline void MutationProto_ColumnValue_QualifierValue::set_tags(const ::std::string& value) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(value); +} +inline void MutationProto_ColumnValue_QualifierValue::set_tags(const char* value) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(value); +} +inline void MutationProto_ColumnValue_QualifierValue::set_tags(const void* value, size_t size) { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + tags_->assign(reinterpret_cast(value), size); +} +inline ::std::string* MutationProto_ColumnValue_QualifierValue::mutable_tags() { + set_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + tags_ = new ::std::string; + } + return tags_; +} +inline ::std::string* MutationProto_ColumnValue_QualifierValue::release_tags() { + clear_has_tags(); + if (tags_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = tags_; + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void MutationProto_ColumnValue_QualifierValue::set_allocated_tags(::std::string* tags) { + if (tags_ != &::google::protobuf::internal::kEmptyString) { + delete tags_; + } + if (tags) { + set_has_tags(); + tags_ = tags; + } else { + clear_has_tags(); + tags_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// MutationProto_ColumnValue + +// required bytes family = 1; +inline bool MutationProto_ColumnValue::has_family() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MutationProto_ColumnValue::set_has_family() { + _has_bits_[0] |= 0x00000001u; +} +inline void MutationProto_ColumnValue::clear_has_family() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MutationProto_ColumnValue::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& MutationProto_ColumnValue::family() const { + return *family_; +} +inline void MutationProto_ColumnValue::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void MutationProto_ColumnValue::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void MutationProto_ColumnValue::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* MutationProto_ColumnValue::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* MutationProto_ColumnValue::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void MutationProto_ColumnValue::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.MutationProto.ColumnValue.QualifierValue qualifier_value = 2; +inline int MutationProto_ColumnValue::qualifier_value_size() const { + return qualifier_value_.size(); +} +inline void MutationProto_ColumnValue::clear_qualifier_value() { + qualifier_value_.Clear(); +} +inline const ::hbase::pb::MutationProto_ColumnValue_QualifierValue& MutationProto_ColumnValue::qualifier_value(int index) const { + return qualifier_value_.Get(index); +} +inline ::hbase::pb::MutationProto_ColumnValue_QualifierValue* MutationProto_ColumnValue::mutable_qualifier_value(int index) { + return qualifier_value_.Mutable(index); +} +inline ::hbase::pb::MutationProto_ColumnValue_QualifierValue* MutationProto_ColumnValue::add_qualifier_value() { + return qualifier_value_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue_QualifierValue >& +MutationProto_ColumnValue::qualifier_value() const { + return qualifier_value_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue_QualifierValue >* +MutationProto_ColumnValue::mutable_qualifier_value() { + return &qualifier_value_; +} + +// ------------------------------------------------------------------- + +// MutationProto + +// optional bytes row = 1; +inline bool MutationProto::has_row() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MutationProto::set_has_row() { + _has_bits_[0] |= 0x00000001u; +} +inline void MutationProto::clear_has_row() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MutationProto::clear_row() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + clear_has_row(); +} +inline const ::std::string& MutationProto::row() const { + return *row_; +} +inline void MutationProto::set_row(const ::std::string& value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void MutationProto::set_row(const char* value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void MutationProto::set_row(const void* value, size_t size) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* MutationProto::mutable_row() { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + return row_; +} +inline ::std::string* MutationProto::release_row() { + clear_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void MutationProto::set_allocated_row(::std::string* row) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (row) { + set_has_row(); + row_ = row; + } else { + clear_has_row(); + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.MutationProto.MutationType mutate_type = 2; +inline bool MutationProto::has_mutate_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MutationProto::set_has_mutate_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void MutationProto::clear_has_mutate_type() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MutationProto::clear_mutate_type() { + mutate_type_ = 0; + clear_has_mutate_type(); +} +inline ::hbase::pb::MutationProto_MutationType MutationProto::mutate_type() const { + return static_cast< ::hbase::pb::MutationProto_MutationType >(mutate_type_); +} +inline void MutationProto::set_mutate_type(::hbase::pb::MutationProto_MutationType value) { + assert(::hbase::pb::MutationProto_MutationType_IsValid(value)); + set_has_mutate_type(); + mutate_type_ = value; +} + +// repeated .hbase.pb.MutationProto.ColumnValue column_value = 3; +inline int MutationProto::column_value_size() const { + return column_value_.size(); +} +inline void MutationProto::clear_column_value() { + column_value_.Clear(); +} +inline const ::hbase::pb::MutationProto_ColumnValue& MutationProto::column_value(int index) const { + return column_value_.Get(index); +} +inline ::hbase::pb::MutationProto_ColumnValue* MutationProto::mutable_column_value(int index) { + return column_value_.Mutable(index); +} +inline ::hbase::pb::MutationProto_ColumnValue* MutationProto::add_column_value() { + return column_value_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue >& +MutationProto::column_value() const { + return column_value_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto_ColumnValue >* +MutationProto::mutable_column_value() { + return &column_value_; +} + +// optional uint64 timestamp = 4; +inline bool MutationProto::has_timestamp() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MutationProto::set_has_timestamp() { + _has_bits_[0] |= 0x00000008u; +} +inline void MutationProto::clear_has_timestamp() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MutationProto::clear_timestamp() { + timestamp_ = GOOGLE_ULONGLONG(0); + clear_has_timestamp(); +} +inline ::google::protobuf::uint64 MutationProto::timestamp() const { + return timestamp_; +} +inline void MutationProto::set_timestamp(::google::protobuf::uint64 value) { + set_has_timestamp(); + timestamp_ = value; +} + +// repeated .hbase.pb.NameBytesPair attribute = 5; +inline int MutationProto::attribute_size() const { + return attribute_.size(); +} +inline void MutationProto::clear_attribute() { + attribute_.Clear(); +} +inline const ::hbase::pb::NameBytesPair& MutationProto::attribute(int index) const { + return attribute_.Get(index); +} +inline ::hbase::pb::NameBytesPair* MutationProto::mutable_attribute(int index) { + return attribute_.Mutable(index); +} +inline ::hbase::pb::NameBytesPair* MutationProto::add_attribute() { + return attribute_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >& +MutationProto::attribute() const { + return attribute_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >* +MutationProto::mutable_attribute() { + return &attribute_; +} + +// optional .hbase.pb.MutationProto.Durability durability = 6 [default = USE_DEFAULT]; +inline bool MutationProto::has_durability() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void MutationProto::set_has_durability() { + _has_bits_[0] |= 0x00000020u; +} +inline void MutationProto::clear_has_durability() { + _has_bits_[0] &= ~0x00000020u; +} +inline void MutationProto::clear_durability() { + durability_ = 0; + clear_has_durability(); +} +inline ::hbase::pb::MutationProto_Durability MutationProto::durability() const { + return static_cast< ::hbase::pb::MutationProto_Durability >(durability_); +} +inline void MutationProto::set_durability(::hbase::pb::MutationProto_Durability value) { + assert(::hbase::pb::MutationProto_Durability_IsValid(value)); + set_has_durability(); + durability_ = value; +} + +// optional .hbase.pb.TimeRange time_range = 7; +inline bool MutationProto::has_time_range() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void MutationProto::set_has_time_range() { + _has_bits_[0] |= 0x00000040u; +} +inline void MutationProto::clear_has_time_range() { + _has_bits_[0] &= ~0x00000040u; +} +inline void MutationProto::clear_time_range() { + if (time_range_ != NULL) time_range_->::hbase::pb::TimeRange::Clear(); + clear_has_time_range(); +} +inline const ::hbase::pb::TimeRange& MutationProto::time_range() const { + return time_range_ != NULL ? *time_range_ : *default_instance_->time_range_; +} +inline ::hbase::pb::TimeRange* MutationProto::mutable_time_range() { + set_has_time_range(); + if (time_range_ == NULL) time_range_ = new ::hbase::pb::TimeRange; + return time_range_; +} +inline ::hbase::pb::TimeRange* MutationProto::release_time_range() { + clear_has_time_range(); + ::hbase::pb::TimeRange* temp = time_range_; + time_range_ = NULL; + return temp; +} +inline void MutationProto::set_allocated_time_range(::hbase::pb::TimeRange* time_range) { + delete time_range_; + time_range_ = time_range; + if (time_range) { + set_has_time_range(); + } else { + clear_has_time_range(); + } +} + +// optional int32 associated_cell_count = 8; +inline bool MutationProto::has_associated_cell_count() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void MutationProto::set_has_associated_cell_count() { + _has_bits_[0] |= 0x00000080u; +} +inline void MutationProto::clear_has_associated_cell_count() { + _has_bits_[0] &= ~0x00000080u; +} +inline void MutationProto::clear_associated_cell_count() { + associated_cell_count_ = 0; + clear_has_associated_cell_count(); +} +inline ::google::protobuf::int32 MutationProto::associated_cell_count() const { + return associated_cell_count_; +} +inline void MutationProto::set_associated_cell_count(::google::protobuf::int32 value) { + set_has_associated_cell_count(); + associated_cell_count_ = value; +} + +// optional uint64 nonce = 9; +inline bool MutationProto::has_nonce() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void MutationProto::set_has_nonce() { + _has_bits_[0] |= 0x00000100u; +} +inline void MutationProto::clear_has_nonce() { + _has_bits_[0] &= ~0x00000100u; +} +inline void MutationProto::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 MutationProto::nonce() const { + return nonce_; +} +inline void MutationProto::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// MutateRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool MutateRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MutateRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void MutateRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MutateRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& MutateRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* MutateRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* MutateRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void MutateRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// required .hbase.pb.MutationProto mutation = 2; +inline bool MutateRequest::has_mutation() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MutateRequest::set_has_mutation() { + _has_bits_[0] |= 0x00000002u; +} +inline void MutateRequest::clear_has_mutation() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MutateRequest::clear_mutation() { + if (mutation_ != NULL) mutation_->::hbase::pb::MutationProto::Clear(); + clear_has_mutation(); +} +inline const ::hbase::pb::MutationProto& MutateRequest::mutation() const { + return mutation_ != NULL ? *mutation_ : *default_instance_->mutation_; +} +inline ::hbase::pb::MutationProto* MutateRequest::mutable_mutation() { + set_has_mutation(); + if (mutation_ == NULL) mutation_ = new ::hbase::pb::MutationProto; + return mutation_; +} +inline ::hbase::pb::MutationProto* MutateRequest::release_mutation() { + clear_has_mutation(); + ::hbase::pb::MutationProto* temp = mutation_; + mutation_ = NULL; + return temp; +} +inline void MutateRequest::set_allocated_mutation(::hbase::pb::MutationProto* mutation) { + delete mutation_; + mutation_ = mutation; + if (mutation) { + set_has_mutation(); + } else { + clear_has_mutation(); + } +} + +// optional .hbase.pb.Condition condition = 3; +inline bool MutateRequest::has_condition() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MutateRequest::set_has_condition() { + _has_bits_[0] |= 0x00000004u; +} +inline void MutateRequest::clear_has_condition() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MutateRequest::clear_condition() { + if (condition_ != NULL) condition_->::hbase::pb::Condition::Clear(); + clear_has_condition(); +} +inline const ::hbase::pb::Condition& MutateRequest::condition() const { + return condition_ != NULL ? *condition_ : *default_instance_->condition_; +} +inline ::hbase::pb::Condition* MutateRequest::mutable_condition() { + set_has_condition(); + if (condition_ == NULL) condition_ = new ::hbase::pb::Condition; + return condition_; +} +inline ::hbase::pb::Condition* MutateRequest::release_condition() { + clear_has_condition(); + ::hbase::pb::Condition* temp = condition_; + condition_ = NULL; + return temp; +} +inline void MutateRequest::set_allocated_condition(::hbase::pb::Condition* condition) { + delete condition_; + condition_ = condition; + if (condition) { + set_has_condition(); + } else { + clear_has_condition(); + } +} + +// optional uint64 nonce_group = 4; +inline bool MutateRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MutateRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000008u; +} +inline void MutateRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MutateRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 MutateRequest::nonce_group() const { + return nonce_group_; +} +inline void MutateRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// ------------------------------------------------------------------- + +// MutateResponse + +// optional .hbase.pb.Result result = 1; +inline bool MutateResponse::has_result() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MutateResponse::set_has_result() { + _has_bits_[0] |= 0x00000001u; +} +inline void MutateResponse::clear_has_result() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MutateResponse::clear_result() { + if (result_ != NULL) result_->::hbase::pb::Result::Clear(); + clear_has_result(); +} +inline const ::hbase::pb::Result& MutateResponse::result() const { + return result_ != NULL ? *result_ : *default_instance_->result_; +} +inline ::hbase::pb::Result* MutateResponse::mutable_result() { + set_has_result(); + if (result_ == NULL) result_ = new ::hbase::pb::Result; + return result_; +} +inline ::hbase::pb::Result* MutateResponse::release_result() { + clear_has_result(); + ::hbase::pb::Result* temp = result_; + result_ = NULL; + return temp; +} +inline void MutateResponse::set_allocated_result(::hbase::pb::Result* result) { + delete result_; + result_ = result; + if (result) { + set_has_result(); + } else { + clear_has_result(); + } +} + +// optional bool processed = 2; +inline bool MutateResponse::has_processed() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MutateResponse::set_has_processed() { + _has_bits_[0] |= 0x00000002u; +} +inline void MutateResponse::clear_has_processed() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MutateResponse::clear_processed() { + processed_ = false; + clear_has_processed(); +} +inline bool MutateResponse::processed() const { + return processed_; +} +inline void MutateResponse::set_processed(bool value) { + set_has_processed(); + processed_ = value; +} + +// ------------------------------------------------------------------- + +// Scan + +// repeated .hbase.pb.Column column = 1; +inline int Scan::column_size() const { + return column_.size(); +} +inline void Scan::clear_column() { + column_.Clear(); +} +inline const ::hbase::pb::Column& Scan::column(int index) const { + return column_.Get(index); +} +inline ::hbase::pb::Column* Scan::mutable_column(int index) { + return column_.Mutable(index); +} +inline ::hbase::pb::Column* Scan::add_column() { + return column_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column >& +Scan::column() const { + return column_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Column >* +Scan::mutable_column() { + return &column_; +} + +// repeated .hbase.pb.NameBytesPair attribute = 2; +inline int Scan::attribute_size() const { + return attribute_.size(); +} +inline void Scan::clear_attribute() { + attribute_.Clear(); +} +inline const ::hbase::pb::NameBytesPair& Scan::attribute(int index) const { + return attribute_.Get(index); +} +inline ::hbase::pb::NameBytesPair* Scan::mutable_attribute(int index) { + return attribute_.Mutable(index); +} +inline ::hbase::pb::NameBytesPair* Scan::add_attribute() { + return attribute_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >& +Scan::attribute() const { + return attribute_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameBytesPair >* +Scan::mutable_attribute() { + return &attribute_; +} + +// optional bytes start_row = 3; +inline bool Scan::has_start_row() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Scan::set_has_start_row() { + _has_bits_[0] |= 0x00000004u; +} +inline void Scan::clear_has_start_row() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Scan::clear_start_row() { + if (start_row_ != &::google::protobuf::internal::kEmptyString) { + start_row_->clear(); + } + clear_has_start_row(); +} +inline const ::std::string& Scan::start_row() const { + return *start_row_; +} +inline void Scan::set_start_row(const ::std::string& value) { + set_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + start_row_ = new ::std::string; + } + start_row_->assign(value); +} +inline void Scan::set_start_row(const char* value) { + set_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + start_row_ = new ::std::string; + } + start_row_->assign(value); +} +inline void Scan::set_start_row(const void* value, size_t size) { + set_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + start_row_ = new ::std::string; + } + start_row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Scan::mutable_start_row() { + set_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + start_row_ = new ::std::string; + } + return start_row_; +} +inline ::std::string* Scan::release_start_row() { + clear_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = start_row_; + start_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Scan::set_allocated_start_row(::std::string* start_row) { + if (start_row_ != &::google::protobuf::internal::kEmptyString) { + delete start_row_; + } + if (start_row) { + set_has_start_row(); + start_row_ = start_row; + } else { + clear_has_start_row(); + start_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes stop_row = 4; +inline bool Scan::has_stop_row() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Scan::set_has_stop_row() { + _has_bits_[0] |= 0x00000008u; +} +inline void Scan::clear_has_stop_row() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Scan::clear_stop_row() { + if (stop_row_ != &::google::protobuf::internal::kEmptyString) { + stop_row_->clear(); + } + clear_has_stop_row(); +} +inline const ::std::string& Scan::stop_row() const { + return *stop_row_; +} +inline void Scan::set_stop_row(const ::std::string& value) { + set_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + stop_row_ = new ::std::string; + } + stop_row_->assign(value); +} +inline void Scan::set_stop_row(const char* value) { + set_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + stop_row_ = new ::std::string; + } + stop_row_->assign(value); +} +inline void Scan::set_stop_row(const void* value, size_t size) { + set_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + stop_row_ = new ::std::string; + } + stop_row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Scan::mutable_stop_row() { + set_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + stop_row_ = new ::std::string; + } + return stop_row_; +} +inline ::std::string* Scan::release_stop_row() { + clear_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = stop_row_; + stop_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Scan::set_allocated_stop_row(::std::string* stop_row) { + if (stop_row_ != &::google::protobuf::internal::kEmptyString) { + delete stop_row_; + } + if (stop_row) { + set_has_stop_row(); + stop_row_ = stop_row; + } else { + clear_has_stop_row(); + stop_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.Filter filter = 5; +inline bool Scan::has_filter() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Scan::set_has_filter() { + _has_bits_[0] |= 0x00000010u; +} +inline void Scan::clear_has_filter() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Scan::clear_filter() { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + clear_has_filter(); +} +inline const ::hbase::pb::Filter& Scan::filter() const { + return filter_ != NULL ? *filter_ : *default_instance_->filter_; +} +inline ::hbase::pb::Filter* Scan::mutable_filter() { + set_has_filter(); + if (filter_ == NULL) filter_ = new ::hbase::pb::Filter; + return filter_; +} +inline ::hbase::pb::Filter* Scan::release_filter() { + clear_has_filter(); + ::hbase::pb::Filter* temp = filter_; + filter_ = NULL; + return temp; +} +inline void Scan::set_allocated_filter(::hbase::pb::Filter* filter) { + delete filter_; + filter_ = filter; + if (filter) { + set_has_filter(); + } else { + clear_has_filter(); + } +} + +// optional .hbase.pb.TimeRange time_range = 6; +inline bool Scan::has_time_range() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void Scan::set_has_time_range() { + _has_bits_[0] |= 0x00000020u; +} +inline void Scan::clear_has_time_range() { + _has_bits_[0] &= ~0x00000020u; +} +inline void Scan::clear_time_range() { + if (time_range_ != NULL) time_range_->::hbase::pb::TimeRange::Clear(); + clear_has_time_range(); +} +inline const ::hbase::pb::TimeRange& Scan::time_range() const { + return time_range_ != NULL ? *time_range_ : *default_instance_->time_range_; +} +inline ::hbase::pb::TimeRange* Scan::mutable_time_range() { + set_has_time_range(); + if (time_range_ == NULL) time_range_ = new ::hbase::pb::TimeRange; + return time_range_; +} +inline ::hbase::pb::TimeRange* Scan::release_time_range() { + clear_has_time_range(); + ::hbase::pb::TimeRange* temp = time_range_; + time_range_ = NULL; + return temp; +} +inline void Scan::set_allocated_time_range(::hbase::pb::TimeRange* time_range) { + delete time_range_; + time_range_ = time_range; + if (time_range) { + set_has_time_range(); + } else { + clear_has_time_range(); + } +} + +// optional uint32 max_versions = 7 [default = 1]; +inline bool Scan::has_max_versions() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void Scan::set_has_max_versions() { + _has_bits_[0] |= 0x00000040u; +} +inline void Scan::clear_has_max_versions() { + _has_bits_[0] &= ~0x00000040u; +} +inline void Scan::clear_max_versions() { + max_versions_ = 1u; + clear_has_max_versions(); +} +inline ::google::protobuf::uint32 Scan::max_versions() const { + return max_versions_; +} +inline void Scan::set_max_versions(::google::protobuf::uint32 value) { + set_has_max_versions(); + max_versions_ = value; +} + +// optional bool cache_blocks = 8 [default = true]; +inline bool Scan::has_cache_blocks() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void Scan::set_has_cache_blocks() { + _has_bits_[0] |= 0x00000080u; +} +inline void Scan::clear_has_cache_blocks() { + _has_bits_[0] &= ~0x00000080u; +} +inline void Scan::clear_cache_blocks() { + cache_blocks_ = true; + clear_has_cache_blocks(); +} +inline bool Scan::cache_blocks() const { + return cache_blocks_; +} +inline void Scan::set_cache_blocks(bool value) { + set_has_cache_blocks(); + cache_blocks_ = value; +} + +// optional uint32 batch_size = 9; +inline bool Scan::has_batch_size() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void Scan::set_has_batch_size() { + _has_bits_[0] |= 0x00000100u; +} +inline void Scan::clear_has_batch_size() { + _has_bits_[0] &= ~0x00000100u; +} +inline void Scan::clear_batch_size() { + batch_size_ = 0u; + clear_has_batch_size(); +} +inline ::google::protobuf::uint32 Scan::batch_size() const { + return batch_size_; +} +inline void Scan::set_batch_size(::google::protobuf::uint32 value) { + set_has_batch_size(); + batch_size_ = value; +} + +// optional uint64 max_result_size = 10; +inline bool Scan::has_max_result_size() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void Scan::set_has_max_result_size() { + _has_bits_[0] |= 0x00000200u; +} +inline void Scan::clear_has_max_result_size() { + _has_bits_[0] &= ~0x00000200u; +} +inline void Scan::clear_max_result_size() { + max_result_size_ = GOOGLE_ULONGLONG(0); + clear_has_max_result_size(); +} +inline ::google::protobuf::uint64 Scan::max_result_size() const { + return max_result_size_; +} +inline void Scan::set_max_result_size(::google::protobuf::uint64 value) { + set_has_max_result_size(); + max_result_size_ = value; +} + +// optional uint32 store_limit = 11; +inline bool Scan::has_store_limit() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void Scan::set_has_store_limit() { + _has_bits_[0] |= 0x00000400u; +} +inline void Scan::clear_has_store_limit() { + _has_bits_[0] &= ~0x00000400u; +} +inline void Scan::clear_store_limit() { + store_limit_ = 0u; + clear_has_store_limit(); +} +inline ::google::protobuf::uint32 Scan::store_limit() const { + return store_limit_; +} +inline void Scan::set_store_limit(::google::protobuf::uint32 value) { + set_has_store_limit(); + store_limit_ = value; +} + +// optional uint32 store_offset = 12; +inline bool Scan::has_store_offset() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void Scan::set_has_store_offset() { + _has_bits_[0] |= 0x00000800u; +} +inline void Scan::clear_has_store_offset() { + _has_bits_[0] &= ~0x00000800u; +} +inline void Scan::clear_store_offset() { + store_offset_ = 0u; + clear_has_store_offset(); +} +inline ::google::protobuf::uint32 Scan::store_offset() const { + return store_offset_; +} +inline void Scan::set_store_offset(::google::protobuf::uint32 value) { + set_has_store_offset(); + store_offset_ = value; +} + +// optional bool load_column_families_on_demand = 13; +inline bool Scan::has_load_column_families_on_demand() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void Scan::set_has_load_column_families_on_demand() { + _has_bits_[0] |= 0x00001000u; +} +inline void Scan::clear_has_load_column_families_on_demand() { + _has_bits_[0] &= ~0x00001000u; +} +inline void Scan::clear_load_column_families_on_demand() { + load_column_families_on_demand_ = false; + clear_has_load_column_families_on_demand(); +} +inline bool Scan::load_column_families_on_demand() const { + return load_column_families_on_demand_; +} +inline void Scan::set_load_column_families_on_demand(bool value) { + set_has_load_column_families_on_demand(); + load_column_families_on_demand_ = value; +} + +// optional bool small = 14; +inline bool Scan::has_small() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void Scan::set_has_small() { + _has_bits_[0] |= 0x00002000u; +} +inline void Scan::clear_has_small() { + _has_bits_[0] &= ~0x00002000u; +} +inline void Scan::clear_small() { + small_ = false; + clear_has_small(); +} +inline bool Scan::small() const { + return small_; +} +inline void Scan::set_small(bool value) { + set_has_small(); + small_ = value; +} + +// optional bool reversed = 15 [default = false]; +inline bool Scan::has_reversed() const { + return (_has_bits_[0] & 0x00004000u) != 0; +} +inline void Scan::set_has_reversed() { + _has_bits_[0] |= 0x00004000u; +} +inline void Scan::clear_has_reversed() { + _has_bits_[0] &= ~0x00004000u; +} +inline void Scan::clear_reversed() { + reversed_ = false; + clear_has_reversed(); +} +inline bool Scan::reversed() const { + return reversed_; +} +inline void Scan::set_reversed(bool value) { + set_has_reversed(); + reversed_ = value; +} + +// optional .hbase.pb.Consistency consistency = 16 [default = STRONG]; +inline bool Scan::has_consistency() const { + return (_has_bits_[0] & 0x00008000u) != 0; +} +inline void Scan::set_has_consistency() { + _has_bits_[0] |= 0x00008000u; +} +inline void Scan::clear_has_consistency() { + _has_bits_[0] &= ~0x00008000u; +} +inline void Scan::clear_consistency() { + consistency_ = 0; + clear_has_consistency(); +} +inline ::hbase::pb::Consistency Scan::consistency() const { + return static_cast< ::hbase::pb::Consistency >(consistency_); +} +inline void Scan::set_consistency(::hbase::pb::Consistency value) { + assert(::hbase::pb::Consistency_IsValid(value)); + set_has_consistency(); + consistency_ = value; +} + +// optional uint32 caching = 17; +inline bool Scan::has_caching() const { + return (_has_bits_[0] & 0x00010000u) != 0; +} +inline void Scan::set_has_caching() { + _has_bits_[0] |= 0x00010000u; +} +inline void Scan::clear_has_caching() { + _has_bits_[0] &= ~0x00010000u; +} +inline void Scan::clear_caching() { + caching_ = 0u; + clear_has_caching(); +} +inline ::google::protobuf::uint32 Scan::caching() const { + return caching_; +} +inline void Scan::set_caching(::google::protobuf::uint32 value) { + set_has_caching(); + caching_ = value; +} + +// optional bool allow_partial_results = 18; +inline bool Scan::has_allow_partial_results() const { + return (_has_bits_[0] & 0x00020000u) != 0; +} +inline void Scan::set_has_allow_partial_results() { + _has_bits_[0] |= 0x00020000u; +} +inline void Scan::clear_has_allow_partial_results() { + _has_bits_[0] &= ~0x00020000u; +} +inline void Scan::clear_allow_partial_results() { + allow_partial_results_ = false; + clear_has_allow_partial_results(); +} +inline bool Scan::allow_partial_results() const { + return allow_partial_results_; +} +inline void Scan::set_allow_partial_results(bool value) { + set_has_allow_partial_results(); + allow_partial_results_ = value; +} + +// repeated .hbase.pb.ColumnFamilyTimeRange cf_time_range = 19; +inline int Scan::cf_time_range_size() const { + return cf_time_range_.size(); +} +inline void Scan::clear_cf_time_range() { + cf_time_range_.Clear(); +} +inline const ::hbase::pb::ColumnFamilyTimeRange& Scan::cf_time_range(int index) const { + return cf_time_range_.Get(index); +} +inline ::hbase::pb::ColumnFamilyTimeRange* Scan::mutable_cf_time_range(int index) { + return cf_time_range_.Mutable(index); +} +inline ::hbase::pb::ColumnFamilyTimeRange* Scan::add_cf_time_range() { + return cf_time_range_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange >& +Scan::cf_time_range() const { + return cf_time_range_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilyTimeRange >* +Scan::mutable_cf_time_range() { + return &cf_time_range_; +} + +// ------------------------------------------------------------------- + +// ScanRequest + +// optional .hbase.pb.RegionSpecifier region = 1; +inline bool ScanRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ScanRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void ScanRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ScanRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& ScanRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* ScanRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* ScanRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void ScanRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional .hbase.pb.Scan scan = 2; +inline bool ScanRequest::has_scan() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ScanRequest::set_has_scan() { + _has_bits_[0] |= 0x00000002u; +} +inline void ScanRequest::clear_has_scan() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ScanRequest::clear_scan() { + if (scan_ != NULL) scan_->::hbase::pb::Scan::Clear(); + clear_has_scan(); +} +inline const ::hbase::pb::Scan& ScanRequest::scan() const { + return scan_ != NULL ? *scan_ : *default_instance_->scan_; +} +inline ::hbase::pb::Scan* ScanRequest::mutable_scan() { + set_has_scan(); + if (scan_ == NULL) scan_ = new ::hbase::pb::Scan; + return scan_; +} +inline ::hbase::pb::Scan* ScanRequest::release_scan() { + clear_has_scan(); + ::hbase::pb::Scan* temp = scan_; + scan_ = NULL; + return temp; +} +inline void ScanRequest::set_allocated_scan(::hbase::pb::Scan* scan) { + delete scan_; + scan_ = scan; + if (scan) { + set_has_scan(); + } else { + clear_has_scan(); + } +} + +// optional uint64 scanner_id = 3; +inline bool ScanRequest::has_scanner_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ScanRequest::set_has_scanner_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void ScanRequest::clear_has_scanner_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ScanRequest::clear_scanner_id() { + scanner_id_ = GOOGLE_ULONGLONG(0); + clear_has_scanner_id(); +} +inline ::google::protobuf::uint64 ScanRequest::scanner_id() const { + return scanner_id_; +} +inline void ScanRequest::set_scanner_id(::google::protobuf::uint64 value) { + set_has_scanner_id(); + scanner_id_ = value; +} + +// optional uint32 number_of_rows = 4; +inline bool ScanRequest::has_number_of_rows() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ScanRequest::set_has_number_of_rows() { + _has_bits_[0] |= 0x00000008u; +} +inline void ScanRequest::clear_has_number_of_rows() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ScanRequest::clear_number_of_rows() { + number_of_rows_ = 0u; + clear_has_number_of_rows(); +} +inline ::google::protobuf::uint32 ScanRequest::number_of_rows() const { + return number_of_rows_; +} +inline void ScanRequest::set_number_of_rows(::google::protobuf::uint32 value) { + set_has_number_of_rows(); + number_of_rows_ = value; +} + +// optional bool close_scanner = 5; +inline bool ScanRequest::has_close_scanner() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ScanRequest::set_has_close_scanner() { + _has_bits_[0] |= 0x00000010u; +} +inline void ScanRequest::clear_has_close_scanner() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ScanRequest::clear_close_scanner() { + close_scanner_ = false; + clear_has_close_scanner(); +} +inline bool ScanRequest::close_scanner() const { + return close_scanner_; +} +inline void ScanRequest::set_close_scanner(bool value) { + set_has_close_scanner(); + close_scanner_ = value; +} + +// optional uint64 next_call_seq = 6; +inline bool ScanRequest::has_next_call_seq() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void ScanRequest::set_has_next_call_seq() { + _has_bits_[0] |= 0x00000020u; +} +inline void ScanRequest::clear_has_next_call_seq() { + _has_bits_[0] &= ~0x00000020u; +} +inline void ScanRequest::clear_next_call_seq() { + next_call_seq_ = GOOGLE_ULONGLONG(0); + clear_has_next_call_seq(); +} +inline ::google::protobuf::uint64 ScanRequest::next_call_seq() const { + return next_call_seq_; +} +inline void ScanRequest::set_next_call_seq(::google::protobuf::uint64 value) { + set_has_next_call_seq(); + next_call_seq_ = value; +} + +// optional bool client_handles_partials = 7; +inline bool ScanRequest::has_client_handles_partials() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void ScanRequest::set_has_client_handles_partials() { + _has_bits_[0] |= 0x00000040u; +} +inline void ScanRequest::clear_has_client_handles_partials() { + _has_bits_[0] &= ~0x00000040u; +} +inline void ScanRequest::clear_client_handles_partials() { + client_handles_partials_ = false; + clear_has_client_handles_partials(); +} +inline bool ScanRequest::client_handles_partials() const { + return client_handles_partials_; +} +inline void ScanRequest::set_client_handles_partials(bool value) { + set_has_client_handles_partials(); + client_handles_partials_ = value; +} + +// optional bool client_handles_heartbeats = 8; +inline bool ScanRequest::has_client_handles_heartbeats() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void ScanRequest::set_has_client_handles_heartbeats() { + _has_bits_[0] |= 0x00000080u; +} +inline void ScanRequest::clear_has_client_handles_heartbeats() { + _has_bits_[0] &= ~0x00000080u; +} +inline void ScanRequest::clear_client_handles_heartbeats() { + client_handles_heartbeats_ = false; + clear_has_client_handles_heartbeats(); +} +inline bool ScanRequest::client_handles_heartbeats() const { + return client_handles_heartbeats_; +} +inline void ScanRequest::set_client_handles_heartbeats(bool value) { + set_has_client_handles_heartbeats(); + client_handles_heartbeats_ = value; +} + +// optional bool track_scan_metrics = 9; +inline bool ScanRequest::has_track_scan_metrics() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void ScanRequest::set_has_track_scan_metrics() { + _has_bits_[0] |= 0x00000100u; +} +inline void ScanRequest::clear_has_track_scan_metrics() { + _has_bits_[0] &= ~0x00000100u; +} +inline void ScanRequest::clear_track_scan_metrics() { + track_scan_metrics_ = false; + clear_has_track_scan_metrics(); +} +inline bool ScanRequest::track_scan_metrics() const { + return track_scan_metrics_; +} +inline void ScanRequest::set_track_scan_metrics(bool value) { + set_has_track_scan_metrics(); + track_scan_metrics_ = value; +} + +// optional bool renew = 10 [default = false]; +inline bool ScanRequest::has_renew() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void ScanRequest::set_has_renew() { + _has_bits_[0] |= 0x00000200u; +} +inline void ScanRequest::clear_has_renew() { + _has_bits_[0] &= ~0x00000200u; +} +inline void ScanRequest::clear_renew() { + renew_ = false; + clear_has_renew(); +} +inline bool ScanRequest::renew() const { + return renew_; +} +inline void ScanRequest::set_renew(bool value) { + set_has_renew(); + renew_ = value; +} + +// ------------------------------------------------------------------- + +// ScanResponse + +// repeated uint32 cells_per_result = 1; +inline int ScanResponse::cells_per_result_size() const { + return cells_per_result_.size(); +} +inline void ScanResponse::clear_cells_per_result() { + cells_per_result_.Clear(); +} +inline ::google::protobuf::uint32 ScanResponse::cells_per_result(int index) const { + return cells_per_result_.Get(index); +} +inline void ScanResponse::set_cells_per_result(int index, ::google::protobuf::uint32 value) { + cells_per_result_.Set(index, value); +} +inline void ScanResponse::add_cells_per_result(::google::protobuf::uint32 value) { + cells_per_result_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +ScanResponse::cells_per_result() const { + return cells_per_result_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +ScanResponse::mutable_cells_per_result() { + return &cells_per_result_; +} + +// optional uint64 scanner_id = 2; +inline bool ScanResponse::has_scanner_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ScanResponse::set_has_scanner_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void ScanResponse::clear_has_scanner_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ScanResponse::clear_scanner_id() { + scanner_id_ = GOOGLE_ULONGLONG(0); + clear_has_scanner_id(); +} +inline ::google::protobuf::uint64 ScanResponse::scanner_id() const { + return scanner_id_; +} +inline void ScanResponse::set_scanner_id(::google::protobuf::uint64 value) { + set_has_scanner_id(); + scanner_id_ = value; +} + +// optional bool more_results = 3; +inline bool ScanResponse::has_more_results() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ScanResponse::set_has_more_results() { + _has_bits_[0] |= 0x00000004u; +} +inline void ScanResponse::clear_has_more_results() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ScanResponse::clear_more_results() { + more_results_ = false; + clear_has_more_results(); +} +inline bool ScanResponse::more_results() const { + return more_results_; +} +inline void ScanResponse::set_more_results(bool value) { + set_has_more_results(); + more_results_ = value; +} + +// optional uint32 ttl = 4; +inline bool ScanResponse::has_ttl() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ScanResponse::set_has_ttl() { + _has_bits_[0] |= 0x00000008u; +} +inline void ScanResponse::clear_has_ttl() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ScanResponse::clear_ttl() { + ttl_ = 0u; + clear_has_ttl(); +} +inline ::google::protobuf::uint32 ScanResponse::ttl() const { + return ttl_; +} +inline void ScanResponse::set_ttl(::google::protobuf::uint32 value) { + set_has_ttl(); + ttl_ = value; +} + +// repeated .hbase.pb.Result results = 5; +inline int ScanResponse::results_size() const { + return results_.size(); +} +inline void ScanResponse::clear_results() { + results_.Clear(); +} +inline const ::hbase::pb::Result& ScanResponse::results(int index) const { + return results_.Get(index); +} +inline ::hbase::pb::Result* ScanResponse::mutable_results(int index) { + return results_.Mutable(index); +} +inline ::hbase::pb::Result* ScanResponse::add_results() { + return results_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Result >& +ScanResponse::results() const { + return results_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Result >* +ScanResponse::mutable_results() { + return &results_; +} + +// optional bool stale = 6; +inline bool ScanResponse::has_stale() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void ScanResponse::set_has_stale() { + _has_bits_[0] |= 0x00000020u; +} +inline void ScanResponse::clear_has_stale() { + _has_bits_[0] &= ~0x00000020u; +} +inline void ScanResponse::clear_stale() { + stale_ = false; + clear_has_stale(); +} +inline bool ScanResponse::stale() const { + return stale_; +} +inline void ScanResponse::set_stale(bool value) { + set_has_stale(); + stale_ = value; +} + +// repeated bool partial_flag_per_result = 7; +inline int ScanResponse::partial_flag_per_result_size() const { + return partial_flag_per_result_.size(); +} +inline void ScanResponse::clear_partial_flag_per_result() { + partial_flag_per_result_.Clear(); +} +inline bool ScanResponse::partial_flag_per_result(int index) const { + return partial_flag_per_result_.Get(index); +} +inline void ScanResponse::set_partial_flag_per_result(int index, bool value) { + partial_flag_per_result_.Set(index, value); +} +inline void ScanResponse::add_partial_flag_per_result(bool value) { + partial_flag_per_result_.Add(value); +} +inline const ::google::protobuf::RepeatedField< bool >& +ScanResponse::partial_flag_per_result() const { + return partial_flag_per_result_; +} +inline ::google::protobuf::RepeatedField< bool >* +ScanResponse::mutable_partial_flag_per_result() { + return &partial_flag_per_result_; +} + +// optional bool more_results_in_region = 8; +inline bool ScanResponse::has_more_results_in_region() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void ScanResponse::set_has_more_results_in_region() { + _has_bits_[0] |= 0x00000080u; +} +inline void ScanResponse::clear_has_more_results_in_region() { + _has_bits_[0] &= ~0x00000080u; +} +inline void ScanResponse::clear_more_results_in_region() { + more_results_in_region_ = false; + clear_has_more_results_in_region(); +} +inline bool ScanResponse::more_results_in_region() const { + return more_results_in_region_; +} +inline void ScanResponse::set_more_results_in_region(bool value) { + set_has_more_results_in_region(); + more_results_in_region_ = value; +} + +// optional bool heartbeat_message = 9; +inline bool ScanResponse::has_heartbeat_message() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void ScanResponse::set_has_heartbeat_message() { + _has_bits_[0] |= 0x00000100u; +} +inline void ScanResponse::clear_has_heartbeat_message() { + _has_bits_[0] &= ~0x00000100u; +} +inline void ScanResponse::clear_heartbeat_message() { + heartbeat_message_ = false; + clear_has_heartbeat_message(); +} +inline bool ScanResponse::heartbeat_message() const { + return heartbeat_message_; +} +inline void ScanResponse::set_heartbeat_message(bool value) { + set_has_heartbeat_message(); + heartbeat_message_ = value; +} + +// optional .hbase.pb.ScanMetrics scan_metrics = 10; +inline bool ScanResponse::has_scan_metrics() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void ScanResponse::set_has_scan_metrics() { + _has_bits_[0] |= 0x00000200u; +} +inline void ScanResponse::clear_has_scan_metrics() { + _has_bits_[0] &= ~0x00000200u; +} +inline void ScanResponse::clear_scan_metrics() { + if (scan_metrics_ != NULL) scan_metrics_->::hbase::pb::ScanMetrics::Clear(); + clear_has_scan_metrics(); +} +inline const ::hbase::pb::ScanMetrics& ScanResponse::scan_metrics() const { + return scan_metrics_ != NULL ? *scan_metrics_ : *default_instance_->scan_metrics_; +} +inline ::hbase::pb::ScanMetrics* ScanResponse::mutable_scan_metrics() { + set_has_scan_metrics(); + if (scan_metrics_ == NULL) scan_metrics_ = new ::hbase::pb::ScanMetrics; + return scan_metrics_; +} +inline ::hbase::pb::ScanMetrics* ScanResponse::release_scan_metrics() { + clear_has_scan_metrics(); + ::hbase::pb::ScanMetrics* temp = scan_metrics_; + scan_metrics_ = NULL; + return temp; +} +inline void ScanResponse::set_allocated_scan_metrics(::hbase::pb::ScanMetrics* scan_metrics) { + delete scan_metrics_; + scan_metrics_ = scan_metrics; + if (scan_metrics) { + set_has_scan_metrics(); + } else { + clear_has_scan_metrics(); + } +} + +// ------------------------------------------------------------------- + +// BulkLoadHFileRequest_FamilyPath + +// required bytes family = 1; +inline bool BulkLoadHFileRequest_FamilyPath::has_family() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BulkLoadHFileRequest_FamilyPath::set_has_family() { + _has_bits_[0] |= 0x00000001u; +} +inline void BulkLoadHFileRequest_FamilyPath::clear_has_family() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BulkLoadHFileRequest_FamilyPath::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& BulkLoadHFileRequest_FamilyPath::family() const { + return *family_; +} +inline void BulkLoadHFileRequest_FamilyPath::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void BulkLoadHFileRequest_FamilyPath::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void BulkLoadHFileRequest_FamilyPath::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* BulkLoadHFileRequest_FamilyPath::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* BulkLoadHFileRequest_FamilyPath::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void BulkLoadHFileRequest_FamilyPath::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string path = 2; +inline bool BulkLoadHFileRequest_FamilyPath::has_path() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BulkLoadHFileRequest_FamilyPath::set_has_path() { + _has_bits_[0] |= 0x00000002u; +} +inline void BulkLoadHFileRequest_FamilyPath::clear_has_path() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BulkLoadHFileRequest_FamilyPath::clear_path() { + if (path_ != &::google::protobuf::internal::kEmptyString) { + path_->clear(); + } + clear_has_path(); +} +inline const ::std::string& BulkLoadHFileRequest_FamilyPath::path() const { + return *path_; +} +inline void BulkLoadHFileRequest_FamilyPath::set_path(const ::std::string& value) { + set_has_path(); + if (path_ == &::google::protobuf::internal::kEmptyString) { + path_ = new ::std::string; + } + path_->assign(value); +} +inline void BulkLoadHFileRequest_FamilyPath::set_path(const char* value) { + set_has_path(); + if (path_ == &::google::protobuf::internal::kEmptyString) { + path_ = new ::std::string; + } + path_->assign(value); +} +inline void BulkLoadHFileRequest_FamilyPath::set_path(const char* value, size_t size) { + set_has_path(); + if (path_ == &::google::protobuf::internal::kEmptyString) { + path_ = new ::std::string; + } + path_->assign(reinterpret_cast(value), size); +} +inline ::std::string* BulkLoadHFileRequest_FamilyPath::mutable_path() { + set_has_path(); + if (path_ == &::google::protobuf::internal::kEmptyString) { + path_ = new ::std::string; + } + return path_; +} +inline ::std::string* BulkLoadHFileRequest_FamilyPath::release_path() { + clear_has_path(); + if (path_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = path_; + path_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void BulkLoadHFileRequest_FamilyPath::set_allocated_path(::std::string* path) { + if (path_ != &::google::protobuf::internal::kEmptyString) { + delete path_; + } + if (path) { + set_has_path(); + path_ = path; + } else { + clear_has_path(); + path_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// BulkLoadHFileRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool BulkLoadHFileRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BulkLoadHFileRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void BulkLoadHFileRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BulkLoadHFileRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& BulkLoadHFileRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* BulkLoadHFileRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* BulkLoadHFileRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void BulkLoadHFileRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 2; +inline int BulkLoadHFileRequest::family_path_size() const { + return family_path_.size(); +} +inline void BulkLoadHFileRequest::clear_family_path() { + family_path_.Clear(); +} +inline const ::hbase::pb::BulkLoadHFileRequest_FamilyPath& BulkLoadHFileRequest::family_path(int index) const { + return family_path_.Get(index); +} +inline ::hbase::pb::BulkLoadHFileRequest_FamilyPath* BulkLoadHFileRequest::mutable_family_path(int index) { + return family_path_.Mutable(index); +} +inline ::hbase::pb::BulkLoadHFileRequest_FamilyPath* BulkLoadHFileRequest::add_family_path() { + return family_path_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath >& +BulkLoadHFileRequest::family_path() const { + return family_path_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath >* +BulkLoadHFileRequest::mutable_family_path() { + return &family_path_; +} + +// optional bool assign_seq_num = 3; +inline bool BulkLoadHFileRequest::has_assign_seq_num() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void BulkLoadHFileRequest::set_has_assign_seq_num() { + _has_bits_[0] |= 0x00000004u; +} +inline void BulkLoadHFileRequest::clear_has_assign_seq_num() { + _has_bits_[0] &= ~0x00000004u; +} +inline void BulkLoadHFileRequest::clear_assign_seq_num() { + assign_seq_num_ = false; + clear_has_assign_seq_num(); +} +inline bool BulkLoadHFileRequest::assign_seq_num() const { + return assign_seq_num_; +} +inline void BulkLoadHFileRequest::set_assign_seq_num(bool value) { + set_has_assign_seq_num(); + assign_seq_num_ = value; +} + +// ------------------------------------------------------------------- + +// BulkLoadHFileResponse + +// required bool loaded = 1; +inline bool BulkLoadHFileResponse::has_loaded() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BulkLoadHFileResponse::set_has_loaded() { + _has_bits_[0] |= 0x00000001u; +} +inline void BulkLoadHFileResponse::clear_has_loaded() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BulkLoadHFileResponse::clear_loaded() { + loaded_ = false; + clear_has_loaded(); +} +inline bool BulkLoadHFileResponse::loaded() const { + return loaded_; +} +inline void BulkLoadHFileResponse::set_loaded(bool value) { + set_has_loaded(); + loaded_ = value; +} + +// ------------------------------------------------------------------- + +// CoprocessorServiceCall + +// required bytes row = 1; +inline bool CoprocessorServiceCall::has_row() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CoprocessorServiceCall::set_has_row() { + _has_bits_[0] |= 0x00000001u; +} +inline void CoprocessorServiceCall::clear_has_row() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CoprocessorServiceCall::clear_row() { + if (row_ != &::google::protobuf::internal::kEmptyString) { + row_->clear(); + } + clear_has_row(); +} +inline const ::std::string& CoprocessorServiceCall::row() const { + return *row_; +} +inline void CoprocessorServiceCall::set_row(const ::std::string& value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void CoprocessorServiceCall::set_row(const char* value) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(value); +} +inline void CoprocessorServiceCall::set_row(const void* value, size_t size) { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CoprocessorServiceCall::mutable_row() { + set_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + row_ = new ::std::string; + } + return row_; +} +inline ::std::string* CoprocessorServiceCall::release_row() { + clear_has_row(); + if (row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_; + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CoprocessorServiceCall::set_allocated_row(::std::string* row) { + if (row_ != &::google::protobuf::internal::kEmptyString) { + delete row_; + } + if (row) { + set_has_row(); + row_ = row; + } else { + clear_has_row(); + row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string service_name = 2; +inline bool CoprocessorServiceCall::has_service_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CoprocessorServiceCall::set_has_service_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void CoprocessorServiceCall::clear_has_service_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CoprocessorServiceCall::clear_service_name() { + if (service_name_ != &::google::protobuf::internal::kEmptyString) { + service_name_->clear(); + } + clear_has_service_name(); +} +inline const ::std::string& CoprocessorServiceCall::service_name() const { + return *service_name_; +} +inline void CoprocessorServiceCall::set_service_name(const ::std::string& value) { + set_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + service_name_ = new ::std::string; + } + service_name_->assign(value); +} +inline void CoprocessorServiceCall::set_service_name(const char* value) { + set_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + service_name_ = new ::std::string; + } + service_name_->assign(value); +} +inline void CoprocessorServiceCall::set_service_name(const char* value, size_t size) { + set_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + service_name_ = new ::std::string; + } + service_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CoprocessorServiceCall::mutable_service_name() { + set_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + service_name_ = new ::std::string; + } + return service_name_; +} +inline ::std::string* CoprocessorServiceCall::release_service_name() { + clear_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = service_name_; + service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CoprocessorServiceCall::set_allocated_service_name(::std::string* service_name) { + if (service_name_ != &::google::protobuf::internal::kEmptyString) { + delete service_name_; + } + if (service_name) { + set_has_service_name(); + service_name_ = service_name; + } else { + clear_has_service_name(); + service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string method_name = 3; +inline bool CoprocessorServiceCall::has_method_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CoprocessorServiceCall::set_has_method_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void CoprocessorServiceCall::clear_has_method_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CoprocessorServiceCall::clear_method_name() { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + method_name_->clear(); + } + clear_has_method_name(); +} +inline const ::std::string& CoprocessorServiceCall::method_name() const { + return *method_name_; +} +inline void CoprocessorServiceCall::set_method_name(const ::std::string& value) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(value); +} +inline void CoprocessorServiceCall::set_method_name(const char* value) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(value); +} +inline void CoprocessorServiceCall::set_method_name(const char* value, size_t size) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CoprocessorServiceCall::mutable_method_name() { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + return method_name_; +} +inline ::std::string* CoprocessorServiceCall::release_method_name() { + clear_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = method_name_; + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CoprocessorServiceCall::set_allocated_method_name(::std::string* method_name) { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + delete method_name_; + } + if (method_name) { + set_has_method_name(); + method_name_ = method_name; + } else { + clear_has_method_name(); + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes request = 4; +inline bool CoprocessorServiceCall::has_request() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void CoprocessorServiceCall::set_has_request() { + _has_bits_[0] |= 0x00000008u; +} +inline void CoprocessorServiceCall::clear_has_request() { + _has_bits_[0] &= ~0x00000008u; +} +inline void CoprocessorServiceCall::clear_request() { + if (request_ != &::google::protobuf::internal::kEmptyString) { + request_->clear(); + } + clear_has_request(); +} +inline const ::std::string& CoprocessorServiceCall::request() const { + return *request_; +} +inline void CoprocessorServiceCall::set_request(const ::std::string& value) { + set_has_request(); + if (request_ == &::google::protobuf::internal::kEmptyString) { + request_ = new ::std::string; + } + request_->assign(value); +} +inline void CoprocessorServiceCall::set_request(const char* value) { + set_has_request(); + if (request_ == &::google::protobuf::internal::kEmptyString) { + request_ = new ::std::string; + } + request_->assign(value); +} +inline void CoprocessorServiceCall::set_request(const void* value, size_t size) { + set_has_request(); + if (request_ == &::google::protobuf::internal::kEmptyString) { + request_ = new ::std::string; + } + request_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CoprocessorServiceCall::mutable_request() { + set_has_request(); + if (request_ == &::google::protobuf::internal::kEmptyString) { + request_ = new ::std::string; + } + return request_; +} +inline ::std::string* CoprocessorServiceCall::release_request() { + clear_has_request(); + if (request_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = request_; + request_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CoprocessorServiceCall::set_allocated_request(::std::string* request) { + if (request_ != &::google::protobuf::internal::kEmptyString) { + delete request_; + } + if (request) { + set_has_request(); + request_ = request; + } else { + clear_has_request(); + request_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// CoprocessorServiceResult + +// optional .hbase.pb.NameBytesPair value = 1; +inline bool CoprocessorServiceResult::has_value() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CoprocessorServiceResult::set_has_value() { + _has_bits_[0] |= 0x00000001u; +} +inline void CoprocessorServiceResult::clear_has_value() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CoprocessorServiceResult::clear_value() { + if (value_ != NULL) value_->::hbase::pb::NameBytesPair::Clear(); + clear_has_value(); +} +inline const ::hbase::pb::NameBytesPair& CoprocessorServiceResult::value() const { + return value_ != NULL ? *value_ : *default_instance_->value_; +} +inline ::hbase::pb::NameBytesPair* CoprocessorServiceResult::mutable_value() { + set_has_value(); + if (value_ == NULL) value_ = new ::hbase::pb::NameBytesPair; + return value_; +} +inline ::hbase::pb::NameBytesPair* CoprocessorServiceResult::release_value() { + clear_has_value(); + ::hbase::pb::NameBytesPair* temp = value_; + value_ = NULL; + return temp; +} +inline void CoprocessorServiceResult::set_allocated_value(::hbase::pb::NameBytesPair* value) { + delete value_; + value_ = value; + if (value) { + set_has_value(); + } else { + clear_has_value(); + } +} + +// ------------------------------------------------------------------- + +// CoprocessorServiceRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool CoprocessorServiceRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CoprocessorServiceRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void CoprocessorServiceRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CoprocessorServiceRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& CoprocessorServiceRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* CoprocessorServiceRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* CoprocessorServiceRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void CoprocessorServiceRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// required .hbase.pb.CoprocessorServiceCall call = 2; +inline bool CoprocessorServiceRequest::has_call() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CoprocessorServiceRequest::set_has_call() { + _has_bits_[0] |= 0x00000002u; +} +inline void CoprocessorServiceRequest::clear_has_call() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CoprocessorServiceRequest::clear_call() { + if (call_ != NULL) call_->::hbase::pb::CoprocessorServiceCall::Clear(); + clear_has_call(); +} +inline const ::hbase::pb::CoprocessorServiceCall& CoprocessorServiceRequest::call() const { + return call_ != NULL ? *call_ : *default_instance_->call_; +} +inline ::hbase::pb::CoprocessorServiceCall* CoprocessorServiceRequest::mutable_call() { + set_has_call(); + if (call_ == NULL) call_ = new ::hbase::pb::CoprocessorServiceCall; + return call_; +} +inline ::hbase::pb::CoprocessorServiceCall* CoprocessorServiceRequest::release_call() { + clear_has_call(); + ::hbase::pb::CoprocessorServiceCall* temp = call_; + call_ = NULL; + return temp; +} +inline void CoprocessorServiceRequest::set_allocated_call(::hbase::pb::CoprocessorServiceCall* call) { + delete call_; + call_ = call; + if (call) { + set_has_call(); + } else { + clear_has_call(); + } +} + +// ------------------------------------------------------------------- + +// CoprocessorServiceResponse + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool CoprocessorServiceResponse::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CoprocessorServiceResponse::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void CoprocessorServiceResponse::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CoprocessorServiceResponse::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& CoprocessorServiceResponse::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* CoprocessorServiceResponse::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* CoprocessorServiceResponse::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void CoprocessorServiceResponse::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// required .hbase.pb.NameBytesPair value = 2; +inline bool CoprocessorServiceResponse::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CoprocessorServiceResponse::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void CoprocessorServiceResponse::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CoprocessorServiceResponse::clear_value() { + if (value_ != NULL) value_->::hbase::pb::NameBytesPair::Clear(); + clear_has_value(); +} +inline const ::hbase::pb::NameBytesPair& CoprocessorServiceResponse::value() const { + return value_ != NULL ? *value_ : *default_instance_->value_; +} +inline ::hbase::pb::NameBytesPair* CoprocessorServiceResponse::mutable_value() { + set_has_value(); + if (value_ == NULL) value_ = new ::hbase::pb::NameBytesPair; + return value_; +} +inline ::hbase::pb::NameBytesPair* CoprocessorServiceResponse::release_value() { + clear_has_value(); + ::hbase::pb::NameBytesPair* temp = value_; + value_ = NULL; + return temp; +} +inline void CoprocessorServiceResponse::set_allocated_value(::hbase::pb::NameBytesPair* value) { + delete value_; + value_ = value; + if (value) { + set_has_value(); + } else { + clear_has_value(); + } +} + +// ------------------------------------------------------------------- + +// Action + +// optional uint32 index = 1; +inline bool Action::has_index() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Action::set_has_index() { + _has_bits_[0] |= 0x00000001u; +} +inline void Action::clear_has_index() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Action::clear_index() { + index_ = 0u; + clear_has_index(); +} +inline ::google::protobuf::uint32 Action::index() const { + return index_; +} +inline void Action::set_index(::google::protobuf::uint32 value) { + set_has_index(); + index_ = value; +} + +// optional .hbase.pb.MutationProto mutation = 2; +inline bool Action::has_mutation() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Action::set_has_mutation() { + _has_bits_[0] |= 0x00000002u; +} +inline void Action::clear_has_mutation() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Action::clear_mutation() { + if (mutation_ != NULL) mutation_->::hbase::pb::MutationProto::Clear(); + clear_has_mutation(); +} +inline const ::hbase::pb::MutationProto& Action::mutation() const { + return mutation_ != NULL ? *mutation_ : *default_instance_->mutation_; +} +inline ::hbase::pb::MutationProto* Action::mutable_mutation() { + set_has_mutation(); + if (mutation_ == NULL) mutation_ = new ::hbase::pb::MutationProto; + return mutation_; +} +inline ::hbase::pb::MutationProto* Action::release_mutation() { + clear_has_mutation(); + ::hbase::pb::MutationProto* temp = mutation_; + mutation_ = NULL; + return temp; +} +inline void Action::set_allocated_mutation(::hbase::pb::MutationProto* mutation) { + delete mutation_; + mutation_ = mutation; + if (mutation) { + set_has_mutation(); + } else { + clear_has_mutation(); + } +} + +// optional .hbase.pb.Get get = 3; +inline bool Action::has_get() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Action::set_has_get() { + _has_bits_[0] |= 0x00000004u; +} +inline void Action::clear_has_get() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Action::clear_get() { + if (get_ != NULL) get_->::hbase::pb::Get::Clear(); + clear_has_get(); +} +inline const ::hbase::pb::Get& Action::get() const { + return get_ != NULL ? *get_ : *default_instance_->get_; +} +inline ::hbase::pb::Get* Action::mutable_get() { + set_has_get(); + if (get_ == NULL) get_ = new ::hbase::pb::Get; + return get_; +} +inline ::hbase::pb::Get* Action::release_get() { + clear_has_get(); + ::hbase::pb::Get* temp = get_; + get_ = NULL; + return temp; +} +inline void Action::set_allocated_get(::hbase::pb::Get* get) { + delete get_; + get_ = get; + if (get) { + set_has_get(); + } else { + clear_has_get(); + } +} + +// optional .hbase.pb.CoprocessorServiceCall service_call = 4; +inline bool Action::has_service_call() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Action::set_has_service_call() { + _has_bits_[0] |= 0x00000008u; +} +inline void Action::clear_has_service_call() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Action::clear_service_call() { + if (service_call_ != NULL) service_call_->::hbase::pb::CoprocessorServiceCall::Clear(); + clear_has_service_call(); +} +inline const ::hbase::pb::CoprocessorServiceCall& Action::service_call() const { + return service_call_ != NULL ? *service_call_ : *default_instance_->service_call_; +} +inline ::hbase::pb::CoprocessorServiceCall* Action::mutable_service_call() { + set_has_service_call(); + if (service_call_ == NULL) service_call_ = new ::hbase::pb::CoprocessorServiceCall; + return service_call_; +} +inline ::hbase::pb::CoprocessorServiceCall* Action::release_service_call() { + clear_has_service_call(); + ::hbase::pb::CoprocessorServiceCall* temp = service_call_; + service_call_ = NULL; + return temp; +} +inline void Action::set_allocated_service_call(::hbase::pb::CoprocessorServiceCall* service_call) { + delete service_call_; + service_call_ = service_call; + if (service_call) { + set_has_service_call(); + } else { + clear_has_service_call(); + } +} + +// ------------------------------------------------------------------- + +// RegionAction + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool RegionAction::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionAction::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionAction::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionAction::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& RegionAction::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* RegionAction::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* RegionAction::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void RegionAction::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional bool atomic = 2; +inline bool RegionAction::has_atomic() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionAction::set_has_atomic() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionAction::clear_has_atomic() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionAction::clear_atomic() { + atomic_ = false; + clear_has_atomic(); +} +inline bool RegionAction::atomic() const { + return atomic_; +} +inline void RegionAction::set_atomic(bool value) { + set_has_atomic(); + atomic_ = value; +} + +// repeated .hbase.pb.Action action = 3; +inline int RegionAction::action_size() const { + return action_.size(); +} +inline void RegionAction::clear_action() { + action_.Clear(); +} +inline const ::hbase::pb::Action& RegionAction::action(int index) const { + return action_.Get(index); +} +inline ::hbase::pb::Action* RegionAction::mutable_action(int index) { + return action_.Mutable(index); +} +inline ::hbase::pb::Action* RegionAction::add_action() { + return action_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Action >& +RegionAction::action() const { + return action_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Action >* +RegionAction::mutable_action() { + return &action_; +} + +// ------------------------------------------------------------------- + +// RegionLoadStats + +// optional int32 memstoreLoad = 1 [default = 0]; +inline bool RegionLoadStats::has_memstoreload() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionLoadStats::set_has_memstoreload() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionLoadStats::clear_has_memstoreload() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionLoadStats::clear_memstoreload() { + memstoreload_ = 0; + clear_has_memstoreload(); +} +inline ::google::protobuf::int32 RegionLoadStats::memstoreload() const { + return memstoreload_; +} +inline void RegionLoadStats::set_memstoreload(::google::protobuf::int32 value) { + set_has_memstoreload(); + memstoreload_ = value; +} + +// optional int32 heapOccupancy = 2 [default = 0]; +inline bool RegionLoadStats::has_heapoccupancy() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionLoadStats::set_has_heapoccupancy() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionLoadStats::clear_has_heapoccupancy() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionLoadStats::clear_heapoccupancy() { + heapoccupancy_ = 0; + clear_has_heapoccupancy(); +} +inline ::google::protobuf::int32 RegionLoadStats::heapoccupancy() const { + return heapoccupancy_; +} +inline void RegionLoadStats::set_heapoccupancy(::google::protobuf::int32 value) { + set_has_heapoccupancy(); + heapoccupancy_ = value; +} + +// optional int32 compactionPressure = 3 [default = 0]; +inline bool RegionLoadStats::has_compactionpressure() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RegionLoadStats::set_has_compactionpressure() { + _has_bits_[0] |= 0x00000004u; +} +inline void RegionLoadStats::clear_has_compactionpressure() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RegionLoadStats::clear_compactionpressure() { + compactionpressure_ = 0; + clear_has_compactionpressure(); +} +inline ::google::protobuf::int32 RegionLoadStats::compactionpressure() const { + return compactionpressure_; +} +inline void RegionLoadStats::set_compactionpressure(::google::protobuf::int32 value) { + set_has_compactionpressure(); + compactionpressure_ = value; +} + +// ------------------------------------------------------------------- + +// MultiRegionLoadStats + +// repeated .hbase.pb.RegionSpecifier region = 1; +inline int MultiRegionLoadStats::region_size() const { + return region_.size(); +} +inline void MultiRegionLoadStats::clear_region() { + region_.Clear(); +} +inline const ::hbase::pb::RegionSpecifier& MultiRegionLoadStats::region(int index) const { + return region_.Get(index); +} +inline ::hbase::pb::RegionSpecifier* MultiRegionLoadStats::mutable_region(int index) { + return region_.Mutable(index); +} +inline ::hbase::pb::RegionSpecifier* MultiRegionLoadStats::add_region() { + return region_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionSpecifier >& +MultiRegionLoadStats::region() const { + return region_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionSpecifier >* +MultiRegionLoadStats::mutable_region() { + return ®ion_; +} + +// repeated .hbase.pb.RegionLoadStats stat = 2; +inline int MultiRegionLoadStats::stat_size() const { + return stat_.size(); +} +inline void MultiRegionLoadStats::clear_stat() { + stat_.Clear(); +} +inline const ::hbase::pb::RegionLoadStats& MultiRegionLoadStats::stat(int index) const { + return stat_.Get(index); +} +inline ::hbase::pb::RegionLoadStats* MultiRegionLoadStats::mutable_stat(int index) { + return stat_.Mutable(index); +} +inline ::hbase::pb::RegionLoadStats* MultiRegionLoadStats::add_stat() { + return stat_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoadStats >& +MultiRegionLoadStats::stat() const { + return stat_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoadStats >* +MultiRegionLoadStats::mutable_stat() { + return &stat_; +} + +// ------------------------------------------------------------------- + +// ResultOrException + +// optional uint32 index = 1; +inline bool ResultOrException::has_index() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ResultOrException::set_has_index() { + _has_bits_[0] |= 0x00000001u; +} +inline void ResultOrException::clear_has_index() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ResultOrException::clear_index() { + index_ = 0u; + clear_has_index(); +} +inline ::google::protobuf::uint32 ResultOrException::index() const { + return index_; +} +inline void ResultOrException::set_index(::google::protobuf::uint32 value) { + set_has_index(); + index_ = value; +} + +// optional .hbase.pb.Result result = 2; +inline bool ResultOrException::has_result() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ResultOrException::set_has_result() { + _has_bits_[0] |= 0x00000002u; +} +inline void ResultOrException::clear_has_result() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ResultOrException::clear_result() { + if (result_ != NULL) result_->::hbase::pb::Result::Clear(); + clear_has_result(); +} +inline const ::hbase::pb::Result& ResultOrException::result() const { + return result_ != NULL ? *result_ : *default_instance_->result_; +} +inline ::hbase::pb::Result* ResultOrException::mutable_result() { + set_has_result(); + if (result_ == NULL) result_ = new ::hbase::pb::Result; + return result_; +} +inline ::hbase::pb::Result* ResultOrException::release_result() { + clear_has_result(); + ::hbase::pb::Result* temp = result_; + result_ = NULL; + return temp; +} +inline void ResultOrException::set_allocated_result(::hbase::pb::Result* result) { + delete result_; + result_ = result; + if (result) { + set_has_result(); + } else { + clear_has_result(); + } +} + +// optional .hbase.pb.NameBytesPair exception = 3; +inline bool ResultOrException::has_exception() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ResultOrException::set_has_exception() { + _has_bits_[0] |= 0x00000004u; +} +inline void ResultOrException::clear_has_exception() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ResultOrException::clear_exception() { + if (exception_ != NULL) exception_->::hbase::pb::NameBytesPair::Clear(); + clear_has_exception(); +} +inline const ::hbase::pb::NameBytesPair& ResultOrException::exception() const { + return exception_ != NULL ? *exception_ : *default_instance_->exception_; +} +inline ::hbase::pb::NameBytesPair* ResultOrException::mutable_exception() { + set_has_exception(); + if (exception_ == NULL) exception_ = new ::hbase::pb::NameBytesPair; + return exception_; +} +inline ::hbase::pb::NameBytesPair* ResultOrException::release_exception() { + clear_has_exception(); + ::hbase::pb::NameBytesPair* temp = exception_; + exception_ = NULL; + return temp; +} +inline void ResultOrException::set_allocated_exception(::hbase::pb::NameBytesPair* exception) { + delete exception_; + exception_ = exception; + if (exception) { + set_has_exception(); + } else { + clear_has_exception(); + } +} + +// optional .hbase.pb.CoprocessorServiceResult service_result = 4; +inline bool ResultOrException::has_service_result() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ResultOrException::set_has_service_result() { + _has_bits_[0] |= 0x00000008u; +} +inline void ResultOrException::clear_has_service_result() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ResultOrException::clear_service_result() { + if (service_result_ != NULL) service_result_->::hbase::pb::CoprocessorServiceResult::Clear(); + clear_has_service_result(); +} +inline const ::hbase::pb::CoprocessorServiceResult& ResultOrException::service_result() const { + return service_result_ != NULL ? *service_result_ : *default_instance_->service_result_; +} +inline ::hbase::pb::CoprocessorServiceResult* ResultOrException::mutable_service_result() { + set_has_service_result(); + if (service_result_ == NULL) service_result_ = new ::hbase::pb::CoprocessorServiceResult; + return service_result_; +} +inline ::hbase::pb::CoprocessorServiceResult* ResultOrException::release_service_result() { + clear_has_service_result(); + ::hbase::pb::CoprocessorServiceResult* temp = service_result_; + service_result_ = NULL; + return temp; +} +inline void ResultOrException::set_allocated_service_result(::hbase::pb::CoprocessorServiceResult* service_result) { + delete service_result_; + service_result_ = service_result; + if (service_result) { + set_has_service_result(); + } else { + clear_has_service_result(); + } +} + +// optional .hbase.pb.RegionLoadStats loadStats = 5 [deprecated = true]; +inline bool ResultOrException::has_loadstats() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ResultOrException::set_has_loadstats() { + _has_bits_[0] |= 0x00000010u; +} +inline void ResultOrException::clear_has_loadstats() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ResultOrException::clear_loadstats() { + if (loadstats_ != NULL) loadstats_->::hbase::pb::RegionLoadStats::Clear(); + clear_has_loadstats(); +} +inline const ::hbase::pb::RegionLoadStats& ResultOrException::loadstats() const { + return loadstats_ != NULL ? *loadstats_ : *default_instance_->loadstats_; +} +inline ::hbase::pb::RegionLoadStats* ResultOrException::mutable_loadstats() { + set_has_loadstats(); + if (loadstats_ == NULL) loadstats_ = new ::hbase::pb::RegionLoadStats; + return loadstats_; +} +inline ::hbase::pb::RegionLoadStats* ResultOrException::release_loadstats() { + clear_has_loadstats(); + ::hbase::pb::RegionLoadStats* temp = loadstats_; + loadstats_ = NULL; + return temp; +} +inline void ResultOrException::set_allocated_loadstats(::hbase::pb::RegionLoadStats* loadstats) { + delete loadstats_; + loadstats_ = loadstats; + if (loadstats) { + set_has_loadstats(); + } else { + clear_has_loadstats(); + } +} + +// ------------------------------------------------------------------- + +// RegionActionResult + +// repeated .hbase.pb.ResultOrException resultOrException = 1; +inline int RegionActionResult::resultorexception_size() const { + return resultorexception_.size(); +} +inline void RegionActionResult::clear_resultorexception() { + resultorexception_.Clear(); +} +inline const ::hbase::pb::ResultOrException& RegionActionResult::resultorexception(int index) const { + return resultorexception_.Get(index); +} +inline ::hbase::pb::ResultOrException* RegionActionResult::mutable_resultorexception(int index) { + return resultorexception_.Mutable(index); +} +inline ::hbase::pb::ResultOrException* RegionActionResult::add_resultorexception() { + return resultorexception_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ResultOrException >& +RegionActionResult::resultorexception() const { + return resultorexception_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ResultOrException >* +RegionActionResult::mutable_resultorexception() { + return &resultorexception_; +} + +// optional .hbase.pb.NameBytesPair exception = 2; +inline bool RegionActionResult::has_exception() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionActionResult::set_has_exception() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionActionResult::clear_has_exception() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionActionResult::clear_exception() { + if (exception_ != NULL) exception_->::hbase::pb::NameBytesPair::Clear(); + clear_has_exception(); +} +inline const ::hbase::pb::NameBytesPair& RegionActionResult::exception() const { + return exception_ != NULL ? *exception_ : *default_instance_->exception_; +} +inline ::hbase::pb::NameBytesPair* RegionActionResult::mutable_exception() { + set_has_exception(); + if (exception_ == NULL) exception_ = new ::hbase::pb::NameBytesPair; + return exception_; +} +inline ::hbase::pb::NameBytesPair* RegionActionResult::release_exception() { + clear_has_exception(); + ::hbase::pb::NameBytesPair* temp = exception_; + exception_ = NULL; + return temp; +} +inline void RegionActionResult::set_allocated_exception(::hbase::pb::NameBytesPair* exception) { + delete exception_; + exception_ = exception; + if (exception) { + set_has_exception(); + } else { + clear_has_exception(); + } +} + +// ------------------------------------------------------------------- + +// MultiRequest + +// repeated .hbase.pb.RegionAction regionAction = 1; +inline int MultiRequest::regionaction_size() const { + return regionaction_.size(); +} +inline void MultiRequest::clear_regionaction() { + regionaction_.Clear(); +} +inline const ::hbase::pb::RegionAction& MultiRequest::regionaction(int index) const { + return regionaction_.Get(index); +} +inline ::hbase::pb::RegionAction* MultiRequest::mutable_regionaction(int index) { + return regionaction_.Mutable(index); +} +inline ::hbase::pb::RegionAction* MultiRequest::add_regionaction() { + return regionaction_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionAction >& +MultiRequest::regionaction() const { + return regionaction_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionAction >* +MultiRequest::mutable_regionaction() { + return ®ionaction_; +} + +// optional uint64 nonceGroup = 2; +inline bool MultiRequest::has_noncegroup() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MultiRequest::set_has_noncegroup() { + _has_bits_[0] |= 0x00000002u; +} +inline void MultiRequest::clear_has_noncegroup() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MultiRequest::clear_noncegroup() { + noncegroup_ = GOOGLE_ULONGLONG(0); + clear_has_noncegroup(); +} +inline ::google::protobuf::uint64 MultiRequest::noncegroup() const { + return noncegroup_; +} +inline void MultiRequest::set_noncegroup(::google::protobuf::uint64 value) { + set_has_noncegroup(); + noncegroup_ = value; +} + +// optional .hbase.pb.Condition condition = 3; +inline bool MultiRequest::has_condition() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MultiRequest::set_has_condition() { + _has_bits_[0] |= 0x00000004u; +} +inline void MultiRequest::clear_has_condition() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MultiRequest::clear_condition() { + if (condition_ != NULL) condition_->::hbase::pb::Condition::Clear(); + clear_has_condition(); +} +inline const ::hbase::pb::Condition& MultiRequest::condition() const { + return condition_ != NULL ? *condition_ : *default_instance_->condition_; +} +inline ::hbase::pb::Condition* MultiRequest::mutable_condition() { + set_has_condition(); + if (condition_ == NULL) condition_ = new ::hbase::pb::Condition; + return condition_; +} +inline ::hbase::pb::Condition* MultiRequest::release_condition() { + clear_has_condition(); + ::hbase::pb::Condition* temp = condition_; + condition_ = NULL; + return temp; +} +inline void MultiRequest::set_allocated_condition(::hbase::pb::Condition* condition) { + delete condition_; + condition_ = condition; + if (condition) { + set_has_condition(); + } else { + clear_has_condition(); + } +} + +// ------------------------------------------------------------------- + +// MultiResponse + +// repeated .hbase.pb.RegionActionResult regionActionResult = 1; +inline int MultiResponse::regionactionresult_size() const { + return regionactionresult_.size(); +} +inline void MultiResponse::clear_regionactionresult() { + regionactionresult_.Clear(); +} +inline const ::hbase::pb::RegionActionResult& MultiResponse::regionactionresult(int index) const { + return regionactionresult_.Get(index); +} +inline ::hbase::pb::RegionActionResult* MultiResponse::mutable_regionactionresult(int index) { + return regionactionresult_.Mutable(index); +} +inline ::hbase::pb::RegionActionResult* MultiResponse::add_regionactionresult() { + return regionactionresult_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult >& +MultiResponse::regionactionresult() const { + return regionactionresult_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult >* +MultiResponse::mutable_regionactionresult() { + return ®ionactionresult_; +} + +// optional bool processed = 2; +inline bool MultiResponse::has_processed() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MultiResponse::set_has_processed() { + _has_bits_[0] |= 0x00000002u; +} +inline void MultiResponse::clear_has_processed() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MultiResponse::clear_processed() { + processed_ = false; + clear_has_processed(); +} +inline bool MultiResponse::processed() const { + return processed_; +} +inline void MultiResponse::set_processed(bool value) { + set_has_processed(); + processed_ = value; +} + +// optional .hbase.pb.MultiRegionLoadStats regionStatistics = 3; +inline bool MultiResponse::has_regionstatistics() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MultiResponse::set_has_regionstatistics() { + _has_bits_[0] |= 0x00000004u; +} +inline void MultiResponse::clear_has_regionstatistics() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MultiResponse::clear_regionstatistics() { + if (regionstatistics_ != NULL) regionstatistics_->::hbase::pb::MultiRegionLoadStats::Clear(); + clear_has_regionstatistics(); +} +inline const ::hbase::pb::MultiRegionLoadStats& MultiResponse::regionstatistics() const { + return regionstatistics_ != NULL ? *regionstatistics_ : *default_instance_->regionstatistics_; +} +inline ::hbase::pb::MultiRegionLoadStats* MultiResponse::mutable_regionstatistics() { + set_has_regionstatistics(); + if (regionstatistics_ == NULL) regionstatistics_ = new ::hbase::pb::MultiRegionLoadStats; + return regionstatistics_; +} +inline ::hbase::pb::MultiRegionLoadStats* MultiResponse::release_regionstatistics() { + clear_has_regionstatistics(); + ::hbase::pb::MultiRegionLoadStats* temp = regionstatistics_; + regionstatistics_ = NULL; + return temp; +} +inline void MultiResponse::set_allocated_regionstatistics(::hbase::pb::MultiRegionLoadStats* regionstatistics) { + delete regionstatistics_; + regionstatistics_ = regionstatistics; + if (regionstatistics) { + set_has_regionstatistics(); + } else { + clear_has_regionstatistics(); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::MutationProto_Durability>() { + return ::hbase::pb::MutationProto_Durability_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::MutationProto_MutationType>() { + return ::hbase::pb::MutationProto_MutationType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::MutationProto_DeleteType>() { + return ::hbase::pb::MutationProto_DeleteType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::Consistency>() { + return ::hbase::pb::Consistency_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Client_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/ClusterId.pb.cc b/hbase-native-client/src/rpc/generated/ClusterId.pb.cc new file mode 100644 index 0000000..5a41271 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/ClusterId.pb.cc @@ -0,0 +1,331 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClusterId.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "ClusterId.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* ClusterId_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ClusterId_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_ClusterId_2eproto() { + protobuf_AddDesc_ClusterId_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "ClusterId.proto"); + GOOGLE_CHECK(file != NULL); + ClusterId_descriptor_ = file->message_type(0); + static const int ClusterId_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterId, cluster_id_), + }; + ClusterId_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ClusterId_descriptor_, + ClusterId::default_instance_, + ClusterId_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterId, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterId, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ClusterId)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_ClusterId_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ClusterId_descriptor_, &ClusterId::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_ClusterId_2eproto() { + delete ClusterId::default_instance_; + delete ClusterId_reflection_; +} + +void protobuf_AddDesc_ClusterId_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\017ClusterId.proto\022\010hbase.pb\"\037\n\tClusterId" + "\022\022\n\ncluster_id\030\001 \002(\tBB\n*org.apache.hadoo" + "p.hbase.protobuf.generatedB\017ClusterIdPro" + "tosH\001\240\001\001", 128); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "ClusterId.proto", &protobuf_RegisterTypes); + ClusterId::default_instance_ = new ClusterId(); + ClusterId::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ClusterId_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_ClusterId_2eproto { + StaticDescriptorInitializer_ClusterId_2eproto() { + protobuf_AddDesc_ClusterId_2eproto(); + } +} static_descriptor_initializer_ClusterId_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int ClusterId::kClusterIdFieldNumber; +#endif // !_MSC_VER + +ClusterId::ClusterId() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ClusterId::InitAsDefaultInstance() { +} + +ClusterId::ClusterId(const ClusterId& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ClusterId::SharedCtor() { + _cached_size_ = 0; + cluster_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ClusterId::~ClusterId() { + SharedDtor(); +} + +void ClusterId::SharedDtor() { + if (cluster_id_ != &::google::protobuf::internal::kEmptyString) { + delete cluster_id_; + } + if (this != default_instance_) { + } +} + +void ClusterId::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ClusterId::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ClusterId_descriptor_; +} + +const ClusterId& ClusterId::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterId_2eproto(); + return *default_instance_; +} + +ClusterId* ClusterId::default_instance_ = NULL; + +ClusterId* ClusterId::New() const { + return new ClusterId; +} + +void ClusterId::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_cluster_id()) { + if (cluster_id_ != &::google::protobuf::internal::kEmptyString) { + cluster_id_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ClusterId::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string cluster_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cluster_id())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cluster_id().data(), this->cluster_id().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ClusterId::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string cluster_id = 1; + if (has_cluster_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cluster_id().data(), this->cluster_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->cluster_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ClusterId::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string cluster_id = 1; + if (has_cluster_id()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cluster_id().data(), this->cluster_id().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cluster_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ClusterId::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string cluster_id = 1; + if (has_cluster_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cluster_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ClusterId::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ClusterId* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ClusterId::MergeFrom(const ClusterId& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_cluster_id()) { + set_cluster_id(from.cluster_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ClusterId::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ClusterId::CopyFrom(const ClusterId& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClusterId::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ClusterId::Swap(ClusterId* other) { + if (other != this) { + std::swap(cluster_id_, other->cluster_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ClusterId::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ClusterId_descriptor_; + metadata.reflection = ClusterId_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/ClusterId.pb.h b/hbase-native-client/src/rpc/generated/ClusterId.pb.h new file mode 100644 index 0000000..08a38d6 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/ClusterId.pb.h @@ -0,0 +1,220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClusterId.proto + +#ifndef PROTOBUF_ClusterId_2eproto__INCLUDED +#define PROTOBUF_ClusterId_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_ClusterId_2eproto(); +void protobuf_AssignDesc_ClusterId_2eproto(); +void protobuf_ShutdownFile_ClusterId_2eproto(); + +class ClusterId; + +// =================================================================== + +class ClusterId : public ::google::protobuf::Message { + public: + ClusterId(); + virtual ~ClusterId(); + + ClusterId(const ClusterId& from); + + inline ClusterId& operator=(const ClusterId& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ClusterId& default_instance(); + + void Swap(ClusterId* other); + + // implements Message ---------------------------------------------- + + ClusterId* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ClusterId& from); + void MergeFrom(const ClusterId& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string cluster_id = 1; + inline bool has_cluster_id() const; + inline void clear_cluster_id(); + static const int kClusterIdFieldNumber = 1; + inline const ::std::string& cluster_id() const; + inline void set_cluster_id(const ::std::string& value); + inline void set_cluster_id(const char* value); + inline void set_cluster_id(const char* value, size_t size); + inline ::std::string* mutable_cluster_id(); + inline ::std::string* release_cluster_id(); + inline void set_allocated_cluster_id(::std::string* cluster_id); + + // @@protoc_insertion_point(class_scope:hbase.pb.ClusterId) + private: + inline void set_has_cluster_id(); + inline void clear_has_cluster_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* cluster_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterId_2eproto(); + friend void protobuf_AssignDesc_ClusterId_2eproto(); + friend void protobuf_ShutdownFile_ClusterId_2eproto(); + + void InitAsDefaultInstance(); + static ClusterId* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// ClusterId + +// required string cluster_id = 1; +inline bool ClusterId::has_cluster_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ClusterId::set_has_cluster_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void ClusterId::clear_has_cluster_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ClusterId::clear_cluster_id() { + if (cluster_id_ != &::google::protobuf::internal::kEmptyString) { + cluster_id_->clear(); + } + clear_has_cluster_id(); +} +inline const ::std::string& ClusterId::cluster_id() const { + return *cluster_id_; +} +inline void ClusterId::set_cluster_id(const ::std::string& value) { + set_has_cluster_id(); + if (cluster_id_ == &::google::protobuf::internal::kEmptyString) { + cluster_id_ = new ::std::string; + } + cluster_id_->assign(value); +} +inline void ClusterId::set_cluster_id(const char* value) { + set_has_cluster_id(); + if (cluster_id_ == &::google::protobuf::internal::kEmptyString) { + cluster_id_ = new ::std::string; + } + cluster_id_->assign(value); +} +inline void ClusterId::set_cluster_id(const char* value, size_t size) { + set_has_cluster_id(); + if (cluster_id_ == &::google::protobuf::internal::kEmptyString) { + cluster_id_ = new ::std::string; + } + cluster_id_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ClusterId::mutable_cluster_id() { + set_has_cluster_id(); + if (cluster_id_ == &::google::protobuf::internal::kEmptyString) { + cluster_id_ = new ::std::string; + } + return cluster_id_; +} +inline ::std::string* ClusterId::release_cluster_id() { + clear_has_cluster_id(); + if (cluster_id_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = cluster_id_; + cluster_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ClusterId::set_allocated_cluster_id(::std::string* cluster_id) { + if (cluster_id_ != &::google::protobuf::internal::kEmptyString) { + delete cluster_id_; + } + if (cluster_id) { + set_has_cluster_id(); + cluster_id_ = cluster_id; + } else { + clear_has_cluster_id(); + cluster_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_ClusterId_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/ClusterStatus.pb.cc b/hbase-native-client/src/rpc/generated/ClusterStatus.pb.cc new file mode 100644 index 0000000..28b34a5 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/ClusterStatus.pb.cc @@ -0,0 +1,4610 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClusterStatus.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "ClusterStatus.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* RegionState_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionState_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* RegionState_State_descriptor_ = NULL; +const ::google::protobuf::Descriptor* RegionInTransition_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionInTransition_reflection_ = NULL; +const ::google::protobuf::Descriptor* StoreSequenceId_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StoreSequenceId_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionStoreSequenceIds_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionStoreSequenceIds_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionLoad_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionLoad_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReplicationLoadSink_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReplicationLoadSink_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReplicationLoadSource_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReplicationLoadSource_reflection_ = NULL; +const ::google::protobuf::Descriptor* ServerLoad_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ServerLoad_reflection_ = NULL; +const ::google::protobuf::Descriptor* LiveServerInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + LiveServerInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* ClusterStatus_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ClusterStatus_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_ClusterStatus_2eproto() { + protobuf_AddDesc_ClusterStatus_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "ClusterStatus.proto"); + GOOGLE_CHECK(file != NULL); + RegionState_descriptor_ = file->message_type(0); + static const int RegionState_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionState, region_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionState, state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionState, stamp_), + }; + RegionState_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionState_descriptor_, + RegionState::default_instance_, + RegionState_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionState, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionState, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionState)); + RegionState_State_descriptor_ = RegionState_descriptor_->enum_type(0); + RegionInTransition_descriptor_ = file->message_type(1); + static const int RegionInTransition_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInTransition, spec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInTransition, region_state_), + }; + RegionInTransition_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionInTransition_descriptor_, + RegionInTransition::default_instance_, + RegionInTransition_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInTransition, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInTransition, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionInTransition)); + StoreSequenceId_descriptor_ = file->message_type(2); + static const int StoreSequenceId_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreSequenceId, family_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreSequenceId, sequence_id_), + }; + StoreSequenceId_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StoreSequenceId_descriptor_, + StoreSequenceId::default_instance_, + StoreSequenceId_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreSequenceId, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreSequenceId, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StoreSequenceId)); + RegionStoreSequenceIds_descriptor_ = file->message_type(3); + static const int RegionStoreSequenceIds_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStoreSequenceIds, last_flushed_sequence_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStoreSequenceIds, store_sequence_id_), + }; + RegionStoreSequenceIds_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionStoreSequenceIds_descriptor_, + RegionStoreSequenceIds::default_instance_, + RegionStoreSequenceIds_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStoreSequenceIds, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStoreSequenceIds, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionStoreSequenceIds)); + RegionLoad_descriptor_ = file->message_type(4); + static const int RegionLoad_offsets_[19] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, region_specifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, stores_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, storefiles_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, store_uncompressed_size_mb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, storefile_size_mb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, memstore_size_mb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, storefile_index_size_mb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, read_requests_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, write_requests_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, total_compacting_kvs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, current_compacted_kvs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, root_index_size_kb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, total_static_index_size_kb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, total_static_bloom_size_kb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, complete_sequence_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, data_locality_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, last_major_compaction_ts_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, store_complete_sequence_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, filtered_read_requests_count_), + }; + RegionLoad_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionLoad_descriptor_, + RegionLoad::default_instance_, + RegionLoad_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionLoad, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionLoad)); + ReplicationLoadSink_descriptor_ = file->message_type(5); + static const int ReplicationLoadSink_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSink, ageoflastappliedop_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSink, timestampsoflastappliedop_), + }; + ReplicationLoadSink_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReplicationLoadSink_descriptor_, + ReplicationLoadSink::default_instance_, + ReplicationLoadSink_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSink, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSink, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReplicationLoadSink)); + ReplicationLoadSource_descriptor_ = file->message_type(6); + static const int ReplicationLoadSource_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSource, peerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSource, ageoflastshippedop_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSource, sizeoflogqueue_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSource, timestampoflastshippedop_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSource, replicationlag_), + }; + ReplicationLoadSource_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReplicationLoadSource_descriptor_, + ReplicationLoadSource::default_instance_, + ReplicationLoadSource_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSource, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLoadSource, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReplicationLoadSource)); + ServerLoad_descriptor_ = file->message_type(7); + static const int ServerLoad_offsets_[11] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, number_of_requests_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, total_number_of_requests_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, used_heap_mb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, max_heap_mb_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, region_loads_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, coprocessors_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, report_start_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, report_end_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, info_server_port_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, replloadsource_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, replloadsink_), + }; + ServerLoad_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ServerLoad_descriptor_, + ServerLoad::default_instance_, + ServerLoad_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerLoad, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ServerLoad)); + LiveServerInfo_descriptor_ = file->message_type(8); + static const int LiveServerInfo_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LiveServerInfo, server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LiveServerInfo, server_load_), + }; + LiveServerInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + LiveServerInfo_descriptor_, + LiveServerInfo::default_instance_, + LiveServerInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LiveServerInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LiveServerInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(LiveServerInfo)); + ClusterStatus_descriptor_ = file->message_type(9); + static const int ClusterStatus_offsets_[9] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, hbase_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, live_servers_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, dead_servers_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, regions_in_transition_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, cluster_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, master_coprocessors_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, master_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, backup_masters_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, balancer_on_), + }; + ClusterStatus_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ClusterStatus_descriptor_, + ClusterStatus::default_instance_, + ClusterStatus_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterStatus, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ClusterStatus)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_ClusterStatus_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionState_descriptor_, &RegionState::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionInTransition_descriptor_, &RegionInTransition::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StoreSequenceId_descriptor_, &StoreSequenceId::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionStoreSequenceIds_descriptor_, &RegionStoreSequenceIds::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionLoad_descriptor_, &RegionLoad::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReplicationLoadSink_descriptor_, &ReplicationLoadSink::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReplicationLoadSource_descriptor_, &ReplicationLoadSource::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ServerLoad_descriptor_, &ServerLoad::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + LiveServerInfo_descriptor_, &LiveServerInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ClusterStatus_descriptor_, &ClusterStatus::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_ClusterStatus_2eproto() { + delete RegionState::default_instance_; + delete RegionState_reflection_; + delete RegionInTransition::default_instance_; + delete RegionInTransition_reflection_; + delete StoreSequenceId::default_instance_; + delete StoreSequenceId_reflection_; + delete RegionStoreSequenceIds::default_instance_; + delete RegionStoreSequenceIds_reflection_; + delete RegionLoad::default_instance_; + delete RegionLoad_reflection_; + delete ReplicationLoadSink::default_instance_; + delete ReplicationLoadSink_reflection_; + delete ReplicationLoadSource::default_instance_; + delete ReplicationLoadSource_reflection_; + delete ServerLoad::default_instance_; + delete ServerLoad_reflection_; + delete LiveServerInfo::default_instance_; + delete LiveServerInfo_reflection_; + delete ClusterStatus::default_instance_; + delete ClusterStatus_reflection_; +} + +void protobuf_AddDesc_ClusterStatus_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_ClusterId_2eproto(); + ::hbase::pb::protobuf_AddDesc_FS_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\023ClusterStatus.proto\022\010hbase.pb\032\013HBase.p" + "roto\032\017ClusterId.proto\032\010FS.proto\"\331\002\n\013Regi" + "onState\022)\n\013region_info\030\001 \002(\0132\024.hbase.pb." + "RegionInfo\022*\n\005state\030\002 \002(\0162\033.hbase.pb.Reg" + "ionState.State\022\r\n\005stamp\030\003 \001(\004\"\343\001\n\005State\022" + "\013\n\007OFFLINE\020\000\022\020\n\014PENDING_OPEN\020\001\022\013\n\007OPENIN" + "G\020\002\022\010\n\004OPEN\020\003\022\021\n\rPENDING_CLOSE\020\004\022\013\n\007CLOS" + "ING\020\005\022\n\n\006CLOSED\020\006\022\r\n\tSPLITTING\020\007\022\t\n\005SPLI" + "T\020\010\022\017\n\013FAILED_OPEN\020\t\022\020\n\014FAILED_CLOSE\020\n\022\013" + "\n\007MERGING\020\013\022\n\n\006MERGED\020\014\022\021\n\rSPLITTING_NEW" + "\020\r\022\017\n\013MERGING_NEW\020\016\"j\n\022RegionInTransitio" + "n\022\'\n\004spec\030\001 \002(\0132\031.hbase.pb.RegionSpecifi" + "er\022+\n\014region_state\030\002 \002(\0132\025.hbase.pb.Regi" + "onState\";\n\017StoreSequenceId\022\023\n\013family_nam" + "e\030\001 \002(\014\022\023\n\013sequence_id\030\002 \002(\004\"p\n\026RegionSt" + "oreSequenceIds\022 \n\030last_flushed_sequence_" + "id\030\001 \002(\004\0224\n\021store_sequence_id\030\002 \003(\0132\031.hb" + "ase.pb.StoreSequenceId\"\372\004\n\nRegionLoad\0223\n" + "\020region_specifier\030\001 \002(\0132\031.hbase.pb.Regio" + "nSpecifier\022\016\n\006stores\030\002 \001(\r\022\022\n\nstorefiles" + "\030\003 \001(\r\022\"\n\032store_uncompressed_size_MB\030\004 \001" + "(\r\022\031\n\021storefile_size_MB\030\005 \001(\r\022\030\n\020memstor" + "e_size_MB\030\006 \001(\r\022\037\n\027storefile_index_size_" + "MB\030\007 \001(\r\022\033\n\023read_requests_count\030\010 \001(\004\022\034\n" + "\024write_requests_count\030\t \001(\004\022\034\n\024total_com" + "pacting_KVs\030\n \001(\004\022\035\n\025current_compacted_K" + "Vs\030\013 \001(\004\022\032\n\022root_index_size_KB\030\014 \001(\r\022\"\n\032" + "total_static_index_size_KB\030\r \001(\r\022\"\n\032tota" + "l_static_bloom_size_KB\030\016 \001(\r\022\034\n\024complete" + "_sequence_id\030\017 \001(\004\022\025\n\rdata_locality\030\020 \001(" + "\002\022#\n\030last_major_compaction_ts\030\021 \001(\004:\0010\022=" + "\n\032store_complete_sequence_id\030\022 \003(\0132\031.hba" + "se.pb.StoreSequenceId\022$\n\034filtered_read_r" + "equests_count\030\023 \001(\004\"T\n\023ReplicationLoadSi" + "nk\022\032\n\022ageOfLastAppliedOp\030\001 \002(\004\022!\n\031timeSt" + "ampsOfLastAppliedOp\030\002 \002(\004\"\225\001\n\025Replicatio" + "nLoadSource\022\016\n\006peerID\030\001 \002(\t\022\032\n\022ageOfLast" + "ShippedOp\030\002 \002(\004\022\026\n\016sizeOfLogQueue\030\003 \002(\r\022" + " \n\030timeStampOfLastShippedOp\030\004 \002(\004\022\026\n\016rep" + "licationLag\030\005 \002(\004\"\212\003\n\nServerLoad\022\032\n\022numb" + "er_of_requests\030\001 \001(\004\022 \n\030total_number_of_" + "requests\030\002 \001(\004\022\024\n\014used_heap_MB\030\003 \001(\r\022\023\n\013" + "max_heap_MB\030\004 \001(\r\022*\n\014region_loads\030\005 \003(\0132" + "\024.hbase.pb.RegionLoad\022+\n\014coprocessors\030\006 " + "\003(\0132\025.hbase.pb.Coprocessor\022\031\n\021report_sta" + "rt_time\030\007 \001(\004\022\027\n\017report_end_time\030\010 \001(\004\022\030" + "\n\020info_server_port\030\t \001(\r\0227\n\016replLoadSour" + "ce\030\n \003(\0132\037.hbase.pb.ReplicationLoadSourc" + "e\0223\n\014replLoadSink\030\013 \001(\0132\035.hbase.pb.Repli" + "cationLoadSink\"a\n\016LiveServerInfo\022$\n\006serv" + "er\030\001 \002(\0132\024.hbase.pb.ServerName\022)\n\013server" + "_load\030\002 \002(\0132\024.hbase.pb.ServerLoad\"\250\003\n\rCl" + "usterStatus\0228\n\rhbase_version\030\001 \001(\0132!.hba" + "se.pb.HBaseVersionFileContent\022.\n\014live_se" + "rvers\030\002 \003(\0132\030.hbase.pb.LiveServerInfo\022*\n" + "\014dead_servers\030\003 \003(\0132\024.hbase.pb.ServerNam" + "e\022;\n\025regions_in_transition\030\004 \003(\0132\034.hbase" + ".pb.RegionInTransition\022\'\n\ncluster_id\030\005 \001" + "(\0132\023.hbase.pb.ClusterId\0222\n\023master_coproc" + "essors\030\006 \003(\0132\025.hbase.pb.Coprocessor\022$\n\006m" + "aster\030\007 \001(\0132\024.hbase.pb.ServerName\022,\n\016bac" + "kup_masters\030\010 \003(\0132\024.hbase.pb.ServerName\022" + "\023\n\013balancer_on\030\t \001(\010BF\n*org.apache.hadoo" + "p.hbase.protobuf.generatedB\023ClusterStatu" + "sProtosH\001\240\001\001", 2572); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "ClusterStatus.proto", &protobuf_RegisterTypes); + RegionState::default_instance_ = new RegionState(); + RegionInTransition::default_instance_ = new RegionInTransition(); + StoreSequenceId::default_instance_ = new StoreSequenceId(); + RegionStoreSequenceIds::default_instance_ = new RegionStoreSequenceIds(); + RegionLoad::default_instance_ = new RegionLoad(); + ReplicationLoadSink::default_instance_ = new ReplicationLoadSink(); + ReplicationLoadSource::default_instance_ = new ReplicationLoadSource(); + ServerLoad::default_instance_ = new ServerLoad(); + LiveServerInfo::default_instance_ = new LiveServerInfo(); + ClusterStatus::default_instance_ = new ClusterStatus(); + RegionState::default_instance_->InitAsDefaultInstance(); + RegionInTransition::default_instance_->InitAsDefaultInstance(); + StoreSequenceId::default_instance_->InitAsDefaultInstance(); + RegionStoreSequenceIds::default_instance_->InitAsDefaultInstance(); + RegionLoad::default_instance_->InitAsDefaultInstance(); + ReplicationLoadSink::default_instance_->InitAsDefaultInstance(); + ReplicationLoadSource::default_instance_->InitAsDefaultInstance(); + ServerLoad::default_instance_->InitAsDefaultInstance(); + LiveServerInfo::default_instance_->InitAsDefaultInstance(); + ClusterStatus::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ClusterStatus_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_ClusterStatus_2eproto { + StaticDescriptorInitializer_ClusterStatus_2eproto() { + protobuf_AddDesc_ClusterStatus_2eproto(); + } +} static_descriptor_initializer_ClusterStatus_2eproto_; + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* RegionState_State_descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionState_State_descriptor_; +} +bool RegionState_State_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const RegionState_State RegionState::OFFLINE; +const RegionState_State RegionState::PENDING_OPEN; +const RegionState_State RegionState::OPENING; +const RegionState_State RegionState::OPEN; +const RegionState_State RegionState::PENDING_CLOSE; +const RegionState_State RegionState::CLOSING; +const RegionState_State RegionState::CLOSED; +const RegionState_State RegionState::SPLITTING; +const RegionState_State RegionState::SPLIT; +const RegionState_State RegionState::FAILED_OPEN; +const RegionState_State RegionState::FAILED_CLOSE; +const RegionState_State RegionState::MERGING; +const RegionState_State RegionState::MERGED; +const RegionState_State RegionState::SPLITTING_NEW; +const RegionState_State RegionState::MERGING_NEW; +const RegionState_State RegionState::State_MIN; +const RegionState_State RegionState::State_MAX; +const int RegionState::State_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int RegionState::kRegionInfoFieldNumber; +const int RegionState::kStateFieldNumber; +const int RegionState::kStampFieldNumber; +#endif // !_MSC_VER + +RegionState::RegionState() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionState::InitAsDefaultInstance() { + region_info_ = const_cast< ::hbase::pb::RegionInfo*>(&::hbase::pb::RegionInfo::default_instance()); +} + +RegionState::RegionState(const RegionState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionState::SharedCtor() { + _cached_size_ = 0; + region_info_ = NULL; + state_ = 0; + stamp_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionState::~RegionState() { + SharedDtor(); +} + +void RegionState::SharedDtor() { + if (this != default_instance_) { + delete region_info_; + } +} + +void RegionState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionState_descriptor_; +} + +const RegionState& RegionState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +RegionState* RegionState::default_instance_ = NULL; + +RegionState* RegionState::New() const { + return new RegionState; +} + +void RegionState::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region_info()) { + if (region_info_ != NULL) region_info_->::hbase::pb::RegionInfo::Clear(); + } + state_ = 0; + stamp_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionInfo region_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_state; + break; + } + + // required .hbase.pb.RegionState.State state = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_state: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::RegionState_State_IsValid(value)) { + set_state(static_cast< ::hbase::pb::RegionState_State >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_stamp; + break; + } + + // optional uint64 stamp = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_stamp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &stamp_))); + set_has_stamp(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionInfo region_info = 1; + if (has_region_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region_info(), output); + } + + // required .hbase.pb.RegionState.State state = 2; + if (has_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->state(), output); + } + + // optional uint64 stamp = 3; + if (has_stamp()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->stamp(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionState::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionInfo region_info = 1; + if (has_region_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region_info(), target); + } + + // required .hbase.pb.RegionState.State state = 2; + if (has_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->state(), target); + } + + // optional uint64 stamp = 3; + if (has_stamp()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->stamp(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionState::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionInfo region_info = 1; + if (has_region_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_info()); + } + + // required .hbase.pb.RegionState.State state = 2; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + // optional uint64 stamp = 3; + if (has_stamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->stamp()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionState::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionState* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionState::MergeFrom(const RegionState& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region_info()) { + mutable_region_info()->::hbase::pb::RegionInfo::MergeFrom(from.region_info()); + } + if (from.has_state()) { + set_state(from.state()); + } + if (from.has_stamp()) { + set_stamp(from.stamp()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionState::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionState::CopyFrom(const RegionState& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionState::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_region_info()) { + if (!this->region_info().IsInitialized()) return false; + } + return true; +} + +void RegionState::Swap(RegionState* other) { + if (other != this) { + std::swap(region_info_, other->region_info_); + std::swap(state_, other->state_); + std::swap(stamp_, other->stamp_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionState::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionState_descriptor_; + metadata.reflection = RegionState_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionInTransition::kSpecFieldNumber; +const int RegionInTransition::kRegionStateFieldNumber; +#endif // !_MSC_VER + +RegionInTransition::RegionInTransition() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionInTransition::InitAsDefaultInstance() { + spec_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + region_state_ = const_cast< ::hbase::pb::RegionState*>(&::hbase::pb::RegionState::default_instance()); +} + +RegionInTransition::RegionInTransition(const RegionInTransition& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionInTransition::SharedCtor() { + _cached_size_ = 0; + spec_ = NULL; + region_state_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionInTransition::~RegionInTransition() { + SharedDtor(); +} + +void RegionInTransition::SharedDtor() { + if (this != default_instance_) { + delete spec_; + delete region_state_; + } +} + +void RegionInTransition::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionInTransition::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionInTransition_descriptor_; +} + +const RegionInTransition& RegionInTransition::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +RegionInTransition* RegionInTransition::default_instance_ = NULL; + +RegionInTransition* RegionInTransition::New() const { + return new RegionInTransition; +} + +void RegionInTransition::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_spec()) { + if (spec_ != NULL) spec_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_region_state()) { + if (region_state_ != NULL) region_state_->::hbase::pb::RegionState::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionInTransition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier spec = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_spec())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_region_state; + break; + } + + // required .hbase.pb.RegionState region_state = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_state: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_state())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionInTransition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier spec = 1; + if (has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->spec(), output); + } + + // required .hbase.pb.RegionState region_state = 2; + if (has_region_state()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->region_state(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionInTransition::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier spec = 1; + if (has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->spec(), target); + } + + // required .hbase.pb.RegionState region_state = 2; + if (has_region_state()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->region_state(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionInTransition::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier spec = 1; + if (has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->spec()); + } + + // required .hbase.pb.RegionState region_state = 2; + if (has_region_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_state()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionInTransition::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionInTransition* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionInTransition::MergeFrom(const RegionInTransition& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_spec()) { + mutable_spec()->::hbase::pb::RegionSpecifier::MergeFrom(from.spec()); + } + if (from.has_region_state()) { + mutable_region_state()->::hbase::pb::RegionState::MergeFrom(from.region_state()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionInTransition::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionInTransition::CopyFrom(const RegionInTransition& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionInTransition::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_spec()) { + if (!this->spec().IsInitialized()) return false; + } + if (has_region_state()) { + if (!this->region_state().IsInitialized()) return false; + } + return true; +} + +void RegionInTransition::Swap(RegionInTransition* other) { + if (other != this) { + std::swap(spec_, other->spec_); + std::swap(region_state_, other->region_state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionInTransition::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionInTransition_descriptor_; + metadata.reflection = RegionInTransition_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int StoreSequenceId::kFamilyNameFieldNumber; +const int StoreSequenceId::kSequenceIdFieldNumber; +#endif // !_MSC_VER + +StoreSequenceId::StoreSequenceId() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StoreSequenceId::InitAsDefaultInstance() { +} + +StoreSequenceId::StoreSequenceId(const StoreSequenceId& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StoreSequenceId::SharedCtor() { + _cached_size_ = 0; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + sequence_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StoreSequenceId::~StoreSequenceId() { + SharedDtor(); +} + +void StoreSequenceId::SharedDtor() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (this != default_instance_) { + } +} + +void StoreSequenceId::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StoreSequenceId::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StoreSequenceId_descriptor_; +} + +const StoreSequenceId& StoreSequenceId::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +StoreSequenceId* StoreSequenceId::default_instance_ = NULL; + +StoreSequenceId* StoreSequenceId::New() const { + return new StoreSequenceId; +} + +void StoreSequenceId::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_family_name()) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + } + sequence_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StoreSequenceId::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes family_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_sequence_id; + break; + } + + // required uint64 sequence_id = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_sequence_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &sequence_id_))); + set_has_sequence_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StoreSequenceId::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes family_name = 1; + if (has_family_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->family_name(), output); + } + + // required uint64 sequence_id = 2; + if (has_sequence_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->sequence_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StoreSequenceId::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes family_name = 1; + if (has_family_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->family_name(), target); + } + + // required uint64 sequence_id = 2; + if (has_sequence_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->sequence_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StoreSequenceId::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes family_name = 1; + if (has_family_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family_name()); + } + + // required uint64 sequence_id = 2; + if (has_sequence_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->sequence_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StoreSequenceId::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StoreSequenceId* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StoreSequenceId::MergeFrom(const StoreSequenceId& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_family_name()) { + set_family_name(from.family_name()); + } + if (from.has_sequence_id()) { + set_sequence_id(from.sequence_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StoreSequenceId::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StoreSequenceId::CopyFrom(const StoreSequenceId& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StoreSequenceId::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void StoreSequenceId::Swap(StoreSequenceId* other) { + if (other != this) { + std::swap(family_name_, other->family_name_); + std::swap(sequence_id_, other->sequence_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StoreSequenceId::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StoreSequenceId_descriptor_; + metadata.reflection = StoreSequenceId_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionStoreSequenceIds::kLastFlushedSequenceIdFieldNumber; +const int RegionStoreSequenceIds::kStoreSequenceIdFieldNumber; +#endif // !_MSC_VER + +RegionStoreSequenceIds::RegionStoreSequenceIds() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionStoreSequenceIds::InitAsDefaultInstance() { +} + +RegionStoreSequenceIds::RegionStoreSequenceIds(const RegionStoreSequenceIds& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionStoreSequenceIds::SharedCtor() { + _cached_size_ = 0; + last_flushed_sequence_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionStoreSequenceIds::~RegionStoreSequenceIds() { + SharedDtor(); +} + +void RegionStoreSequenceIds::SharedDtor() { + if (this != default_instance_) { + } +} + +void RegionStoreSequenceIds::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionStoreSequenceIds::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionStoreSequenceIds_descriptor_; +} + +const RegionStoreSequenceIds& RegionStoreSequenceIds::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +RegionStoreSequenceIds* RegionStoreSequenceIds::default_instance_ = NULL; + +RegionStoreSequenceIds* RegionStoreSequenceIds::New() const { + return new RegionStoreSequenceIds; +} + +void RegionStoreSequenceIds::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + last_flushed_sequence_id_ = GOOGLE_ULONGLONG(0); + } + store_sequence_id_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionStoreSequenceIds::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 last_flushed_sequence_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &last_flushed_sequence_id_))); + set_has_last_flushed_sequence_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_store_sequence_id; + break; + } + + // repeated .hbase.pb.StoreSequenceId store_sequence_id = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_sequence_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_store_sequence_id())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_store_sequence_id; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionStoreSequenceIds::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 last_flushed_sequence_id = 1; + if (has_last_flushed_sequence_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->last_flushed_sequence_id(), output); + } + + // repeated .hbase.pb.StoreSequenceId store_sequence_id = 2; + for (int i = 0; i < this->store_sequence_id_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->store_sequence_id(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionStoreSequenceIds::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 last_flushed_sequence_id = 1; + if (has_last_flushed_sequence_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->last_flushed_sequence_id(), target); + } + + // repeated .hbase.pb.StoreSequenceId store_sequence_id = 2; + for (int i = 0; i < this->store_sequence_id_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->store_sequence_id(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionStoreSequenceIds::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 last_flushed_sequence_id = 1; + if (has_last_flushed_sequence_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->last_flushed_sequence_id()); + } + + } + // repeated .hbase.pb.StoreSequenceId store_sequence_id = 2; + total_size += 1 * this->store_sequence_id_size(); + for (int i = 0; i < this->store_sequence_id_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->store_sequence_id(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionStoreSequenceIds::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionStoreSequenceIds* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionStoreSequenceIds::MergeFrom(const RegionStoreSequenceIds& from) { + GOOGLE_CHECK_NE(&from, this); + store_sequence_id_.MergeFrom(from.store_sequence_id_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_last_flushed_sequence_id()) { + set_last_flushed_sequence_id(from.last_flushed_sequence_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionStoreSequenceIds::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionStoreSequenceIds::CopyFrom(const RegionStoreSequenceIds& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionStoreSequenceIds::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < store_sequence_id_size(); i++) { + if (!this->store_sequence_id(i).IsInitialized()) return false; + } + return true; +} + +void RegionStoreSequenceIds::Swap(RegionStoreSequenceIds* other) { + if (other != this) { + std::swap(last_flushed_sequence_id_, other->last_flushed_sequence_id_); + store_sequence_id_.Swap(&other->store_sequence_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionStoreSequenceIds::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionStoreSequenceIds_descriptor_; + metadata.reflection = RegionStoreSequenceIds_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionLoad::kRegionSpecifierFieldNumber; +const int RegionLoad::kStoresFieldNumber; +const int RegionLoad::kStorefilesFieldNumber; +const int RegionLoad::kStoreUncompressedSizeMBFieldNumber; +const int RegionLoad::kStorefileSizeMBFieldNumber; +const int RegionLoad::kMemstoreSizeMBFieldNumber; +const int RegionLoad::kStorefileIndexSizeMBFieldNumber; +const int RegionLoad::kReadRequestsCountFieldNumber; +const int RegionLoad::kWriteRequestsCountFieldNumber; +const int RegionLoad::kTotalCompactingKVsFieldNumber; +const int RegionLoad::kCurrentCompactedKVsFieldNumber; +const int RegionLoad::kRootIndexSizeKBFieldNumber; +const int RegionLoad::kTotalStaticIndexSizeKBFieldNumber; +const int RegionLoad::kTotalStaticBloomSizeKBFieldNumber; +const int RegionLoad::kCompleteSequenceIdFieldNumber; +const int RegionLoad::kDataLocalityFieldNumber; +const int RegionLoad::kLastMajorCompactionTsFieldNumber; +const int RegionLoad::kStoreCompleteSequenceIdFieldNumber; +const int RegionLoad::kFilteredReadRequestsCountFieldNumber; +#endif // !_MSC_VER + +RegionLoad::RegionLoad() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionLoad::InitAsDefaultInstance() { + region_specifier_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +RegionLoad::RegionLoad(const RegionLoad& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionLoad::SharedCtor() { + _cached_size_ = 0; + region_specifier_ = NULL; + stores_ = 0u; + storefiles_ = 0u; + store_uncompressed_size_mb_ = 0u; + storefile_size_mb_ = 0u; + memstore_size_mb_ = 0u; + storefile_index_size_mb_ = 0u; + read_requests_count_ = GOOGLE_ULONGLONG(0); + write_requests_count_ = GOOGLE_ULONGLONG(0); + total_compacting_kvs_ = GOOGLE_ULONGLONG(0); + current_compacted_kvs_ = GOOGLE_ULONGLONG(0); + root_index_size_kb_ = 0u; + total_static_index_size_kb_ = 0u; + total_static_bloom_size_kb_ = 0u; + complete_sequence_id_ = GOOGLE_ULONGLONG(0); + data_locality_ = 0; + last_major_compaction_ts_ = GOOGLE_ULONGLONG(0); + filtered_read_requests_count_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionLoad::~RegionLoad() { + SharedDtor(); +} + +void RegionLoad::SharedDtor() { + if (this != default_instance_) { + delete region_specifier_; + } +} + +void RegionLoad::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionLoad::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionLoad_descriptor_; +} + +const RegionLoad& RegionLoad::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +RegionLoad* RegionLoad::default_instance_ = NULL; + +RegionLoad* RegionLoad::New() const { + return new RegionLoad; +} + +void RegionLoad::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region_specifier()) { + if (region_specifier_ != NULL) region_specifier_->::hbase::pb::RegionSpecifier::Clear(); + } + stores_ = 0u; + storefiles_ = 0u; + store_uncompressed_size_mb_ = 0u; + storefile_size_mb_ = 0u; + memstore_size_mb_ = 0u; + storefile_index_size_mb_ = 0u; + read_requests_count_ = GOOGLE_ULONGLONG(0); + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + write_requests_count_ = GOOGLE_ULONGLONG(0); + total_compacting_kvs_ = GOOGLE_ULONGLONG(0); + current_compacted_kvs_ = GOOGLE_ULONGLONG(0); + root_index_size_kb_ = 0u; + total_static_index_size_kb_ = 0u; + total_static_bloom_size_kb_ = 0u; + complete_sequence_id_ = GOOGLE_ULONGLONG(0); + data_locality_ = 0; + } + if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { + last_major_compaction_ts_ = GOOGLE_ULONGLONG(0); + filtered_read_requests_count_ = GOOGLE_ULONGLONG(0); + } + store_complete_sequence_id_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionLoad::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region_specifier = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_specifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_stores; + break; + } + + // optional uint32 stores = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_stores: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &stores_))); + set_has_stores(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_storefiles; + break; + } + + // optional uint32 storefiles = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_storefiles: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &storefiles_))); + set_has_storefiles(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_store_uncompressed_size_MB; + break; + } + + // optional uint32 store_uncompressed_size_MB = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_store_uncompressed_size_MB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &store_uncompressed_size_mb_))); + set_has_store_uncompressed_size_mb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_storefile_size_MB; + break; + } + + // optional uint32 storefile_size_MB = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_storefile_size_MB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &storefile_size_mb_))); + set_has_storefile_size_mb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_memstore_size_MB; + break; + } + + // optional uint32 memstore_size_MB = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_memstore_size_MB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &memstore_size_mb_))); + set_has_memstore_size_mb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_storefile_index_size_MB; + break; + } + + // optional uint32 storefile_index_size_MB = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_storefile_index_size_MB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &storefile_index_size_mb_))); + set_has_storefile_index_size_mb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_read_requests_count; + break; + } + + // optional uint64 read_requests_count = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_read_requests_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &read_requests_count_))); + set_has_read_requests_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_write_requests_count; + break; + } + + // optional uint64 write_requests_count = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_write_requests_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &write_requests_count_))); + set_has_write_requests_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(80)) goto parse_total_compacting_KVs; + break; + } + + // optional uint64 total_compacting_KVs = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_total_compacting_KVs: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &total_compacting_kvs_))); + set_has_total_compacting_kvs(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(88)) goto parse_current_compacted_KVs; + break; + } + + // optional uint64 current_compacted_KVs = 11; + case 11: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_current_compacted_KVs: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ¤t_compacted_kvs_))); + set_has_current_compacted_kvs(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(96)) goto parse_root_index_size_KB; + break; + } + + // optional uint32 root_index_size_KB = 12; + case 12: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_root_index_size_KB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &root_index_size_kb_))); + set_has_root_index_size_kb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(104)) goto parse_total_static_index_size_KB; + break; + } + + // optional uint32 total_static_index_size_KB = 13; + case 13: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_total_static_index_size_KB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &total_static_index_size_kb_))); + set_has_total_static_index_size_kb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(112)) goto parse_total_static_bloom_size_KB; + break; + } + + // optional uint32 total_static_bloom_size_KB = 14; + case 14: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_total_static_bloom_size_KB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &total_static_bloom_size_kb_))); + set_has_total_static_bloom_size_kb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(120)) goto parse_complete_sequence_id; + break; + } + + // optional uint64 complete_sequence_id = 15; + case 15: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_complete_sequence_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &complete_sequence_id_))); + set_has_complete_sequence_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(133)) goto parse_data_locality; + break; + } + + // optional float data_locality = 16; + case 16: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { + parse_data_locality: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &data_locality_))); + set_has_data_locality(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(136)) goto parse_last_major_compaction_ts; + break; + } + + // optional uint64 last_major_compaction_ts = 17 [default = 0]; + case 17: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_last_major_compaction_ts: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &last_major_compaction_ts_))); + set_has_last_major_compaction_ts(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(146)) goto parse_store_complete_sequence_id; + break; + } + + // repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18; + case 18: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_complete_sequence_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_store_complete_sequence_id())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(146)) goto parse_store_complete_sequence_id; + if (input->ExpectTag(152)) goto parse_filtered_read_requests_count; + break; + } + + // optional uint64 filtered_read_requests_count = 19; + case 19: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_filtered_read_requests_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &filtered_read_requests_count_))); + set_has_filtered_read_requests_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionLoad::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region_specifier = 1; + if (has_region_specifier()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region_specifier(), output); + } + + // optional uint32 stores = 2; + if (has_stores()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->stores(), output); + } + + // optional uint32 storefiles = 3; + if (has_storefiles()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->storefiles(), output); + } + + // optional uint32 store_uncompressed_size_MB = 4; + if (has_store_uncompressed_size_mb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->store_uncompressed_size_mb(), output); + } + + // optional uint32 storefile_size_MB = 5; + if (has_storefile_size_mb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->storefile_size_mb(), output); + } + + // optional uint32 memstore_size_MB = 6; + if (has_memstore_size_mb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->memstore_size_mb(), output); + } + + // optional uint32 storefile_index_size_MB = 7; + if (has_storefile_index_size_mb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->storefile_index_size_mb(), output); + } + + // optional uint64 read_requests_count = 8; + if (has_read_requests_count()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->read_requests_count(), output); + } + + // optional uint64 write_requests_count = 9; + if (has_write_requests_count()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->write_requests_count(), output); + } + + // optional uint64 total_compacting_KVs = 10; + if (has_total_compacting_kvs()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->total_compacting_kvs(), output); + } + + // optional uint64 current_compacted_KVs = 11; + if (has_current_compacted_kvs()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->current_compacted_kvs(), output); + } + + // optional uint32 root_index_size_KB = 12; + if (has_root_index_size_kb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->root_index_size_kb(), output); + } + + // optional uint32 total_static_index_size_KB = 13; + if (has_total_static_index_size_kb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->total_static_index_size_kb(), output); + } + + // optional uint32 total_static_bloom_size_KB = 14; + if (has_total_static_bloom_size_kb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->total_static_bloom_size_kb(), output); + } + + // optional uint64 complete_sequence_id = 15; + if (has_complete_sequence_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->complete_sequence_id(), output); + } + + // optional float data_locality = 16; + if (has_data_locality()) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(16, this->data_locality(), output); + } + + // optional uint64 last_major_compaction_ts = 17 [default = 0]; + if (has_last_major_compaction_ts()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(17, this->last_major_compaction_ts(), output); + } + + // repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18; + for (int i = 0; i < this->store_complete_sequence_id_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 18, this->store_complete_sequence_id(i), output); + } + + // optional uint64 filtered_read_requests_count = 19; + if (has_filtered_read_requests_count()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(19, this->filtered_read_requests_count(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionLoad::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region_specifier = 1; + if (has_region_specifier()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region_specifier(), target); + } + + // optional uint32 stores = 2; + if (has_stores()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->stores(), target); + } + + // optional uint32 storefiles = 3; + if (has_storefiles()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->storefiles(), target); + } + + // optional uint32 store_uncompressed_size_MB = 4; + if (has_store_uncompressed_size_mb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->store_uncompressed_size_mb(), target); + } + + // optional uint32 storefile_size_MB = 5; + if (has_storefile_size_mb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->storefile_size_mb(), target); + } + + // optional uint32 memstore_size_MB = 6; + if (has_memstore_size_mb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->memstore_size_mb(), target); + } + + // optional uint32 storefile_index_size_MB = 7; + if (has_storefile_index_size_mb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->storefile_index_size_mb(), target); + } + + // optional uint64 read_requests_count = 8; + if (has_read_requests_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->read_requests_count(), target); + } + + // optional uint64 write_requests_count = 9; + if (has_write_requests_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->write_requests_count(), target); + } + + // optional uint64 total_compacting_KVs = 10; + if (has_total_compacting_kvs()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->total_compacting_kvs(), target); + } + + // optional uint64 current_compacted_KVs = 11; + if (has_current_compacted_kvs()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->current_compacted_kvs(), target); + } + + // optional uint32 root_index_size_KB = 12; + if (has_root_index_size_kb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->root_index_size_kb(), target); + } + + // optional uint32 total_static_index_size_KB = 13; + if (has_total_static_index_size_kb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->total_static_index_size_kb(), target); + } + + // optional uint32 total_static_bloom_size_KB = 14; + if (has_total_static_bloom_size_kb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->total_static_bloom_size_kb(), target); + } + + // optional uint64 complete_sequence_id = 15; + if (has_complete_sequence_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->complete_sequence_id(), target); + } + + // optional float data_locality = 16; + if (has_data_locality()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(16, this->data_locality(), target); + } + + // optional uint64 last_major_compaction_ts = 17 [default = 0]; + if (has_last_major_compaction_ts()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(17, this->last_major_compaction_ts(), target); + } + + // repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18; + for (int i = 0; i < this->store_complete_sequence_id_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 18, this->store_complete_sequence_id(i), target); + } + + // optional uint64 filtered_read_requests_count = 19; + if (has_filtered_read_requests_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(19, this->filtered_read_requests_count(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionLoad::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region_specifier = 1; + if (has_region_specifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_specifier()); + } + + // optional uint32 stores = 2; + if (has_stores()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->stores()); + } + + // optional uint32 storefiles = 3; + if (has_storefiles()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->storefiles()); + } + + // optional uint32 store_uncompressed_size_MB = 4; + if (has_store_uncompressed_size_mb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->store_uncompressed_size_mb()); + } + + // optional uint32 storefile_size_MB = 5; + if (has_storefile_size_mb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->storefile_size_mb()); + } + + // optional uint32 memstore_size_MB = 6; + if (has_memstore_size_mb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->memstore_size_mb()); + } + + // optional uint32 storefile_index_size_MB = 7; + if (has_storefile_index_size_mb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->storefile_index_size_mb()); + } + + // optional uint64 read_requests_count = 8; + if (has_read_requests_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->read_requests_count()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional uint64 write_requests_count = 9; + if (has_write_requests_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->write_requests_count()); + } + + // optional uint64 total_compacting_KVs = 10; + if (has_total_compacting_kvs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->total_compacting_kvs()); + } + + // optional uint64 current_compacted_KVs = 11; + if (has_current_compacted_kvs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->current_compacted_kvs()); + } + + // optional uint32 root_index_size_KB = 12; + if (has_root_index_size_kb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->root_index_size_kb()); + } + + // optional uint32 total_static_index_size_KB = 13; + if (has_total_static_index_size_kb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->total_static_index_size_kb()); + } + + // optional uint32 total_static_bloom_size_KB = 14; + if (has_total_static_bloom_size_kb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->total_static_bloom_size_kb()); + } + + // optional uint64 complete_sequence_id = 15; + if (has_complete_sequence_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->complete_sequence_id()); + } + + // optional float data_locality = 16; + if (has_data_locality()) { + total_size += 2 + 4; + } + + } + if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { + // optional uint64 last_major_compaction_ts = 17 [default = 0]; + if (has_last_major_compaction_ts()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->last_major_compaction_ts()); + } + + // optional uint64 filtered_read_requests_count = 19; + if (has_filtered_read_requests_count()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->filtered_read_requests_count()); + } + + } + // repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18; + total_size += 2 * this->store_complete_sequence_id_size(); + for (int i = 0; i < this->store_complete_sequence_id_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->store_complete_sequence_id(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionLoad::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionLoad* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionLoad::MergeFrom(const RegionLoad& from) { + GOOGLE_CHECK_NE(&from, this); + store_complete_sequence_id_.MergeFrom(from.store_complete_sequence_id_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region_specifier()) { + mutable_region_specifier()->::hbase::pb::RegionSpecifier::MergeFrom(from.region_specifier()); + } + if (from.has_stores()) { + set_stores(from.stores()); + } + if (from.has_storefiles()) { + set_storefiles(from.storefiles()); + } + if (from.has_store_uncompressed_size_mb()) { + set_store_uncompressed_size_mb(from.store_uncompressed_size_mb()); + } + if (from.has_storefile_size_mb()) { + set_storefile_size_mb(from.storefile_size_mb()); + } + if (from.has_memstore_size_mb()) { + set_memstore_size_mb(from.memstore_size_mb()); + } + if (from.has_storefile_index_size_mb()) { + set_storefile_index_size_mb(from.storefile_index_size_mb()); + } + if (from.has_read_requests_count()) { + set_read_requests_count(from.read_requests_count()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_write_requests_count()) { + set_write_requests_count(from.write_requests_count()); + } + if (from.has_total_compacting_kvs()) { + set_total_compacting_kvs(from.total_compacting_kvs()); + } + if (from.has_current_compacted_kvs()) { + set_current_compacted_kvs(from.current_compacted_kvs()); + } + if (from.has_root_index_size_kb()) { + set_root_index_size_kb(from.root_index_size_kb()); + } + if (from.has_total_static_index_size_kb()) { + set_total_static_index_size_kb(from.total_static_index_size_kb()); + } + if (from.has_total_static_bloom_size_kb()) { + set_total_static_bloom_size_kb(from.total_static_bloom_size_kb()); + } + if (from.has_complete_sequence_id()) { + set_complete_sequence_id(from.complete_sequence_id()); + } + if (from.has_data_locality()) { + set_data_locality(from.data_locality()); + } + } + if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { + if (from.has_last_major_compaction_ts()) { + set_last_major_compaction_ts(from.last_major_compaction_ts()); + } + if (from.has_filtered_read_requests_count()) { + set_filtered_read_requests_count(from.filtered_read_requests_count()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionLoad::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionLoad::CopyFrom(const RegionLoad& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionLoad::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region_specifier()) { + if (!this->region_specifier().IsInitialized()) return false; + } + for (int i = 0; i < store_complete_sequence_id_size(); i++) { + if (!this->store_complete_sequence_id(i).IsInitialized()) return false; + } + return true; +} + +void RegionLoad::Swap(RegionLoad* other) { + if (other != this) { + std::swap(region_specifier_, other->region_specifier_); + std::swap(stores_, other->stores_); + std::swap(storefiles_, other->storefiles_); + std::swap(store_uncompressed_size_mb_, other->store_uncompressed_size_mb_); + std::swap(storefile_size_mb_, other->storefile_size_mb_); + std::swap(memstore_size_mb_, other->memstore_size_mb_); + std::swap(storefile_index_size_mb_, other->storefile_index_size_mb_); + std::swap(read_requests_count_, other->read_requests_count_); + std::swap(write_requests_count_, other->write_requests_count_); + std::swap(total_compacting_kvs_, other->total_compacting_kvs_); + std::swap(current_compacted_kvs_, other->current_compacted_kvs_); + std::swap(root_index_size_kb_, other->root_index_size_kb_); + std::swap(total_static_index_size_kb_, other->total_static_index_size_kb_); + std::swap(total_static_bloom_size_kb_, other->total_static_bloom_size_kb_); + std::swap(complete_sequence_id_, other->complete_sequence_id_); + std::swap(data_locality_, other->data_locality_); + std::swap(last_major_compaction_ts_, other->last_major_compaction_ts_); + store_complete_sequence_id_.Swap(&other->store_complete_sequence_id_); + std::swap(filtered_read_requests_count_, other->filtered_read_requests_count_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionLoad::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionLoad_descriptor_; + metadata.reflection = RegionLoad_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReplicationLoadSink::kAgeOfLastAppliedOpFieldNumber; +const int ReplicationLoadSink::kTimeStampsOfLastAppliedOpFieldNumber; +#endif // !_MSC_VER + +ReplicationLoadSink::ReplicationLoadSink() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReplicationLoadSink::InitAsDefaultInstance() { +} + +ReplicationLoadSink::ReplicationLoadSink(const ReplicationLoadSink& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReplicationLoadSink::SharedCtor() { + _cached_size_ = 0; + ageoflastappliedop_ = GOOGLE_ULONGLONG(0); + timestampsoflastappliedop_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReplicationLoadSink::~ReplicationLoadSink() { + SharedDtor(); +} + +void ReplicationLoadSink::SharedDtor() { + if (this != default_instance_) { + } +} + +void ReplicationLoadSink::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReplicationLoadSink::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicationLoadSink_descriptor_; +} + +const ReplicationLoadSink& ReplicationLoadSink::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +ReplicationLoadSink* ReplicationLoadSink::default_instance_ = NULL; + +ReplicationLoadSink* ReplicationLoadSink::New() const { + return new ReplicationLoadSink; +} + +void ReplicationLoadSink::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + ageoflastappliedop_ = GOOGLE_ULONGLONG(0); + timestampsoflastappliedop_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReplicationLoadSink::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 ageOfLastAppliedOp = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &ageoflastappliedop_))); + set_has_ageoflastappliedop(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_timeStampsOfLastAppliedOp; + break; + } + + // required uint64 timeStampsOfLastAppliedOp = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_timeStampsOfLastAppliedOp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ×tampsoflastappliedop_))); + set_has_timestampsoflastappliedop(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReplicationLoadSink::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 ageOfLastAppliedOp = 1; + if (has_ageoflastappliedop()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->ageoflastappliedop(), output); + } + + // required uint64 timeStampsOfLastAppliedOp = 2; + if (has_timestampsoflastappliedop()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->timestampsoflastappliedop(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReplicationLoadSink::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 ageOfLastAppliedOp = 1; + if (has_ageoflastappliedop()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->ageoflastappliedop(), target); + } + + // required uint64 timeStampsOfLastAppliedOp = 2; + if (has_timestampsoflastappliedop()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->timestampsoflastappliedop(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReplicationLoadSink::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 ageOfLastAppliedOp = 1; + if (has_ageoflastappliedop()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->ageoflastappliedop()); + } + + // required uint64 timeStampsOfLastAppliedOp = 2; + if (has_timestampsoflastappliedop()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->timestampsoflastappliedop()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReplicationLoadSink::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReplicationLoadSink* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReplicationLoadSink::MergeFrom(const ReplicationLoadSink& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_ageoflastappliedop()) { + set_ageoflastappliedop(from.ageoflastappliedop()); + } + if (from.has_timestampsoflastappliedop()) { + set_timestampsoflastappliedop(from.timestampsoflastappliedop()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReplicationLoadSink::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReplicationLoadSink::CopyFrom(const ReplicationLoadSink& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReplicationLoadSink::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void ReplicationLoadSink::Swap(ReplicationLoadSink* other) { + if (other != this) { + std::swap(ageoflastappliedop_, other->ageoflastappliedop_); + std::swap(timestampsoflastappliedop_, other->timestampsoflastappliedop_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReplicationLoadSink::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReplicationLoadSink_descriptor_; + metadata.reflection = ReplicationLoadSink_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReplicationLoadSource::kPeerIDFieldNumber; +const int ReplicationLoadSource::kAgeOfLastShippedOpFieldNumber; +const int ReplicationLoadSource::kSizeOfLogQueueFieldNumber; +const int ReplicationLoadSource::kTimeStampOfLastShippedOpFieldNumber; +const int ReplicationLoadSource::kReplicationLagFieldNumber; +#endif // !_MSC_VER + +ReplicationLoadSource::ReplicationLoadSource() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReplicationLoadSource::InitAsDefaultInstance() { +} + +ReplicationLoadSource::ReplicationLoadSource(const ReplicationLoadSource& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReplicationLoadSource::SharedCtor() { + _cached_size_ = 0; + peerid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ageoflastshippedop_ = GOOGLE_ULONGLONG(0); + sizeoflogqueue_ = 0u; + timestampoflastshippedop_ = GOOGLE_ULONGLONG(0); + replicationlag_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReplicationLoadSource::~ReplicationLoadSource() { + SharedDtor(); +} + +void ReplicationLoadSource::SharedDtor() { + if (peerid_ != &::google::protobuf::internal::kEmptyString) { + delete peerid_; + } + if (this != default_instance_) { + } +} + +void ReplicationLoadSource::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReplicationLoadSource::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicationLoadSource_descriptor_; +} + +const ReplicationLoadSource& ReplicationLoadSource::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +ReplicationLoadSource* ReplicationLoadSource::default_instance_ = NULL; + +ReplicationLoadSource* ReplicationLoadSource::New() const { + return new ReplicationLoadSource; +} + +void ReplicationLoadSource::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_peerid()) { + if (peerid_ != &::google::protobuf::internal::kEmptyString) { + peerid_->clear(); + } + } + ageoflastshippedop_ = GOOGLE_ULONGLONG(0); + sizeoflogqueue_ = 0u; + timestampoflastshippedop_ = GOOGLE_ULONGLONG(0); + replicationlag_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReplicationLoadSource::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string peerID = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_peerid())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->peerid().data(), this->peerid().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_ageOfLastShippedOp; + break; + } + + // required uint64 ageOfLastShippedOp = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_ageOfLastShippedOp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &ageoflastshippedop_))); + set_has_ageoflastshippedop(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_sizeOfLogQueue; + break; + } + + // required uint32 sizeOfLogQueue = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_sizeOfLogQueue: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &sizeoflogqueue_))); + set_has_sizeoflogqueue(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_timeStampOfLastShippedOp; + break; + } + + // required uint64 timeStampOfLastShippedOp = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_timeStampOfLastShippedOp: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ×tampoflastshippedop_))); + set_has_timestampoflastshippedop(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_replicationLag; + break; + } + + // required uint64 replicationLag = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_replicationLag: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &replicationlag_))); + set_has_replicationlag(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReplicationLoadSource::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string peerID = 1; + if (has_peerid()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->peerid().data(), this->peerid().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->peerid(), output); + } + + // required uint64 ageOfLastShippedOp = 2; + if (has_ageoflastshippedop()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->ageoflastshippedop(), output); + } + + // required uint32 sizeOfLogQueue = 3; + if (has_sizeoflogqueue()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->sizeoflogqueue(), output); + } + + // required uint64 timeStampOfLastShippedOp = 4; + if (has_timestampoflastshippedop()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->timestampoflastshippedop(), output); + } + + // required uint64 replicationLag = 5; + if (has_replicationlag()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->replicationlag(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReplicationLoadSource::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string peerID = 1; + if (has_peerid()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->peerid().data(), this->peerid().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->peerid(), target); + } + + // required uint64 ageOfLastShippedOp = 2; + if (has_ageoflastshippedop()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->ageoflastshippedop(), target); + } + + // required uint32 sizeOfLogQueue = 3; + if (has_sizeoflogqueue()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->sizeoflogqueue(), target); + } + + // required uint64 timeStampOfLastShippedOp = 4; + if (has_timestampoflastshippedop()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->timestampoflastshippedop(), target); + } + + // required uint64 replicationLag = 5; + if (has_replicationlag()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->replicationlag(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReplicationLoadSource::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string peerID = 1; + if (has_peerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->peerid()); + } + + // required uint64 ageOfLastShippedOp = 2; + if (has_ageoflastshippedop()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->ageoflastshippedop()); + } + + // required uint32 sizeOfLogQueue = 3; + if (has_sizeoflogqueue()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->sizeoflogqueue()); + } + + // required uint64 timeStampOfLastShippedOp = 4; + if (has_timestampoflastshippedop()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->timestampoflastshippedop()); + } + + // required uint64 replicationLag = 5; + if (has_replicationlag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->replicationlag()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReplicationLoadSource::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReplicationLoadSource* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReplicationLoadSource::MergeFrom(const ReplicationLoadSource& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_peerid()) { + set_peerid(from.peerid()); + } + if (from.has_ageoflastshippedop()) { + set_ageoflastshippedop(from.ageoflastshippedop()); + } + if (from.has_sizeoflogqueue()) { + set_sizeoflogqueue(from.sizeoflogqueue()); + } + if (from.has_timestampoflastshippedop()) { + set_timestampoflastshippedop(from.timestampoflastshippedop()); + } + if (from.has_replicationlag()) { + set_replicationlag(from.replicationlag()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReplicationLoadSource::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReplicationLoadSource::CopyFrom(const ReplicationLoadSource& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReplicationLoadSource::IsInitialized() const { + if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; + + return true; +} + +void ReplicationLoadSource::Swap(ReplicationLoadSource* other) { + if (other != this) { + std::swap(peerid_, other->peerid_); + std::swap(ageoflastshippedop_, other->ageoflastshippedop_); + std::swap(sizeoflogqueue_, other->sizeoflogqueue_); + std::swap(timestampoflastshippedop_, other->timestampoflastshippedop_); + std::swap(replicationlag_, other->replicationlag_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReplicationLoadSource::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReplicationLoadSource_descriptor_; + metadata.reflection = ReplicationLoadSource_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ServerLoad::kNumberOfRequestsFieldNumber; +const int ServerLoad::kTotalNumberOfRequestsFieldNumber; +const int ServerLoad::kUsedHeapMBFieldNumber; +const int ServerLoad::kMaxHeapMBFieldNumber; +const int ServerLoad::kRegionLoadsFieldNumber; +const int ServerLoad::kCoprocessorsFieldNumber; +const int ServerLoad::kReportStartTimeFieldNumber; +const int ServerLoad::kReportEndTimeFieldNumber; +const int ServerLoad::kInfoServerPortFieldNumber; +const int ServerLoad::kReplLoadSourceFieldNumber; +const int ServerLoad::kReplLoadSinkFieldNumber; +#endif // !_MSC_VER + +ServerLoad::ServerLoad() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ServerLoad::InitAsDefaultInstance() { + replloadsink_ = const_cast< ::hbase::pb::ReplicationLoadSink*>(&::hbase::pb::ReplicationLoadSink::default_instance()); +} + +ServerLoad::ServerLoad(const ServerLoad& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ServerLoad::SharedCtor() { + _cached_size_ = 0; + number_of_requests_ = GOOGLE_ULONGLONG(0); + total_number_of_requests_ = GOOGLE_ULONGLONG(0); + used_heap_mb_ = 0u; + max_heap_mb_ = 0u; + report_start_time_ = GOOGLE_ULONGLONG(0); + report_end_time_ = GOOGLE_ULONGLONG(0); + info_server_port_ = 0u; + replloadsink_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ServerLoad::~ServerLoad() { + SharedDtor(); +} + +void ServerLoad::SharedDtor() { + if (this != default_instance_) { + delete replloadsink_; + } +} + +void ServerLoad::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ServerLoad::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ServerLoad_descriptor_; +} + +const ServerLoad& ServerLoad::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +ServerLoad* ServerLoad::default_instance_ = NULL; + +ServerLoad* ServerLoad::New() const { + return new ServerLoad; +} + +void ServerLoad::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + number_of_requests_ = GOOGLE_ULONGLONG(0); + total_number_of_requests_ = GOOGLE_ULONGLONG(0); + used_heap_mb_ = 0u; + max_heap_mb_ = 0u; + report_start_time_ = GOOGLE_ULONGLONG(0); + report_end_time_ = GOOGLE_ULONGLONG(0); + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + info_server_port_ = 0u; + if (has_replloadsink()) { + if (replloadsink_ != NULL) replloadsink_->::hbase::pb::ReplicationLoadSink::Clear(); + } + } + region_loads_.Clear(); + coprocessors_.Clear(); + replloadsource_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ServerLoad::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 number_of_requests = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &number_of_requests_))); + set_has_number_of_requests(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_total_number_of_requests; + break; + } + + // optional uint64 total_number_of_requests = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_total_number_of_requests: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &total_number_of_requests_))); + set_has_total_number_of_requests(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_used_heap_MB; + break; + } + + // optional uint32 used_heap_MB = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_used_heap_MB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &used_heap_mb_))); + set_has_used_heap_mb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_max_heap_MB; + break; + } + + // optional uint32 max_heap_MB = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_max_heap_MB: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &max_heap_mb_))); + set_has_max_heap_mb(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_region_loads; + break; + } + + // repeated .hbase.pb.RegionLoad region_loads = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_loads: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_region_loads())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_region_loads; + if (input->ExpectTag(50)) goto parse_coprocessors; + break; + } + + // repeated .hbase.pb.Coprocessor coprocessors = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_coprocessors: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_coprocessors())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_coprocessors; + if (input->ExpectTag(56)) goto parse_report_start_time; + break; + } + + // optional uint64 report_start_time = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_report_start_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &report_start_time_))); + set_has_report_start_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_report_end_time; + break; + } + + // optional uint64 report_end_time = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_report_end_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &report_end_time_))); + set_has_report_end_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_info_server_port; + break; + } + + // optional uint32 info_server_port = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_info_server_port: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &info_server_port_))); + set_has_info_server_port(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(82)) goto parse_replLoadSource; + break; + } + + // repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_replLoadSource: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_replloadsource())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(82)) goto parse_replLoadSource; + if (input->ExpectTag(90)) goto parse_replLoadSink; + break; + } + + // optional .hbase.pb.ReplicationLoadSink replLoadSink = 11; + case 11: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_replLoadSink: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_replloadsink())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ServerLoad::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 number_of_requests = 1; + if (has_number_of_requests()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->number_of_requests(), output); + } + + // optional uint64 total_number_of_requests = 2; + if (has_total_number_of_requests()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->total_number_of_requests(), output); + } + + // optional uint32 used_heap_MB = 3; + if (has_used_heap_mb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->used_heap_mb(), output); + } + + // optional uint32 max_heap_MB = 4; + if (has_max_heap_mb()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->max_heap_mb(), output); + } + + // repeated .hbase.pb.RegionLoad region_loads = 5; + for (int i = 0; i < this->region_loads_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->region_loads(i), output); + } + + // repeated .hbase.pb.Coprocessor coprocessors = 6; + for (int i = 0; i < this->coprocessors_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->coprocessors(i), output); + } + + // optional uint64 report_start_time = 7; + if (has_report_start_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->report_start_time(), output); + } + + // optional uint64 report_end_time = 8; + if (has_report_end_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->report_end_time(), output); + } + + // optional uint32 info_server_port = 9; + if (has_info_server_port()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->info_server_port(), output); + } + + // repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10; + for (int i = 0; i < this->replloadsource_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, this->replloadsource(i), output); + } + + // optional .hbase.pb.ReplicationLoadSink replLoadSink = 11; + if (has_replloadsink()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, this->replloadsink(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ServerLoad::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 number_of_requests = 1; + if (has_number_of_requests()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->number_of_requests(), target); + } + + // optional uint64 total_number_of_requests = 2; + if (has_total_number_of_requests()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->total_number_of_requests(), target); + } + + // optional uint32 used_heap_MB = 3; + if (has_used_heap_mb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->used_heap_mb(), target); + } + + // optional uint32 max_heap_MB = 4; + if (has_max_heap_mb()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->max_heap_mb(), target); + } + + // repeated .hbase.pb.RegionLoad region_loads = 5; + for (int i = 0; i < this->region_loads_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->region_loads(i), target); + } + + // repeated .hbase.pb.Coprocessor coprocessors = 6; + for (int i = 0; i < this->coprocessors_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->coprocessors(i), target); + } + + // optional uint64 report_start_time = 7; + if (has_report_start_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->report_start_time(), target); + } + + // optional uint64 report_end_time = 8; + if (has_report_end_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->report_end_time(), target); + } + + // optional uint32 info_server_port = 9; + if (has_info_server_port()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->info_server_port(), target); + } + + // repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10; + for (int i = 0; i < this->replloadsource_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 10, this->replloadsource(i), target); + } + + // optional .hbase.pb.ReplicationLoadSink replLoadSink = 11; + if (has_replloadsink()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 11, this->replloadsink(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ServerLoad::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 number_of_requests = 1; + if (has_number_of_requests()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->number_of_requests()); + } + + // optional uint64 total_number_of_requests = 2; + if (has_total_number_of_requests()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->total_number_of_requests()); + } + + // optional uint32 used_heap_MB = 3; + if (has_used_heap_mb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->used_heap_mb()); + } + + // optional uint32 max_heap_MB = 4; + if (has_max_heap_mb()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->max_heap_mb()); + } + + // optional uint64 report_start_time = 7; + if (has_report_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->report_start_time()); + } + + // optional uint64 report_end_time = 8; + if (has_report_end_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->report_end_time()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional uint32 info_server_port = 9; + if (has_info_server_port()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->info_server_port()); + } + + // optional .hbase.pb.ReplicationLoadSink replLoadSink = 11; + if (has_replloadsink()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->replloadsink()); + } + + } + // repeated .hbase.pb.RegionLoad region_loads = 5; + total_size += 1 * this->region_loads_size(); + for (int i = 0; i < this->region_loads_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_loads(i)); + } + + // repeated .hbase.pb.Coprocessor coprocessors = 6; + total_size += 1 * this->coprocessors_size(); + for (int i = 0; i < this->coprocessors_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->coprocessors(i)); + } + + // repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10; + total_size += 1 * this->replloadsource_size(); + for (int i = 0; i < this->replloadsource_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->replloadsource(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ServerLoad::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ServerLoad* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ServerLoad::MergeFrom(const ServerLoad& from) { + GOOGLE_CHECK_NE(&from, this); + region_loads_.MergeFrom(from.region_loads_); + coprocessors_.MergeFrom(from.coprocessors_); + replloadsource_.MergeFrom(from.replloadsource_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_number_of_requests()) { + set_number_of_requests(from.number_of_requests()); + } + if (from.has_total_number_of_requests()) { + set_total_number_of_requests(from.total_number_of_requests()); + } + if (from.has_used_heap_mb()) { + set_used_heap_mb(from.used_heap_mb()); + } + if (from.has_max_heap_mb()) { + set_max_heap_mb(from.max_heap_mb()); + } + if (from.has_report_start_time()) { + set_report_start_time(from.report_start_time()); + } + if (from.has_report_end_time()) { + set_report_end_time(from.report_end_time()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_info_server_port()) { + set_info_server_port(from.info_server_port()); + } + if (from.has_replloadsink()) { + mutable_replloadsink()->::hbase::pb::ReplicationLoadSink::MergeFrom(from.replloadsink()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ServerLoad::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ServerLoad::CopyFrom(const ServerLoad& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerLoad::IsInitialized() const { + + for (int i = 0; i < region_loads_size(); i++) { + if (!this->region_loads(i).IsInitialized()) return false; + } + for (int i = 0; i < coprocessors_size(); i++) { + if (!this->coprocessors(i).IsInitialized()) return false; + } + for (int i = 0; i < replloadsource_size(); i++) { + if (!this->replloadsource(i).IsInitialized()) return false; + } + if (has_replloadsink()) { + if (!this->replloadsink().IsInitialized()) return false; + } + return true; +} + +void ServerLoad::Swap(ServerLoad* other) { + if (other != this) { + std::swap(number_of_requests_, other->number_of_requests_); + std::swap(total_number_of_requests_, other->total_number_of_requests_); + std::swap(used_heap_mb_, other->used_heap_mb_); + std::swap(max_heap_mb_, other->max_heap_mb_); + region_loads_.Swap(&other->region_loads_); + coprocessors_.Swap(&other->coprocessors_); + std::swap(report_start_time_, other->report_start_time_); + std::swap(report_end_time_, other->report_end_time_); + std::swap(info_server_port_, other->info_server_port_); + replloadsource_.Swap(&other->replloadsource_); + std::swap(replloadsink_, other->replloadsink_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ServerLoad::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ServerLoad_descriptor_; + metadata.reflection = ServerLoad_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int LiveServerInfo::kServerFieldNumber; +const int LiveServerInfo::kServerLoadFieldNumber; +#endif // !_MSC_VER + +LiveServerInfo::LiveServerInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void LiveServerInfo::InitAsDefaultInstance() { + server_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); + server_load_ = const_cast< ::hbase::pb::ServerLoad*>(&::hbase::pb::ServerLoad::default_instance()); +} + +LiveServerInfo::LiveServerInfo(const LiveServerInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void LiveServerInfo::SharedCtor() { + _cached_size_ = 0; + server_ = NULL; + server_load_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +LiveServerInfo::~LiveServerInfo() { + SharedDtor(); +} + +void LiveServerInfo::SharedDtor() { + if (this != default_instance_) { + delete server_; + delete server_load_; + } +} + +void LiveServerInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LiveServerInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return LiveServerInfo_descriptor_; +} + +const LiveServerInfo& LiveServerInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +LiveServerInfo* LiveServerInfo::default_instance_ = NULL; + +LiveServerInfo* LiveServerInfo::New() const { + return new LiveServerInfo; +} + +void LiveServerInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server()) { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + } + if (has_server_load()) { + if (server_load_ != NULL) server_load_->::hbase::pb::ServerLoad::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool LiveServerInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName server = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_server_load; + break; + } + + // required .hbase.pb.ServerLoad server_load = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_server_load: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server_load())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void LiveServerInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->server(), output); + } + + // required .hbase.pb.ServerLoad server_load = 2; + if (has_server_load()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->server_load(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* LiveServerInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->server(), target); + } + + // required .hbase.pb.ServerLoad server_load = 2; + if (has_server_load()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->server_load(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int LiveServerInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server()); + } + + // required .hbase.pb.ServerLoad server_load = 2; + if (has_server_load()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server_load()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LiveServerInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const LiveServerInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void LiveServerInfo::MergeFrom(const LiveServerInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server()) { + mutable_server()->::hbase::pb::ServerName::MergeFrom(from.server()); + } + if (from.has_server_load()) { + mutable_server_load()->::hbase::pb::ServerLoad::MergeFrom(from.server_load()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void LiveServerInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiveServerInfo::CopyFrom(const LiveServerInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiveServerInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_server()) { + if (!this->server().IsInitialized()) return false; + } + if (has_server_load()) { + if (!this->server_load().IsInitialized()) return false; + } + return true; +} + +void LiveServerInfo::Swap(LiveServerInfo* other) { + if (other != this) { + std::swap(server_, other->server_); + std::swap(server_load_, other->server_load_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata LiveServerInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = LiveServerInfo_descriptor_; + metadata.reflection = LiveServerInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ClusterStatus::kHbaseVersionFieldNumber; +const int ClusterStatus::kLiveServersFieldNumber; +const int ClusterStatus::kDeadServersFieldNumber; +const int ClusterStatus::kRegionsInTransitionFieldNumber; +const int ClusterStatus::kClusterIdFieldNumber; +const int ClusterStatus::kMasterCoprocessorsFieldNumber; +const int ClusterStatus::kMasterFieldNumber; +const int ClusterStatus::kBackupMastersFieldNumber; +const int ClusterStatus::kBalancerOnFieldNumber; +#endif // !_MSC_VER + +ClusterStatus::ClusterStatus() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ClusterStatus::InitAsDefaultInstance() { + hbase_version_ = const_cast< ::hbase::pb::HBaseVersionFileContent*>(&::hbase::pb::HBaseVersionFileContent::default_instance()); + cluster_id_ = const_cast< ::hbase::pb::ClusterId*>(&::hbase::pb::ClusterId::default_instance()); + master_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +ClusterStatus::ClusterStatus(const ClusterStatus& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ClusterStatus::SharedCtor() { + _cached_size_ = 0; + hbase_version_ = NULL; + cluster_id_ = NULL; + master_ = NULL; + balancer_on_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ClusterStatus::~ClusterStatus() { + SharedDtor(); +} + +void ClusterStatus::SharedDtor() { + if (this != default_instance_) { + delete hbase_version_; + delete cluster_id_; + delete master_; + } +} + +void ClusterStatus::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ClusterStatus::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ClusterStatus_descriptor_; +} + +const ClusterStatus& ClusterStatus::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ClusterStatus_2eproto(); + return *default_instance_; +} + +ClusterStatus* ClusterStatus::default_instance_ = NULL; + +ClusterStatus* ClusterStatus::New() const { + return new ClusterStatus; +} + +void ClusterStatus::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_hbase_version()) { + if (hbase_version_ != NULL) hbase_version_->::hbase::pb::HBaseVersionFileContent::Clear(); + } + if (has_cluster_id()) { + if (cluster_id_ != NULL) cluster_id_->::hbase::pb::ClusterId::Clear(); + } + if (has_master()) { + if (master_ != NULL) master_->::hbase::pb::ServerName::Clear(); + } + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + balancer_on_ = false; + } + live_servers_.Clear(); + dead_servers_.Clear(); + regions_in_transition_.Clear(); + master_coprocessors_.Clear(); + backup_masters_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ClusterStatus::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.HBaseVersionFileContent hbase_version = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_hbase_version())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_live_servers; + break; + } + + // repeated .hbase.pb.LiveServerInfo live_servers = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_live_servers: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_live_servers())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_live_servers; + if (input->ExpectTag(26)) goto parse_dead_servers; + break; + } + + // repeated .hbase.pb.ServerName dead_servers = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_dead_servers: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_dead_servers())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_dead_servers; + if (input->ExpectTag(34)) goto parse_regions_in_transition; + break; + } + + // repeated .hbase.pb.RegionInTransition regions_in_transition = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_regions_in_transition: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_regions_in_transition())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_regions_in_transition; + if (input->ExpectTag(42)) goto parse_cluster_id; + break; + } + + // optional .hbase.pb.ClusterId cluster_id = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cluster_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_cluster_id())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_master_coprocessors; + break; + } + + // repeated .hbase.pb.Coprocessor master_coprocessors = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_master_coprocessors: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_master_coprocessors())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_master_coprocessors; + if (input->ExpectTag(58)) goto parse_master; + break; + } + + // optional .hbase.pb.ServerName master = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_master: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_master())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(66)) goto parse_backup_masters; + break; + } + + // repeated .hbase.pb.ServerName backup_masters = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_backup_masters: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_backup_masters())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(66)) goto parse_backup_masters; + if (input->ExpectTag(72)) goto parse_balancer_on; + break; + } + + // optional bool balancer_on = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_balancer_on: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &balancer_on_))); + set_has_balancer_on(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ClusterStatus::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.HBaseVersionFileContent hbase_version = 1; + if (has_hbase_version()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->hbase_version(), output); + } + + // repeated .hbase.pb.LiveServerInfo live_servers = 2; + for (int i = 0; i < this->live_servers_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->live_servers(i), output); + } + + // repeated .hbase.pb.ServerName dead_servers = 3; + for (int i = 0; i < this->dead_servers_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->dead_servers(i), output); + } + + // repeated .hbase.pb.RegionInTransition regions_in_transition = 4; + for (int i = 0; i < this->regions_in_transition_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->regions_in_transition(i), output); + } + + // optional .hbase.pb.ClusterId cluster_id = 5; + if (has_cluster_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->cluster_id(), output); + } + + // repeated .hbase.pb.Coprocessor master_coprocessors = 6; + for (int i = 0; i < this->master_coprocessors_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->master_coprocessors(i), output); + } + + // optional .hbase.pb.ServerName master = 7; + if (has_master()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->master(), output); + } + + // repeated .hbase.pb.ServerName backup_masters = 8; + for (int i = 0; i < this->backup_masters_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, this->backup_masters(i), output); + } + + // optional bool balancer_on = 9; + if (has_balancer_on()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->balancer_on(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ClusterStatus::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.HBaseVersionFileContent hbase_version = 1; + if (has_hbase_version()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->hbase_version(), target); + } + + // repeated .hbase.pb.LiveServerInfo live_servers = 2; + for (int i = 0; i < this->live_servers_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->live_servers(i), target); + } + + // repeated .hbase.pb.ServerName dead_servers = 3; + for (int i = 0; i < this->dead_servers_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->dead_servers(i), target); + } + + // repeated .hbase.pb.RegionInTransition regions_in_transition = 4; + for (int i = 0; i < this->regions_in_transition_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->regions_in_transition(i), target); + } + + // optional .hbase.pb.ClusterId cluster_id = 5; + if (has_cluster_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->cluster_id(), target); + } + + // repeated .hbase.pb.Coprocessor master_coprocessors = 6; + for (int i = 0; i < this->master_coprocessors_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->master_coprocessors(i), target); + } + + // optional .hbase.pb.ServerName master = 7; + if (has_master()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 7, this->master(), target); + } + + // repeated .hbase.pb.ServerName backup_masters = 8; + for (int i = 0; i < this->backup_masters_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 8, this->backup_masters(i), target); + } + + // optional bool balancer_on = 9; + if (has_balancer_on()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->balancer_on(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ClusterStatus::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.HBaseVersionFileContent hbase_version = 1; + if (has_hbase_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->hbase_version()); + } + + // optional .hbase.pb.ClusterId cluster_id = 5; + if (has_cluster_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cluster_id()); + } + + // optional .hbase.pb.ServerName master = 7; + if (has_master()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->master()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional bool balancer_on = 9; + if (has_balancer_on()) { + total_size += 1 + 1; + } + + } + // repeated .hbase.pb.LiveServerInfo live_servers = 2; + total_size += 1 * this->live_servers_size(); + for (int i = 0; i < this->live_servers_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->live_servers(i)); + } + + // repeated .hbase.pb.ServerName dead_servers = 3; + total_size += 1 * this->dead_servers_size(); + for (int i = 0; i < this->dead_servers_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dead_servers(i)); + } + + // repeated .hbase.pb.RegionInTransition regions_in_transition = 4; + total_size += 1 * this->regions_in_transition_size(); + for (int i = 0; i < this->regions_in_transition_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->regions_in_transition(i)); + } + + // repeated .hbase.pb.Coprocessor master_coprocessors = 6; + total_size += 1 * this->master_coprocessors_size(); + for (int i = 0; i < this->master_coprocessors_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->master_coprocessors(i)); + } + + // repeated .hbase.pb.ServerName backup_masters = 8; + total_size += 1 * this->backup_masters_size(); + for (int i = 0; i < this->backup_masters_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->backup_masters(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ClusterStatus::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ClusterStatus* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ClusterStatus::MergeFrom(const ClusterStatus& from) { + GOOGLE_CHECK_NE(&from, this); + live_servers_.MergeFrom(from.live_servers_); + dead_servers_.MergeFrom(from.dead_servers_); + regions_in_transition_.MergeFrom(from.regions_in_transition_); + master_coprocessors_.MergeFrom(from.master_coprocessors_); + backup_masters_.MergeFrom(from.backup_masters_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_hbase_version()) { + mutable_hbase_version()->::hbase::pb::HBaseVersionFileContent::MergeFrom(from.hbase_version()); + } + if (from.has_cluster_id()) { + mutable_cluster_id()->::hbase::pb::ClusterId::MergeFrom(from.cluster_id()); + } + if (from.has_master()) { + mutable_master()->::hbase::pb::ServerName::MergeFrom(from.master()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_balancer_on()) { + set_balancer_on(from.balancer_on()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ClusterStatus::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ClusterStatus::CopyFrom(const ClusterStatus& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClusterStatus::IsInitialized() const { + + if (has_hbase_version()) { + if (!this->hbase_version().IsInitialized()) return false; + } + for (int i = 0; i < live_servers_size(); i++) { + if (!this->live_servers(i).IsInitialized()) return false; + } + for (int i = 0; i < dead_servers_size(); i++) { + if (!this->dead_servers(i).IsInitialized()) return false; + } + for (int i = 0; i < regions_in_transition_size(); i++) { + if (!this->regions_in_transition(i).IsInitialized()) return false; + } + if (has_cluster_id()) { + if (!this->cluster_id().IsInitialized()) return false; + } + for (int i = 0; i < master_coprocessors_size(); i++) { + if (!this->master_coprocessors(i).IsInitialized()) return false; + } + if (has_master()) { + if (!this->master().IsInitialized()) return false; + } + for (int i = 0; i < backup_masters_size(); i++) { + if (!this->backup_masters(i).IsInitialized()) return false; + } + return true; +} + +void ClusterStatus::Swap(ClusterStatus* other) { + if (other != this) { + std::swap(hbase_version_, other->hbase_version_); + live_servers_.Swap(&other->live_servers_); + dead_servers_.Swap(&other->dead_servers_); + regions_in_transition_.Swap(&other->regions_in_transition_); + std::swap(cluster_id_, other->cluster_id_); + master_coprocessors_.Swap(&other->master_coprocessors_); + std::swap(master_, other->master_); + backup_masters_.Swap(&other->backup_masters_); + std::swap(balancer_on_, other->balancer_on_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ClusterStatus::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ClusterStatus_descriptor_; + metadata.reflection = ClusterStatus_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/ClusterStatus.pb.h b/hbase-native-client/src/rpc/generated/ClusterStatus.pb.h new file mode 100644 index 0000000..af38ef7 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/ClusterStatus.pb.h @@ -0,0 +1,3076 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClusterStatus.proto + +#ifndef PROTOBUF_ClusterStatus_2eproto__INCLUDED +#define PROTOBUF_ClusterStatus_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "ClusterId.pb.h" +#include "FS.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_ClusterStatus_2eproto(); +void protobuf_AssignDesc_ClusterStatus_2eproto(); +void protobuf_ShutdownFile_ClusterStatus_2eproto(); + +class RegionState; +class RegionInTransition; +class StoreSequenceId; +class RegionStoreSequenceIds; +class RegionLoad; +class ReplicationLoadSink; +class ReplicationLoadSource; +class ServerLoad; +class LiveServerInfo; +class ClusterStatus; + +enum RegionState_State { + RegionState_State_OFFLINE = 0, + RegionState_State_PENDING_OPEN = 1, + RegionState_State_OPENING = 2, + RegionState_State_OPEN = 3, + RegionState_State_PENDING_CLOSE = 4, + RegionState_State_CLOSING = 5, + RegionState_State_CLOSED = 6, + RegionState_State_SPLITTING = 7, + RegionState_State_SPLIT = 8, + RegionState_State_FAILED_OPEN = 9, + RegionState_State_FAILED_CLOSE = 10, + RegionState_State_MERGING = 11, + RegionState_State_MERGED = 12, + RegionState_State_SPLITTING_NEW = 13, + RegionState_State_MERGING_NEW = 14 +}; +bool RegionState_State_IsValid(int value); +const RegionState_State RegionState_State_State_MIN = RegionState_State_OFFLINE; +const RegionState_State RegionState_State_State_MAX = RegionState_State_MERGING_NEW; +const int RegionState_State_State_ARRAYSIZE = RegionState_State_State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RegionState_State_descriptor(); +inline const ::std::string& RegionState_State_Name(RegionState_State value) { + return ::google::protobuf::internal::NameOfEnum( + RegionState_State_descriptor(), value); +} +inline bool RegionState_State_Parse( + const ::std::string& name, RegionState_State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RegionState_State_descriptor(), name, value); +} +// =================================================================== + +class RegionState : public ::google::protobuf::Message { + public: + RegionState(); + virtual ~RegionState(); + + RegionState(const RegionState& from); + + inline RegionState& operator=(const RegionState& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionState& default_instance(); + + void Swap(RegionState* other); + + // implements Message ---------------------------------------------- + + RegionState* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionState& from); + void MergeFrom(const RegionState& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef RegionState_State State; + static const State OFFLINE = RegionState_State_OFFLINE; + static const State PENDING_OPEN = RegionState_State_PENDING_OPEN; + static const State OPENING = RegionState_State_OPENING; + static const State OPEN = RegionState_State_OPEN; + static const State PENDING_CLOSE = RegionState_State_PENDING_CLOSE; + static const State CLOSING = RegionState_State_CLOSING; + static const State CLOSED = RegionState_State_CLOSED; + static const State SPLITTING = RegionState_State_SPLITTING; + static const State SPLIT = RegionState_State_SPLIT; + static const State FAILED_OPEN = RegionState_State_FAILED_OPEN; + static const State FAILED_CLOSE = RegionState_State_FAILED_CLOSE; + static const State MERGING = RegionState_State_MERGING; + static const State MERGED = RegionState_State_MERGED; + static const State SPLITTING_NEW = RegionState_State_SPLITTING_NEW; + static const State MERGING_NEW = RegionState_State_MERGING_NEW; + static inline bool State_IsValid(int value) { + return RegionState_State_IsValid(value); + } + static const State State_MIN = + RegionState_State_State_MIN; + static const State State_MAX = + RegionState_State_State_MAX; + static const int State_ARRAYSIZE = + RegionState_State_State_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + State_descriptor() { + return RegionState_State_descriptor(); + } + static inline const ::std::string& State_Name(State value) { + return RegionState_State_Name(value); + } + static inline bool State_Parse(const ::std::string& name, + State* value) { + return RegionState_State_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionInfo region_info = 1; + inline bool has_region_info() const; + inline void clear_region_info(); + static const int kRegionInfoFieldNumber = 1; + inline const ::hbase::pb::RegionInfo& region_info() const; + inline ::hbase::pb::RegionInfo* mutable_region_info(); + inline ::hbase::pb::RegionInfo* release_region_info(); + inline void set_allocated_region_info(::hbase::pb::RegionInfo* region_info); + + // required .hbase.pb.RegionState.State state = 2; + inline bool has_state() const; + inline void clear_state(); + static const int kStateFieldNumber = 2; + inline ::hbase::pb::RegionState_State state() const; + inline void set_state(::hbase::pb::RegionState_State value); + + // optional uint64 stamp = 3; + inline bool has_stamp() const; + inline void clear_stamp(); + static const int kStampFieldNumber = 3; + inline ::google::protobuf::uint64 stamp() const; + inline void set_stamp(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionState) + private: + inline void set_has_region_info(); + inline void clear_has_region_info(); + inline void set_has_state(); + inline void clear_has_state(); + inline void set_has_stamp(); + inline void clear_has_stamp(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionInfo* region_info_; + ::google::protobuf::uint64 stamp_; + int state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionState* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionInTransition : public ::google::protobuf::Message { + public: + RegionInTransition(); + virtual ~RegionInTransition(); + + RegionInTransition(const RegionInTransition& from); + + inline RegionInTransition& operator=(const RegionInTransition& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionInTransition& default_instance(); + + void Swap(RegionInTransition* other); + + // implements Message ---------------------------------------------- + + RegionInTransition* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionInTransition& from); + void MergeFrom(const RegionInTransition& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier spec = 1; + inline bool has_spec() const; + inline void clear_spec(); + static const int kSpecFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& spec() const; + inline ::hbase::pb::RegionSpecifier* mutable_spec(); + inline ::hbase::pb::RegionSpecifier* release_spec(); + inline void set_allocated_spec(::hbase::pb::RegionSpecifier* spec); + + // required .hbase.pb.RegionState region_state = 2; + inline bool has_region_state() const; + inline void clear_region_state(); + static const int kRegionStateFieldNumber = 2; + inline const ::hbase::pb::RegionState& region_state() const; + inline ::hbase::pb::RegionState* mutable_region_state(); + inline ::hbase::pb::RegionState* release_region_state(); + inline void set_allocated_region_state(::hbase::pb::RegionState* region_state); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionInTransition) + private: + inline void set_has_spec(); + inline void clear_has_spec(); + inline void set_has_region_state(); + inline void clear_has_region_state(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* spec_; + ::hbase::pb::RegionState* region_state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionInTransition* default_instance_; +}; +// ------------------------------------------------------------------- + +class StoreSequenceId : public ::google::protobuf::Message { + public: + StoreSequenceId(); + virtual ~StoreSequenceId(); + + StoreSequenceId(const StoreSequenceId& from); + + inline StoreSequenceId& operator=(const StoreSequenceId& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StoreSequenceId& default_instance(); + + void Swap(StoreSequenceId* other); + + // implements Message ---------------------------------------------- + + StoreSequenceId* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StoreSequenceId& from); + void MergeFrom(const StoreSequenceId& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes family_name = 1; + inline bool has_family_name() const; + inline void clear_family_name(); + static const int kFamilyNameFieldNumber = 1; + inline const ::std::string& family_name() const; + inline void set_family_name(const ::std::string& value); + inline void set_family_name(const char* value); + inline void set_family_name(const void* value, size_t size); + inline ::std::string* mutable_family_name(); + inline ::std::string* release_family_name(); + inline void set_allocated_family_name(::std::string* family_name); + + // required uint64 sequence_id = 2; + inline bool has_sequence_id() const; + inline void clear_sequence_id(); + static const int kSequenceIdFieldNumber = 2; + inline ::google::protobuf::uint64 sequence_id() const; + inline void set_sequence_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.StoreSequenceId) + private: + inline void set_has_family_name(); + inline void clear_has_family_name(); + inline void set_has_sequence_id(); + inline void clear_has_sequence_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* family_name_; + ::google::protobuf::uint64 sequence_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static StoreSequenceId* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionStoreSequenceIds : public ::google::protobuf::Message { + public: + RegionStoreSequenceIds(); + virtual ~RegionStoreSequenceIds(); + + RegionStoreSequenceIds(const RegionStoreSequenceIds& from); + + inline RegionStoreSequenceIds& operator=(const RegionStoreSequenceIds& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionStoreSequenceIds& default_instance(); + + void Swap(RegionStoreSequenceIds* other); + + // implements Message ---------------------------------------------- + + RegionStoreSequenceIds* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionStoreSequenceIds& from); + void MergeFrom(const RegionStoreSequenceIds& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 last_flushed_sequence_id = 1; + inline bool has_last_flushed_sequence_id() const; + inline void clear_last_flushed_sequence_id(); + static const int kLastFlushedSequenceIdFieldNumber = 1; + inline ::google::protobuf::uint64 last_flushed_sequence_id() const; + inline void set_last_flushed_sequence_id(::google::protobuf::uint64 value); + + // repeated .hbase.pb.StoreSequenceId store_sequence_id = 2; + inline int store_sequence_id_size() const; + inline void clear_store_sequence_id(); + static const int kStoreSequenceIdFieldNumber = 2; + inline const ::hbase::pb::StoreSequenceId& store_sequence_id(int index) const; + inline ::hbase::pb::StoreSequenceId* mutable_store_sequence_id(int index); + inline ::hbase::pb::StoreSequenceId* add_store_sequence_id(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >& + store_sequence_id() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >* + mutable_store_sequence_id(); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionStoreSequenceIds) + private: + inline void set_has_last_flushed_sequence_id(); + inline void clear_has_last_flushed_sequence_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 last_flushed_sequence_id_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId > store_sequence_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionStoreSequenceIds* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionLoad : public ::google::protobuf::Message { + public: + RegionLoad(); + virtual ~RegionLoad(); + + RegionLoad(const RegionLoad& from); + + inline RegionLoad& operator=(const RegionLoad& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionLoad& default_instance(); + + void Swap(RegionLoad* other); + + // implements Message ---------------------------------------------- + + RegionLoad* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionLoad& from); + void MergeFrom(const RegionLoad& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region_specifier = 1; + inline bool has_region_specifier() const; + inline void clear_region_specifier(); + static const int kRegionSpecifierFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region_specifier() const; + inline ::hbase::pb::RegionSpecifier* mutable_region_specifier(); + inline ::hbase::pb::RegionSpecifier* release_region_specifier(); + inline void set_allocated_region_specifier(::hbase::pb::RegionSpecifier* region_specifier); + + // optional uint32 stores = 2; + inline bool has_stores() const; + inline void clear_stores(); + static const int kStoresFieldNumber = 2; + inline ::google::protobuf::uint32 stores() const; + inline void set_stores(::google::protobuf::uint32 value); + + // optional uint32 storefiles = 3; + inline bool has_storefiles() const; + inline void clear_storefiles(); + static const int kStorefilesFieldNumber = 3; + inline ::google::protobuf::uint32 storefiles() const; + inline void set_storefiles(::google::protobuf::uint32 value); + + // optional uint32 store_uncompressed_size_MB = 4; + inline bool has_store_uncompressed_size_mb() const; + inline void clear_store_uncompressed_size_mb(); + static const int kStoreUncompressedSizeMBFieldNumber = 4; + inline ::google::protobuf::uint32 store_uncompressed_size_mb() const; + inline void set_store_uncompressed_size_mb(::google::protobuf::uint32 value); + + // optional uint32 storefile_size_MB = 5; + inline bool has_storefile_size_mb() const; + inline void clear_storefile_size_mb(); + static const int kStorefileSizeMBFieldNumber = 5; + inline ::google::protobuf::uint32 storefile_size_mb() const; + inline void set_storefile_size_mb(::google::protobuf::uint32 value); + + // optional uint32 memstore_size_MB = 6; + inline bool has_memstore_size_mb() const; + inline void clear_memstore_size_mb(); + static const int kMemstoreSizeMBFieldNumber = 6; + inline ::google::protobuf::uint32 memstore_size_mb() const; + inline void set_memstore_size_mb(::google::protobuf::uint32 value); + + // optional uint32 storefile_index_size_MB = 7; + inline bool has_storefile_index_size_mb() const; + inline void clear_storefile_index_size_mb(); + static const int kStorefileIndexSizeMBFieldNumber = 7; + inline ::google::protobuf::uint32 storefile_index_size_mb() const; + inline void set_storefile_index_size_mb(::google::protobuf::uint32 value); + + // optional uint64 read_requests_count = 8; + inline bool has_read_requests_count() const; + inline void clear_read_requests_count(); + static const int kReadRequestsCountFieldNumber = 8; + inline ::google::protobuf::uint64 read_requests_count() const; + inline void set_read_requests_count(::google::protobuf::uint64 value); + + // optional uint64 write_requests_count = 9; + inline bool has_write_requests_count() const; + inline void clear_write_requests_count(); + static const int kWriteRequestsCountFieldNumber = 9; + inline ::google::protobuf::uint64 write_requests_count() const; + inline void set_write_requests_count(::google::protobuf::uint64 value); + + // optional uint64 total_compacting_KVs = 10; + inline bool has_total_compacting_kvs() const; + inline void clear_total_compacting_kvs(); + static const int kTotalCompactingKVsFieldNumber = 10; + inline ::google::protobuf::uint64 total_compacting_kvs() const; + inline void set_total_compacting_kvs(::google::protobuf::uint64 value); + + // optional uint64 current_compacted_KVs = 11; + inline bool has_current_compacted_kvs() const; + inline void clear_current_compacted_kvs(); + static const int kCurrentCompactedKVsFieldNumber = 11; + inline ::google::protobuf::uint64 current_compacted_kvs() const; + inline void set_current_compacted_kvs(::google::protobuf::uint64 value); + + // optional uint32 root_index_size_KB = 12; + inline bool has_root_index_size_kb() const; + inline void clear_root_index_size_kb(); + static const int kRootIndexSizeKBFieldNumber = 12; + inline ::google::protobuf::uint32 root_index_size_kb() const; + inline void set_root_index_size_kb(::google::protobuf::uint32 value); + + // optional uint32 total_static_index_size_KB = 13; + inline bool has_total_static_index_size_kb() const; + inline void clear_total_static_index_size_kb(); + static const int kTotalStaticIndexSizeKBFieldNumber = 13; + inline ::google::protobuf::uint32 total_static_index_size_kb() const; + inline void set_total_static_index_size_kb(::google::protobuf::uint32 value); + + // optional uint32 total_static_bloom_size_KB = 14; + inline bool has_total_static_bloom_size_kb() const; + inline void clear_total_static_bloom_size_kb(); + static const int kTotalStaticBloomSizeKBFieldNumber = 14; + inline ::google::protobuf::uint32 total_static_bloom_size_kb() const; + inline void set_total_static_bloom_size_kb(::google::protobuf::uint32 value); + + // optional uint64 complete_sequence_id = 15; + inline bool has_complete_sequence_id() const; + inline void clear_complete_sequence_id(); + static const int kCompleteSequenceIdFieldNumber = 15; + inline ::google::protobuf::uint64 complete_sequence_id() const; + inline void set_complete_sequence_id(::google::protobuf::uint64 value); + + // optional float data_locality = 16; + inline bool has_data_locality() const; + inline void clear_data_locality(); + static const int kDataLocalityFieldNumber = 16; + inline float data_locality() const; + inline void set_data_locality(float value); + + // optional uint64 last_major_compaction_ts = 17 [default = 0]; + inline bool has_last_major_compaction_ts() const; + inline void clear_last_major_compaction_ts(); + static const int kLastMajorCompactionTsFieldNumber = 17; + inline ::google::protobuf::uint64 last_major_compaction_ts() const; + inline void set_last_major_compaction_ts(::google::protobuf::uint64 value); + + // repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18; + inline int store_complete_sequence_id_size() const; + inline void clear_store_complete_sequence_id(); + static const int kStoreCompleteSequenceIdFieldNumber = 18; + inline const ::hbase::pb::StoreSequenceId& store_complete_sequence_id(int index) const; + inline ::hbase::pb::StoreSequenceId* mutable_store_complete_sequence_id(int index); + inline ::hbase::pb::StoreSequenceId* add_store_complete_sequence_id(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >& + store_complete_sequence_id() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >* + mutable_store_complete_sequence_id(); + + // optional uint64 filtered_read_requests_count = 19; + inline bool has_filtered_read_requests_count() const; + inline void clear_filtered_read_requests_count(); + static const int kFilteredReadRequestsCountFieldNumber = 19; + inline ::google::protobuf::uint64 filtered_read_requests_count() const; + inline void set_filtered_read_requests_count(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionLoad) + private: + inline void set_has_region_specifier(); + inline void clear_has_region_specifier(); + inline void set_has_stores(); + inline void clear_has_stores(); + inline void set_has_storefiles(); + inline void clear_has_storefiles(); + inline void set_has_store_uncompressed_size_mb(); + inline void clear_has_store_uncompressed_size_mb(); + inline void set_has_storefile_size_mb(); + inline void clear_has_storefile_size_mb(); + inline void set_has_memstore_size_mb(); + inline void clear_has_memstore_size_mb(); + inline void set_has_storefile_index_size_mb(); + inline void clear_has_storefile_index_size_mb(); + inline void set_has_read_requests_count(); + inline void clear_has_read_requests_count(); + inline void set_has_write_requests_count(); + inline void clear_has_write_requests_count(); + inline void set_has_total_compacting_kvs(); + inline void clear_has_total_compacting_kvs(); + inline void set_has_current_compacted_kvs(); + inline void clear_has_current_compacted_kvs(); + inline void set_has_root_index_size_kb(); + inline void clear_has_root_index_size_kb(); + inline void set_has_total_static_index_size_kb(); + inline void clear_has_total_static_index_size_kb(); + inline void set_has_total_static_bloom_size_kb(); + inline void clear_has_total_static_bloom_size_kb(); + inline void set_has_complete_sequence_id(); + inline void clear_has_complete_sequence_id(); + inline void set_has_data_locality(); + inline void clear_has_data_locality(); + inline void set_has_last_major_compaction_ts(); + inline void clear_has_last_major_compaction_ts(); + inline void set_has_filtered_read_requests_count(); + inline void clear_has_filtered_read_requests_count(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_specifier_; + ::google::protobuf::uint32 stores_; + ::google::protobuf::uint32 storefiles_; + ::google::protobuf::uint32 store_uncompressed_size_mb_; + ::google::protobuf::uint32 storefile_size_mb_; + ::google::protobuf::uint32 memstore_size_mb_; + ::google::protobuf::uint32 storefile_index_size_mb_; + ::google::protobuf::uint64 read_requests_count_; + ::google::protobuf::uint64 write_requests_count_; + ::google::protobuf::uint64 total_compacting_kvs_; + ::google::protobuf::uint64 current_compacted_kvs_; + ::google::protobuf::uint32 root_index_size_kb_; + ::google::protobuf::uint32 total_static_index_size_kb_; + ::google::protobuf::uint64 complete_sequence_id_; + ::google::protobuf::uint32 total_static_bloom_size_kb_; + float data_locality_; + ::google::protobuf::uint64 last_major_compaction_ts_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId > store_complete_sequence_id_; + ::google::protobuf::uint64 filtered_read_requests_count_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(19 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionLoad* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReplicationLoadSink : public ::google::protobuf::Message { + public: + ReplicationLoadSink(); + virtual ~ReplicationLoadSink(); + + ReplicationLoadSink(const ReplicationLoadSink& from); + + inline ReplicationLoadSink& operator=(const ReplicationLoadSink& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReplicationLoadSink& default_instance(); + + void Swap(ReplicationLoadSink* other); + + // implements Message ---------------------------------------------- + + ReplicationLoadSink* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReplicationLoadSink& from); + void MergeFrom(const ReplicationLoadSink& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 ageOfLastAppliedOp = 1; + inline bool has_ageoflastappliedop() const; + inline void clear_ageoflastappliedop(); + static const int kAgeOfLastAppliedOpFieldNumber = 1; + inline ::google::protobuf::uint64 ageoflastappliedop() const; + inline void set_ageoflastappliedop(::google::protobuf::uint64 value); + + // required uint64 timeStampsOfLastAppliedOp = 2; + inline bool has_timestampsoflastappliedop() const; + inline void clear_timestampsoflastappliedop(); + static const int kTimeStampsOfLastAppliedOpFieldNumber = 2; + inline ::google::protobuf::uint64 timestampsoflastappliedop() const; + inline void set_timestampsoflastappliedop(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReplicationLoadSink) + private: + inline void set_has_ageoflastappliedop(); + inline void clear_has_ageoflastappliedop(); + inline void set_has_timestampsoflastappliedop(); + inline void clear_has_timestampsoflastappliedop(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 ageoflastappliedop_; + ::google::protobuf::uint64 timestampsoflastappliedop_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static ReplicationLoadSink* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReplicationLoadSource : public ::google::protobuf::Message { + public: + ReplicationLoadSource(); + virtual ~ReplicationLoadSource(); + + ReplicationLoadSource(const ReplicationLoadSource& from); + + inline ReplicationLoadSource& operator=(const ReplicationLoadSource& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReplicationLoadSource& default_instance(); + + void Swap(ReplicationLoadSource* other); + + // implements Message ---------------------------------------------- + + ReplicationLoadSource* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReplicationLoadSource& from); + void MergeFrom(const ReplicationLoadSource& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string peerID = 1; + inline bool has_peerid() const; + inline void clear_peerid(); + static const int kPeerIDFieldNumber = 1; + inline const ::std::string& peerid() const; + inline void set_peerid(const ::std::string& value); + inline void set_peerid(const char* value); + inline void set_peerid(const char* value, size_t size); + inline ::std::string* mutable_peerid(); + inline ::std::string* release_peerid(); + inline void set_allocated_peerid(::std::string* peerid); + + // required uint64 ageOfLastShippedOp = 2; + inline bool has_ageoflastshippedop() const; + inline void clear_ageoflastshippedop(); + static const int kAgeOfLastShippedOpFieldNumber = 2; + inline ::google::protobuf::uint64 ageoflastshippedop() const; + inline void set_ageoflastshippedop(::google::protobuf::uint64 value); + + // required uint32 sizeOfLogQueue = 3; + inline bool has_sizeoflogqueue() const; + inline void clear_sizeoflogqueue(); + static const int kSizeOfLogQueueFieldNumber = 3; + inline ::google::protobuf::uint32 sizeoflogqueue() const; + inline void set_sizeoflogqueue(::google::protobuf::uint32 value); + + // required uint64 timeStampOfLastShippedOp = 4; + inline bool has_timestampoflastshippedop() const; + inline void clear_timestampoflastshippedop(); + static const int kTimeStampOfLastShippedOpFieldNumber = 4; + inline ::google::protobuf::uint64 timestampoflastshippedop() const; + inline void set_timestampoflastshippedop(::google::protobuf::uint64 value); + + // required uint64 replicationLag = 5; + inline bool has_replicationlag() const; + inline void clear_replicationlag(); + static const int kReplicationLagFieldNumber = 5; + inline ::google::protobuf::uint64 replicationlag() const; + inline void set_replicationlag(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReplicationLoadSource) + private: + inline void set_has_peerid(); + inline void clear_has_peerid(); + inline void set_has_ageoflastshippedop(); + inline void clear_has_ageoflastshippedop(); + inline void set_has_sizeoflogqueue(); + inline void clear_has_sizeoflogqueue(); + inline void set_has_timestampoflastshippedop(); + inline void clear_has_timestampoflastshippedop(); + inline void set_has_replicationlag(); + inline void clear_has_replicationlag(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* peerid_; + ::google::protobuf::uint64 ageoflastshippedop_; + ::google::protobuf::uint64 timestampoflastshippedop_; + ::google::protobuf::uint64 replicationlag_; + ::google::protobuf::uint32 sizeoflogqueue_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static ReplicationLoadSource* default_instance_; +}; +// ------------------------------------------------------------------- + +class ServerLoad : public ::google::protobuf::Message { + public: + ServerLoad(); + virtual ~ServerLoad(); + + ServerLoad(const ServerLoad& from); + + inline ServerLoad& operator=(const ServerLoad& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ServerLoad& default_instance(); + + void Swap(ServerLoad* other); + + // implements Message ---------------------------------------------- + + ServerLoad* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ServerLoad& from); + void MergeFrom(const ServerLoad& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 number_of_requests = 1; + inline bool has_number_of_requests() const; + inline void clear_number_of_requests(); + static const int kNumberOfRequestsFieldNumber = 1; + inline ::google::protobuf::uint64 number_of_requests() const; + inline void set_number_of_requests(::google::protobuf::uint64 value); + + // optional uint64 total_number_of_requests = 2; + inline bool has_total_number_of_requests() const; + inline void clear_total_number_of_requests(); + static const int kTotalNumberOfRequestsFieldNumber = 2; + inline ::google::protobuf::uint64 total_number_of_requests() const; + inline void set_total_number_of_requests(::google::protobuf::uint64 value); + + // optional uint32 used_heap_MB = 3; + inline bool has_used_heap_mb() const; + inline void clear_used_heap_mb(); + static const int kUsedHeapMBFieldNumber = 3; + inline ::google::protobuf::uint32 used_heap_mb() const; + inline void set_used_heap_mb(::google::protobuf::uint32 value); + + // optional uint32 max_heap_MB = 4; + inline bool has_max_heap_mb() const; + inline void clear_max_heap_mb(); + static const int kMaxHeapMBFieldNumber = 4; + inline ::google::protobuf::uint32 max_heap_mb() const; + inline void set_max_heap_mb(::google::protobuf::uint32 value); + + // repeated .hbase.pb.RegionLoad region_loads = 5; + inline int region_loads_size() const; + inline void clear_region_loads(); + static const int kRegionLoadsFieldNumber = 5; + inline const ::hbase::pb::RegionLoad& region_loads(int index) const; + inline ::hbase::pb::RegionLoad* mutable_region_loads(int index); + inline ::hbase::pb::RegionLoad* add_region_loads(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoad >& + region_loads() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoad >* + mutable_region_loads(); + + // repeated .hbase.pb.Coprocessor coprocessors = 6; + inline int coprocessors_size() const; + inline void clear_coprocessors(); + static const int kCoprocessorsFieldNumber = 6; + inline const ::hbase::pb::Coprocessor& coprocessors(int index) const; + inline ::hbase::pb::Coprocessor* mutable_coprocessors(int index); + inline ::hbase::pb::Coprocessor* add_coprocessors(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor >& + coprocessors() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor >* + mutable_coprocessors(); + + // optional uint64 report_start_time = 7; + inline bool has_report_start_time() const; + inline void clear_report_start_time(); + static const int kReportStartTimeFieldNumber = 7; + inline ::google::protobuf::uint64 report_start_time() const; + inline void set_report_start_time(::google::protobuf::uint64 value); + + // optional uint64 report_end_time = 8; + inline bool has_report_end_time() const; + inline void clear_report_end_time(); + static const int kReportEndTimeFieldNumber = 8; + inline ::google::protobuf::uint64 report_end_time() const; + inline void set_report_end_time(::google::protobuf::uint64 value); + + // optional uint32 info_server_port = 9; + inline bool has_info_server_port() const; + inline void clear_info_server_port(); + static const int kInfoServerPortFieldNumber = 9; + inline ::google::protobuf::uint32 info_server_port() const; + inline void set_info_server_port(::google::protobuf::uint32 value); + + // repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10; + inline int replloadsource_size() const; + inline void clear_replloadsource(); + static const int kReplLoadSourceFieldNumber = 10; + inline const ::hbase::pb::ReplicationLoadSource& replloadsource(int index) const; + inline ::hbase::pb::ReplicationLoadSource* mutable_replloadsource(int index); + inline ::hbase::pb::ReplicationLoadSource* add_replloadsource(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ReplicationLoadSource >& + replloadsource() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ReplicationLoadSource >* + mutable_replloadsource(); + + // optional .hbase.pb.ReplicationLoadSink replLoadSink = 11; + inline bool has_replloadsink() const; + inline void clear_replloadsink(); + static const int kReplLoadSinkFieldNumber = 11; + inline const ::hbase::pb::ReplicationLoadSink& replloadsink() const; + inline ::hbase::pb::ReplicationLoadSink* mutable_replloadsink(); + inline ::hbase::pb::ReplicationLoadSink* release_replloadsink(); + inline void set_allocated_replloadsink(::hbase::pb::ReplicationLoadSink* replloadsink); + + // @@protoc_insertion_point(class_scope:hbase.pb.ServerLoad) + private: + inline void set_has_number_of_requests(); + inline void clear_has_number_of_requests(); + inline void set_has_total_number_of_requests(); + inline void clear_has_total_number_of_requests(); + inline void set_has_used_heap_mb(); + inline void clear_has_used_heap_mb(); + inline void set_has_max_heap_mb(); + inline void clear_has_max_heap_mb(); + inline void set_has_report_start_time(); + inline void clear_has_report_start_time(); + inline void set_has_report_end_time(); + inline void clear_has_report_end_time(); + inline void set_has_info_server_port(); + inline void clear_has_info_server_port(); + inline void set_has_replloadsink(); + inline void clear_has_replloadsink(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 number_of_requests_; + ::google::protobuf::uint64 total_number_of_requests_; + ::google::protobuf::uint32 used_heap_mb_; + ::google::protobuf::uint32 max_heap_mb_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoad > region_loads_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor > coprocessors_; + ::google::protobuf::uint64 report_start_time_; + ::google::protobuf::uint64 report_end_time_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ReplicationLoadSource > replloadsource_; + ::hbase::pb::ReplicationLoadSink* replloadsink_; + ::google::protobuf::uint32 info_server_port_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(11 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static ServerLoad* default_instance_; +}; +// ------------------------------------------------------------------- + +class LiveServerInfo : public ::google::protobuf::Message { + public: + LiveServerInfo(); + virtual ~LiveServerInfo(); + + LiveServerInfo(const LiveServerInfo& from); + + inline LiveServerInfo& operator=(const LiveServerInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LiveServerInfo& default_instance(); + + void Swap(LiveServerInfo* other); + + // implements Message ---------------------------------------------- + + LiveServerInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const LiveServerInfo& from); + void MergeFrom(const LiveServerInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName server = 1; + inline bool has_server() const; + inline void clear_server(); + static const int kServerFieldNumber = 1; + inline const ::hbase::pb::ServerName& server() const; + inline ::hbase::pb::ServerName* mutable_server(); + inline ::hbase::pb::ServerName* release_server(); + inline void set_allocated_server(::hbase::pb::ServerName* server); + + // required .hbase.pb.ServerLoad server_load = 2; + inline bool has_server_load() const; + inline void clear_server_load(); + static const int kServerLoadFieldNumber = 2; + inline const ::hbase::pb::ServerLoad& server_load() const; + inline ::hbase::pb::ServerLoad* mutable_server_load(); + inline ::hbase::pb::ServerLoad* release_server_load(); + inline void set_allocated_server_load(::hbase::pb::ServerLoad* server_load); + + // @@protoc_insertion_point(class_scope:hbase.pb.LiveServerInfo) + private: + inline void set_has_server(); + inline void clear_has_server(); + inline void set_has_server_load(); + inline void clear_has_server_load(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_; + ::hbase::pb::ServerLoad* server_load_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static LiveServerInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class ClusterStatus : public ::google::protobuf::Message { + public: + ClusterStatus(); + virtual ~ClusterStatus(); + + ClusterStatus(const ClusterStatus& from); + + inline ClusterStatus& operator=(const ClusterStatus& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ClusterStatus& default_instance(); + + void Swap(ClusterStatus* other); + + // implements Message ---------------------------------------------- + + ClusterStatus* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ClusterStatus& from); + void MergeFrom(const ClusterStatus& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.HBaseVersionFileContent hbase_version = 1; + inline bool has_hbase_version() const; + inline void clear_hbase_version(); + static const int kHbaseVersionFieldNumber = 1; + inline const ::hbase::pb::HBaseVersionFileContent& hbase_version() const; + inline ::hbase::pb::HBaseVersionFileContent* mutable_hbase_version(); + inline ::hbase::pb::HBaseVersionFileContent* release_hbase_version(); + inline void set_allocated_hbase_version(::hbase::pb::HBaseVersionFileContent* hbase_version); + + // repeated .hbase.pb.LiveServerInfo live_servers = 2; + inline int live_servers_size() const; + inline void clear_live_servers(); + static const int kLiveServersFieldNumber = 2; + inline const ::hbase::pb::LiveServerInfo& live_servers(int index) const; + inline ::hbase::pb::LiveServerInfo* mutable_live_servers(int index); + inline ::hbase::pb::LiveServerInfo* add_live_servers(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::LiveServerInfo >& + live_servers() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::LiveServerInfo >* + mutable_live_servers(); + + // repeated .hbase.pb.ServerName dead_servers = 3; + inline int dead_servers_size() const; + inline void clear_dead_servers(); + static const int kDeadServersFieldNumber = 3; + inline const ::hbase::pb::ServerName& dead_servers(int index) const; + inline ::hbase::pb::ServerName* mutable_dead_servers(int index); + inline ::hbase::pb::ServerName* add_dead_servers(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& + dead_servers() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* + mutable_dead_servers(); + + // repeated .hbase.pb.RegionInTransition regions_in_transition = 4; + inline int regions_in_transition_size() const; + inline void clear_regions_in_transition(); + static const int kRegionsInTransitionFieldNumber = 4; + inline const ::hbase::pb::RegionInTransition& regions_in_transition(int index) const; + inline ::hbase::pb::RegionInTransition* mutable_regions_in_transition(int index); + inline ::hbase::pb::RegionInTransition* add_regions_in_transition(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInTransition >& + regions_in_transition() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInTransition >* + mutable_regions_in_transition(); + + // optional .hbase.pb.ClusterId cluster_id = 5; + inline bool has_cluster_id() const; + inline void clear_cluster_id(); + static const int kClusterIdFieldNumber = 5; + inline const ::hbase::pb::ClusterId& cluster_id() const; + inline ::hbase::pb::ClusterId* mutable_cluster_id(); + inline ::hbase::pb::ClusterId* release_cluster_id(); + inline void set_allocated_cluster_id(::hbase::pb::ClusterId* cluster_id); + + // repeated .hbase.pb.Coprocessor master_coprocessors = 6; + inline int master_coprocessors_size() const; + inline void clear_master_coprocessors(); + static const int kMasterCoprocessorsFieldNumber = 6; + inline const ::hbase::pb::Coprocessor& master_coprocessors(int index) const; + inline ::hbase::pb::Coprocessor* mutable_master_coprocessors(int index); + inline ::hbase::pb::Coprocessor* add_master_coprocessors(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor >& + master_coprocessors() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor >* + mutable_master_coprocessors(); + + // optional .hbase.pb.ServerName master = 7; + inline bool has_master() const; + inline void clear_master(); + static const int kMasterFieldNumber = 7; + inline const ::hbase::pb::ServerName& master() const; + inline ::hbase::pb::ServerName* mutable_master(); + inline ::hbase::pb::ServerName* release_master(); + inline void set_allocated_master(::hbase::pb::ServerName* master); + + // repeated .hbase.pb.ServerName backup_masters = 8; + inline int backup_masters_size() const; + inline void clear_backup_masters(); + static const int kBackupMastersFieldNumber = 8; + inline const ::hbase::pb::ServerName& backup_masters(int index) const; + inline ::hbase::pb::ServerName* mutable_backup_masters(int index); + inline ::hbase::pb::ServerName* add_backup_masters(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& + backup_masters() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* + mutable_backup_masters(); + + // optional bool balancer_on = 9; + inline bool has_balancer_on() const; + inline void clear_balancer_on(); + static const int kBalancerOnFieldNumber = 9; + inline bool balancer_on() const; + inline void set_balancer_on(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ClusterStatus) + private: + inline void set_has_hbase_version(); + inline void clear_has_hbase_version(); + inline void set_has_cluster_id(); + inline void clear_has_cluster_id(); + inline void set_has_master(); + inline void clear_has_master(); + inline void set_has_balancer_on(); + inline void clear_has_balancer_on(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::HBaseVersionFileContent* hbase_version_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::LiveServerInfo > live_servers_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName > dead_servers_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInTransition > regions_in_transition_; + ::hbase::pb::ClusterId* cluster_id_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor > master_coprocessors_; + ::hbase::pb::ServerName* master_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName > backup_masters_; + bool balancer_on_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32]; + + friend void protobuf_AddDesc_ClusterStatus_2eproto(); + friend void protobuf_AssignDesc_ClusterStatus_2eproto(); + friend void protobuf_ShutdownFile_ClusterStatus_2eproto(); + + void InitAsDefaultInstance(); + static ClusterStatus* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// RegionState + +// required .hbase.pb.RegionInfo region_info = 1; +inline bool RegionState::has_region_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionState::set_has_region_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionState::clear_has_region_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionState::clear_region_info() { + if (region_info_ != NULL) region_info_->::hbase::pb::RegionInfo::Clear(); + clear_has_region_info(); +} +inline const ::hbase::pb::RegionInfo& RegionState::region_info() const { + return region_info_ != NULL ? *region_info_ : *default_instance_->region_info_; +} +inline ::hbase::pb::RegionInfo* RegionState::mutable_region_info() { + set_has_region_info(); + if (region_info_ == NULL) region_info_ = new ::hbase::pb::RegionInfo; + return region_info_; +} +inline ::hbase::pb::RegionInfo* RegionState::release_region_info() { + clear_has_region_info(); + ::hbase::pb::RegionInfo* temp = region_info_; + region_info_ = NULL; + return temp; +} +inline void RegionState::set_allocated_region_info(::hbase::pb::RegionInfo* region_info) { + delete region_info_; + region_info_ = region_info; + if (region_info) { + set_has_region_info(); + } else { + clear_has_region_info(); + } +} + +// required .hbase.pb.RegionState.State state = 2; +inline bool RegionState::has_state() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionState::set_has_state() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionState::clear_has_state() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionState::clear_state() { + state_ = 0; + clear_has_state(); +} +inline ::hbase::pb::RegionState_State RegionState::state() const { + return static_cast< ::hbase::pb::RegionState_State >(state_); +} +inline void RegionState::set_state(::hbase::pb::RegionState_State value) { + assert(::hbase::pb::RegionState_State_IsValid(value)); + set_has_state(); + state_ = value; +} + +// optional uint64 stamp = 3; +inline bool RegionState::has_stamp() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RegionState::set_has_stamp() { + _has_bits_[0] |= 0x00000004u; +} +inline void RegionState::clear_has_stamp() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RegionState::clear_stamp() { + stamp_ = GOOGLE_ULONGLONG(0); + clear_has_stamp(); +} +inline ::google::protobuf::uint64 RegionState::stamp() const { + return stamp_; +} +inline void RegionState::set_stamp(::google::protobuf::uint64 value) { + set_has_stamp(); + stamp_ = value; +} + +// ------------------------------------------------------------------- + +// RegionInTransition + +// required .hbase.pb.RegionSpecifier spec = 1; +inline bool RegionInTransition::has_spec() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionInTransition::set_has_spec() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionInTransition::clear_has_spec() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionInTransition::clear_spec() { + if (spec_ != NULL) spec_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_spec(); +} +inline const ::hbase::pb::RegionSpecifier& RegionInTransition::spec() const { + return spec_ != NULL ? *spec_ : *default_instance_->spec_; +} +inline ::hbase::pb::RegionSpecifier* RegionInTransition::mutable_spec() { + set_has_spec(); + if (spec_ == NULL) spec_ = new ::hbase::pb::RegionSpecifier; + return spec_; +} +inline ::hbase::pb::RegionSpecifier* RegionInTransition::release_spec() { + clear_has_spec(); + ::hbase::pb::RegionSpecifier* temp = spec_; + spec_ = NULL; + return temp; +} +inline void RegionInTransition::set_allocated_spec(::hbase::pb::RegionSpecifier* spec) { + delete spec_; + spec_ = spec; + if (spec) { + set_has_spec(); + } else { + clear_has_spec(); + } +} + +// required .hbase.pb.RegionState region_state = 2; +inline bool RegionInTransition::has_region_state() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionInTransition::set_has_region_state() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionInTransition::clear_has_region_state() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionInTransition::clear_region_state() { + if (region_state_ != NULL) region_state_->::hbase::pb::RegionState::Clear(); + clear_has_region_state(); +} +inline const ::hbase::pb::RegionState& RegionInTransition::region_state() const { + return region_state_ != NULL ? *region_state_ : *default_instance_->region_state_; +} +inline ::hbase::pb::RegionState* RegionInTransition::mutable_region_state() { + set_has_region_state(); + if (region_state_ == NULL) region_state_ = new ::hbase::pb::RegionState; + return region_state_; +} +inline ::hbase::pb::RegionState* RegionInTransition::release_region_state() { + clear_has_region_state(); + ::hbase::pb::RegionState* temp = region_state_; + region_state_ = NULL; + return temp; +} +inline void RegionInTransition::set_allocated_region_state(::hbase::pb::RegionState* region_state) { + delete region_state_; + region_state_ = region_state; + if (region_state) { + set_has_region_state(); + } else { + clear_has_region_state(); + } +} + +// ------------------------------------------------------------------- + +// StoreSequenceId + +// required bytes family_name = 1; +inline bool StoreSequenceId::has_family_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StoreSequenceId::set_has_family_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void StoreSequenceId::clear_has_family_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StoreSequenceId::clear_family_name() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + clear_has_family_name(); +} +inline const ::std::string& StoreSequenceId::family_name() const { + return *family_name_; +} +inline void StoreSequenceId::set_family_name(const ::std::string& value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void StoreSequenceId::set_family_name(const char* value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void StoreSequenceId::set_family_name(const void* value, size_t size) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* StoreSequenceId::mutable_family_name() { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + return family_name_; +} +inline ::std::string* StoreSequenceId::release_family_name() { + clear_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_name_; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void StoreSequenceId::set_allocated_family_name(::std::string* family_name) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (family_name) { + set_has_family_name(); + family_name_ = family_name; + } else { + clear_has_family_name(); + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required uint64 sequence_id = 2; +inline bool StoreSequenceId::has_sequence_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StoreSequenceId::set_has_sequence_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void StoreSequenceId::clear_has_sequence_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StoreSequenceId::clear_sequence_id() { + sequence_id_ = GOOGLE_ULONGLONG(0); + clear_has_sequence_id(); +} +inline ::google::protobuf::uint64 StoreSequenceId::sequence_id() const { + return sequence_id_; +} +inline void StoreSequenceId::set_sequence_id(::google::protobuf::uint64 value) { + set_has_sequence_id(); + sequence_id_ = value; +} + +// ------------------------------------------------------------------- + +// RegionStoreSequenceIds + +// required uint64 last_flushed_sequence_id = 1; +inline bool RegionStoreSequenceIds::has_last_flushed_sequence_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionStoreSequenceIds::set_has_last_flushed_sequence_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionStoreSequenceIds::clear_has_last_flushed_sequence_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionStoreSequenceIds::clear_last_flushed_sequence_id() { + last_flushed_sequence_id_ = GOOGLE_ULONGLONG(0); + clear_has_last_flushed_sequence_id(); +} +inline ::google::protobuf::uint64 RegionStoreSequenceIds::last_flushed_sequence_id() const { + return last_flushed_sequence_id_; +} +inline void RegionStoreSequenceIds::set_last_flushed_sequence_id(::google::protobuf::uint64 value) { + set_has_last_flushed_sequence_id(); + last_flushed_sequence_id_ = value; +} + +// repeated .hbase.pb.StoreSequenceId store_sequence_id = 2; +inline int RegionStoreSequenceIds::store_sequence_id_size() const { + return store_sequence_id_.size(); +} +inline void RegionStoreSequenceIds::clear_store_sequence_id() { + store_sequence_id_.Clear(); +} +inline const ::hbase::pb::StoreSequenceId& RegionStoreSequenceIds::store_sequence_id(int index) const { + return store_sequence_id_.Get(index); +} +inline ::hbase::pb::StoreSequenceId* RegionStoreSequenceIds::mutable_store_sequence_id(int index) { + return store_sequence_id_.Mutable(index); +} +inline ::hbase::pb::StoreSequenceId* RegionStoreSequenceIds::add_store_sequence_id() { + return store_sequence_id_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >& +RegionStoreSequenceIds::store_sequence_id() const { + return store_sequence_id_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >* +RegionStoreSequenceIds::mutable_store_sequence_id() { + return &store_sequence_id_; +} + +// ------------------------------------------------------------------- + +// RegionLoad + +// required .hbase.pb.RegionSpecifier region_specifier = 1; +inline bool RegionLoad::has_region_specifier() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionLoad::set_has_region_specifier() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionLoad::clear_has_region_specifier() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionLoad::clear_region_specifier() { + if (region_specifier_ != NULL) region_specifier_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region_specifier(); +} +inline const ::hbase::pb::RegionSpecifier& RegionLoad::region_specifier() const { + return region_specifier_ != NULL ? *region_specifier_ : *default_instance_->region_specifier_; +} +inline ::hbase::pb::RegionSpecifier* RegionLoad::mutable_region_specifier() { + set_has_region_specifier(); + if (region_specifier_ == NULL) region_specifier_ = new ::hbase::pb::RegionSpecifier; + return region_specifier_; +} +inline ::hbase::pb::RegionSpecifier* RegionLoad::release_region_specifier() { + clear_has_region_specifier(); + ::hbase::pb::RegionSpecifier* temp = region_specifier_; + region_specifier_ = NULL; + return temp; +} +inline void RegionLoad::set_allocated_region_specifier(::hbase::pb::RegionSpecifier* region_specifier) { + delete region_specifier_; + region_specifier_ = region_specifier; + if (region_specifier) { + set_has_region_specifier(); + } else { + clear_has_region_specifier(); + } +} + +// optional uint32 stores = 2; +inline bool RegionLoad::has_stores() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionLoad::set_has_stores() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionLoad::clear_has_stores() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionLoad::clear_stores() { + stores_ = 0u; + clear_has_stores(); +} +inline ::google::protobuf::uint32 RegionLoad::stores() const { + return stores_; +} +inline void RegionLoad::set_stores(::google::protobuf::uint32 value) { + set_has_stores(); + stores_ = value; +} + +// optional uint32 storefiles = 3; +inline bool RegionLoad::has_storefiles() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RegionLoad::set_has_storefiles() { + _has_bits_[0] |= 0x00000004u; +} +inline void RegionLoad::clear_has_storefiles() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RegionLoad::clear_storefiles() { + storefiles_ = 0u; + clear_has_storefiles(); +} +inline ::google::protobuf::uint32 RegionLoad::storefiles() const { + return storefiles_; +} +inline void RegionLoad::set_storefiles(::google::protobuf::uint32 value) { + set_has_storefiles(); + storefiles_ = value; +} + +// optional uint32 store_uncompressed_size_MB = 4; +inline bool RegionLoad::has_store_uncompressed_size_mb() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RegionLoad::set_has_store_uncompressed_size_mb() { + _has_bits_[0] |= 0x00000008u; +} +inline void RegionLoad::clear_has_store_uncompressed_size_mb() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RegionLoad::clear_store_uncompressed_size_mb() { + store_uncompressed_size_mb_ = 0u; + clear_has_store_uncompressed_size_mb(); +} +inline ::google::protobuf::uint32 RegionLoad::store_uncompressed_size_mb() const { + return store_uncompressed_size_mb_; +} +inline void RegionLoad::set_store_uncompressed_size_mb(::google::protobuf::uint32 value) { + set_has_store_uncompressed_size_mb(); + store_uncompressed_size_mb_ = value; +} + +// optional uint32 storefile_size_MB = 5; +inline bool RegionLoad::has_storefile_size_mb() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void RegionLoad::set_has_storefile_size_mb() { + _has_bits_[0] |= 0x00000010u; +} +inline void RegionLoad::clear_has_storefile_size_mb() { + _has_bits_[0] &= ~0x00000010u; +} +inline void RegionLoad::clear_storefile_size_mb() { + storefile_size_mb_ = 0u; + clear_has_storefile_size_mb(); +} +inline ::google::protobuf::uint32 RegionLoad::storefile_size_mb() const { + return storefile_size_mb_; +} +inline void RegionLoad::set_storefile_size_mb(::google::protobuf::uint32 value) { + set_has_storefile_size_mb(); + storefile_size_mb_ = value; +} + +// optional uint32 memstore_size_MB = 6; +inline bool RegionLoad::has_memstore_size_mb() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void RegionLoad::set_has_memstore_size_mb() { + _has_bits_[0] |= 0x00000020u; +} +inline void RegionLoad::clear_has_memstore_size_mb() { + _has_bits_[0] &= ~0x00000020u; +} +inline void RegionLoad::clear_memstore_size_mb() { + memstore_size_mb_ = 0u; + clear_has_memstore_size_mb(); +} +inline ::google::protobuf::uint32 RegionLoad::memstore_size_mb() const { + return memstore_size_mb_; +} +inline void RegionLoad::set_memstore_size_mb(::google::protobuf::uint32 value) { + set_has_memstore_size_mb(); + memstore_size_mb_ = value; +} + +// optional uint32 storefile_index_size_MB = 7; +inline bool RegionLoad::has_storefile_index_size_mb() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void RegionLoad::set_has_storefile_index_size_mb() { + _has_bits_[0] |= 0x00000040u; +} +inline void RegionLoad::clear_has_storefile_index_size_mb() { + _has_bits_[0] &= ~0x00000040u; +} +inline void RegionLoad::clear_storefile_index_size_mb() { + storefile_index_size_mb_ = 0u; + clear_has_storefile_index_size_mb(); +} +inline ::google::protobuf::uint32 RegionLoad::storefile_index_size_mb() const { + return storefile_index_size_mb_; +} +inline void RegionLoad::set_storefile_index_size_mb(::google::protobuf::uint32 value) { + set_has_storefile_index_size_mb(); + storefile_index_size_mb_ = value; +} + +// optional uint64 read_requests_count = 8; +inline bool RegionLoad::has_read_requests_count() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void RegionLoad::set_has_read_requests_count() { + _has_bits_[0] |= 0x00000080u; +} +inline void RegionLoad::clear_has_read_requests_count() { + _has_bits_[0] &= ~0x00000080u; +} +inline void RegionLoad::clear_read_requests_count() { + read_requests_count_ = GOOGLE_ULONGLONG(0); + clear_has_read_requests_count(); +} +inline ::google::protobuf::uint64 RegionLoad::read_requests_count() const { + return read_requests_count_; +} +inline void RegionLoad::set_read_requests_count(::google::protobuf::uint64 value) { + set_has_read_requests_count(); + read_requests_count_ = value; +} + +// optional uint64 write_requests_count = 9; +inline bool RegionLoad::has_write_requests_count() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void RegionLoad::set_has_write_requests_count() { + _has_bits_[0] |= 0x00000100u; +} +inline void RegionLoad::clear_has_write_requests_count() { + _has_bits_[0] &= ~0x00000100u; +} +inline void RegionLoad::clear_write_requests_count() { + write_requests_count_ = GOOGLE_ULONGLONG(0); + clear_has_write_requests_count(); +} +inline ::google::protobuf::uint64 RegionLoad::write_requests_count() const { + return write_requests_count_; +} +inline void RegionLoad::set_write_requests_count(::google::protobuf::uint64 value) { + set_has_write_requests_count(); + write_requests_count_ = value; +} + +// optional uint64 total_compacting_KVs = 10; +inline bool RegionLoad::has_total_compacting_kvs() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void RegionLoad::set_has_total_compacting_kvs() { + _has_bits_[0] |= 0x00000200u; +} +inline void RegionLoad::clear_has_total_compacting_kvs() { + _has_bits_[0] &= ~0x00000200u; +} +inline void RegionLoad::clear_total_compacting_kvs() { + total_compacting_kvs_ = GOOGLE_ULONGLONG(0); + clear_has_total_compacting_kvs(); +} +inline ::google::protobuf::uint64 RegionLoad::total_compacting_kvs() const { + return total_compacting_kvs_; +} +inline void RegionLoad::set_total_compacting_kvs(::google::protobuf::uint64 value) { + set_has_total_compacting_kvs(); + total_compacting_kvs_ = value; +} + +// optional uint64 current_compacted_KVs = 11; +inline bool RegionLoad::has_current_compacted_kvs() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void RegionLoad::set_has_current_compacted_kvs() { + _has_bits_[0] |= 0x00000400u; +} +inline void RegionLoad::clear_has_current_compacted_kvs() { + _has_bits_[0] &= ~0x00000400u; +} +inline void RegionLoad::clear_current_compacted_kvs() { + current_compacted_kvs_ = GOOGLE_ULONGLONG(0); + clear_has_current_compacted_kvs(); +} +inline ::google::protobuf::uint64 RegionLoad::current_compacted_kvs() const { + return current_compacted_kvs_; +} +inline void RegionLoad::set_current_compacted_kvs(::google::protobuf::uint64 value) { + set_has_current_compacted_kvs(); + current_compacted_kvs_ = value; +} + +// optional uint32 root_index_size_KB = 12; +inline bool RegionLoad::has_root_index_size_kb() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void RegionLoad::set_has_root_index_size_kb() { + _has_bits_[0] |= 0x00000800u; +} +inline void RegionLoad::clear_has_root_index_size_kb() { + _has_bits_[0] &= ~0x00000800u; +} +inline void RegionLoad::clear_root_index_size_kb() { + root_index_size_kb_ = 0u; + clear_has_root_index_size_kb(); +} +inline ::google::protobuf::uint32 RegionLoad::root_index_size_kb() const { + return root_index_size_kb_; +} +inline void RegionLoad::set_root_index_size_kb(::google::protobuf::uint32 value) { + set_has_root_index_size_kb(); + root_index_size_kb_ = value; +} + +// optional uint32 total_static_index_size_KB = 13; +inline bool RegionLoad::has_total_static_index_size_kb() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void RegionLoad::set_has_total_static_index_size_kb() { + _has_bits_[0] |= 0x00001000u; +} +inline void RegionLoad::clear_has_total_static_index_size_kb() { + _has_bits_[0] &= ~0x00001000u; +} +inline void RegionLoad::clear_total_static_index_size_kb() { + total_static_index_size_kb_ = 0u; + clear_has_total_static_index_size_kb(); +} +inline ::google::protobuf::uint32 RegionLoad::total_static_index_size_kb() const { + return total_static_index_size_kb_; +} +inline void RegionLoad::set_total_static_index_size_kb(::google::protobuf::uint32 value) { + set_has_total_static_index_size_kb(); + total_static_index_size_kb_ = value; +} + +// optional uint32 total_static_bloom_size_KB = 14; +inline bool RegionLoad::has_total_static_bloom_size_kb() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void RegionLoad::set_has_total_static_bloom_size_kb() { + _has_bits_[0] |= 0x00002000u; +} +inline void RegionLoad::clear_has_total_static_bloom_size_kb() { + _has_bits_[0] &= ~0x00002000u; +} +inline void RegionLoad::clear_total_static_bloom_size_kb() { + total_static_bloom_size_kb_ = 0u; + clear_has_total_static_bloom_size_kb(); +} +inline ::google::protobuf::uint32 RegionLoad::total_static_bloom_size_kb() const { + return total_static_bloom_size_kb_; +} +inline void RegionLoad::set_total_static_bloom_size_kb(::google::protobuf::uint32 value) { + set_has_total_static_bloom_size_kb(); + total_static_bloom_size_kb_ = value; +} + +// optional uint64 complete_sequence_id = 15; +inline bool RegionLoad::has_complete_sequence_id() const { + return (_has_bits_[0] & 0x00004000u) != 0; +} +inline void RegionLoad::set_has_complete_sequence_id() { + _has_bits_[0] |= 0x00004000u; +} +inline void RegionLoad::clear_has_complete_sequence_id() { + _has_bits_[0] &= ~0x00004000u; +} +inline void RegionLoad::clear_complete_sequence_id() { + complete_sequence_id_ = GOOGLE_ULONGLONG(0); + clear_has_complete_sequence_id(); +} +inline ::google::protobuf::uint64 RegionLoad::complete_sequence_id() const { + return complete_sequence_id_; +} +inline void RegionLoad::set_complete_sequence_id(::google::protobuf::uint64 value) { + set_has_complete_sequence_id(); + complete_sequence_id_ = value; +} + +// optional float data_locality = 16; +inline bool RegionLoad::has_data_locality() const { + return (_has_bits_[0] & 0x00008000u) != 0; +} +inline void RegionLoad::set_has_data_locality() { + _has_bits_[0] |= 0x00008000u; +} +inline void RegionLoad::clear_has_data_locality() { + _has_bits_[0] &= ~0x00008000u; +} +inline void RegionLoad::clear_data_locality() { + data_locality_ = 0; + clear_has_data_locality(); +} +inline float RegionLoad::data_locality() const { + return data_locality_; +} +inline void RegionLoad::set_data_locality(float value) { + set_has_data_locality(); + data_locality_ = value; +} + +// optional uint64 last_major_compaction_ts = 17 [default = 0]; +inline bool RegionLoad::has_last_major_compaction_ts() const { + return (_has_bits_[0] & 0x00010000u) != 0; +} +inline void RegionLoad::set_has_last_major_compaction_ts() { + _has_bits_[0] |= 0x00010000u; +} +inline void RegionLoad::clear_has_last_major_compaction_ts() { + _has_bits_[0] &= ~0x00010000u; +} +inline void RegionLoad::clear_last_major_compaction_ts() { + last_major_compaction_ts_ = GOOGLE_ULONGLONG(0); + clear_has_last_major_compaction_ts(); +} +inline ::google::protobuf::uint64 RegionLoad::last_major_compaction_ts() const { + return last_major_compaction_ts_; +} +inline void RegionLoad::set_last_major_compaction_ts(::google::protobuf::uint64 value) { + set_has_last_major_compaction_ts(); + last_major_compaction_ts_ = value; +} + +// repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18; +inline int RegionLoad::store_complete_sequence_id_size() const { + return store_complete_sequence_id_.size(); +} +inline void RegionLoad::clear_store_complete_sequence_id() { + store_complete_sequence_id_.Clear(); +} +inline const ::hbase::pb::StoreSequenceId& RegionLoad::store_complete_sequence_id(int index) const { + return store_complete_sequence_id_.Get(index); +} +inline ::hbase::pb::StoreSequenceId* RegionLoad::mutable_store_complete_sequence_id(int index) { + return store_complete_sequence_id_.Mutable(index); +} +inline ::hbase::pb::StoreSequenceId* RegionLoad::add_store_complete_sequence_id() { + return store_complete_sequence_id_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >& +RegionLoad::store_complete_sequence_id() const { + return store_complete_sequence_id_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >* +RegionLoad::mutable_store_complete_sequence_id() { + return &store_complete_sequence_id_; +} + +// optional uint64 filtered_read_requests_count = 19; +inline bool RegionLoad::has_filtered_read_requests_count() const { + return (_has_bits_[0] & 0x00040000u) != 0; +} +inline void RegionLoad::set_has_filtered_read_requests_count() { + _has_bits_[0] |= 0x00040000u; +} +inline void RegionLoad::clear_has_filtered_read_requests_count() { + _has_bits_[0] &= ~0x00040000u; +} +inline void RegionLoad::clear_filtered_read_requests_count() { + filtered_read_requests_count_ = GOOGLE_ULONGLONG(0); + clear_has_filtered_read_requests_count(); +} +inline ::google::protobuf::uint64 RegionLoad::filtered_read_requests_count() const { + return filtered_read_requests_count_; +} +inline void RegionLoad::set_filtered_read_requests_count(::google::protobuf::uint64 value) { + set_has_filtered_read_requests_count(); + filtered_read_requests_count_ = value; +} + +// ------------------------------------------------------------------- + +// ReplicationLoadSink + +// required uint64 ageOfLastAppliedOp = 1; +inline bool ReplicationLoadSink::has_ageoflastappliedop() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReplicationLoadSink::set_has_ageoflastappliedop() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReplicationLoadSink::clear_has_ageoflastappliedop() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReplicationLoadSink::clear_ageoflastappliedop() { + ageoflastappliedop_ = GOOGLE_ULONGLONG(0); + clear_has_ageoflastappliedop(); +} +inline ::google::protobuf::uint64 ReplicationLoadSink::ageoflastappliedop() const { + return ageoflastappliedop_; +} +inline void ReplicationLoadSink::set_ageoflastappliedop(::google::protobuf::uint64 value) { + set_has_ageoflastappliedop(); + ageoflastappliedop_ = value; +} + +// required uint64 timeStampsOfLastAppliedOp = 2; +inline bool ReplicationLoadSink::has_timestampsoflastappliedop() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ReplicationLoadSink::set_has_timestampsoflastappliedop() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReplicationLoadSink::clear_has_timestampsoflastappliedop() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ReplicationLoadSink::clear_timestampsoflastappliedop() { + timestampsoflastappliedop_ = GOOGLE_ULONGLONG(0); + clear_has_timestampsoflastappliedop(); +} +inline ::google::protobuf::uint64 ReplicationLoadSink::timestampsoflastappliedop() const { + return timestampsoflastappliedop_; +} +inline void ReplicationLoadSink::set_timestampsoflastappliedop(::google::protobuf::uint64 value) { + set_has_timestampsoflastappliedop(); + timestampsoflastappliedop_ = value; +} + +// ------------------------------------------------------------------- + +// ReplicationLoadSource + +// required string peerID = 1; +inline bool ReplicationLoadSource::has_peerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReplicationLoadSource::set_has_peerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReplicationLoadSource::clear_has_peerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReplicationLoadSource::clear_peerid() { + if (peerid_ != &::google::protobuf::internal::kEmptyString) { + peerid_->clear(); + } + clear_has_peerid(); +} +inline const ::std::string& ReplicationLoadSource::peerid() const { + return *peerid_; +} +inline void ReplicationLoadSource::set_peerid(const ::std::string& value) { + set_has_peerid(); + if (peerid_ == &::google::protobuf::internal::kEmptyString) { + peerid_ = new ::std::string; + } + peerid_->assign(value); +} +inline void ReplicationLoadSource::set_peerid(const char* value) { + set_has_peerid(); + if (peerid_ == &::google::protobuf::internal::kEmptyString) { + peerid_ = new ::std::string; + } + peerid_->assign(value); +} +inline void ReplicationLoadSource::set_peerid(const char* value, size_t size) { + set_has_peerid(); + if (peerid_ == &::google::protobuf::internal::kEmptyString) { + peerid_ = new ::std::string; + } + peerid_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReplicationLoadSource::mutable_peerid() { + set_has_peerid(); + if (peerid_ == &::google::protobuf::internal::kEmptyString) { + peerid_ = new ::std::string; + } + return peerid_; +} +inline ::std::string* ReplicationLoadSource::release_peerid() { + clear_has_peerid(); + if (peerid_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = peerid_; + peerid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReplicationLoadSource::set_allocated_peerid(::std::string* peerid) { + if (peerid_ != &::google::protobuf::internal::kEmptyString) { + delete peerid_; + } + if (peerid) { + set_has_peerid(); + peerid_ = peerid; + } else { + clear_has_peerid(); + peerid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required uint64 ageOfLastShippedOp = 2; +inline bool ReplicationLoadSource::has_ageoflastshippedop() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ReplicationLoadSource::set_has_ageoflastshippedop() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReplicationLoadSource::clear_has_ageoflastshippedop() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ReplicationLoadSource::clear_ageoflastshippedop() { + ageoflastshippedop_ = GOOGLE_ULONGLONG(0); + clear_has_ageoflastshippedop(); +} +inline ::google::protobuf::uint64 ReplicationLoadSource::ageoflastshippedop() const { + return ageoflastshippedop_; +} +inline void ReplicationLoadSource::set_ageoflastshippedop(::google::protobuf::uint64 value) { + set_has_ageoflastshippedop(); + ageoflastshippedop_ = value; +} + +// required uint32 sizeOfLogQueue = 3; +inline bool ReplicationLoadSource::has_sizeoflogqueue() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ReplicationLoadSource::set_has_sizeoflogqueue() { + _has_bits_[0] |= 0x00000004u; +} +inline void ReplicationLoadSource::clear_has_sizeoflogqueue() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ReplicationLoadSource::clear_sizeoflogqueue() { + sizeoflogqueue_ = 0u; + clear_has_sizeoflogqueue(); +} +inline ::google::protobuf::uint32 ReplicationLoadSource::sizeoflogqueue() const { + return sizeoflogqueue_; +} +inline void ReplicationLoadSource::set_sizeoflogqueue(::google::protobuf::uint32 value) { + set_has_sizeoflogqueue(); + sizeoflogqueue_ = value; +} + +// required uint64 timeStampOfLastShippedOp = 4; +inline bool ReplicationLoadSource::has_timestampoflastshippedop() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ReplicationLoadSource::set_has_timestampoflastshippedop() { + _has_bits_[0] |= 0x00000008u; +} +inline void ReplicationLoadSource::clear_has_timestampoflastshippedop() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ReplicationLoadSource::clear_timestampoflastshippedop() { + timestampoflastshippedop_ = GOOGLE_ULONGLONG(0); + clear_has_timestampoflastshippedop(); +} +inline ::google::protobuf::uint64 ReplicationLoadSource::timestampoflastshippedop() const { + return timestampoflastshippedop_; +} +inline void ReplicationLoadSource::set_timestampoflastshippedop(::google::protobuf::uint64 value) { + set_has_timestampoflastshippedop(); + timestampoflastshippedop_ = value; +} + +// required uint64 replicationLag = 5; +inline bool ReplicationLoadSource::has_replicationlag() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ReplicationLoadSource::set_has_replicationlag() { + _has_bits_[0] |= 0x00000010u; +} +inline void ReplicationLoadSource::clear_has_replicationlag() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ReplicationLoadSource::clear_replicationlag() { + replicationlag_ = GOOGLE_ULONGLONG(0); + clear_has_replicationlag(); +} +inline ::google::protobuf::uint64 ReplicationLoadSource::replicationlag() const { + return replicationlag_; +} +inline void ReplicationLoadSource::set_replicationlag(::google::protobuf::uint64 value) { + set_has_replicationlag(); + replicationlag_ = value; +} + +// ------------------------------------------------------------------- + +// ServerLoad + +// optional uint64 number_of_requests = 1; +inline bool ServerLoad::has_number_of_requests() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ServerLoad::set_has_number_of_requests() { + _has_bits_[0] |= 0x00000001u; +} +inline void ServerLoad::clear_has_number_of_requests() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ServerLoad::clear_number_of_requests() { + number_of_requests_ = GOOGLE_ULONGLONG(0); + clear_has_number_of_requests(); +} +inline ::google::protobuf::uint64 ServerLoad::number_of_requests() const { + return number_of_requests_; +} +inline void ServerLoad::set_number_of_requests(::google::protobuf::uint64 value) { + set_has_number_of_requests(); + number_of_requests_ = value; +} + +// optional uint64 total_number_of_requests = 2; +inline bool ServerLoad::has_total_number_of_requests() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ServerLoad::set_has_total_number_of_requests() { + _has_bits_[0] |= 0x00000002u; +} +inline void ServerLoad::clear_has_total_number_of_requests() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ServerLoad::clear_total_number_of_requests() { + total_number_of_requests_ = GOOGLE_ULONGLONG(0); + clear_has_total_number_of_requests(); +} +inline ::google::protobuf::uint64 ServerLoad::total_number_of_requests() const { + return total_number_of_requests_; +} +inline void ServerLoad::set_total_number_of_requests(::google::protobuf::uint64 value) { + set_has_total_number_of_requests(); + total_number_of_requests_ = value; +} + +// optional uint32 used_heap_MB = 3; +inline bool ServerLoad::has_used_heap_mb() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ServerLoad::set_has_used_heap_mb() { + _has_bits_[0] |= 0x00000004u; +} +inline void ServerLoad::clear_has_used_heap_mb() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ServerLoad::clear_used_heap_mb() { + used_heap_mb_ = 0u; + clear_has_used_heap_mb(); +} +inline ::google::protobuf::uint32 ServerLoad::used_heap_mb() const { + return used_heap_mb_; +} +inline void ServerLoad::set_used_heap_mb(::google::protobuf::uint32 value) { + set_has_used_heap_mb(); + used_heap_mb_ = value; +} + +// optional uint32 max_heap_MB = 4; +inline bool ServerLoad::has_max_heap_mb() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ServerLoad::set_has_max_heap_mb() { + _has_bits_[0] |= 0x00000008u; +} +inline void ServerLoad::clear_has_max_heap_mb() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ServerLoad::clear_max_heap_mb() { + max_heap_mb_ = 0u; + clear_has_max_heap_mb(); +} +inline ::google::protobuf::uint32 ServerLoad::max_heap_mb() const { + return max_heap_mb_; +} +inline void ServerLoad::set_max_heap_mb(::google::protobuf::uint32 value) { + set_has_max_heap_mb(); + max_heap_mb_ = value; +} + +// repeated .hbase.pb.RegionLoad region_loads = 5; +inline int ServerLoad::region_loads_size() const { + return region_loads_.size(); +} +inline void ServerLoad::clear_region_loads() { + region_loads_.Clear(); +} +inline const ::hbase::pb::RegionLoad& ServerLoad::region_loads(int index) const { + return region_loads_.Get(index); +} +inline ::hbase::pb::RegionLoad* ServerLoad::mutable_region_loads(int index) { + return region_loads_.Mutable(index); +} +inline ::hbase::pb::RegionLoad* ServerLoad::add_region_loads() { + return region_loads_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoad >& +ServerLoad::region_loads() const { + return region_loads_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionLoad >* +ServerLoad::mutable_region_loads() { + return ®ion_loads_; +} + +// repeated .hbase.pb.Coprocessor coprocessors = 6; +inline int ServerLoad::coprocessors_size() const { + return coprocessors_.size(); +} +inline void ServerLoad::clear_coprocessors() { + coprocessors_.Clear(); +} +inline const ::hbase::pb::Coprocessor& ServerLoad::coprocessors(int index) const { + return coprocessors_.Get(index); +} +inline ::hbase::pb::Coprocessor* ServerLoad::mutable_coprocessors(int index) { + return coprocessors_.Mutable(index); +} +inline ::hbase::pb::Coprocessor* ServerLoad::add_coprocessors() { + return coprocessors_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor >& +ServerLoad::coprocessors() const { + return coprocessors_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor >* +ServerLoad::mutable_coprocessors() { + return &coprocessors_; +} + +// optional uint64 report_start_time = 7; +inline bool ServerLoad::has_report_start_time() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void ServerLoad::set_has_report_start_time() { + _has_bits_[0] |= 0x00000040u; +} +inline void ServerLoad::clear_has_report_start_time() { + _has_bits_[0] &= ~0x00000040u; +} +inline void ServerLoad::clear_report_start_time() { + report_start_time_ = GOOGLE_ULONGLONG(0); + clear_has_report_start_time(); +} +inline ::google::protobuf::uint64 ServerLoad::report_start_time() const { + return report_start_time_; +} +inline void ServerLoad::set_report_start_time(::google::protobuf::uint64 value) { + set_has_report_start_time(); + report_start_time_ = value; +} + +// optional uint64 report_end_time = 8; +inline bool ServerLoad::has_report_end_time() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void ServerLoad::set_has_report_end_time() { + _has_bits_[0] |= 0x00000080u; +} +inline void ServerLoad::clear_has_report_end_time() { + _has_bits_[0] &= ~0x00000080u; +} +inline void ServerLoad::clear_report_end_time() { + report_end_time_ = GOOGLE_ULONGLONG(0); + clear_has_report_end_time(); +} +inline ::google::protobuf::uint64 ServerLoad::report_end_time() const { + return report_end_time_; +} +inline void ServerLoad::set_report_end_time(::google::protobuf::uint64 value) { + set_has_report_end_time(); + report_end_time_ = value; +} + +// optional uint32 info_server_port = 9; +inline bool ServerLoad::has_info_server_port() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void ServerLoad::set_has_info_server_port() { + _has_bits_[0] |= 0x00000100u; +} +inline void ServerLoad::clear_has_info_server_port() { + _has_bits_[0] &= ~0x00000100u; +} +inline void ServerLoad::clear_info_server_port() { + info_server_port_ = 0u; + clear_has_info_server_port(); +} +inline ::google::protobuf::uint32 ServerLoad::info_server_port() const { + return info_server_port_; +} +inline void ServerLoad::set_info_server_port(::google::protobuf::uint32 value) { + set_has_info_server_port(); + info_server_port_ = value; +} + +// repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10; +inline int ServerLoad::replloadsource_size() const { + return replloadsource_.size(); +} +inline void ServerLoad::clear_replloadsource() { + replloadsource_.Clear(); +} +inline const ::hbase::pb::ReplicationLoadSource& ServerLoad::replloadsource(int index) const { + return replloadsource_.Get(index); +} +inline ::hbase::pb::ReplicationLoadSource* ServerLoad::mutable_replloadsource(int index) { + return replloadsource_.Mutable(index); +} +inline ::hbase::pb::ReplicationLoadSource* ServerLoad::add_replloadsource() { + return replloadsource_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ReplicationLoadSource >& +ServerLoad::replloadsource() const { + return replloadsource_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ReplicationLoadSource >* +ServerLoad::mutable_replloadsource() { + return &replloadsource_; +} + +// optional .hbase.pb.ReplicationLoadSink replLoadSink = 11; +inline bool ServerLoad::has_replloadsink() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void ServerLoad::set_has_replloadsink() { + _has_bits_[0] |= 0x00000400u; +} +inline void ServerLoad::clear_has_replloadsink() { + _has_bits_[0] &= ~0x00000400u; +} +inline void ServerLoad::clear_replloadsink() { + if (replloadsink_ != NULL) replloadsink_->::hbase::pb::ReplicationLoadSink::Clear(); + clear_has_replloadsink(); +} +inline const ::hbase::pb::ReplicationLoadSink& ServerLoad::replloadsink() const { + return replloadsink_ != NULL ? *replloadsink_ : *default_instance_->replloadsink_; +} +inline ::hbase::pb::ReplicationLoadSink* ServerLoad::mutable_replloadsink() { + set_has_replloadsink(); + if (replloadsink_ == NULL) replloadsink_ = new ::hbase::pb::ReplicationLoadSink; + return replloadsink_; +} +inline ::hbase::pb::ReplicationLoadSink* ServerLoad::release_replloadsink() { + clear_has_replloadsink(); + ::hbase::pb::ReplicationLoadSink* temp = replloadsink_; + replloadsink_ = NULL; + return temp; +} +inline void ServerLoad::set_allocated_replloadsink(::hbase::pb::ReplicationLoadSink* replloadsink) { + delete replloadsink_; + replloadsink_ = replloadsink; + if (replloadsink) { + set_has_replloadsink(); + } else { + clear_has_replloadsink(); + } +} + +// ------------------------------------------------------------------- + +// LiveServerInfo + +// required .hbase.pb.ServerName server = 1; +inline bool LiveServerInfo::has_server() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LiveServerInfo::set_has_server() { + _has_bits_[0] |= 0x00000001u; +} +inline void LiveServerInfo::clear_has_server() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LiveServerInfo::clear_server() { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + clear_has_server(); +} +inline const ::hbase::pb::ServerName& LiveServerInfo::server() const { + return server_ != NULL ? *server_ : *default_instance_->server_; +} +inline ::hbase::pb::ServerName* LiveServerInfo::mutable_server() { + set_has_server(); + if (server_ == NULL) server_ = new ::hbase::pb::ServerName; + return server_; +} +inline ::hbase::pb::ServerName* LiveServerInfo::release_server() { + clear_has_server(); + ::hbase::pb::ServerName* temp = server_; + server_ = NULL; + return temp; +} +inline void LiveServerInfo::set_allocated_server(::hbase::pb::ServerName* server) { + delete server_; + server_ = server; + if (server) { + set_has_server(); + } else { + clear_has_server(); + } +} + +// required .hbase.pb.ServerLoad server_load = 2; +inline bool LiveServerInfo::has_server_load() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void LiveServerInfo::set_has_server_load() { + _has_bits_[0] |= 0x00000002u; +} +inline void LiveServerInfo::clear_has_server_load() { + _has_bits_[0] &= ~0x00000002u; +} +inline void LiveServerInfo::clear_server_load() { + if (server_load_ != NULL) server_load_->::hbase::pb::ServerLoad::Clear(); + clear_has_server_load(); +} +inline const ::hbase::pb::ServerLoad& LiveServerInfo::server_load() const { + return server_load_ != NULL ? *server_load_ : *default_instance_->server_load_; +} +inline ::hbase::pb::ServerLoad* LiveServerInfo::mutable_server_load() { + set_has_server_load(); + if (server_load_ == NULL) server_load_ = new ::hbase::pb::ServerLoad; + return server_load_; +} +inline ::hbase::pb::ServerLoad* LiveServerInfo::release_server_load() { + clear_has_server_load(); + ::hbase::pb::ServerLoad* temp = server_load_; + server_load_ = NULL; + return temp; +} +inline void LiveServerInfo::set_allocated_server_load(::hbase::pb::ServerLoad* server_load) { + delete server_load_; + server_load_ = server_load; + if (server_load) { + set_has_server_load(); + } else { + clear_has_server_load(); + } +} + +// ------------------------------------------------------------------- + +// ClusterStatus + +// optional .hbase.pb.HBaseVersionFileContent hbase_version = 1; +inline bool ClusterStatus::has_hbase_version() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ClusterStatus::set_has_hbase_version() { + _has_bits_[0] |= 0x00000001u; +} +inline void ClusterStatus::clear_has_hbase_version() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ClusterStatus::clear_hbase_version() { + if (hbase_version_ != NULL) hbase_version_->::hbase::pb::HBaseVersionFileContent::Clear(); + clear_has_hbase_version(); +} +inline const ::hbase::pb::HBaseVersionFileContent& ClusterStatus::hbase_version() const { + return hbase_version_ != NULL ? *hbase_version_ : *default_instance_->hbase_version_; +} +inline ::hbase::pb::HBaseVersionFileContent* ClusterStatus::mutable_hbase_version() { + set_has_hbase_version(); + if (hbase_version_ == NULL) hbase_version_ = new ::hbase::pb::HBaseVersionFileContent; + return hbase_version_; +} +inline ::hbase::pb::HBaseVersionFileContent* ClusterStatus::release_hbase_version() { + clear_has_hbase_version(); + ::hbase::pb::HBaseVersionFileContent* temp = hbase_version_; + hbase_version_ = NULL; + return temp; +} +inline void ClusterStatus::set_allocated_hbase_version(::hbase::pb::HBaseVersionFileContent* hbase_version) { + delete hbase_version_; + hbase_version_ = hbase_version; + if (hbase_version) { + set_has_hbase_version(); + } else { + clear_has_hbase_version(); + } +} + +// repeated .hbase.pb.LiveServerInfo live_servers = 2; +inline int ClusterStatus::live_servers_size() const { + return live_servers_.size(); +} +inline void ClusterStatus::clear_live_servers() { + live_servers_.Clear(); +} +inline const ::hbase::pb::LiveServerInfo& ClusterStatus::live_servers(int index) const { + return live_servers_.Get(index); +} +inline ::hbase::pb::LiveServerInfo* ClusterStatus::mutable_live_servers(int index) { + return live_servers_.Mutable(index); +} +inline ::hbase::pb::LiveServerInfo* ClusterStatus::add_live_servers() { + return live_servers_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::LiveServerInfo >& +ClusterStatus::live_servers() const { + return live_servers_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::LiveServerInfo >* +ClusterStatus::mutable_live_servers() { + return &live_servers_; +} + +// repeated .hbase.pb.ServerName dead_servers = 3; +inline int ClusterStatus::dead_servers_size() const { + return dead_servers_.size(); +} +inline void ClusterStatus::clear_dead_servers() { + dead_servers_.Clear(); +} +inline const ::hbase::pb::ServerName& ClusterStatus::dead_servers(int index) const { + return dead_servers_.Get(index); +} +inline ::hbase::pb::ServerName* ClusterStatus::mutable_dead_servers(int index) { + return dead_servers_.Mutable(index); +} +inline ::hbase::pb::ServerName* ClusterStatus::add_dead_servers() { + return dead_servers_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& +ClusterStatus::dead_servers() const { + return dead_servers_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* +ClusterStatus::mutable_dead_servers() { + return &dead_servers_; +} + +// repeated .hbase.pb.RegionInTransition regions_in_transition = 4; +inline int ClusterStatus::regions_in_transition_size() const { + return regions_in_transition_.size(); +} +inline void ClusterStatus::clear_regions_in_transition() { + regions_in_transition_.Clear(); +} +inline const ::hbase::pb::RegionInTransition& ClusterStatus::regions_in_transition(int index) const { + return regions_in_transition_.Get(index); +} +inline ::hbase::pb::RegionInTransition* ClusterStatus::mutable_regions_in_transition(int index) { + return regions_in_transition_.Mutable(index); +} +inline ::hbase::pb::RegionInTransition* ClusterStatus::add_regions_in_transition() { + return regions_in_transition_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInTransition >& +ClusterStatus::regions_in_transition() const { + return regions_in_transition_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInTransition >* +ClusterStatus::mutable_regions_in_transition() { + return ®ions_in_transition_; +} + +// optional .hbase.pb.ClusterId cluster_id = 5; +inline bool ClusterStatus::has_cluster_id() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ClusterStatus::set_has_cluster_id() { + _has_bits_[0] |= 0x00000010u; +} +inline void ClusterStatus::clear_has_cluster_id() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ClusterStatus::clear_cluster_id() { + if (cluster_id_ != NULL) cluster_id_->::hbase::pb::ClusterId::Clear(); + clear_has_cluster_id(); +} +inline const ::hbase::pb::ClusterId& ClusterStatus::cluster_id() const { + return cluster_id_ != NULL ? *cluster_id_ : *default_instance_->cluster_id_; +} +inline ::hbase::pb::ClusterId* ClusterStatus::mutable_cluster_id() { + set_has_cluster_id(); + if (cluster_id_ == NULL) cluster_id_ = new ::hbase::pb::ClusterId; + return cluster_id_; +} +inline ::hbase::pb::ClusterId* ClusterStatus::release_cluster_id() { + clear_has_cluster_id(); + ::hbase::pb::ClusterId* temp = cluster_id_; + cluster_id_ = NULL; + return temp; +} +inline void ClusterStatus::set_allocated_cluster_id(::hbase::pb::ClusterId* cluster_id) { + delete cluster_id_; + cluster_id_ = cluster_id; + if (cluster_id) { + set_has_cluster_id(); + } else { + clear_has_cluster_id(); + } +} + +// repeated .hbase.pb.Coprocessor master_coprocessors = 6; +inline int ClusterStatus::master_coprocessors_size() const { + return master_coprocessors_.size(); +} +inline void ClusterStatus::clear_master_coprocessors() { + master_coprocessors_.Clear(); +} +inline const ::hbase::pb::Coprocessor& ClusterStatus::master_coprocessors(int index) const { + return master_coprocessors_.Get(index); +} +inline ::hbase::pb::Coprocessor* ClusterStatus::mutable_master_coprocessors(int index) { + return master_coprocessors_.Mutable(index); +} +inline ::hbase::pb::Coprocessor* ClusterStatus::add_master_coprocessors() { + return master_coprocessors_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor >& +ClusterStatus::master_coprocessors() const { + return master_coprocessors_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Coprocessor >* +ClusterStatus::mutable_master_coprocessors() { + return &master_coprocessors_; +} + +// optional .hbase.pb.ServerName master = 7; +inline bool ClusterStatus::has_master() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void ClusterStatus::set_has_master() { + _has_bits_[0] |= 0x00000040u; +} +inline void ClusterStatus::clear_has_master() { + _has_bits_[0] &= ~0x00000040u; +} +inline void ClusterStatus::clear_master() { + if (master_ != NULL) master_->::hbase::pb::ServerName::Clear(); + clear_has_master(); +} +inline const ::hbase::pb::ServerName& ClusterStatus::master() const { + return master_ != NULL ? *master_ : *default_instance_->master_; +} +inline ::hbase::pb::ServerName* ClusterStatus::mutable_master() { + set_has_master(); + if (master_ == NULL) master_ = new ::hbase::pb::ServerName; + return master_; +} +inline ::hbase::pb::ServerName* ClusterStatus::release_master() { + clear_has_master(); + ::hbase::pb::ServerName* temp = master_; + master_ = NULL; + return temp; +} +inline void ClusterStatus::set_allocated_master(::hbase::pb::ServerName* master) { + delete master_; + master_ = master; + if (master) { + set_has_master(); + } else { + clear_has_master(); + } +} + +// repeated .hbase.pb.ServerName backup_masters = 8; +inline int ClusterStatus::backup_masters_size() const { + return backup_masters_.size(); +} +inline void ClusterStatus::clear_backup_masters() { + backup_masters_.Clear(); +} +inline const ::hbase::pb::ServerName& ClusterStatus::backup_masters(int index) const { + return backup_masters_.Get(index); +} +inline ::hbase::pb::ServerName* ClusterStatus::mutable_backup_masters(int index) { + return backup_masters_.Mutable(index); +} +inline ::hbase::pb::ServerName* ClusterStatus::add_backup_masters() { + return backup_masters_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& +ClusterStatus::backup_masters() const { + return backup_masters_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* +ClusterStatus::mutable_backup_masters() { + return &backup_masters_; +} + +// optional bool balancer_on = 9; +inline bool ClusterStatus::has_balancer_on() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void ClusterStatus::set_has_balancer_on() { + _has_bits_[0] |= 0x00000100u; +} +inline void ClusterStatus::clear_has_balancer_on() { + _has_bits_[0] &= ~0x00000100u; +} +inline void ClusterStatus::clear_balancer_on() { + balancer_on_ = false; + clear_has_balancer_on(); +} +inline bool ClusterStatus::balancer_on() const { + return balancer_on_; +} +inline void ClusterStatus::set_balancer_on(bool value) { + set_has_balancer_on(); + balancer_on_ = value; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::RegionState_State>() { + return ::hbase::pb::RegionState_State_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_ClusterStatus_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Comparator.pb.cc b/hbase-native-client/src/rpc/generated/Comparator.pb.cc new file mode 100644 index 0000000..cb4049e --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Comparator.pb.cc @@ -0,0 +1,2495 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Comparator.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Comparator.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* Comparator_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Comparator_reflection_ = NULL; +const ::google::protobuf::Descriptor* ByteArrayComparable_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ByteArrayComparable_reflection_ = NULL; +const ::google::protobuf::Descriptor* BinaryComparator_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BinaryComparator_reflection_ = NULL; +const ::google::protobuf::Descriptor* LongComparator_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + LongComparator_reflection_ = NULL; +const ::google::protobuf::Descriptor* BinaryPrefixComparator_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BinaryPrefixComparator_reflection_ = NULL; +const ::google::protobuf::Descriptor* BitComparator_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BitComparator_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* BitComparator_BitwiseOp_descriptor_ = NULL; +const ::google::protobuf::Descriptor* NullComparator_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NullComparator_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegexStringComparator_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegexStringComparator_reflection_ = NULL; +const ::google::protobuf::Descriptor* SubstringComparator_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SubstringComparator_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Comparator_2eproto() { + protobuf_AddDesc_Comparator_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Comparator.proto"); + GOOGLE_CHECK(file != NULL); + Comparator_descriptor_ = file->message_type(0); + static const int Comparator_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Comparator, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Comparator, serialized_comparator_), + }; + Comparator_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Comparator_descriptor_, + Comparator::default_instance_, + Comparator_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Comparator, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Comparator, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Comparator)); + ByteArrayComparable_descriptor_ = file->message_type(1); + static const int ByteArrayComparable_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ByteArrayComparable, value_), + }; + ByteArrayComparable_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ByteArrayComparable_descriptor_, + ByteArrayComparable::default_instance_, + ByteArrayComparable_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ByteArrayComparable, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ByteArrayComparable, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ByteArrayComparable)); + BinaryComparator_descriptor_ = file->message_type(2); + static const int BinaryComparator_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BinaryComparator, comparable_), + }; + BinaryComparator_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BinaryComparator_descriptor_, + BinaryComparator::default_instance_, + BinaryComparator_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BinaryComparator, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BinaryComparator, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BinaryComparator)); + LongComparator_descriptor_ = file->message_type(3); + static const int LongComparator_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LongComparator, comparable_), + }; + LongComparator_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + LongComparator_descriptor_, + LongComparator::default_instance_, + LongComparator_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LongComparator, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LongComparator, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(LongComparator)); + BinaryPrefixComparator_descriptor_ = file->message_type(4); + static const int BinaryPrefixComparator_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BinaryPrefixComparator, comparable_), + }; + BinaryPrefixComparator_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BinaryPrefixComparator_descriptor_, + BinaryPrefixComparator::default_instance_, + BinaryPrefixComparator_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BinaryPrefixComparator, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BinaryPrefixComparator, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BinaryPrefixComparator)); + BitComparator_descriptor_ = file->message_type(5); + static const int BitComparator_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitComparator, comparable_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitComparator, bitwise_op_), + }; + BitComparator_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BitComparator_descriptor_, + BitComparator::default_instance_, + BitComparator_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitComparator, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitComparator, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BitComparator)); + BitComparator_BitwiseOp_descriptor_ = BitComparator_descriptor_->enum_type(0); + NullComparator_descriptor_ = file->message_type(6); + static const int NullComparator_offsets_[1] = { + }; + NullComparator_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NullComparator_descriptor_, + NullComparator::default_instance_, + NullComparator_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NullComparator, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NullComparator, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NullComparator)); + RegexStringComparator_descriptor_ = file->message_type(7); + static const int RegexStringComparator_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegexStringComparator, pattern_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegexStringComparator, pattern_flags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegexStringComparator, charset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegexStringComparator, engine_), + }; + RegexStringComparator_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegexStringComparator_descriptor_, + RegexStringComparator::default_instance_, + RegexStringComparator_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegexStringComparator, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegexStringComparator, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegexStringComparator)); + SubstringComparator_descriptor_ = file->message_type(8); + static const int SubstringComparator_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubstringComparator, substr_), + }; + SubstringComparator_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SubstringComparator_descriptor_, + SubstringComparator::default_instance_, + SubstringComparator_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubstringComparator, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubstringComparator, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SubstringComparator)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Comparator_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Comparator_descriptor_, &Comparator::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ByteArrayComparable_descriptor_, &ByteArrayComparable::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BinaryComparator_descriptor_, &BinaryComparator::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + LongComparator_descriptor_, &LongComparator::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BinaryPrefixComparator_descriptor_, &BinaryPrefixComparator::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BitComparator_descriptor_, &BitComparator::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NullComparator_descriptor_, &NullComparator::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegexStringComparator_descriptor_, &RegexStringComparator::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SubstringComparator_descriptor_, &SubstringComparator::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Comparator_2eproto() { + delete Comparator::default_instance_; + delete Comparator_reflection_; + delete ByteArrayComparable::default_instance_; + delete ByteArrayComparable_reflection_; + delete BinaryComparator::default_instance_; + delete BinaryComparator_reflection_; + delete LongComparator::default_instance_; + delete LongComparator_reflection_; + delete BinaryPrefixComparator::default_instance_; + delete BinaryPrefixComparator_reflection_; + delete BitComparator::default_instance_; + delete BitComparator_reflection_; + delete NullComparator::default_instance_; + delete NullComparator_reflection_; + delete RegexStringComparator::default_instance_; + delete RegexStringComparator_reflection_; + delete SubstringComparator::default_instance_; + delete SubstringComparator_reflection_; +} + +void protobuf_AddDesc_Comparator_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\020Comparator.proto\022\010hbase.pb\"9\n\nComparat" + "or\022\014\n\004name\030\001 \002(\t\022\035\n\025serialized_comparato" + "r\030\002 \001(\014\"$\n\023ByteArrayComparable\022\r\n\005value\030" + "\001 \001(\014\"E\n\020BinaryComparator\0221\n\ncomparable\030" + "\001 \002(\0132\035.hbase.pb.ByteArrayComparable\"C\n\016" + "LongComparator\0221\n\ncomparable\030\001 \002(\0132\035.hba" + "se.pb.ByteArrayComparable\"K\n\026BinaryPrefi" + "xComparator\0221\n\ncomparable\030\001 \002(\0132\035.hbase." + "pb.ByteArrayComparable\"\240\001\n\rBitComparator" + "\0221\n\ncomparable\030\001 \002(\0132\035.hbase.pb.ByteArra" + "yComparable\0225\n\nbitwise_op\030\002 \002(\0162!.hbase." + "pb.BitComparator.BitwiseOp\"%\n\tBitwiseOp\022" + "\007\n\003AND\020\001\022\006\n\002OR\020\002\022\007\n\003XOR\020\003\"\020\n\016NullCompara" + "tor\"`\n\025RegexStringComparator\022\017\n\007pattern\030" + "\001 \002(\t\022\025\n\rpattern_flags\030\002 \002(\005\022\017\n\007charset\030" + "\003 \002(\t\022\016\n\006engine\030\004 \001(\t\"%\n\023SubstringCompar" + "ator\022\016\n\006substr\030\001 \002(\tBF\n*org.apache.hadoo" + "p.hbase.protobuf.generatedB\020ComparatorPr" + "otosH\001\210\001\001\240\001\001", 732); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Comparator.proto", &protobuf_RegisterTypes); + Comparator::default_instance_ = new Comparator(); + ByteArrayComparable::default_instance_ = new ByteArrayComparable(); + BinaryComparator::default_instance_ = new BinaryComparator(); + LongComparator::default_instance_ = new LongComparator(); + BinaryPrefixComparator::default_instance_ = new BinaryPrefixComparator(); + BitComparator::default_instance_ = new BitComparator(); + NullComparator::default_instance_ = new NullComparator(); + RegexStringComparator::default_instance_ = new RegexStringComparator(); + SubstringComparator::default_instance_ = new SubstringComparator(); + Comparator::default_instance_->InitAsDefaultInstance(); + ByteArrayComparable::default_instance_->InitAsDefaultInstance(); + BinaryComparator::default_instance_->InitAsDefaultInstance(); + LongComparator::default_instance_->InitAsDefaultInstance(); + BinaryPrefixComparator::default_instance_->InitAsDefaultInstance(); + BitComparator::default_instance_->InitAsDefaultInstance(); + NullComparator::default_instance_->InitAsDefaultInstance(); + RegexStringComparator::default_instance_->InitAsDefaultInstance(); + SubstringComparator::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Comparator_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Comparator_2eproto { + StaticDescriptorInitializer_Comparator_2eproto() { + protobuf_AddDesc_Comparator_2eproto(); + } +} static_descriptor_initializer_Comparator_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int Comparator::kNameFieldNumber; +const int Comparator::kSerializedComparatorFieldNumber; +#endif // !_MSC_VER + +Comparator::Comparator() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Comparator::InitAsDefaultInstance() { +} + +Comparator::Comparator(const Comparator& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Comparator::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + serialized_comparator_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Comparator::~Comparator() { + SharedDtor(); +} + +void Comparator::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (serialized_comparator_ != &::google::protobuf::internal::kEmptyString) { + delete serialized_comparator_; + } + if (this != default_instance_) { + } +} + +void Comparator::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Comparator::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Comparator_descriptor_; +} + +const Comparator& Comparator::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +Comparator* Comparator::default_instance_ = NULL; + +Comparator* Comparator::New() const { + return new Comparator; +} + +void Comparator::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + if (has_serialized_comparator()) { + if (serialized_comparator_ != &::google::protobuf::internal::kEmptyString) { + serialized_comparator_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Comparator::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_serialized_comparator; + break; + } + + // optional bytes serialized_comparator = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_serialized_comparator: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_serialized_comparator())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Comparator::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + // optional bytes serialized_comparator = 2; + if (has_serialized_comparator()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->serialized_comparator(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Comparator::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional bytes serialized_comparator = 2; + if (has_serialized_comparator()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->serialized_comparator(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Comparator::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional bytes serialized_comparator = 2; + if (has_serialized_comparator()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->serialized_comparator()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Comparator::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Comparator* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Comparator::MergeFrom(const Comparator& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + if (from.has_serialized_comparator()) { + set_serialized_comparator(from.serialized_comparator()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Comparator::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Comparator::CopyFrom(const Comparator& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Comparator::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void Comparator::Swap(Comparator* other) { + if (other != this) { + std::swap(name_, other->name_); + std::swap(serialized_comparator_, other->serialized_comparator_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Comparator::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Comparator_descriptor_; + metadata.reflection = Comparator_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ByteArrayComparable::kValueFieldNumber; +#endif // !_MSC_VER + +ByteArrayComparable::ByteArrayComparable() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ByteArrayComparable::InitAsDefaultInstance() { +} + +ByteArrayComparable::ByteArrayComparable(const ByteArrayComparable& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ByteArrayComparable::SharedCtor() { + _cached_size_ = 0; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ByteArrayComparable::~ByteArrayComparable() { + SharedDtor(); +} + +void ByteArrayComparable::SharedDtor() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (this != default_instance_) { + } +} + +void ByteArrayComparable::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ByteArrayComparable::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ByteArrayComparable_descriptor_; +} + +const ByteArrayComparable& ByteArrayComparable::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +ByteArrayComparable* ByteArrayComparable::default_instance_ = NULL; + +ByteArrayComparable* ByteArrayComparable::New() const { + return new ByteArrayComparable; +} + +void ByteArrayComparable::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_value()) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ByteArrayComparable::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes value = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ByteArrayComparable::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes value = 1; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ByteArrayComparable::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes value = 1; + if (has_value()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ByteArrayComparable::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes value = 1; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ByteArrayComparable::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ByteArrayComparable* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ByteArrayComparable::MergeFrom(const ByteArrayComparable& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_value()) { + set_value(from.value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ByteArrayComparable::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ByteArrayComparable::CopyFrom(const ByteArrayComparable& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ByteArrayComparable::IsInitialized() const { + + return true; +} + +void ByteArrayComparable::Swap(ByteArrayComparable* other) { + if (other != this) { + std::swap(value_, other->value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ByteArrayComparable::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ByteArrayComparable_descriptor_; + metadata.reflection = ByteArrayComparable_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BinaryComparator::kComparableFieldNumber; +#endif // !_MSC_VER + +BinaryComparator::BinaryComparator() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BinaryComparator::InitAsDefaultInstance() { + comparable_ = const_cast< ::hbase::pb::ByteArrayComparable*>(&::hbase::pb::ByteArrayComparable::default_instance()); +} + +BinaryComparator::BinaryComparator(const BinaryComparator& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BinaryComparator::SharedCtor() { + _cached_size_ = 0; + comparable_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BinaryComparator::~BinaryComparator() { + SharedDtor(); +} + +void BinaryComparator::SharedDtor() { + if (this != default_instance_) { + delete comparable_; + } +} + +void BinaryComparator::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BinaryComparator::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BinaryComparator_descriptor_; +} + +const BinaryComparator& BinaryComparator::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +BinaryComparator* BinaryComparator::default_instance_ = NULL; + +BinaryComparator* BinaryComparator::New() const { + return new BinaryComparator; +} + +void BinaryComparator::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_comparable()) { + if (comparable_ != NULL) comparable_->::hbase::pb::ByteArrayComparable::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BinaryComparator::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ByteArrayComparable comparable = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_comparable())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BinaryComparator::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->comparable(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BinaryComparator::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->comparable(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BinaryComparator::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->comparable()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BinaryComparator::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BinaryComparator* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BinaryComparator::MergeFrom(const BinaryComparator& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_comparable()) { + mutable_comparable()->::hbase::pb::ByteArrayComparable::MergeFrom(from.comparable()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BinaryComparator::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BinaryComparator::CopyFrom(const BinaryComparator& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BinaryComparator::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void BinaryComparator::Swap(BinaryComparator* other) { + if (other != this) { + std::swap(comparable_, other->comparable_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BinaryComparator::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BinaryComparator_descriptor_; + metadata.reflection = BinaryComparator_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int LongComparator::kComparableFieldNumber; +#endif // !_MSC_VER + +LongComparator::LongComparator() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void LongComparator::InitAsDefaultInstance() { + comparable_ = const_cast< ::hbase::pb::ByteArrayComparable*>(&::hbase::pb::ByteArrayComparable::default_instance()); +} + +LongComparator::LongComparator(const LongComparator& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void LongComparator::SharedCtor() { + _cached_size_ = 0; + comparable_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +LongComparator::~LongComparator() { + SharedDtor(); +} + +void LongComparator::SharedDtor() { + if (this != default_instance_) { + delete comparable_; + } +} + +void LongComparator::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LongComparator::descriptor() { + protobuf_AssignDescriptorsOnce(); + return LongComparator_descriptor_; +} + +const LongComparator& LongComparator::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +LongComparator* LongComparator::default_instance_ = NULL; + +LongComparator* LongComparator::New() const { + return new LongComparator; +} + +void LongComparator::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_comparable()) { + if (comparable_ != NULL) comparable_->::hbase::pb::ByteArrayComparable::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool LongComparator::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ByteArrayComparable comparable = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_comparable())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void LongComparator::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->comparable(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* LongComparator::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->comparable(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int LongComparator::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->comparable()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LongComparator::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const LongComparator* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void LongComparator::MergeFrom(const LongComparator& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_comparable()) { + mutable_comparable()->::hbase::pb::ByteArrayComparable::MergeFrom(from.comparable()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void LongComparator::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LongComparator::CopyFrom(const LongComparator& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LongComparator::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void LongComparator::Swap(LongComparator* other) { + if (other != this) { + std::swap(comparable_, other->comparable_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata LongComparator::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = LongComparator_descriptor_; + metadata.reflection = LongComparator_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BinaryPrefixComparator::kComparableFieldNumber; +#endif // !_MSC_VER + +BinaryPrefixComparator::BinaryPrefixComparator() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BinaryPrefixComparator::InitAsDefaultInstance() { + comparable_ = const_cast< ::hbase::pb::ByteArrayComparable*>(&::hbase::pb::ByteArrayComparable::default_instance()); +} + +BinaryPrefixComparator::BinaryPrefixComparator(const BinaryPrefixComparator& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BinaryPrefixComparator::SharedCtor() { + _cached_size_ = 0; + comparable_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BinaryPrefixComparator::~BinaryPrefixComparator() { + SharedDtor(); +} + +void BinaryPrefixComparator::SharedDtor() { + if (this != default_instance_) { + delete comparable_; + } +} + +void BinaryPrefixComparator::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BinaryPrefixComparator::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BinaryPrefixComparator_descriptor_; +} + +const BinaryPrefixComparator& BinaryPrefixComparator::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +BinaryPrefixComparator* BinaryPrefixComparator::default_instance_ = NULL; + +BinaryPrefixComparator* BinaryPrefixComparator::New() const { + return new BinaryPrefixComparator; +} + +void BinaryPrefixComparator::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_comparable()) { + if (comparable_ != NULL) comparable_->::hbase::pb::ByteArrayComparable::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BinaryPrefixComparator::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ByteArrayComparable comparable = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_comparable())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BinaryPrefixComparator::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->comparable(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BinaryPrefixComparator::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->comparable(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BinaryPrefixComparator::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->comparable()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BinaryPrefixComparator::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BinaryPrefixComparator* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BinaryPrefixComparator::MergeFrom(const BinaryPrefixComparator& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_comparable()) { + mutable_comparable()->::hbase::pb::ByteArrayComparable::MergeFrom(from.comparable()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BinaryPrefixComparator::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BinaryPrefixComparator::CopyFrom(const BinaryPrefixComparator& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BinaryPrefixComparator::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void BinaryPrefixComparator::Swap(BinaryPrefixComparator* other) { + if (other != this) { + std::swap(comparable_, other->comparable_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BinaryPrefixComparator::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BinaryPrefixComparator_descriptor_; + metadata.reflection = BinaryPrefixComparator_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* BitComparator_BitwiseOp_descriptor() { + protobuf_AssignDescriptorsOnce(); + return BitComparator_BitwiseOp_descriptor_; +} +bool BitComparator_BitwiseOp_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const BitComparator_BitwiseOp BitComparator::AND; +const BitComparator_BitwiseOp BitComparator::OR; +const BitComparator_BitwiseOp BitComparator::XOR; +const BitComparator_BitwiseOp BitComparator::BitwiseOp_MIN; +const BitComparator_BitwiseOp BitComparator::BitwiseOp_MAX; +const int BitComparator::BitwiseOp_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int BitComparator::kComparableFieldNumber; +const int BitComparator::kBitwiseOpFieldNumber; +#endif // !_MSC_VER + +BitComparator::BitComparator() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BitComparator::InitAsDefaultInstance() { + comparable_ = const_cast< ::hbase::pb::ByteArrayComparable*>(&::hbase::pb::ByteArrayComparable::default_instance()); +} + +BitComparator::BitComparator(const BitComparator& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BitComparator::SharedCtor() { + _cached_size_ = 0; + comparable_ = NULL; + bitwise_op_ = 1; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BitComparator::~BitComparator() { + SharedDtor(); +} + +void BitComparator::SharedDtor() { + if (this != default_instance_) { + delete comparable_; + } +} + +void BitComparator::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BitComparator::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BitComparator_descriptor_; +} + +const BitComparator& BitComparator::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +BitComparator* BitComparator::default_instance_ = NULL; + +BitComparator* BitComparator::New() const { + return new BitComparator; +} + +void BitComparator::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_comparable()) { + if (comparable_ != NULL) comparable_->::hbase::pb::ByteArrayComparable::Clear(); + } + bitwise_op_ = 1; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BitComparator::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ByteArrayComparable comparable = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_comparable())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_bitwise_op; + break; + } + + // required .hbase.pb.BitComparator.BitwiseOp bitwise_op = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_bitwise_op: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::BitComparator_BitwiseOp_IsValid(value)) { + set_bitwise_op(static_cast< ::hbase::pb::BitComparator_BitwiseOp >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BitComparator::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->comparable(), output); + } + + // required .hbase.pb.BitComparator.BitwiseOp bitwise_op = 2; + if (has_bitwise_op()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->bitwise_op(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BitComparator::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->comparable(), target); + } + + // required .hbase.pb.BitComparator.BitwiseOp bitwise_op = 2; + if (has_bitwise_op()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->bitwise_op(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BitComparator::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ByteArrayComparable comparable = 1; + if (has_comparable()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->comparable()); + } + + // required .hbase.pb.BitComparator.BitwiseOp bitwise_op = 2; + if (has_bitwise_op()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->bitwise_op()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BitComparator::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BitComparator* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BitComparator::MergeFrom(const BitComparator& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_comparable()) { + mutable_comparable()->::hbase::pb::ByteArrayComparable::MergeFrom(from.comparable()); + } + if (from.has_bitwise_op()) { + set_bitwise_op(from.bitwise_op()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BitComparator::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BitComparator::CopyFrom(const BitComparator& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BitComparator::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void BitComparator::Swap(BitComparator* other) { + if (other != this) { + std::swap(comparable_, other->comparable_); + std::swap(bitwise_op_, other->bitwise_op_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BitComparator::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BitComparator_descriptor_; + metadata.reflection = BitComparator_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +NullComparator::NullComparator() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NullComparator::InitAsDefaultInstance() { +} + +NullComparator::NullComparator(const NullComparator& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NullComparator::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NullComparator::~NullComparator() { + SharedDtor(); +} + +void NullComparator::SharedDtor() { + if (this != default_instance_) { + } +} + +void NullComparator::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NullComparator::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NullComparator_descriptor_; +} + +const NullComparator& NullComparator::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +NullComparator* NullComparator::default_instance_ = NULL; + +NullComparator* NullComparator::New() const { + return new NullComparator; +} + +void NullComparator::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NullComparator::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void NullComparator::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NullComparator::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NullComparator::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NullComparator::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NullComparator* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NullComparator::MergeFrom(const NullComparator& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NullComparator::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NullComparator::CopyFrom(const NullComparator& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NullComparator::IsInitialized() const { + + return true; +} + +void NullComparator::Swap(NullComparator* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NullComparator::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NullComparator_descriptor_; + metadata.reflection = NullComparator_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegexStringComparator::kPatternFieldNumber; +const int RegexStringComparator::kPatternFlagsFieldNumber; +const int RegexStringComparator::kCharsetFieldNumber; +const int RegexStringComparator::kEngineFieldNumber; +#endif // !_MSC_VER + +RegexStringComparator::RegexStringComparator() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegexStringComparator::InitAsDefaultInstance() { +} + +RegexStringComparator::RegexStringComparator(const RegexStringComparator& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegexStringComparator::SharedCtor() { + _cached_size_ = 0; + pattern_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + pattern_flags_ = 0; + charset_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + engine_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegexStringComparator::~RegexStringComparator() { + SharedDtor(); +} + +void RegexStringComparator::SharedDtor() { + if (pattern_ != &::google::protobuf::internal::kEmptyString) { + delete pattern_; + } + if (charset_ != &::google::protobuf::internal::kEmptyString) { + delete charset_; + } + if (engine_ != &::google::protobuf::internal::kEmptyString) { + delete engine_; + } + if (this != default_instance_) { + } +} + +void RegexStringComparator::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegexStringComparator::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegexStringComparator_descriptor_; +} + +const RegexStringComparator& RegexStringComparator::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +RegexStringComparator* RegexStringComparator::default_instance_ = NULL; + +RegexStringComparator* RegexStringComparator::New() const { + return new RegexStringComparator; +} + +void RegexStringComparator::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_pattern()) { + if (pattern_ != &::google::protobuf::internal::kEmptyString) { + pattern_->clear(); + } + } + pattern_flags_ = 0; + if (has_charset()) { + if (charset_ != &::google::protobuf::internal::kEmptyString) { + charset_->clear(); + } + } + if (has_engine()) { + if (engine_ != &::google::protobuf::internal::kEmptyString) { + engine_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegexStringComparator::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string pattern = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_pattern())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->pattern().data(), this->pattern().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_pattern_flags; + break; + } + + // required int32 pattern_flags = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_pattern_flags: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &pattern_flags_))); + set_has_pattern_flags(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_charset; + break; + } + + // required string charset = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_charset: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_charset())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->charset().data(), this->charset().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_engine; + break; + } + + // optional string engine = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_engine: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_engine())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->engine().data(), this->engine().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegexStringComparator::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string pattern = 1; + if (has_pattern()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->pattern().data(), this->pattern().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->pattern(), output); + } + + // required int32 pattern_flags = 2; + if (has_pattern_flags()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->pattern_flags(), output); + } + + // required string charset = 3; + if (has_charset()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->charset().data(), this->charset().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->charset(), output); + } + + // optional string engine = 4; + if (has_engine()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->engine().data(), this->engine().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->engine(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegexStringComparator::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string pattern = 1; + if (has_pattern()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->pattern().data(), this->pattern().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->pattern(), target); + } + + // required int32 pattern_flags = 2; + if (has_pattern_flags()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->pattern_flags(), target); + } + + // required string charset = 3; + if (has_charset()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->charset().data(), this->charset().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->charset(), target); + } + + // optional string engine = 4; + if (has_engine()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->engine().data(), this->engine().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->engine(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegexStringComparator::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string pattern = 1; + if (has_pattern()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->pattern()); + } + + // required int32 pattern_flags = 2; + if (has_pattern_flags()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->pattern_flags()); + } + + // required string charset = 3; + if (has_charset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->charset()); + } + + // optional string engine = 4; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->engine()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegexStringComparator::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegexStringComparator* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegexStringComparator::MergeFrom(const RegexStringComparator& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_pattern()) { + set_pattern(from.pattern()); + } + if (from.has_pattern_flags()) { + set_pattern_flags(from.pattern_flags()); + } + if (from.has_charset()) { + set_charset(from.charset()); + } + if (from.has_engine()) { + set_engine(from.engine()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegexStringComparator::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegexStringComparator::CopyFrom(const RegexStringComparator& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegexStringComparator::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void RegexStringComparator::Swap(RegexStringComparator* other) { + if (other != this) { + std::swap(pattern_, other->pattern_); + std::swap(pattern_flags_, other->pattern_flags_); + std::swap(charset_, other->charset_); + std::swap(engine_, other->engine_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegexStringComparator::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegexStringComparator_descriptor_; + metadata.reflection = RegexStringComparator_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SubstringComparator::kSubstrFieldNumber; +#endif // !_MSC_VER + +SubstringComparator::SubstringComparator() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SubstringComparator::InitAsDefaultInstance() { +} + +SubstringComparator::SubstringComparator(const SubstringComparator& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SubstringComparator::SharedCtor() { + _cached_size_ = 0; + substr_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SubstringComparator::~SubstringComparator() { + SharedDtor(); +} + +void SubstringComparator::SharedDtor() { + if (substr_ != &::google::protobuf::internal::kEmptyString) { + delete substr_; + } + if (this != default_instance_) { + } +} + +void SubstringComparator::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SubstringComparator::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SubstringComparator_descriptor_; +} + +const SubstringComparator& SubstringComparator::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Comparator_2eproto(); + return *default_instance_; +} + +SubstringComparator* SubstringComparator::default_instance_ = NULL; + +SubstringComparator* SubstringComparator::New() const { + return new SubstringComparator; +} + +void SubstringComparator::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_substr()) { + if (substr_ != &::google::protobuf::internal::kEmptyString) { + substr_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SubstringComparator::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string substr = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_substr())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->substr().data(), this->substr().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SubstringComparator::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string substr = 1; + if (has_substr()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->substr().data(), this->substr().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->substr(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SubstringComparator::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string substr = 1; + if (has_substr()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->substr().data(), this->substr().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->substr(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SubstringComparator::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string substr = 1; + if (has_substr()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->substr()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SubstringComparator::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SubstringComparator* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SubstringComparator::MergeFrom(const SubstringComparator& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_substr()) { + set_substr(from.substr()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SubstringComparator::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SubstringComparator::CopyFrom(const SubstringComparator& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SubstringComparator::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SubstringComparator::Swap(SubstringComparator* other) { + if (other != this) { + std::swap(substr_, other->substr_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SubstringComparator::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SubstringComparator_descriptor_; + metadata.reflection = SubstringComparator_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Comparator.pb.h b/hbase-native-client/src/rpc/generated/Comparator.pb.h new file mode 100644 index 0000000..a165b09 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Comparator.pb.h @@ -0,0 +1,1661 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Comparator.proto + +#ifndef PROTOBUF_Comparator_2eproto__INCLUDED +#define PROTOBUF_Comparator_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Comparator_2eproto(); +void protobuf_AssignDesc_Comparator_2eproto(); +void protobuf_ShutdownFile_Comparator_2eproto(); + +class Comparator; +class ByteArrayComparable; +class BinaryComparator; +class LongComparator; +class BinaryPrefixComparator; +class BitComparator; +class NullComparator; +class RegexStringComparator; +class SubstringComparator; + +enum BitComparator_BitwiseOp { + BitComparator_BitwiseOp_AND = 1, + BitComparator_BitwiseOp_OR = 2, + BitComparator_BitwiseOp_XOR = 3 +}; +bool BitComparator_BitwiseOp_IsValid(int value); +const BitComparator_BitwiseOp BitComparator_BitwiseOp_BitwiseOp_MIN = BitComparator_BitwiseOp_AND; +const BitComparator_BitwiseOp BitComparator_BitwiseOp_BitwiseOp_MAX = BitComparator_BitwiseOp_XOR; +const int BitComparator_BitwiseOp_BitwiseOp_ARRAYSIZE = BitComparator_BitwiseOp_BitwiseOp_MAX + 1; + +const ::google::protobuf::EnumDescriptor* BitComparator_BitwiseOp_descriptor(); +inline const ::std::string& BitComparator_BitwiseOp_Name(BitComparator_BitwiseOp value) { + return ::google::protobuf::internal::NameOfEnum( + BitComparator_BitwiseOp_descriptor(), value); +} +inline bool BitComparator_BitwiseOp_Parse( + const ::std::string& name, BitComparator_BitwiseOp* value) { + return ::google::protobuf::internal::ParseNamedEnum( + BitComparator_BitwiseOp_descriptor(), name, value); +} +// =================================================================== + +class Comparator : public ::google::protobuf::Message { + public: + Comparator(); + virtual ~Comparator(); + + Comparator(const Comparator& from); + + inline Comparator& operator=(const Comparator& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Comparator& default_instance(); + + void Swap(Comparator* other); + + // implements Message ---------------------------------------------- + + Comparator* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Comparator& from); + void MergeFrom(const Comparator& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // optional bytes serialized_comparator = 2; + inline bool has_serialized_comparator() const; + inline void clear_serialized_comparator(); + static const int kSerializedComparatorFieldNumber = 2; + inline const ::std::string& serialized_comparator() const; + inline void set_serialized_comparator(const ::std::string& value); + inline void set_serialized_comparator(const char* value); + inline void set_serialized_comparator(const void* value, size_t size); + inline ::std::string* mutable_serialized_comparator(); + inline ::std::string* release_serialized_comparator(); + inline void set_allocated_serialized_comparator(::std::string* serialized_comparator); + + // @@protoc_insertion_point(class_scope:hbase.pb.Comparator) + private: + inline void set_has_name(); + inline void clear_has_name(); + inline void set_has_serialized_comparator(); + inline void clear_has_serialized_comparator(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::std::string* serialized_comparator_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static Comparator* default_instance_; +}; +// ------------------------------------------------------------------- + +class ByteArrayComparable : public ::google::protobuf::Message { + public: + ByteArrayComparable(); + virtual ~ByteArrayComparable(); + + ByteArrayComparable(const ByteArrayComparable& from); + + inline ByteArrayComparable& operator=(const ByteArrayComparable& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ByteArrayComparable& default_instance(); + + void Swap(ByteArrayComparable* other); + + // implements Message ---------------------------------------------- + + ByteArrayComparable* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ByteArrayComparable& from); + void MergeFrom(const ByteArrayComparable& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes value = 1; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 1; + inline const ::std::string& value() const; + inline void set_value(const ::std::string& value); + inline void set_value(const char* value); + inline void set_value(const void* value, size_t size); + inline ::std::string* mutable_value(); + inline ::std::string* release_value(); + inline void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ByteArrayComparable) + private: + inline void set_has_value(); + inline void clear_has_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static ByteArrayComparable* default_instance_; +}; +// ------------------------------------------------------------------- + +class BinaryComparator : public ::google::protobuf::Message { + public: + BinaryComparator(); + virtual ~BinaryComparator(); + + BinaryComparator(const BinaryComparator& from); + + inline BinaryComparator& operator=(const BinaryComparator& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BinaryComparator& default_instance(); + + void Swap(BinaryComparator* other); + + // implements Message ---------------------------------------------- + + BinaryComparator* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BinaryComparator& from); + void MergeFrom(const BinaryComparator& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ByteArrayComparable comparable = 1; + inline bool has_comparable() const; + inline void clear_comparable(); + static const int kComparableFieldNumber = 1; + inline const ::hbase::pb::ByteArrayComparable& comparable() const; + inline ::hbase::pb::ByteArrayComparable* mutable_comparable(); + inline ::hbase::pb::ByteArrayComparable* release_comparable(); + inline void set_allocated_comparable(::hbase::pb::ByteArrayComparable* comparable); + + // @@protoc_insertion_point(class_scope:hbase.pb.BinaryComparator) + private: + inline void set_has_comparable(); + inline void clear_has_comparable(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ByteArrayComparable* comparable_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static BinaryComparator* default_instance_; +}; +// ------------------------------------------------------------------- + +class LongComparator : public ::google::protobuf::Message { + public: + LongComparator(); + virtual ~LongComparator(); + + LongComparator(const LongComparator& from); + + inline LongComparator& operator=(const LongComparator& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LongComparator& default_instance(); + + void Swap(LongComparator* other); + + // implements Message ---------------------------------------------- + + LongComparator* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const LongComparator& from); + void MergeFrom(const LongComparator& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ByteArrayComparable comparable = 1; + inline bool has_comparable() const; + inline void clear_comparable(); + static const int kComparableFieldNumber = 1; + inline const ::hbase::pb::ByteArrayComparable& comparable() const; + inline ::hbase::pb::ByteArrayComparable* mutable_comparable(); + inline ::hbase::pb::ByteArrayComparable* release_comparable(); + inline void set_allocated_comparable(::hbase::pb::ByteArrayComparable* comparable); + + // @@protoc_insertion_point(class_scope:hbase.pb.LongComparator) + private: + inline void set_has_comparable(); + inline void clear_has_comparable(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ByteArrayComparable* comparable_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static LongComparator* default_instance_; +}; +// ------------------------------------------------------------------- + +class BinaryPrefixComparator : public ::google::protobuf::Message { + public: + BinaryPrefixComparator(); + virtual ~BinaryPrefixComparator(); + + BinaryPrefixComparator(const BinaryPrefixComparator& from); + + inline BinaryPrefixComparator& operator=(const BinaryPrefixComparator& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BinaryPrefixComparator& default_instance(); + + void Swap(BinaryPrefixComparator* other); + + // implements Message ---------------------------------------------- + + BinaryPrefixComparator* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BinaryPrefixComparator& from); + void MergeFrom(const BinaryPrefixComparator& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ByteArrayComparable comparable = 1; + inline bool has_comparable() const; + inline void clear_comparable(); + static const int kComparableFieldNumber = 1; + inline const ::hbase::pb::ByteArrayComparable& comparable() const; + inline ::hbase::pb::ByteArrayComparable* mutable_comparable(); + inline ::hbase::pb::ByteArrayComparable* release_comparable(); + inline void set_allocated_comparable(::hbase::pb::ByteArrayComparable* comparable); + + // @@protoc_insertion_point(class_scope:hbase.pb.BinaryPrefixComparator) + private: + inline void set_has_comparable(); + inline void clear_has_comparable(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ByteArrayComparable* comparable_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static BinaryPrefixComparator* default_instance_; +}; +// ------------------------------------------------------------------- + +class BitComparator : public ::google::protobuf::Message { + public: + BitComparator(); + virtual ~BitComparator(); + + BitComparator(const BitComparator& from); + + inline BitComparator& operator=(const BitComparator& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BitComparator& default_instance(); + + void Swap(BitComparator* other); + + // implements Message ---------------------------------------------- + + BitComparator* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BitComparator& from); + void MergeFrom(const BitComparator& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef BitComparator_BitwiseOp BitwiseOp; + static const BitwiseOp AND = BitComparator_BitwiseOp_AND; + static const BitwiseOp OR = BitComparator_BitwiseOp_OR; + static const BitwiseOp XOR = BitComparator_BitwiseOp_XOR; + static inline bool BitwiseOp_IsValid(int value) { + return BitComparator_BitwiseOp_IsValid(value); + } + static const BitwiseOp BitwiseOp_MIN = + BitComparator_BitwiseOp_BitwiseOp_MIN; + static const BitwiseOp BitwiseOp_MAX = + BitComparator_BitwiseOp_BitwiseOp_MAX; + static const int BitwiseOp_ARRAYSIZE = + BitComparator_BitwiseOp_BitwiseOp_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + BitwiseOp_descriptor() { + return BitComparator_BitwiseOp_descriptor(); + } + static inline const ::std::string& BitwiseOp_Name(BitwiseOp value) { + return BitComparator_BitwiseOp_Name(value); + } + static inline bool BitwiseOp_Parse(const ::std::string& name, + BitwiseOp* value) { + return BitComparator_BitwiseOp_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ByteArrayComparable comparable = 1; + inline bool has_comparable() const; + inline void clear_comparable(); + static const int kComparableFieldNumber = 1; + inline const ::hbase::pb::ByteArrayComparable& comparable() const; + inline ::hbase::pb::ByteArrayComparable* mutable_comparable(); + inline ::hbase::pb::ByteArrayComparable* release_comparable(); + inline void set_allocated_comparable(::hbase::pb::ByteArrayComparable* comparable); + + // required .hbase.pb.BitComparator.BitwiseOp bitwise_op = 2; + inline bool has_bitwise_op() const; + inline void clear_bitwise_op(); + static const int kBitwiseOpFieldNumber = 2; + inline ::hbase::pb::BitComparator_BitwiseOp bitwise_op() const; + inline void set_bitwise_op(::hbase::pb::BitComparator_BitwiseOp value); + + // @@protoc_insertion_point(class_scope:hbase.pb.BitComparator) + private: + inline void set_has_comparable(); + inline void clear_has_comparable(); + inline void set_has_bitwise_op(); + inline void clear_has_bitwise_op(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ByteArrayComparable* comparable_; + int bitwise_op_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static BitComparator* default_instance_; +}; +// ------------------------------------------------------------------- + +class NullComparator : public ::google::protobuf::Message { + public: + NullComparator(); + virtual ~NullComparator(); + + NullComparator(const NullComparator& from); + + inline NullComparator& operator=(const NullComparator& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NullComparator& default_instance(); + + void Swap(NullComparator* other); + + // implements Message ---------------------------------------------- + + NullComparator* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NullComparator& from); + void MergeFrom(const NullComparator& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.NullComparator) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static NullComparator* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegexStringComparator : public ::google::protobuf::Message { + public: + RegexStringComparator(); + virtual ~RegexStringComparator(); + + RegexStringComparator(const RegexStringComparator& from); + + inline RegexStringComparator& operator=(const RegexStringComparator& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegexStringComparator& default_instance(); + + void Swap(RegexStringComparator* other); + + // implements Message ---------------------------------------------- + + RegexStringComparator* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegexStringComparator& from); + void MergeFrom(const RegexStringComparator& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string pattern = 1; + inline bool has_pattern() const; + inline void clear_pattern(); + static const int kPatternFieldNumber = 1; + inline const ::std::string& pattern() const; + inline void set_pattern(const ::std::string& value); + inline void set_pattern(const char* value); + inline void set_pattern(const char* value, size_t size); + inline ::std::string* mutable_pattern(); + inline ::std::string* release_pattern(); + inline void set_allocated_pattern(::std::string* pattern); + + // required int32 pattern_flags = 2; + inline bool has_pattern_flags() const; + inline void clear_pattern_flags(); + static const int kPatternFlagsFieldNumber = 2; + inline ::google::protobuf::int32 pattern_flags() const; + inline void set_pattern_flags(::google::protobuf::int32 value); + + // required string charset = 3; + inline bool has_charset() const; + inline void clear_charset(); + static const int kCharsetFieldNumber = 3; + inline const ::std::string& charset() const; + inline void set_charset(const ::std::string& value); + inline void set_charset(const char* value); + inline void set_charset(const char* value, size_t size); + inline ::std::string* mutable_charset(); + inline ::std::string* release_charset(); + inline void set_allocated_charset(::std::string* charset); + + // optional string engine = 4; + inline bool has_engine() const; + inline void clear_engine(); + static const int kEngineFieldNumber = 4; + inline const ::std::string& engine() const; + inline void set_engine(const ::std::string& value); + inline void set_engine(const char* value); + inline void set_engine(const char* value, size_t size); + inline ::std::string* mutable_engine(); + inline ::std::string* release_engine(); + inline void set_allocated_engine(::std::string* engine); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegexStringComparator) + private: + inline void set_has_pattern(); + inline void clear_has_pattern(); + inline void set_has_pattern_flags(); + inline void clear_has_pattern_flags(); + inline void set_has_charset(); + inline void clear_has_charset(); + inline void set_has_engine(); + inline void clear_has_engine(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* pattern_; + ::std::string* charset_; + ::std::string* engine_; + ::google::protobuf::int32 pattern_flags_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static RegexStringComparator* default_instance_; +}; +// ------------------------------------------------------------------- + +class SubstringComparator : public ::google::protobuf::Message { + public: + SubstringComparator(); + virtual ~SubstringComparator(); + + SubstringComparator(const SubstringComparator& from); + + inline SubstringComparator& operator=(const SubstringComparator& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SubstringComparator& default_instance(); + + void Swap(SubstringComparator* other); + + // implements Message ---------------------------------------------- + + SubstringComparator* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SubstringComparator& from); + void MergeFrom(const SubstringComparator& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string substr = 1; + inline bool has_substr() const; + inline void clear_substr(); + static const int kSubstrFieldNumber = 1; + inline const ::std::string& substr() const; + inline void set_substr(const ::std::string& value); + inline void set_substr(const char* value); + inline void set_substr(const char* value, size_t size); + inline ::std::string* mutable_substr(); + inline ::std::string* release_substr(); + inline void set_allocated_substr(::std::string* substr); + + // @@protoc_insertion_point(class_scope:hbase.pb.SubstringComparator) + private: + inline void set_has_substr(); + inline void clear_has_substr(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* substr_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Comparator_2eproto(); + friend void protobuf_AssignDesc_Comparator_2eproto(); + friend void protobuf_ShutdownFile_Comparator_2eproto(); + + void InitAsDefaultInstance(); + static SubstringComparator* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// Comparator + +// required string name = 1; +inline bool Comparator::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Comparator::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void Comparator::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Comparator::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& Comparator::name() const { + return *name_; +} +inline void Comparator::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void Comparator::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void Comparator::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Comparator::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* Comparator::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Comparator::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes serialized_comparator = 2; +inline bool Comparator::has_serialized_comparator() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Comparator::set_has_serialized_comparator() { + _has_bits_[0] |= 0x00000002u; +} +inline void Comparator::clear_has_serialized_comparator() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Comparator::clear_serialized_comparator() { + if (serialized_comparator_ != &::google::protobuf::internal::kEmptyString) { + serialized_comparator_->clear(); + } + clear_has_serialized_comparator(); +} +inline const ::std::string& Comparator::serialized_comparator() const { + return *serialized_comparator_; +} +inline void Comparator::set_serialized_comparator(const ::std::string& value) { + set_has_serialized_comparator(); + if (serialized_comparator_ == &::google::protobuf::internal::kEmptyString) { + serialized_comparator_ = new ::std::string; + } + serialized_comparator_->assign(value); +} +inline void Comparator::set_serialized_comparator(const char* value) { + set_has_serialized_comparator(); + if (serialized_comparator_ == &::google::protobuf::internal::kEmptyString) { + serialized_comparator_ = new ::std::string; + } + serialized_comparator_->assign(value); +} +inline void Comparator::set_serialized_comparator(const void* value, size_t size) { + set_has_serialized_comparator(); + if (serialized_comparator_ == &::google::protobuf::internal::kEmptyString) { + serialized_comparator_ = new ::std::string; + } + serialized_comparator_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Comparator::mutable_serialized_comparator() { + set_has_serialized_comparator(); + if (serialized_comparator_ == &::google::protobuf::internal::kEmptyString) { + serialized_comparator_ = new ::std::string; + } + return serialized_comparator_; +} +inline ::std::string* Comparator::release_serialized_comparator() { + clear_has_serialized_comparator(); + if (serialized_comparator_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = serialized_comparator_; + serialized_comparator_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Comparator::set_allocated_serialized_comparator(::std::string* serialized_comparator) { + if (serialized_comparator_ != &::google::protobuf::internal::kEmptyString) { + delete serialized_comparator_; + } + if (serialized_comparator) { + set_has_serialized_comparator(); + serialized_comparator_ = serialized_comparator; + } else { + clear_has_serialized_comparator(); + serialized_comparator_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ByteArrayComparable + +// optional bytes value = 1; +inline bool ByteArrayComparable::has_value() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ByteArrayComparable::set_has_value() { + _has_bits_[0] |= 0x00000001u; +} +inline void ByteArrayComparable::clear_has_value() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ByteArrayComparable::clear_value() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + clear_has_value(); +} +inline const ::std::string& ByteArrayComparable::value() const { + return *value_; +} +inline void ByteArrayComparable::set_value(const ::std::string& value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void ByteArrayComparable::set_value(const char* value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void ByteArrayComparable::set_value(const void* value, size_t size) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ByteArrayComparable::mutable_value() { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + return value_; +} +inline ::std::string* ByteArrayComparable::release_value() { + clear_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = value_; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ByteArrayComparable::set_allocated_value(::std::string* value) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (value) { + set_has_value(); + value_ = value; + } else { + clear_has_value(); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// BinaryComparator + +// required .hbase.pb.ByteArrayComparable comparable = 1; +inline bool BinaryComparator::has_comparable() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BinaryComparator::set_has_comparable() { + _has_bits_[0] |= 0x00000001u; +} +inline void BinaryComparator::clear_has_comparable() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BinaryComparator::clear_comparable() { + if (comparable_ != NULL) comparable_->::hbase::pb::ByteArrayComparable::Clear(); + clear_has_comparable(); +} +inline const ::hbase::pb::ByteArrayComparable& BinaryComparator::comparable() const { + return comparable_ != NULL ? *comparable_ : *default_instance_->comparable_; +} +inline ::hbase::pb::ByteArrayComparable* BinaryComparator::mutable_comparable() { + set_has_comparable(); + if (comparable_ == NULL) comparable_ = new ::hbase::pb::ByteArrayComparable; + return comparable_; +} +inline ::hbase::pb::ByteArrayComparable* BinaryComparator::release_comparable() { + clear_has_comparable(); + ::hbase::pb::ByteArrayComparable* temp = comparable_; + comparable_ = NULL; + return temp; +} +inline void BinaryComparator::set_allocated_comparable(::hbase::pb::ByteArrayComparable* comparable) { + delete comparable_; + comparable_ = comparable; + if (comparable) { + set_has_comparable(); + } else { + clear_has_comparable(); + } +} + +// ------------------------------------------------------------------- + +// LongComparator + +// required .hbase.pb.ByteArrayComparable comparable = 1; +inline bool LongComparator::has_comparable() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LongComparator::set_has_comparable() { + _has_bits_[0] |= 0x00000001u; +} +inline void LongComparator::clear_has_comparable() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LongComparator::clear_comparable() { + if (comparable_ != NULL) comparable_->::hbase::pb::ByteArrayComparable::Clear(); + clear_has_comparable(); +} +inline const ::hbase::pb::ByteArrayComparable& LongComparator::comparable() const { + return comparable_ != NULL ? *comparable_ : *default_instance_->comparable_; +} +inline ::hbase::pb::ByteArrayComparable* LongComparator::mutable_comparable() { + set_has_comparable(); + if (comparable_ == NULL) comparable_ = new ::hbase::pb::ByteArrayComparable; + return comparable_; +} +inline ::hbase::pb::ByteArrayComparable* LongComparator::release_comparable() { + clear_has_comparable(); + ::hbase::pb::ByteArrayComparable* temp = comparable_; + comparable_ = NULL; + return temp; +} +inline void LongComparator::set_allocated_comparable(::hbase::pb::ByteArrayComparable* comparable) { + delete comparable_; + comparable_ = comparable; + if (comparable) { + set_has_comparable(); + } else { + clear_has_comparable(); + } +} + +// ------------------------------------------------------------------- + +// BinaryPrefixComparator + +// required .hbase.pb.ByteArrayComparable comparable = 1; +inline bool BinaryPrefixComparator::has_comparable() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BinaryPrefixComparator::set_has_comparable() { + _has_bits_[0] |= 0x00000001u; +} +inline void BinaryPrefixComparator::clear_has_comparable() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BinaryPrefixComparator::clear_comparable() { + if (comparable_ != NULL) comparable_->::hbase::pb::ByteArrayComparable::Clear(); + clear_has_comparable(); +} +inline const ::hbase::pb::ByteArrayComparable& BinaryPrefixComparator::comparable() const { + return comparable_ != NULL ? *comparable_ : *default_instance_->comparable_; +} +inline ::hbase::pb::ByteArrayComparable* BinaryPrefixComparator::mutable_comparable() { + set_has_comparable(); + if (comparable_ == NULL) comparable_ = new ::hbase::pb::ByteArrayComparable; + return comparable_; +} +inline ::hbase::pb::ByteArrayComparable* BinaryPrefixComparator::release_comparable() { + clear_has_comparable(); + ::hbase::pb::ByteArrayComparable* temp = comparable_; + comparable_ = NULL; + return temp; +} +inline void BinaryPrefixComparator::set_allocated_comparable(::hbase::pb::ByteArrayComparable* comparable) { + delete comparable_; + comparable_ = comparable; + if (comparable) { + set_has_comparable(); + } else { + clear_has_comparable(); + } +} + +// ------------------------------------------------------------------- + +// BitComparator + +// required .hbase.pb.ByteArrayComparable comparable = 1; +inline bool BitComparator::has_comparable() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BitComparator::set_has_comparable() { + _has_bits_[0] |= 0x00000001u; +} +inline void BitComparator::clear_has_comparable() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BitComparator::clear_comparable() { + if (comparable_ != NULL) comparable_->::hbase::pb::ByteArrayComparable::Clear(); + clear_has_comparable(); +} +inline const ::hbase::pb::ByteArrayComparable& BitComparator::comparable() const { + return comparable_ != NULL ? *comparable_ : *default_instance_->comparable_; +} +inline ::hbase::pb::ByteArrayComparable* BitComparator::mutable_comparable() { + set_has_comparable(); + if (comparable_ == NULL) comparable_ = new ::hbase::pb::ByteArrayComparable; + return comparable_; +} +inline ::hbase::pb::ByteArrayComparable* BitComparator::release_comparable() { + clear_has_comparable(); + ::hbase::pb::ByteArrayComparable* temp = comparable_; + comparable_ = NULL; + return temp; +} +inline void BitComparator::set_allocated_comparable(::hbase::pb::ByteArrayComparable* comparable) { + delete comparable_; + comparable_ = comparable; + if (comparable) { + set_has_comparable(); + } else { + clear_has_comparable(); + } +} + +// required .hbase.pb.BitComparator.BitwiseOp bitwise_op = 2; +inline bool BitComparator::has_bitwise_op() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BitComparator::set_has_bitwise_op() { + _has_bits_[0] |= 0x00000002u; +} +inline void BitComparator::clear_has_bitwise_op() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BitComparator::clear_bitwise_op() { + bitwise_op_ = 1; + clear_has_bitwise_op(); +} +inline ::hbase::pb::BitComparator_BitwiseOp BitComparator::bitwise_op() const { + return static_cast< ::hbase::pb::BitComparator_BitwiseOp >(bitwise_op_); +} +inline void BitComparator::set_bitwise_op(::hbase::pb::BitComparator_BitwiseOp value) { + assert(::hbase::pb::BitComparator_BitwiseOp_IsValid(value)); + set_has_bitwise_op(); + bitwise_op_ = value; +} + +// ------------------------------------------------------------------- + +// NullComparator + +// ------------------------------------------------------------------- + +// RegexStringComparator + +// required string pattern = 1; +inline bool RegexStringComparator::has_pattern() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegexStringComparator::set_has_pattern() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegexStringComparator::clear_has_pattern() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegexStringComparator::clear_pattern() { + if (pattern_ != &::google::protobuf::internal::kEmptyString) { + pattern_->clear(); + } + clear_has_pattern(); +} +inline const ::std::string& RegexStringComparator::pattern() const { + return *pattern_; +} +inline void RegexStringComparator::set_pattern(const ::std::string& value) { + set_has_pattern(); + if (pattern_ == &::google::protobuf::internal::kEmptyString) { + pattern_ = new ::std::string; + } + pattern_->assign(value); +} +inline void RegexStringComparator::set_pattern(const char* value) { + set_has_pattern(); + if (pattern_ == &::google::protobuf::internal::kEmptyString) { + pattern_ = new ::std::string; + } + pattern_->assign(value); +} +inline void RegexStringComparator::set_pattern(const char* value, size_t size) { + set_has_pattern(); + if (pattern_ == &::google::protobuf::internal::kEmptyString) { + pattern_ = new ::std::string; + } + pattern_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegexStringComparator::mutable_pattern() { + set_has_pattern(); + if (pattern_ == &::google::protobuf::internal::kEmptyString) { + pattern_ = new ::std::string; + } + return pattern_; +} +inline ::std::string* RegexStringComparator::release_pattern() { + clear_has_pattern(); + if (pattern_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = pattern_; + pattern_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegexStringComparator::set_allocated_pattern(::std::string* pattern) { + if (pattern_ != &::google::protobuf::internal::kEmptyString) { + delete pattern_; + } + if (pattern) { + set_has_pattern(); + pattern_ = pattern; + } else { + clear_has_pattern(); + pattern_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required int32 pattern_flags = 2; +inline bool RegexStringComparator::has_pattern_flags() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegexStringComparator::set_has_pattern_flags() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegexStringComparator::clear_has_pattern_flags() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegexStringComparator::clear_pattern_flags() { + pattern_flags_ = 0; + clear_has_pattern_flags(); +} +inline ::google::protobuf::int32 RegexStringComparator::pattern_flags() const { + return pattern_flags_; +} +inline void RegexStringComparator::set_pattern_flags(::google::protobuf::int32 value) { + set_has_pattern_flags(); + pattern_flags_ = value; +} + +// required string charset = 3; +inline bool RegexStringComparator::has_charset() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RegexStringComparator::set_has_charset() { + _has_bits_[0] |= 0x00000004u; +} +inline void RegexStringComparator::clear_has_charset() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RegexStringComparator::clear_charset() { + if (charset_ != &::google::protobuf::internal::kEmptyString) { + charset_->clear(); + } + clear_has_charset(); +} +inline const ::std::string& RegexStringComparator::charset() const { + return *charset_; +} +inline void RegexStringComparator::set_charset(const ::std::string& value) { + set_has_charset(); + if (charset_ == &::google::protobuf::internal::kEmptyString) { + charset_ = new ::std::string; + } + charset_->assign(value); +} +inline void RegexStringComparator::set_charset(const char* value) { + set_has_charset(); + if (charset_ == &::google::protobuf::internal::kEmptyString) { + charset_ = new ::std::string; + } + charset_->assign(value); +} +inline void RegexStringComparator::set_charset(const char* value, size_t size) { + set_has_charset(); + if (charset_ == &::google::protobuf::internal::kEmptyString) { + charset_ = new ::std::string; + } + charset_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegexStringComparator::mutable_charset() { + set_has_charset(); + if (charset_ == &::google::protobuf::internal::kEmptyString) { + charset_ = new ::std::string; + } + return charset_; +} +inline ::std::string* RegexStringComparator::release_charset() { + clear_has_charset(); + if (charset_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = charset_; + charset_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegexStringComparator::set_allocated_charset(::std::string* charset) { + if (charset_ != &::google::protobuf::internal::kEmptyString) { + delete charset_; + } + if (charset) { + set_has_charset(); + charset_ = charset; + } else { + clear_has_charset(); + charset_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string engine = 4; +inline bool RegexStringComparator::has_engine() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RegexStringComparator::set_has_engine() { + _has_bits_[0] |= 0x00000008u; +} +inline void RegexStringComparator::clear_has_engine() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RegexStringComparator::clear_engine() { + if (engine_ != &::google::protobuf::internal::kEmptyString) { + engine_->clear(); + } + clear_has_engine(); +} +inline const ::std::string& RegexStringComparator::engine() const { + return *engine_; +} +inline void RegexStringComparator::set_engine(const ::std::string& value) { + set_has_engine(); + if (engine_ == &::google::protobuf::internal::kEmptyString) { + engine_ = new ::std::string; + } + engine_->assign(value); +} +inline void RegexStringComparator::set_engine(const char* value) { + set_has_engine(); + if (engine_ == &::google::protobuf::internal::kEmptyString) { + engine_ = new ::std::string; + } + engine_->assign(value); +} +inline void RegexStringComparator::set_engine(const char* value, size_t size) { + set_has_engine(); + if (engine_ == &::google::protobuf::internal::kEmptyString) { + engine_ = new ::std::string; + } + engine_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegexStringComparator::mutable_engine() { + set_has_engine(); + if (engine_ == &::google::protobuf::internal::kEmptyString) { + engine_ = new ::std::string; + } + return engine_; +} +inline ::std::string* RegexStringComparator::release_engine() { + clear_has_engine(); + if (engine_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = engine_; + engine_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegexStringComparator::set_allocated_engine(::std::string* engine) { + if (engine_ != &::google::protobuf::internal::kEmptyString) { + delete engine_; + } + if (engine) { + set_has_engine(); + engine_ = engine; + } else { + clear_has_engine(); + engine_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// SubstringComparator + +// required string substr = 1; +inline bool SubstringComparator::has_substr() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SubstringComparator::set_has_substr() { + _has_bits_[0] |= 0x00000001u; +} +inline void SubstringComparator::clear_has_substr() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SubstringComparator::clear_substr() { + if (substr_ != &::google::protobuf::internal::kEmptyString) { + substr_->clear(); + } + clear_has_substr(); +} +inline const ::std::string& SubstringComparator::substr() const { + return *substr_; +} +inline void SubstringComparator::set_substr(const ::std::string& value) { + set_has_substr(); + if (substr_ == &::google::protobuf::internal::kEmptyString) { + substr_ = new ::std::string; + } + substr_->assign(value); +} +inline void SubstringComparator::set_substr(const char* value) { + set_has_substr(); + if (substr_ == &::google::protobuf::internal::kEmptyString) { + substr_ = new ::std::string; + } + substr_->assign(value); +} +inline void SubstringComparator::set_substr(const char* value, size_t size) { + set_has_substr(); + if (substr_ == &::google::protobuf::internal::kEmptyString) { + substr_ = new ::std::string; + } + substr_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SubstringComparator::mutable_substr() { + set_has_substr(); + if (substr_ == &::google::protobuf::internal::kEmptyString) { + substr_ = new ::std::string; + } + return substr_; +} +inline ::std::string* SubstringComparator::release_substr() { + clear_has_substr(); + if (substr_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = substr_; + substr_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SubstringComparator::set_allocated_substr(::std::string* substr) { + if (substr_ != &::google::protobuf::internal::kEmptyString) { + delete substr_; + } + if (substr) { + set_has_substr(); + substr_ = substr; + } else { + clear_has_substr(); + substr_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::BitComparator_BitwiseOp>() { + return ::hbase::pb::BitComparator_BitwiseOp_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Comparator_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Encryption.pb.cc b/hbase-native-client/src/rpc/generated/Encryption.pb.cc new file mode 100644 index 0000000..98283f6 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Encryption.pb.cc @@ -0,0 +1,520 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Encryption.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Encryption.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* WrappedKey_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WrappedKey_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Encryption_2eproto() { + protobuf_AddDesc_Encryption_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Encryption.proto"); + GOOGLE_CHECK(file != NULL); + WrappedKey_descriptor_ = file->message_type(0); + static const int WrappedKey_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WrappedKey, algorithm_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WrappedKey, length_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WrappedKey, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WrappedKey, iv_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WrappedKey, hash_), + }; + WrappedKey_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WrappedKey_descriptor_, + WrappedKey::default_instance_, + WrappedKey_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WrappedKey, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WrappedKey, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WrappedKey)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Encryption_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WrappedKey_descriptor_, &WrappedKey::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Encryption_2eproto() { + delete WrappedKey::default_instance_; + delete WrappedKey_reflection_; +} + +void protobuf_AddDesc_Encryption_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\020Encryption.proto\022\010hbase.pb\"W\n\nWrappedK" + "ey\022\021\n\talgorithm\030\001 \002(\t\022\016\n\006length\030\002 \002(\r\022\014\n" + "\004data\030\003 \002(\014\022\n\n\002iv\030\004 \001(\014\022\014\n\004hash\030\005 \001(\014BC\n" + "*org.apache.hadoop.hbase.protobuf.genera" + "tedB\020EncryptionProtosH\001\240\001\001", 186); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Encryption.proto", &protobuf_RegisterTypes); + WrappedKey::default_instance_ = new WrappedKey(); + WrappedKey::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Encryption_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Encryption_2eproto { + StaticDescriptorInitializer_Encryption_2eproto() { + protobuf_AddDesc_Encryption_2eproto(); + } +} static_descriptor_initializer_Encryption_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int WrappedKey::kAlgorithmFieldNumber; +const int WrappedKey::kLengthFieldNumber; +const int WrappedKey::kDataFieldNumber; +const int WrappedKey::kIvFieldNumber; +const int WrappedKey::kHashFieldNumber; +#endif // !_MSC_VER + +WrappedKey::WrappedKey() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WrappedKey::InitAsDefaultInstance() { +} + +WrappedKey::WrappedKey(const WrappedKey& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WrappedKey::SharedCtor() { + _cached_size_ = 0; + algorithm_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + length_ = 0u; + data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + iv_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WrappedKey::~WrappedKey() { + SharedDtor(); +} + +void WrappedKey::SharedDtor() { + if (algorithm_ != &::google::protobuf::internal::kEmptyString) { + delete algorithm_; + } + if (data_ != &::google::protobuf::internal::kEmptyString) { + delete data_; + } + if (iv_ != &::google::protobuf::internal::kEmptyString) { + delete iv_; + } + if (hash_ != &::google::protobuf::internal::kEmptyString) { + delete hash_; + } + if (this != default_instance_) { + } +} + +void WrappedKey::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WrappedKey::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WrappedKey_descriptor_; +} + +const WrappedKey& WrappedKey::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Encryption_2eproto(); + return *default_instance_; +} + +WrappedKey* WrappedKey::default_instance_ = NULL; + +WrappedKey* WrappedKey::New() const { + return new WrappedKey; +} + +void WrappedKey::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_algorithm()) { + if (algorithm_ != &::google::protobuf::internal::kEmptyString) { + algorithm_->clear(); + } + } + length_ = 0u; + if (has_data()) { + if (data_ != &::google::protobuf::internal::kEmptyString) { + data_->clear(); + } + } + if (has_iv()) { + if (iv_ != &::google::protobuf::internal::kEmptyString) { + iv_->clear(); + } + } + if (has_hash()) { + if (hash_ != &::google::protobuf::internal::kEmptyString) { + hash_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WrappedKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string algorithm = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_algorithm())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->algorithm().data(), this->algorithm().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_length; + break; + } + + // required uint32 length = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_length: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &length_))); + set_has_length(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_data; + break; + } + + // required bytes data = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_data: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_iv; + break; + } + + // optional bytes iv = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_iv: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_iv())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_hash; + break; + } + + // optional bytes hash = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_hash: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_hash())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void WrappedKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string algorithm = 1; + if (has_algorithm()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->algorithm().data(), this->algorithm().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->algorithm(), output); + } + + // required uint32 length = 2; + if (has_length()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->length(), output); + } + + // required bytes data = 3; + if (has_data()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->data(), output); + } + + // optional bytes iv = 4; + if (has_iv()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 4, this->iv(), output); + } + + // optional bytes hash = 5; + if (has_hash()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 5, this->hash(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WrappedKey::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string algorithm = 1; + if (has_algorithm()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->algorithm().data(), this->algorithm().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->algorithm(), target); + } + + // required uint32 length = 2; + if (has_length()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->length(), target); + } + + // required bytes data = 3; + if (has_data()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->data(), target); + } + + // optional bytes iv = 4; + if (has_iv()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->iv(), target); + } + + // optional bytes hash = 5; + if (has_hash()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->hash(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WrappedKey::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string algorithm = 1; + if (has_algorithm()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->algorithm()); + } + + // required uint32 length = 2; + if (has_length()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->length()); + } + + // required bytes data = 3; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + // optional bytes iv = 4; + if (has_iv()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->iv()); + } + + // optional bytes hash = 5; + if (has_hash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->hash()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WrappedKey::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WrappedKey* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WrappedKey::MergeFrom(const WrappedKey& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_algorithm()) { + set_algorithm(from.algorithm()); + } + if (from.has_length()) { + set_length(from.length()); + } + if (from.has_data()) { + set_data(from.data()); + } + if (from.has_iv()) { + set_iv(from.iv()); + } + if (from.has_hash()) { + set_hash(from.hash()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WrappedKey::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WrappedKey::CopyFrom(const WrappedKey& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WrappedKey::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void WrappedKey::Swap(WrappedKey* other) { + if (other != this) { + std::swap(algorithm_, other->algorithm_); + std::swap(length_, other->length_); + std::swap(data_, other->data_); + std::swap(iv_, other->iv_); + std::swap(hash_, other->hash_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WrappedKey::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WrappedKey_descriptor_; + metadata.reflection = WrappedKey_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Encryption.pb.h b/hbase-native-client/src/rpc/generated/Encryption.pb.h new file mode 100644 index 0000000..e500f09 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Encryption.pb.h @@ -0,0 +1,507 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Encryption.proto + +#ifndef PROTOBUF_Encryption_2eproto__INCLUDED +#define PROTOBUF_Encryption_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Encryption_2eproto(); +void protobuf_AssignDesc_Encryption_2eproto(); +void protobuf_ShutdownFile_Encryption_2eproto(); + +class WrappedKey; + +// =================================================================== + +class WrappedKey : public ::google::protobuf::Message { + public: + WrappedKey(); + virtual ~WrappedKey(); + + WrappedKey(const WrappedKey& from); + + inline WrappedKey& operator=(const WrappedKey& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WrappedKey& default_instance(); + + void Swap(WrappedKey* other); + + // implements Message ---------------------------------------------- + + WrappedKey* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WrappedKey& from); + void MergeFrom(const WrappedKey& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string algorithm = 1; + inline bool has_algorithm() const; + inline void clear_algorithm(); + static const int kAlgorithmFieldNumber = 1; + inline const ::std::string& algorithm() const; + inline void set_algorithm(const ::std::string& value); + inline void set_algorithm(const char* value); + inline void set_algorithm(const char* value, size_t size); + inline ::std::string* mutable_algorithm(); + inline ::std::string* release_algorithm(); + inline void set_allocated_algorithm(::std::string* algorithm); + + // required uint32 length = 2; + inline bool has_length() const; + inline void clear_length(); + static const int kLengthFieldNumber = 2; + inline ::google::protobuf::uint32 length() const; + inline void set_length(::google::protobuf::uint32 value); + + // required bytes data = 3; + inline bool has_data() const; + inline void clear_data(); + static const int kDataFieldNumber = 3; + inline const ::std::string& data() const; + inline void set_data(const ::std::string& value); + inline void set_data(const char* value); + inline void set_data(const void* value, size_t size); + inline ::std::string* mutable_data(); + inline ::std::string* release_data(); + inline void set_allocated_data(::std::string* data); + + // optional bytes iv = 4; + inline bool has_iv() const; + inline void clear_iv(); + static const int kIvFieldNumber = 4; + inline const ::std::string& iv() const; + inline void set_iv(const ::std::string& value); + inline void set_iv(const char* value); + inline void set_iv(const void* value, size_t size); + inline ::std::string* mutable_iv(); + inline ::std::string* release_iv(); + inline void set_allocated_iv(::std::string* iv); + + // optional bytes hash = 5; + inline bool has_hash() const; + inline void clear_hash(); + static const int kHashFieldNumber = 5; + inline const ::std::string& hash() const; + inline void set_hash(const ::std::string& value); + inline void set_hash(const char* value); + inline void set_hash(const void* value, size_t size); + inline ::std::string* mutable_hash(); + inline ::std::string* release_hash(); + inline void set_allocated_hash(::std::string* hash); + + // @@protoc_insertion_point(class_scope:hbase.pb.WrappedKey) + private: + inline void set_has_algorithm(); + inline void clear_has_algorithm(); + inline void set_has_length(); + inline void clear_has_length(); + inline void set_has_data(); + inline void clear_has_data(); + inline void set_has_iv(); + inline void clear_has_iv(); + inline void set_has_hash(); + inline void clear_has_hash(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* algorithm_; + ::std::string* data_; + ::std::string* iv_; + ::std::string* hash_; + ::google::protobuf::uint32 length_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_Encryption_2eproto(); + friend void protobuf_AssignDesc_Encryption_2eproto(); + friend void protobuf_ShutdownFile_Encryption_2eproto(); + + void InitAsDefaultInstance(); + static WrappedKey* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// WrappedKey + +// required string algorithm = 1; +inline bool WrappedKey::has_algorithm() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WrappedKey::set_has_algorithm() { + _has_bits_[0] |= 0x00000001u; +} +inline void WrappedKey::clear_has_algorithm() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WrappedKey::clear_algorithm() { + if (algorithm_ != &::google::protobuf::internal::kEmptyString) { + algorithm_->clear(); + } + clear_has_algorithm(); +} +inline const ::std::string& WrappedKey::algorithm() const { + return *algorithm_; +} +inline void WrappedKey::set_algorithm(const ::std::string& value) { + set_has_algorithm(); + if (algorithm_ == &::google::protobuf::internal::kEmptyString) { + algorithm_ = new ::std::string; + } + algorithm_->assign(value); +} +inline void WrappedKey::set_algorithm(const char* value) { + set_has_algorithm(); + if (algorithm_ == &::google::protobuf::internal::kEmptyString) { + algorithm_ = new ::std::string; + } + algorithm_->assign(value); +} +inline void WrappedKey::set_algorithm(const char* value, size_t size) { + set_has_algorithm(); + if (algorithm_ == &::google::protobuf::internal::kEmptyString) { + algorithm_ = new ::std::string; + } + algorithm_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WrappedKey::mutable_algorithm() { + set_has_algorithm(); + if (algorithm_ == &::google::protobuf::internal::kEmptyString) { + algorithm_ = new ::std::string; + } + return algorithm_; +} +inline ::std::string* WrappedKey::release_algorithm() { + clear_has_algorithm(); + if (algorithm_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = algorithm_; + algorithm_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WrappedKey::set_allocated_algorithm(::std::string* algorithm) { + if (algorithm_ != &::google::protobuf::internal::kEmptyString) { + delete algorithm_; + } + if (algorithm) { + set_has_algorithm(); + algorithm_ = algorithm; + } else { + clear_has_algorithm(); + algorithm_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required uint32 length = 2; +inline bool WrappedKey::has_length() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void WrappedKey::set_has_length() { + _has_bits_[0] |= 0x00000002u; +} +inline void WrappedKey::clear_has_length() { + _has_bits_[0] &= ~0x00000002u; +} +inline void WrappedKey::clear_length() { + length_ = 0u; + clear_has_length(); +} +inline ::google::protobuf::uint32 WrappedKey::length() const { + return length_; +} +inline void WrappedKey::set_length(::google::protobuf::uint32 value) { + set_has_length(); + length_ = value; +} + +// required bytes data = 3; +inline bool WrappedKey::has_data() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void WrappedKey::set_has_data() { + _has_bits_[0] |= 0x00000004u; +} +inline void WrappedKey::clear_has_data() { + _has_bits_[0] &= ~0x00000004u; +} +inline void WrappedKey::clear_data() { + if (data_ != &::google::protobuf::internal::kEmptyString) { + data_->clear(); + } + clear_has_data(); +} +inline const ::std::string& WrappedKey::data() const { + return *data_; +} +inline void WrappedKey::set_data(const ::std::string& value) { + set_has_data(); + if (data_ == &::google::protobuf::internal::kEmptyString) { + data_ = new ::std::string; + } + data_->assign(value); +} +inline void WrappedKey::set_data(const char* value) { + set_has_data(); + if (data_ == &::google::protobuf::internal::kEmptyString) { + data_ = new ::std::string; + } + data_->assign(value); +} +inline void WrappedKey::set_data(const void* value, size_t size) { + set_has_data(); + if (data_ == &::google::protobuf::internal::kEmptyString) { + data_ = new ::std::string; + } + data_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WrappedKey::mutable_data() { + set_has_data(); + if (data_ == &::google::protobuf::internal::kEmptyString) { + data_ = new ::std::string; + } + return data_; +} +inline ::std::string* WrappedKey::release_data() { + clear_has_data(); + if (data_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = data_; + data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WrappedKey::set_allocated_data(::std::string* data) { + if (data_ != &::google::protobuf::internal::kEmptyString) { + delete data_; + } + if (data) { + set_has_data(); + data_ = data; + } else { + clear_has_data(); + data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes iv = 4; +inline bool WrappedKey::has_iv() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void WrappedKey::set_has_iv() { + _has_bits_[0] |= 0x00000008u; +} +inline void WrappedKey::clear_has_iv() { + _has_bits_[0] &= ~0x00000008u; +} +inline void WrappedKey::clear_iv() { + if (iv_ != &::google::protobuf::internal::kEmptyString) { + iv_->clear(); + } + clear_has_iv(); +} +inline const ::std::string& WrappedKey::iv() const { + return *iv_; +} +inline void WrappedKey::set_iv(const ::std::string& value) { + set_has_iv(); + if (iv_ == &::google::protobuf::internal::kEmptyString) { + iv_ = new ::std::string; + } + iv_->assign(value); +} +inline void WrappedKey::set_iv(const char* value) { + set_has_iv(); + if (iv_ == &::google::protobuf::internal::kEmptyString) { + iv_ = new ::std::string; + } + iv_->assign(value); +} +inline void WrappedKey::set_iv(const void* value, size_t size) { + set_has_iv(); + if (iv_ == &::google::protobuf::internal::kEmptyString) { + iv_ = new ::std::string; + } + iv_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WrappedKey::mutable_iv() { + set_has_iv(); + if (iv_ == &::google::protobuf::internal::kEmptyString) { + iv_ = new ::std::string; + } + return iv_; +} +inline ::std::string* WrappedKey::release_iv() { + clear_has_iv(); + if (iv_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = iv_; + iv_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WrappedKey::set_allocated_iv(::std::string* iv) { + if (iv_ != &::google::protobuf::internal::kEmptyString) { + delete iv_; + } + if (iv) { + set_has_iv(); + iv_ = iv; + } else { + clear_has_iv(); + iv_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes hash = 5; +inline bool WrappedKey::has_hash() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void WrappedKey::set_has_hash() { + _has_bits_[0] |= 0x00000010u; +} +inline void WrappedKey::clear_has_hash() { + _has_bits_[0] &= ~0x00000010u; +} +inline void WrappedKey::clear_hash() { + if (hash_ != &::google::protobuf::internal::kEmptyString) { + hash_->clear(); + } + clear_has_hash(); +} +inline const ::std::string& WrappedKey::hash() const { + return *hash_; +} +inline void WrappedKey::set_hash(const ::std::string& value) { + set_has_hash(); + if (hash_ == &::google::protobuf::internal::kEmptyString) { + hash_ = new ::std::string; + } + hash_->assign(value); +} +inline void WrappedKey::set_hash(const char* value) { + set_has_hash(); + if (hash_ == &::google::protobuf::internal::kEmptyString) { + hash_ = new ::std::string; + } + hash_->assign(value); +} +inline void WrappedKey::set_hash(const void* value, size_t size) { + set_has_hash(); + if (hash_ == &::google::protobuf::internal::kEmptyString) { + hash_ = new ::std::string; + } + hash_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WrappedKey::mutable_hash() { + set_has_hash(); + if (hash_ == &::google::protobuf::internal::kEmptyString) { + hash_ = new ::std::string; + } + return hash_; +} +inline ::std::string* WrappedKey::release_hash() { + clear_has_hash(); + if (hash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = hash_; + hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WrappedKey::set_allocated_hash(::std::string* hash) { + if (hash_ != &::google::protobuf::internal::kEmptyString) { + delete hash_; + } + if (hash) { + set_has_hash(); + hash_ = hash; + } else { + clear_has_hash(); + hash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Encryption_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/ErrorHandling.pb.cc b/hbase-native-client/src/rpc/generated/ErrorHandling.pb.cc new file mode 100644 index 0000000..efe1818 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/ErrorHandling.pb.cc @@ -0,0 +1,1187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ErrorHandling.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "ErrorHandling.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* StackTraceElementMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StackTraceElementMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GenericExceptionMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GenericExceptionMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* ForeignExceptionMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ForeignExceptionMessage_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_ErrorHandling_2eproto() { + protobuf_AddDesc_ErrorHandling_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "ErrorHandling.proto"); + GOOGLE_CHECK(file != NULL); + StackTraceElementMessage_descriptor_ = file->message_type(0); + static const int StackTraceElementMessage_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementMessage, declaring_class_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementMessage, method_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementMessage, file_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementMessage, line_number_), + }; + StackTraceElementMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StackTraceElementMessage_descriptor_, + StackTraceElementMessage::default_instance_, + StackTraceElementMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StackTraceElementMessage)); + GenericExceptionMessage_descriptor_ = file->message_type(1); + static const int GenericExceptionMessage_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericExceptionMessage, class_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericExceptionMessage, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericExceptionMessage, error_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericExceptionMessage, trace_), + }; + GenericExceptionMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GenericExceptionMessage_descriptor_, + GenericExceptionMessage::default_instance_, + GenericExceptionMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericExceptionMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenericExceptionMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GenericExceptionMessage)); + ForeignExceptionMessage_descriptor_ = file->message_type(2); + static const int ForeignExceptionMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ForeignExceptionMessage, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ForeignExceptionMessage, generic_exception_), + }; + ForeignExceptionMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ForeignExceptionMessage_descriptor_, + ForeignExceptionMessage::default_instance_, + ForeignExceptionMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ForeignExceptionMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ForeignExceptionMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ForeignExceptionMessage)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_ErrorHandling_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StackTraceElementMessage_descriptor_, &StackTraceElementMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GenericExceptionMessage_descriptor_, &GenericExceptionMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ForeignExceptionMessage_descriptor_, &ForeignExceptionMessage::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_ErrorHandling_2eproto() { + delete StackTraceElementMessage::default_instance_; + delete StackTraceElementMessage_reflection_; + delete GenericExceptionMessage::default_instance_; + delete GenericExceptionMessage_reflection_; + delete ForeignExceptionMessage::default_instance_; + delete ForeignExceptionMessage_reflection_; +} + +void protobuf_AddDesc_ErrorHandling_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\023ErrorHandling.proto\022\010hbase.pb\"p\n\030Stack" + "TraceElementMessage\022\027\n\017declaring_class\030\001" + " \001(\t\022\023\n\013method_name\030\002 \001(\t\022\021\n\tfile_name\030\003" + " \001(\t\022\023\n\013line_number\030\004 \001(\005\"\205\001\n\027GenericExc" + "eptionMessage\022\022\n\nclass_name\030\001 \001(\t\022\017\n\007mes" + "sage\030\002 \001(\t\022\022\n\nerror_info\030\003 \001(\014\0221\n\005trace\030" + "\004 \003(\0132\".hbase.pb.StackTraceElementMessag" + "e\"g\n\027ForeignExceptionMessage\022\016\n\006source\030\001" + " \001(\t\022<\n\021generic_exception\030\002 \001(\0132!.hbase." + "pb.GenericExceptionMessageBF\n*org.apache" + ".hadoop.hbase.protobuf.generatedB\023ErrorH" + "andlingProtosH\001\240\001\001", 458); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "ErrorHandling.proto", &protobuf_RegisterTypes); + StackTraceElementMessage::default_instance_ = new StackTraceElementMessage(); + GenericExceptionMessage::default_instance_ = new GenericExceptionMessage(); + ForeignExceptionMessage::default_instance_ = new ForeignExceptionMessage(); + StackTraceElementMessage::default_instance_->InitAsDefaultInstance(); + GenericExceptionMessage::default_instance_->InitAsDefaultInstance(); + ForeignExceptionMessage::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ErrorHandling_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_ErrorHandling_2eproto { + StaticDescriptorInitializer_ErrorHandling_2eproto() { + protobuf_AddDesc_ErrorHandling_2eproto(); + } +} static_descriptor_initializer_ErrorHandling_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int StackTraceElementMessage::kDeclaringClassFieldNumber; +const int StackTraceElementMessage::kMethodNameFieldNumber; +const int StackTraceElementMessage::kFileNameFieldNumber; +const int StackTraceElementMessage::kLineNumberFieldNumber; +#endif // !_MSC_VER + +StackTraceElementMessage::StackTraceElementMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StackTraceElementMessage::InitAsDefaultInstance() { +} + +StackTraceElementMessage::StackTraceElementMessage(const StackTraceElementMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StackTraceElementMessage::SharedCtor() { + _cached_size_ = 0; + declaring_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + line_number_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StackTraceElementMessage::~StackTraceElementMessage() { + SharedDtor(); +} + +void StackTraceElementMessage::SharedDtor() { + if (declaring_class_ != &::google::protobuf::internal::kEmptyString) { + delete declaring_class_; + } + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + delete method_name_; + } + if (file_name_ != &::google::protobuf::internal::kEmptyString) { + delete file_name_; + } + if (this != default_instance_) { + } +} + +void StackTraceElementMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StackTraceElementMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StackTraceElementMessage_descriptor_; +} + +const StackTraceElementMessage& StackTraceElementMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ErrorHandling_2eproto(); + return *default_instance_; +} + +StackTraceElementMessage* StackTraceElementMessage::default_instance_ = NULL; + +StackTraceElementMessage* StackTraceElementMessage::New() const { + return new StackTraceElementMessage; +} + +void StackTraceElementMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_declaring_class()) { + if (declaring_class_ != &::google::protobuf::internal::kEmptyString) { + declaring_class_->clear(); + } + } + if (has_method_name()) { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + method_name_->clear(); + } + } + if (has_file_name()) { + if (file_name_ != &::google::protobuf::internal::kEmptyString) { + file_name_->clear(); + } + } + line_number_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StackTraceElementMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string declaring_class = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_declaring_class())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->declaring_class().data(), this->declaring_class().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_method_name; + break; + } + + // optional string method_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_method_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_method_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_file_name; + break; + } + + // optional string file_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_file_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_file_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->file_name().data(), this->file_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_line_number; + break; + } + + // optional int32 line_number = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_line_number: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &line_number_))); + set_has_line_number(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StackTraceElementMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string declaring_class = 1; + if (has_declaring_class()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->declaring_class().data(), this->declaring_class().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->declaring_class(), output); + } + + // optional string method_name = 2; + if (has_method_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->method_name(), output); + } + + // optional string file_name = 3; + if (has_file_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->file_name().data(), this->file_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->file_name(), output); + } + + // optional int32 line_number = 4; + if (has_line_number()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->line_number(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StackTraceElementMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string declaring_class = 1; + if (has_declaring_class()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->declaring_class().data(), this->declaring_class().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->declaring_class(), target); + } + + // optional string method_name = 2; + if (has_method_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->method_name(), target); + } + + // optional string file_name = 3; + if (has_file_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->file_name().data(), this->file_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->file_name(), target); + } + + // optional int32 line_number = 4; + if (has_line_number()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->line_number(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StackTraceElementMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string declaring_class = 1; + if (has_declaring_class()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->declaring_class()); + } + + // optional string method_name = 2; + if (has_method_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->method_name()); + } + + // optional string file_name = 3; + if (has_file_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->file_name()); + } + + // optional int32 line_number = 4; + if (has_line_number()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->line_number()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StackTraceElementMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StackTraceElementMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StackTraceElementMessage::MergeFrom(const StackTraceElementMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_declaring_class()) { + set_declaring_class(from.declaring_class()); + } + if (from.has_method_name()) { + set_method_name(from.method_name()); + } + if (from.has_file_name()) { + set_file_name(from.file_name()); + } + if (from.has_line_number()) { + set_line_number(from.line_number()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StackTraceElementMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StackTraceElementMessage::CopyFrom(const StackTraceElementMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StackTraceElementMessage::IsInitialized() const { + + return true; +} + +void StackTraceElementMessage::Swap(StackTraceElementMessage* other) { + if (other != this) { + std::swap(declaring_class_, other->declaring_class_); + std::swap(method_name_, other->method_name_); + std::swap(file_name_, other->file_name_); + std::swap(line_number_, other->line_number_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StackTraceElementMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StackTraceElementMessage_descriptor_; + metadata.reflection = StackTraceElementMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GenericExceptionMessage::kClassNameFieldNumber; +const int GenericExceptionMessage::kMessageFieldNumber; +const int GenericExceptionMessage::kErrorInfoFieldNumber; +const int GenericExceptionMessage::kTraceFieldNumber; +#endif // !_MSC_VER + +GenericExceptionMessage::GenericExceptionMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GenericExceptionMessage::InitAsDefaultInstance() { +} + +GenericExceptionMessage::GenericExceptionMessage(const GenericExceptionMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GenericExceptionMessage::SharedCtor() { + _cached_size_ = 0; + class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + error_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GenericExceptionMessage::~GenericExceptionMessage() { + SharedDtor(); +} + +void GenericExceptionMessage::SharedDtor() { + if (class_name_ != &::google::protobuf::internal::kEmptyString) { + delete class_name_; + } + if (message_ != &::google::protobuf::internal::kEmptyString) { + delete message_; + } + if (error_info_ != &::google::protobuf::internal::kEmptyString) { + delete error_info_; + } + if (this != default_instance_) { + } +} + +void GenericExceptionMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GenericExceptionMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GenericExceptionMessage_descriptor_; +} + +const GenericExceptionMessage& GenericExceptionMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ErrorHandling_2eproto(); + return *default_instance_; +} + +GenericExceptionMessage* GenericExceptionMessage::default_instance_ = NULL; + +GenericExceptionMessage* GenericExceptionMessage::New() const { + return new GenericExceptionMessage; +} + +void GenericExceptionMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_class_name()) { + if (class_name_ != &::google::protobuf::internal::kEmptyString) { + class_name_->clear(); + } + } + if (has_message()) { + if (message_ != &::google::protobuf::internal::kEmptyString) { + message_->clear(); + } + } + if (has_error_info()) { + if (error_info_ != &::google::protobuf::internal::kEmptyString) { + error_info_->clear(); + } + } + } + trace_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GenericExceptionMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string class_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_class_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->class_name().data(), this->class_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_message; + break; + } + + // optional string message = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_message: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->message().data(), this->message().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_error_info; + break; + } + + // optional bytes error_info = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_error_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_error_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_trace; + break; + } + + // repeated .hbase.pb.StackTraceElementMessage trace = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_trace: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_trace())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_trace; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GenericExceptionMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string class_name = 1; + if (has_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->class_name().data(), this->class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->class_name(), output); + } + + // optional string message = 2; + if (has_message()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->message().data(), this->message().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->message(), output); + } + + // optional bytes error_info = 3; + if (has_error_info()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->error_info(), output); + } + + // repeated .hbase.pb.StackTraceElementMessage trace = 4; + for (int i = 0; i < this->trace_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->trace(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GenericExceptionMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string class_name = 1; + if (has_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->class_name().data(), this->class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->class_name(), target); + } + + // optional string message = 2; + if (has_message()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->message().data(), this->message().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + // optional bytes error_info = 3; + if (has_error_info()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->error_info(), target); + } + + // repeated .hbase.pb.StackTraceElementMessage trace = 4; + for (int i = 0; i < this->trace_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->trace(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GenericExceptionMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string class_name = 1; + if (has_class_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->class_name()); + } + + // optional string message = 2; + if (has_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // optional bytes error_info = 3; + if (has_error_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->error_info()); + } + + } + // repeated .hbase.pb.StackTraceElementMessage trace = 4; + total_size += 1 * this->trace_size(); + for (int i = 0; i < this->trace_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->trace(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GenericExceptionMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GenericExceptionMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GenericExceptionMessage::MergeFrom(const GenericExceptionMessage& from) { + GOOGLE_CHECK_NE(&from, this); + trace_.MergeFrom(from.trace_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_class_name()) { + set_class_name(from.class_name()); + } + if (from.has_message()) { + set_message(from.message()); + } + if (from.has_error_info()) { + set_error_info(from.error_info()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GenericExceptionMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GenericExceptionMessage::CopyFrom(const GenericExceptionMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GenericExceptionMessage::IsInitialized() const { + + return true; +} + +void GenericExceptionMessage::Swap(GenericExceptionMessage* other) { + if (other != this) { + std::swap(class_name_, other->class_name_); + std::swap(message_, other->message_); + std::swap(error_info_, other->error_info_); + trace_.Swap(&other->trace_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GenericExceptionMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GenericExceptionMessage_descriptor_; + metadata.reflection = GenericExceptionMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ForeignExceptionMessage::kSourceFieldNumber; +const int ForeignExceptionMessage::kGenericExceptionFieldNumber; +#endif // !_MSC_VER + +ForeignExceptionMessage::ForeignExceptionMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ForeignExceptionMessage::InitAsDefaultInstance() { + generic_exception_ = const_cast< ::hbase::pb::GenericExceptionMessage*>(&::hbase::pb::GenericExceptionMessage::default_instance()); +} + +ForeignExceptionMessage::ForeignExceptionMessage(const ForeignExceptionMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ForeignExceptionMessage::SharedCtor() { + _cached_size_ = 0; + source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + generic_exception_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ForeignExceptionMessage::~ForeignExceptionMessage() { + SharedDtor(); +} + +void ForeignExceptionMessage::SharedDtor() { + if (source_ != &::google::protobuf::internal::kEmptyString) { + delete source_; + } + if (this != default_instance_) { + delete generic_exception_; + } +} + +void ForeignExceptionMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ForeignExceptionMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ForeignExceptionMessage_descriptor_; +} + +const ForeignExceptionMessage& ForeignExceptionMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ErrorHandling_2eproto(); + return *default_instance_; +} + +ForeignExceptionMessage* ForeignExceptionMessage::default_instance_ = NULL; + +ForeignExceptionMessage* ForeignExceptionMessage::New() const { + return new ForeignExceptionMessage; +} + +void ForeignExceptionMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_source()) { + if (source_ != &::google::protobuf::internal::kEmptyString) { + source_->clear(); + } + } + if (has_generic_exception()) { + if (generic_exception_ != NULL) generic_exception_->::hbase::pb::GenericExceptionMessage::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ForeignExceptionMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->source().data(), this->source().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_generic_exception; + break; + } + + // optional .hbase.pb.GenericExceptionMessage generic_exception = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_generic_exception: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_generic_exception())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ForeignExceptionMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string source = 1; + if (has_source()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->source().data(), this->source().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->source(), output); + } + + // optional .hbase.pb.GenericExceptionMessage generic_exception = 2; + if (has_generic_exception()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->generic_exception(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ForeignExceptionMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string source = 1; + if (has_source()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->source().data(), this->source().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source(), target); + } + + // optional .hbase.pb.GenericExceptionMessage generic_exception = 2; + if (has_generic_exception()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->generic_exception(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ForeignExceptionMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source()); + } + + // optional .hbase.pb.GenericExceptionMessage generic_exception = 2; + if (has_generic_exception()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->generic_exception()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ForeignExceptionMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ForeignExceptionMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ForeignExceptionMessage::MergeFrom(const ForeignExceptionMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_source()) { + set_source(from.source()); + } + if (from.has_generic_exception()) { + mutable_generic_exception()->::hbase::pb::GenericExceptionMessage::MergeFrom(from.generic_exception()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ForeignExceptionMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ForeignExceptionMessage::CopyFrom(const ForeignExceptionMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ForeignExceptionMessage::IsInitialized() const { + + return true; +} + +void ForeignExceptionMessage::Swap(ForeignExceptionMessage* other) { + if (other != this) { + std::swap(source_, other->source_); + std::swap(generic_exception_, other->generic_exception_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ForeignExceptionMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ForeignExceptionMessage_descriptor_; + metadata.reflection = ForeignExceptionMessage_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/ErrorHandling.pb.h b/hbase-native-client/src/rpc/generated/ErrorHandling.pb.h new file mode 100644 index 0000000..ef71033 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/ErrorHandling.pb.h @@ -0,0 +1,1004 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ErrorHandling.proto + +#ifndef PROTOBUF_ErrorHandling_2eproto__INCLUDED +#define PROTOBUF_ErrorHandling_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_ErrorHandling_2eproto(); +void protobuf_AssignDesc_ErrorHandling_2eproto(); +void protobuf_ShutdownFile_ErrorHandling_2eproto(); + +class StackTraceElementMessage; +class GenericExceptionMessage; +class ForeignExceptionMessage; + +// =================================================================== + +class StackTraceElementMessage : public ::google::protobuf::Message { + public: + StackTraceElementMessage(); + virtual ~StackTraceElementMessage(); + + StackTraceElementMessage(const StackTraceElementMessage& from); + + inline StackTraceElementMessage& operator=(const StackTraceElementMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StackTraceElementMessage& default_instance(); + + void Swap(StackTraceElementMessage* other); + + // implements Message ---------------------------------------------- + + StackTraceElementMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StackTraceElementMessage& from); + void MergeFrom(const StackTraceElementMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string declaring_class = 1; + inline bool has_declaring_class() const; + inline void clear_declaring_class(); + static const int kDeclaringClassFieldNumber = 1; + inline const ::std::string& declaring_class() const; + inline void set_declaring_class(const ::std::string& value); + inline void set_declaring_class(const char* value); + inline void set_declaring_class(const char* value, size_t size); + inline ::std::string* mutable_declaring_class(); + inline ::std::string* release_declaring_class(); + inline void set_allocated_declaring_class(::std::string* declaring_class); + + // optional string method_name = 2; + inline bool has_method_name() const; + inline void clear_method_name(); + static const int kMethodNameFieldNumber = 2; + inline const ::std::string& method_name() const; + inline void set_method_name(const ::std::string& value); + inline void set_method_name(const char* value); + inline void set_method_name(const char* value, size_t size); + inline ::std::string* mutable_method_name(); + inline ::std::string* release_method_name(); + inline void set_allocated_method_name(::std::string* method_name); + + // optional string file_name = 3; + inline bool has_file_name() const; + inline void clear_file_name(); + static const int kFileNameFieldNumber = 3; + inline const ::std::string& file_name() const; + inline void set_file_name(const ::std::string& value); + inline void set_file_name(const char* value); + inline void set_file_name(const char* value, size_t size); + inline ::std::string* mutable_file_name(); + inline ::std::string* release_file_name(); + inline void set_allocated_file_name(::std::string* file_name); + + // optional int32 line_number = 4; + inline bool has_line_number() const; + inline void clear_line_number(); + static const int kLineNumberFieldNumber = 4; + inline ::google::protobuf::int32 line_number() const; + inline void set_line_number(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.StackTraceElementMessage) + private: + inline void set_has_declaring_class(); + inline void clear_has_declaring_class(); + inline void set_has_method_name(); + inline void clear_has_method_name(); + inline void set_has_file_name(); + inline void clear_has_file_name(); + inline void set_has_line_number(); + inline void clear_has_line_number(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* declaring_class_; + ::std::string* method_name_; + ::std::string* file_name_; + ::google::protobuf::int32 line_number_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_ErrorHandling_2eproto(); + friend void protobuf_AssignDesc_ErrorHandling_2eproto(); + friend void protobuf_ShutdownFile_ErrorHandling_2eproto(); + + void InitAsDefaultInstance(); + static StackTraceElementMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GenericExceptionMessage : public ::google::protobuf::Message { + public: + GenericExceptionMessage(); + virtual ~GenericExceptionMessage(); + + GenericExceptionMessage(const GenericExceptionMessage& from); + + inline GenericExceptionMessage& operator=(const GenericExceptionMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GenericExceptionMessage& default_instance(); + + void Swap(GenericExceptionMessage* other); + + // implements Message ---------------------------------------------- + + GenericExceptionMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GenericExceptionMessage& from); + void MergeFrom(const GenericExceptionMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string class_name = 1; + inline bool has_class_name() const; + inline void clear_class_name(); + static const int kClassNameFieldNumber = 1; + inline const ::std::string& class_name() const; + inline void set_class_name(const ::std::string& value); + inline void set_class_name(const char* value); + inline void set_class_name(const char* value, size_t size); + inline ::std::string* mutable_class_name(); + inline ::std::string* release_class_name(); + inline void set_allocated_class_name(::std::string* class_name); + + // optional string message = 2; + inline bool has_message() const; + inline void clear_message(); + static const int kMessageFieldNumber = 2; + inline const ::std::string& message() const; + inline void set_message(const ::std::string& value); + inline void set_message(const char* value); + inline void set_message(const char* value, size_t size); + inline ::std::string* mutable_message(); + inline ::std::string* release_message(); + inline void set_allocated_message(::std::string* message); + + // optional bytes error_info = 3; + inline bool has_error_info() const; + inline void clear_error_info(); + static const int kErrorInfoFieldNumber = 3; + inline const ::std::string& error_info() const; + inline void set_error_info(const ::std::string& value); + inline void set_error_info(const char* value); + inline void set_error_info(const void* value, size_t size); + inline ::std::string* mutable_error_info(); + inline ::std::string* release_error_info(); + inline void set_allocated_error_info(::std::string* error_info); + + // repeated .hbase.pb.StackTraceElementMessage trace = 4; + inline int trace_size() const; + inline void clear_trace(); + static const int kTraceFieldNumber = 4; + inline const ::hbase::pb::StackTraceElementMessage& trace(int index) const; + inline ::hbase::pb::StackTraceElementMessage* mutable_trace(int index); + inline ::hbase::pb::StackTraceElementMessage* add_trace(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StackTraceElementMessage >& + trace() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StackTraceElementMessage >* + mutable_trace(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GenericExceptionMessage) + private: + inline void set_has_class_name(); + inline void clear_has_class_name(); + inline void set_has_message(); + inline void clear_has_message(); + inline void set_has_error_info(); + inline void clear_has_error_info(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* class_name_; + ::std::string* message_; + ::std::string* error_info_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::StackTraceElementMessage > trace_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_ErrorHandling_2eproto(); + friend void protobuf_AssignDesc_ErrorHandling_2eproto(); + friend void protobuf_ShutdownFile_ErrorHandling_2eproto(); + + void InitAsDefaultInstance(); + static GenericExceptionMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ForeignExceptionMessage : public ::google::protobuf::Message { + public: + ForeignExceptionMessage(); + virtual ~ForeignExceptionMessage(); + + ForeignExceptionMessage(const ForeignExceptionMessage& from); + + inline ForeignExceptionMessage& operator=(const ForeignExceptionMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ForeignExceptionMessage& default_instance(); + + void Swap(ForeignExceptionMessage* other); + + // implements Message ---------------------------------------------- + + ForeignExceptionMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ForeignExceptionMessage& from); + void MergeFrom(const ForeignExceptionMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string source = 1; + inline bool has_source() const; + inline void clear_source(); + static const int kSourceFieldNumber = 1; + inline const ::std::string& source() const; + inline void set_source(const ::std::string& value); + inline void set_source(const char* value); + inline void set_source(const char* value, size_t size); + inline ::std::string* mutable_source(); + inline ::std::string* release_source(); + inline void set_allocated_source(::std::string* source); + + // optional .hbase.pb.GenericExceptionMessage generic_exception = 2; + inline bool has_generic_exception() const; + inline void clear_generic_exception(); + static const int kGenericExceptionFieldNumber = 2; + inline const ::hbase::pb::GenericExceptionMessage& generic_exception() const; + inline ::hbase::pb::GenericExceptionMessage* mutable_generic_exception(); + inline ::hbase::pb::GenericExceptionMessage* release_generic_exception(); + inline void set_allocated_generic_exception(::hbase::pb::GenericExceptionMessage* generic_exception); + + // @@protoc_insertion_point(class_scope:hbase.pb.ForeignExceptionMessage) + private: + inline void set_has_source(); + inline void clear_has_source(); + inline void set_has_generic_exception(); + inline void clear_has_generic_exception(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* source_; + ::hbase::pb::GenericExceptionMessage* generic_exception_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_ErrorHandling_2eproto(); + friend void protobuf_AssignDesc_ErrorHandling_2eproto(); + friend void protobuf_ShutdownFile_ErrorHandling_2eproto(); + + void InitAsDefaultInstance(); + static ForeignExceptionMessage* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// StackTraceElementMessage + +// optional string declaring_class = 1; +inline bool StackTraceElementMessage::has_declaring_class() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StackTraceElementMessage::set_has_declaring_class() { + _has_bits_[0] |= 0x00000001u; +} +inline void StackTraceElementMessage::clear_has_declaring_class() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StackTraceElementMessage::clear_declaring_class() { + if (declaring_class_ != &::google::protobuf::internal::kEmptyString) { + declaring_class_->clear(); + } + clear_has_declaring_class(); +} +inline const ::std::string& StackTraceElementMessage::declaring_class() const { + return *declaring_class_; +} +inline void StackTraceElementMessage::set_declaring_class(const ::std::string& value) { + set_has_declaring_class(); + if (declaring_class_ == &::google::protobuf::internal::kEmptyString) { + declaring_class_ = new ::std::string; + } + declaring_class_->assign(value); +} +inline void StackTraceElementMessage::set_declaring_class(const char* value) { + set_has_declaring_class(); + if (declaring_class_ == &::google::protobuf::internal::kEmptyString) { + declaring_class_ = new ::std::string; + } + declaring_class_->assign(value); +} +inline void StackTraceElementMessage::set_declaring_class(const char* value, size_t size) { + set_has_declaring_class(); + if (declaring_class_ == &::google::protobuf::internal::kEmptyString) { + declaring_class_ = new ::std::string; + } + declaring_class_->assign(reinterpret_cast(value), size); +} +inline ::std::string* StackTraceElementMessage::mutable_declaring_class() { + set_has_declaring_class(); + if (declaring_class_ == &::google::protobuf::internal::kEmptyString) { + declaring_class_ = new ::std::string; + } + return declaring_class_; +} +inline ::std::string* StackTraceElementMessage::release_declaring_class() { + clear_has_declaring_class(); + if (declaring_class_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = declaring_class_; + declaring_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void StackTraceElementMessage::set_allocated_declaring_class(::std::string* declaring_class) { + if (declaring_class_ != &::google::protobuf::internal::kEmptyString) { + delete declaring_class_; + } + if (declaring_class) { + set_has_declaring_class(); + declaring_class_ = declaring_class; + } else { + clear_has_declaring_class(); + declaring_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string method_name = 2; +inline bool StackTraceElementMessage::has_method_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StackTraceElementMessage::set_has_method_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void StackTraceElementMessage::clear_has_method_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StackTraceElementMessage::clear_method_name() { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + method_name_->clear(); + } + clear_has_method_name(); +} +inline const ::std::string& StackTraceElementMessage::method_name() const { + return *method_name_; +} +inline void StackTraceElementMessage::set_method_name(const ::std::string& value) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(value); +} +inline void StackTraceElementMessage::set_method_name(const char* value) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(value); +} +inline void StackTraceElementMessage::set_method_name(const char* value, size_t size) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* StackTraceElementMessage::mutable_method_name() { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + return method_name_; +} +inline ::std::string* StackTraceElementMessage::release_method_name() { + clear_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = method_name_; + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void StackTraceElementMessage::set_allocated_method_name(::std::string* method_name) { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + delete method_name_; + } + if (method_name) { + set_has_method_name(); + method_name_ = method_name; + } else { + clear_has_method_name(); + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string file_name = 3; +inline bool StackTraceElementMessage::has_file_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StackTraceElementMessage::set_has_file_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void StackTraceElementMessage::clear_has_file_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StackTraceElementMessage::clear_file_name() { + if (file_name_ != &::google::protobuf::internal::kEmptyString) { + file_name_->clear(); + } + clear_has_file_name(); +} +inline const ::std::string& StackTraceElementMessage::file_name() const { + return *file_name_; +} +inline void StackTraceElementMessage::set_file_name(const ::std::string& value) { + set_has_file_name(); + if (file_name_ == &::google::protobuf::internal::kEmptyString) { + file_name_ = new ::std::string; + } + file_name_->assign(value); +} +inline void StackTraceElementMessage::set_file_name(const char* value) { + set_has_file_name(); + if (file_name_ == &::google::protobuf::internal::kEmptyString) { + file_name_ = new ::std::string; + } + file_name_->assign(value); +} +inline void StackTraceElementMessage::set_file_name(const char* value, size_t size) { + set_has_file_name(); + if (file_name_ == &::google::protobuf::internal::kEmptyString) { + file_name_ = new ::std::string; + } + file_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* StackTraceElementMessage::mutable_file_name() { + set_has_file_name(); + if (file_name_ == &::google::protobuf::internal::kEmptyString) { + file_name_ = new ::std::string; + } + return file_name_; +} +inline ::std::string* StackTraceElementMessage::release_file_name() { + clear_has_file_name(); + if (file_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = file_name_; + file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void StackTraceElementMessage::set_allocated_file_name(::std::string* file_name) { + if (file_name_ != &::google::protobuf::internal::kEmptyString) { + delete file_name_; + } + if (file_name) { + set_has_file_name(); + file_name_ = file_name; + } else { + clear_has_file_name(); + file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional int32 line_number = 4; +inline bool StackTraceElementMessage::has_line_number() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StackTraceElementMessage::set_has_line_number() { + _has_bits_[0] |= 0x00000008u; +} +inline void StackTraceElementMessage::clear_has_line_number() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StackTraceElementMessage::clear_line_number() { + line_number_ = 0; + clear_has_line_number(); +} +inline ::google::protobuf::int32 StackTraceElementMessage::line_number() const { + return line_number_; +} +inline void StackTraceElementMessage::set_line_number(::google::protobuf::int32 value) { + set_has_line_number(); + line_number_ = value; +} + +// ------------------------------------------------------------------- + +// GenericExceptionMessage + +// optional string class_name = 1; +inline bool GenericExceptionMessage::has_class_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GenericExceptionMessage::set_has_class_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GenericExceptionMessage::clear_has_class_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GenericExceptionMessage::clear_class_name() { + if (class_name_ != &::google::protobuf::internal::kEmptyString) { + class_name_->clear(); + } + clear_has_class_name(); +} +inline const ::std::string& GenericExceptionMessage::class_name() const { + return *class_name_; +} +inline void GenericExceptionMessage::set_class_name(const ::std::string& value) { + set_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + class_name_ = new ::std::string; + } + class_name_->assign(value); +} +inline void GenericExceptionMessage::set_class_name(const char* value) { + set_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + class_name_ = new ::std::string; + } + class_name_->assign(value); +} +inline void GenericExceptionMessage::set_class_name(const char* value, size_t size) { + set_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + class_name_ = new ::std::string; + } + class_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GenericExceptionMessage::mutable_class_name() { + set_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + class_name_ = new ::std::string; + } + return class_name_; +} +inline ::std::string* GenericExceptionMessage::release_class_name() { + clear_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = class_name_; + class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GenericExceptionMessage::set_allocated_class_name(::std::string* class_name) { + if (class_name_ != &::google::protobuf::internal::kEmptyString) { + delete class_name_; + } + if (class_name) { + set_has_class_name(); + class_name_ = class_name; + } else { + clear_has_class_name(); + class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string message = 2; +inline bool GenericExceptionMessage::has_message() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GenericExceptionMessage::set_has_message() { + _has_bits_[0] |= 0x00000002u; +} +inline void GenericExceptionMessage::clear_has_message() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GenericExceptionMessage::clear_message() { + if (message_ != &::google::protobuf::internal::kEmptyString) { + message_->clear(); + } + clear_has_message(); +} +inline const ::std::string& GenericExceptionMessage::message() const { + return *message_; +} +inline void GenericExceptionMessage::set_message(const ::std::string& value) { + set_has_message(); + if (message_ == &::google::protobuf::internal::kEmptyString) { + message_ = new ::std::string; + } + message_->assign(value); +} +inline void GenericExceptionMessage::set_message(const char* value) { + set_has_message(); + if (message_ == &::google::protobuf::internal::kEmptyString) { + message_ = new ::std::string; + } + message_->assign(value); +} +inline void GenericExceptionMessage::set_message(const char* value, size_t size) { + set_has_message(); + if (message_ == &::google::protobuf::internal::kEmptyString) { + message_ = new ::std::string; + } + message_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GenericExceptionMessage::mutable_message() { + set_has_message(); + if (message_ == &::google::protobuf::internal::kEmptyString) { + message_ = new ::std::string; + } + return message_; +} +inline ::std::string* GenericExceptionMessage::release_message() { + clear_has_message(); + if (message_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = message_; + message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GenericExceptionMessage::set_allocated_message(::std::string* message) { + if (message_ != &::google::protobuf::internal::kEmptyString) { + delete message_; + } + if (message) { + set_has_message(); + message_ = message; + } else { + clear_has_message(); + message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes error_info = 3; +inline bool GenericExceptionMessage::has_error_info() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GenericExceptionMessage::set_has_error_info() { + _has_bits_[0] |= 0x00000004u; +} +inline void GenericExceptionMessage::clear_has_error_info() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GenericExceptionMessage::clear_error_info() { + if (error_info_ != &::google::protobuf::internal::kEmptyString) { + error_info_->clear(); + } + clear_has_error_info(); +} +inline const ::std::string& GenericExceptionMessage::error_info() const { + return *error_info_; +} +inline void GenericExceptionMessage::set_error_info(const ::std::string& value) { + set_has_error_info(); + if (error_info_ == &::google::protobuf::internal::kEmptyString) { + error_info_ = new ::std::string; + } + error_info_->assign(value); +} +inline void GenericExceptionMessage::set_error_info(const char* value) { + set_has_error_info(); + if (error_info_ == &::google::protobuf::internal::kEmptyString) { + error_info_ = new ::std::string; + } + error_info_->assign(value); +} +inline void GenericExceptionMessage::set_error_info(const void* value, size_t size) { + set_has_error_info(); + if (error_info_ == &::google::protobuf::internal::kEmptyString) { + error_info_ = new ::std::string; + } + error_info_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GenericExceptionMessage::mutable_error_info() { + set_has_error_info(); + if (error_info_ == &::google::protobuf::internal::kEmptyString) { + error_info_ = new ::std::string; + } + return error_info_; +} +inline ::std::string* GenericExceptionMessage::release_error_info() { + clear_has_error_info(); + if (error_info_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = error_info_; + error_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GenericExceptionMessage::set_allocated_error_info(::std::string* error_info) { + if (error_info_ != &::google::protobuf::internal::kEmptyString) { + delete error_info_; + } + if (error_info) { + set_has_error_info(); + error_info_ = error_info; + } else { + clear_has_error_info(); + error_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.StackTraceElementMessage trace = 4; +inline int GenericExceptionMessage::trace_size() const { + return trace_.size(); +} +inline void GenericExceptionMessage::clear_trace() { + trace_.Clear(); +} +inline const ::hbase::pb::StackTraceElementMessage& GenericExceptionMessage::trace(int index) const { + return trace_.Get(index); +} +inline ::hbase::pb::StackTraceElementMessage* GenericExceptionMessage::mutable_trace(int index) { + return trace_.Mutable(index); +} +inline ::hbase::pb::StackTraceElementMessage* GenericExceptionMessage::add_trace() { + return trace_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StackTraceElementMessage >& +GenericExceptionMessage::trace() const { + return trace_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StackTraceElementMessage >* +GenericExceptionMessage::mutable_trace() { + return &trace_; +} + +// ------------------------------------------------------------------- + +// ForeignExceptionMessage + +// optional string source = 1; +inline bool ForeignExceptionMessage::has_source() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ForeignExceptionMessage::set_has_source() { + _has_bits_[0] |= 0x00000001u; +} +inline void ForeignExceptionMessage::clear_has_source() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ForeignExceptionMessage::clear_source() { + if (source_ != &::google::protobuf::internal::kEmptyString) { + source_->clear(); + } + clear_has_source(); +} +inline const ::std::string& ForeignExceptionMessage::source() const { + return *source_; +} +inline void ForeignExceptionMessage::set_source(const ::std::string& value) { + set_has_source(); + if (source_ == &::google::protobuf::internal::kEmptyString) { + source_ = new ::std::string; + } + source_->assign(value); +} +inline void ForeignExceptionMessage::set_source(const char* value) { + set_has_source(); + if (source_ == &::google::protobuf::internal::kEmptyString) { + source_ = new ::std::string; + } + source_->assign(value); +} +inline void ForeignExceptionMessage::set_source(const char* value, size_t size) { + set_has_source(); + if (source_ == &::google::protobuf::internal::kEmptyString) { + source_ = new ::std::string; + } + source_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ForeignExceptionMessage::mutable_source() { + set_has_source(); + if (source_ == &::google::protobuf::internal::kEmptyString) { + source_ = new ::std::string; + } + return source_; +} +inline ::std::string* ForeignExceptionMessage::release_source() { + clear_has_source(); + if (source_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = source_; + source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ForeignExceptionMessage::set_allocated_source(::std::string* source) { + if (source_ != &::google::protobuf::internal::kEmptyString) { + delete source_; + } + if (source) { + set_has_source(); + source_ = source; + } else { + clear_has_source(); + source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.GenericExceptionMessage generic_exception = 2; +inline bool ForeignExceptionMessage::has_generic_exception() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ForeignExceptionMessage::set_has_generic_exception() { + _has_bits_[0] |= 0x00000002u; +} +inline void ForeignExceptionMessage::clear_has_generic_exception() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ForeignExceptionMessage::clear_generic_exception() { + if (generic_exception_ != NULL) generic_exception_->::hbase::pb::GenericExceptionMessage::Clear(); + clear_has_generic_exception(); +} +inline const ::hbase::pb::GenericExceptionMessage& ForeignExceptionMessage::generic_exception() const { + return generic_exception_ != NULL ? *generic_exception_ : *default_instance_->generic_exception_; +} +inline ::hbase::pb::GenericExceptionMessage* ForeignExceptionMessage::mutable_generic_exception() { + set_has_generic_exception(); + if (generic_exception_ == NULL) generic_exception_ = new ::hbase::pb::GenericExceptionMessage; + return generic_exception_; +} +inline ::hbase::pb::GenericExceptionMessage* ForeignExceptionMessage::release_generic_exception() { + clear_has_generic_exception(); + ::hbase::pb::GenericExceptionMessage* temp = generic_exception_; + generic_exception_ = NULL; + return temp; +} +inline void ForeignExceptionMessage::set_allocated_generic_exception(::hbase::pb::GenericExceptionMessage* generic_exception) { + delete generic_exception_; + generic_exception_ = generic_exception; + if (generic_exception) { + set_has_generic_exception(); + } else { + clear_has_generic_exception(); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_ErrorHandling_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/FS.pb.cc b/hbase-native-client/src/rpc/generated/FS.pb.cc new file mode 100644 index 0000000..5b41697 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/FS.pb.cc @@ -0,0 +1,644 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FS.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "FS.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* HBaseVersionFileContent_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + HBaseVersionFileContent_reflection_ = NULL; +const ::google::protobuf::Descriptor* Reference_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Reference_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* Reference_Range_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_FS_2eproto() { + protobuf_AddDesc_FS_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "FS.proto"); + GOOGLE_CHECK(file != NULL); + HBaseVersionFileContent_descriptor_ = file->message_type(0); + static const int HBaseVersionFileContent_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HBaseVersionFileContent, version_), + }; + HBaseVersionFileContent_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + HBaseVersionFileContent_descriptor_, + HBaseVersionFileContent::default_instance_, + HBaseVersionFileContent_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HBaseVersionFileContent, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HBaseVersionFileContent, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(HBaseVersionFileContent)); + Reference_descriptor_ = file->message_type(1); + static const int Reference_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, splitkey_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, range_), + }; + Reference_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Reference_descriptor_, + Reference::default_instance_, + Reference_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reference, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Reference)); + Reference_Range_descriptor_ = Reference_descriptor_->enum_type(0); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_FS_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + HBaseVersionFileContent_descriptor_, &HBaseVersionFileContent::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Reference_descriptor_, &Reference::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_FS_2eproto() { + delete HBaseVersionFileContent::default_instance_; + delete HBaseVersionFileContent_reflection_; + delete Reference::default_instance_; + delete Reference_reflection_; +} + +void protobuf_AddDesc_FS_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\010FS.proto\022\010hbase.pb\"*\n\027HBaseVersionFile" + "Content\022\017\n\007version\030\001 \002(\t\"e\n\tReference\022\020\n" + "\010splitkey\030\001 \002(\014\022(\n\005range\030\002 \002(\0162\031.hbase.p" + "b.Reference.Range\"\034\n\005Range\022\007\n\003TOP\020\000\022\n\n\006B" + "OTTOM\020\001B;\n*org.apache.hadoop.hbase.proto" + "buf.generatedB\010FSProtosH\001\240\001\001", 228); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "FS.proto", &protobuf_RegisterTypes); + HBaseVersionFileContent::default_instance_ = new HBaseVersionFileContent(); + Reference::default_instance_ = new Reference(); + HBaseVersionFileContent::default_instance_->InitAsDefaultInstance(); + Reference::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_FS_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_FS_2eproto { + StaticDescriptorInitializer_FS_2eproto() { + protobuf_AddDesc_FS_2eproto(); + } +} static_descriptor_initializer_FS_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int HBaseVersionFileContent::kVersionFieldNumber; +#endif // !_MSC_VER + +HBaseVersionFileContent::HBaseVersionFileContent() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void HBaseVersionFileContent::InitAsDefaultInstance() { +} + +HBaseVersionFileContent::HBaseVersionFileContent(const HBaseVersionFileContent& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void HBaseVersionFileContent::SharedCtor() { + _cached_size_ = 0; + version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +HBaseVersionFileContent::~HBaseVersionFileContent() { + SharedDtor(); +} + +void HBaseVersionFileContent::SharedDtor() { + if (version_ != &::google::protobuf::internal::kEmptyString) { + delete version_; + } + if (this != default_instance_) { + } +} + +void HBaseVersionFileContent::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HBaseVersionFileContent::descriptor() { + protobuf_AssignDescriptorsOnce(); + return HBaseVersionFileContent_descriptor_; +} + +const HBaseVersionFileContent& HBaseVersionFileContent::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_FS_2eproto(); + return *default_instance_; +} + +HBaseVersionFileContent* HBaseVersionFileContent::default_instance_ = NULL; + +HBaseVersionFileContent* HBaseVersionFileContent::New() const { + return new HBaseVersionFileContent; +} + +void HBaseVersionFileContent::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_version()) { + if (version_ != &::google::protobuf::internal::kEmptyString) { + version_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool HBaseVersionFileContent::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string version = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void HBaseVersionFileContent::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string version = 1; + if (has_version()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->version(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* HBaseVersionFileContent::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string version = 1; + if (has_version()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->version(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int HBaseVersionFileContent::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HBaseVersionFileContent::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const HBaseVersionFileContent* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void HBaseVersionFileContent::MergeFrom(const HBaseVersionFileContent& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_version()) { + set_version(from.version()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void HBaseVersionFileContent::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HBaseVersionFileContent::CopyFrom(const HBaseVersionFileContent& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HBaseVersionFileContent::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void HBaseVersionFileContent::Swap(HBaseVersionFileContent* other) { + if (other != this) { + std::swap(version_, other->version_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata HBaseVersionFileContent::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = HBaseVersionFileContent_descriptor_; + metadata.reflection = HBaseVersionFileContent_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* Reference_Range_descriptor() { + protobuf_AssignDescriptorsOnce(); + return Reference_Range_descriptor_; +} +bool Reference_Range_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const Reference_Range Reference::TOP; +const Reference_Range Reference::BOTTOM; +const Reference_Range Reference::Range_MIN; +const Reference_Range Reference::Range_MAX; +const int Reference::Range_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int Reference::kSplitkeyFieldNumber; +const int Reference::kRangeFieldNumber; +#endif // !_MSC_VER + +Reference::Reference() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Reference::InitAsDefaultInstance() { +} + +Reference::Reference(const Reference& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Reference::SharedCtor() { + _cached_size_ = 0; + splitkey_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + range_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Reference::~Reference() { + SharedDtor(); +} + +void Reference::SharedDtor() { + if (splitkey_ != &::google::protobuf::internal::kEmptyString) { + delete splitkey_; + } + if (this != default_instance_) { + } +} + +void Reference::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Reference::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Reference_descriptor_; +} + +const Reference& Reference::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_FS_2eproto(); + return *default_instance_; +} + +Reference* Reference::default_instance_ = NULL; + +Reference* Reference::New() const { + return new Reference; +} + +void Reference::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_splitkey()) { + if (splitkey_ != &::google::protobuf::internal::kEmptyString) { + splitkey_->clear(); + } + } + range_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Reference::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes splitkey = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_splitkey())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_range; + break; + } + + // required .hbase.pb.Reference.Range range = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_range: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::Reference_Range_IsValid(value)) { + set_range(static_cast< ::hbase::pb::Reference_Range >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Reference::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes splitkey = 1; + if (has_splitkey()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->splitkey(), output); + } + + // required .hbase.pb.Reference.Range range = 2; + if (has_range()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->range(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Reference::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes splitkey = 1; + if (has_splitkey()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->splitkey(), target); + } + + // required .hbase.pb.Reference.Range range = 2; + if (has_range()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->range(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Reference::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes splitkey = 1; + if (has_splitkey()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->splitkey()); + } + + // required .hbase.pb.Reference.Range range = 2; + if (has_range()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->range()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Reference::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Reference* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Reference::MergeFrom(const Reference& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_splitkey()) { + set_splitkey(from.splitkey()); + } + if (from.has_range()) { + set_range(from.range()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Reference::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Reference::CopyFrom(const Reference& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Reference::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void Reference::Swap(Reference* other) { + if (other != this) { + std::swap(splitkey_, other->splitkey_); + std::swap(range_, other->range_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Reference::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Reference_descriptor_; + metadata.reflection = Reference_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/FS.pb.h b/hbase-native-client/src/rpc/generated/FS.pb.h new file mode 100644 index 0000000..f4de157 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/FS.pb.h @@ -0,0 +1,463 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: FS.proto + +#ifndef PROTOBUF_FS_2eproto__INCLUDED +#define PROTOBUF_FS_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_FS_2eproto(); +void protobuf_AssignDesc_FS_2eproto(); +void protobuf_ShutdownFile_FS_2eproto(); + +class HBaseVersionFileContent; +class Reference; + +enum Reference_Range { + Reference_Range_TOP = 0, + Reference_Range_BOTTOM = 1 +}; +bool Reference_Range_IsValid(int value); +const Reference_Range Reference_Range_Range_MIN = Reference_Range_TOP; +const Reference_Range Reference_Range_Range_MAX = Reference_Range_BOTTOM; +const int Reference_Range_Range_ARRAYSIZE = Reference_Range_Range_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Reference_Range_descriptor(); +inline const ::std::string& Reference_Range_Name(Reference_Range value) { + return ::google::protobuf::internal::NameOfEnum( + Reference_Range_descriptor(), value); +} +inline bool Reference_Range_Parse( + const ::std::string& name, Reference_Range* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Reference_Range_descriptor(), name, value); +} +// =================================================================== + +class HBaseVersionFileContent : public ::google::protobuf::Message { + public: + HBaseVersionFileContent(); + virtual ~HBaseVersionFileContent(); + + HBaseVersionFileContent(const HBaseVersionFileContent& from); + + inline HBaseVersionFileContent& operator=(const HBaseVersionFileContent& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const HBaseVersionFileContent& default_instance(); + + void Swap(HBaseVersionFileContent* other); + + // implements Message ---------------------------------------------- + + HBaseVersionFileContent* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const HBaseVersionFileContent& from); + void MergeFrom(const HBaseVersionFileContent& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string version = 1; + inline bool has_version() const; + inline void clear_version(); + static const int kVersionFieldNumber = 1; + inline const ::std::string& version() const; + inline void set_version(const ::std::string& value); + inline void set_version(const char* value); + inline void set_version(const char* value, size_t size); + inline ::std::string* mutable_version(); + inline ::std::string* release_version(); + inline void set_allocated_version(::std::string* version); + + // @@protoc_insertion_point(class_scope:hbase.pb.HBaseVersionFileContent) + private: + inline void set_has_version(); + inline void clear_has_version(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* version_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_FS_2eproto(); + friend void protobuf_AssignDesc_FS_2eproto(); + friend void protobuf_ShutdownFile_FS_2eproto(); + + void InitAsDefaultInstance(); + static HBaseVersionFileContent* default_instance_; +}; +// ------------------------------------------------------------------- + +class Reference : public ::google::protobuf::Message { + public: + Reference(); + virtual ~Reference(); + + Reference(const Reference& from); + + inline Reference& operator=(const Reference& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Reference& default_instance(); + + void Swap(Reference* other); + + // implements Message ---------------------------------------------- + + Reference* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Reference& from); + void MergeFrom(const Reference& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef Reference_Range Range; + static const Range TOP = Reference_Range_TOP; + static const Range BOTTOM = Reference_Range_BOTTOM; + static inline bool Range_IsValid(int value) { + return Reference_Range_IsValid(value); + } + static const Range Range_MIN = + Reference_Range_Range_MIN; + static const Range Range_MAX = + Reference_Range_Range_MAX; + static const int Range_ARRAYSIZE = + Reference_Range_Range_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Range_descriptor() { + return Reference_Range_descriptor(); + } + static inline const ::std::string& Range_Name(Range value) { + return Reference_Range_Name(value); + } + static inline bool Range_Parse(const ::std::string& name, + Range* value) { + return Reference_Range_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required bytes splitkey = 1; + inline bool has_splitkey() const; + inline void clear_splitkey(); + static const int kSplitkeyFieldNumber = 1; + inline const ::std::string& splitkey() const; + inline void set_splitkey(const ::std::string& value); + inline void set_splitkey(const char* value); + inline void set_splitkey(const void* value, size_t size); + inline ::std::string* mutable_splitkey(); + inline ::std::string* release_splitkey(); + inline void set_allocated_splitkey(::std::string* splitkey); + + // required .hbase.pb.Reference.Range range = 2; + inline bool has_range() const; + inline void clear_range(); + static const int kRangeFieldNumber = 2; + inline ::hbase::pb::Reference_Range range() const; + inline void set_range(::hbase::pb::Reference_Range value); + + // @@protoc_insertion_point(class_scope:hbase.pb.Reference) + private: + inline void set_has_splitkey(); + inline void clear_has_splitkey(); + inline void set_has_range(); + inline void clear_has_range(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* splitkey_; + int range_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_FS_2eproto(); + friend void protobuf_AssignDesc_FS_2eproto(); + friend void protobuf_ShutdownFile_FS_2eproto(); + + void InitAsDefaultInstance(); + static Reference* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// HBaseVersionFileContent + +// required string version = 1; +inline bool HBaseVersionFileContent::has_version() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void HBaseVersionFileContent::set_has_version() { + _has_bits_[0] |= 0x00000001u; +} +inline void HBaseVersionFileContent::clear_has_version() { + _has_bits_[0] &= ~0x00000001u; +} +inline void HBaseVersionFileContent::clear_version() { + if (version_ != &::google::protobuf::internal::kEmptyString) { + version_->clear(); + } + clear_has_version(); +} +inline const ::std::string& HBaseVersionFileContent::version() const { + return *version_; +} +inline void HBaseVersionFileContent::set_version(const ::std::string& value) { + set_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + version_ = new ::std::string; + } + version_->assign(value); +} +inline void HBaseVersionFileContent::set_version(const char* value) { + set_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + version_ = new ::std::string; + } + version_->assign(value); +} +inline void HBaseVersionFileContent::set_version(const char* value, size_t size) { + set_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + version_ = new ::std::string; + } + version_->assign(reinterpret_cast(value), size); +} +inline ::std::string* HBaseVersionFileContent::mutable_version() { + set_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + version_ = new ::std::string; + } + return version_; +} +inline ::std::string* HBaseVersionFileContent::release_version() { + clear_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = version_; + version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void HBaseVersionFileContent::set_allocated_version(::std::string* version) { + if (version_ != &::google::protobuf::internal::kEmptyString) { + delete version_; + } + if (version) { + set_has_version(); + version_ = version; + } else { + clear_has_version(); + version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// Reference + +// required bytes splitkey = 1; +inline bool Reference::has_splitkey() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Reference::set_has_splitkey() { + _has_bits_[0] |= 0x00000001u; +} +inline void Reference::clear_has_splitkey() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Reference::clear_splitkey() { + if (splitkey_ != &::google::protobuf::internal::kEmptyString) { + splitkey_->clear(); + } + clear_has_splitkey(); +} +inline const ::std::string& Reference::splitkey() const { + return *splitkey_; +} +inline void Reference::set_splitkey(const ::std::string& value) { + set_has_splitkey(); + if (splitkey_ == &::google::protobuf::internal::kEmptyString) { + splitkey_ = new ::std::string; + } + splitkey_->assign(value); +} +inline void Reference::set_splitkey(const char* value) { + set_has_splitkey(); + if (splitkey_ == &::google::protobuf::internal::kEmptyString) { + splitkey_ = new ::std::string; + } + splitkey_->assign(value); +} +inline void Reference::set_splitkey(const void* value, size_t size) { + set_has_splitkey(); + if (splitkey_ == &::google::protobuf::internal::kEmptyString) { + splitkey_ = new ::std::string; + } + splitkey_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Reference::mutable_splitkey() { + set_has_splitkey(); + if (splitkey_ == &::google::protobuf::internal::kEmptyString) { + splitkey_ = new ::std::string; + } + return splitkey_; +} +inline ::std::string* Reference::release_splitkey() { + clear_has_splitkey(); + if (splitkey_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = splitkey_; + splitkey_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Reference::set_allocated_splitkey(::std::string* splitkey) { + if (splitkey_ != &::google::protobuf::internal::kEmptyString) { + delete splitkey_; + } + if (splitkey) { + set_has_splitkey(); + splitkey_ = splitkey; + } else { + clear_has_splitkey(); + splitkey_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required .hbase.pb.Reference.Range range = 2; +inline bool Reference::has_range() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Reference::set_has_range() { + _has_bits_[0] |= 0x00000002u; +} +inline void Reference::clear_has_range() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Reference::clear_range() { + range_ = 0; + clear_has_range(); +} +inline ::hbase::pb::Reference_Range Reference::range() const { + return static_cast< ::hbase::pb::Reference_Range >(range_); +} +inline void Reference::set_range(::hbase::pb::Reference_Range value) { + assert(::hbase::pb::Reference_Range_IsValid(value)); + set_has_range(); + range_ = value; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::Reference_Range>() { + return ::hbase::pb::Reference_Range_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_FS_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Filter.pb.cc b/hbase-native-client/src/rpc/generated/Filter.pb.cc new file mode 100644 index 0000000..1831361 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Filter.pb.cc @@ -0,0 +1,8021 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Filter.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Filter.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* Filter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Filter_reflection_ = NULL; +const ::google::protobuf::Descriptor* ColumnCountGetFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ColumnCountGetFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* ColumnPaginationFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ColumnPaginationFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* ColumnPrefixFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ColumnPrefixFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* ColumnRangeFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ColumnRangeFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* CompareFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CompareFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* DependentColumnFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DependentColumnFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* FamilyFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FamilyFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* FilterList_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FilterList_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* FilterList_Operator_descriptor_ = NULL; +const ::google::protobuf::Descriptor* FilterWrapper_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FilterWrapper_reflection_ = NULL; +const ::google::protobuf::Descriptor* FirstKeyOnlyFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FirstKeyOnlyFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* FirstKeyValueMatchingQualifiersFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FirstKeyValueMatchingQualifiersFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* FuzzyRowFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FuzzyRowFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* InclusiveStopFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + InclusiveStopFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* KeyOnlyFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + KeyOnlyFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* MultipleColumnPrefixFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MultipleColumnPrefixFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* PageFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PageFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* PrefixFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PrefixFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* QualifierFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + QualifierFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* RandomRowFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RandomRowFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* RowFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RowFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* SingleColumnValueExcludeFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SingleColumnValueExcludeFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* SingleColumnValueFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SingleColumnValueFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* SkipFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SkipFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* TimestampsFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TimestampsFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* ValueFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ValueFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* WhileMatchFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WhileMatchFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* FilterAllFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FilterAllFilter_reflection_ = NULL; +const ::google::protobuf::Descriptor* RowRange_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RowRange_reflection_ = NULL; +const ::google::protobuf::Descriptor* MultiRowRangeFilter_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MultiRowRangeFilter_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Filter_2eproto() { + protobuf_AddDesc_Filter_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Filter.proto"); + GOOGLE_CHECK(file != NULL); + Filter_descriptor_ = file->message_type(0); + static const int Filter_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Filter, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Filter, serialized_filter_), + }; + Filter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Filter_descriptor_, + Filter::default_instance_, + Filter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Filter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Filter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Filter)); + ColumnCountGetFilter_descriptor_ = file->message_type(1); + static const int ColumnCountGetFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnCountGetFilter, limit_), + }; + ColumnCountGetFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ColumnCountGetFilter_descriptor_, + ColumnCountGetFilter::default_instance_, + ColumnCountGetFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnCountGetFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnCountGetFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ColumnCountGetFilter)); + ColumnPaginationFilter_descriptor_ = file->message_type(2); + static const int ColumnPaginationFilter_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnPaginationFilter, limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnPaginationFilter, offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnPaginationFilter, column_offset_), + }; + ColumnPaginationFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ColumnPaginationFilter_descriptor_, + ColumnPaginationFilter::default_instance_, + ColumnPaginationFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnPaginationFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnPaginationFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ColumnPaginationFilter)); + ColumnPrefixFilter_descriptor_ = file->message_type(3); + static const int ColumnPrefixFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnPrefixFilter, prefix_), + }; + ColumnPrefixFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ColumnPrefixFilter_descriptor_, + ColumnPrefixFilter::default_instance_, + ColumnPrefixFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnPrefixFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnPrefixFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ColumnPrefixFilter)); + ColumnRangeFilter_descriptor_ = file->message_type(4); + static const int ColumnRangeFilter_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnRangeFilter, min_column_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnRangeFilter, min_column_inclusive_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnRangeFilter, max_column_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnRangeFilter, max_column_inclusive_), + }; + ColumnRangeFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ColumnRangeFilter_descriptor_, + ColumnRangeFilter::default_instance_, + ColumnRangeFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnRangeFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnRangeFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ColumnRangeFilter)); + CompareFilter_descriptor_ = file->message_type(5); + static const int CompareFilter_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareFilter, compare_op_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareFilter, comparator_), + }; + CompareFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CompareFilter_descriptor_, + CompareFilter::default_instance_, + CompareFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompareFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CompareFilter)); + DependentColumnFilter_descriptor_ = file->message_type(6); + static const int DependentColumnFilter_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DependentColumnFilter, compare_filter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DependentColumnFilter, column_family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DependentColumnFilter, column_qualifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DependentColumnFilter, drop_dependent_column_), + }; + DependentColumnFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DependentColumnFilter_descriptor_, + DependentColumnFilter::default_instance_, + DependentColumnFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DependentColumnFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DependentColumnFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DependentColumnFilter)); + FamilyFilter_descriptor_ = file->message_type(7); + static const int FamilyFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FamilyFilter, compare_filter_), + }; + FamilyFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FamilyFilter_descriptor_, + FamilyFilter::default_instance_, + FamilyFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FamilyFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FamilyFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FamilyFilter)); + FilterList_descriptor_ = file->message_type(8); + static const int FilterList_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterList, operator__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterList, filters_), + }; + FilterList_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FilterList_descriptor_, + FilterList::default_instance_, + FilterList_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterList, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterList, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FilterList)); + FilterList_Operator_descriptor_ = FilterList_descriptor_->enum_type(0); + FilterWrapper_descriptor_ = file->message_type(9); + static const int FilterWrapper_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterWrapper, filter_), + }; + FilterWrapper_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FilterWrapper_descriptor_, + FilterWrapper::default_instance_, + FilterWrapper_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterWrapper, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterWrapper, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FilterWrapper)); + FirstKeyOnlyFilter_descriptor_ = file->message_type(10); + static const int FirstKeyOnlyFilter_offsets_[1] = { + }; + FirstKeyOnlyFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FirstKeyOnlyFilter_descriptor_, + FirstKeyOnlyFilter::default_instance_, + FirstKeyOnlyFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FirstKeyOnlyFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FirstKeyOnlyFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FirstKeyOnlyFilter)); + FirstKeyValueMatchingQualifiersFilter_descriptor_ = file->message_type(11); + static const int FirstKeyValueMatchingQualifiersFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FirstKeyValueMatchingQualifiersFilter, qualifiers_), + }; + FirstKeyValueMatchingQualifiersFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FirstKeyValueMatchingQualifiersFilter_descriptor_, + FirstKeyValueMatchingQualifiersFilter::default_instance_, + FirstKeyValueMatchingQualifiersFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FirstKeyValueMatchingQualifiersFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FirstKeyValueMatchingQualifiersFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FirstKeyValueMatchingQualifiersFilter)); + FuzzyRowFilter_descriptor_ = file->message_type(12); + static const int FuzzyRowFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuzzyRowFilter, fuzzy_keys_data_), + }; + FuzzyRowFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FuzzyRowFilter_descriptor_, + FuzzyRowFilter::default_instance_, + FuzzyRowFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuzzyRowFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuzzyRowFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FuzzyRowFilter)); + InclusiveStopFilter_descriptor_ = file->message_type(13); + static const int InclusiveStopFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InclusiveStopFilter, stop_row_key_), + }; + InclusiveStopFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + InclusiveStopFilter_descriptor_, + InclusiveStopFilter::default_instance_, + InclusiveStopFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InclusiveStopFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InclusiveStopFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(InclusiveStopFilter)); + KeyOnlyFilter_descriptor_ = file->message_type(14); + static const int KeyOnlyFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyOnlyFilter, len_as_val_), + }; + KeyOnlyFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + KeyOnlyFilter_descriptor_, + KeyOnlyFilter::default_instance_, + KeyOnlyFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyOnlyFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyOnlyFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(KeyOnlyFilter)); + MultipleColumnPrefixFilter_descriptor_ = file->message_type(15); + static const int MultipleColumnPrefixFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultipleColumnPrefixFilter, sorted_prefixes_), + }; + MultipleColumnPrefixFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MultipleColumnPrefixFilter_descriptor_, + MultipleColumnPrefixFilter::default_instance_, + MultipleColumnPrefixFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultipleColumnPrefixFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultipleColumnPrefixFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MultipleColumnPrefixFilter)); + PageFilter_descriptor_ = file->message_type(16); + static const int PageFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PageFilter, page_size_), + }; + PageFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PageFilter_descriptor_, + PageFilter::default_instance_, + PageFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PageFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PageFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PageFilter)); + PrefixFilter_descriptor_ = file->message_type(17); + static const int PrefixFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrefixFilter, prefix_), + }; + PrefixFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PrefixFilter_descriptor_, + PrefixFilter::default_instance_, + PrefixFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrefixFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrefixFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PrefixFilter)); + QualifierFilter_descriptor_ = file->message_type(18); + static const int QualifierFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QualifierFilter, compare_filter_), + }; + QualifierFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + QualifierFilter_descriptor_, + QualifierFilter::default_instance_, + QualifierFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QualifierFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QualifierFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(QualifierFilter)); + RandomRowFilter_descriptor_ = file->message_type(19); + static const int RandomRowFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RandomRowFilter, chance_), + }; + RandomRowFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RandomRowFilter_descriptor_, + RandomRowFilter::default_instance_, + RandomRowFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RandomRowFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RandomRowFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RandomRowFilter)); + RowFilter_descriptor_ = file->message_type(20); + static const int RowFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowFilter, compare_filter_), + }; + RowFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RowFilter_descriptor_, + RowFilter::default_instance_, + RowFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RowFilter)); + SingleColumnValueExcludeFilter_descriptor_ = file->message_type(21); + static const int SingleColumnValueExcludeFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueExcludeFilter, single_column_value_filter_), + }; + SingleColumnValueExcludeFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SingleColumnValueExcludeFilter_descriptor_, + SingleColumnValueExcludeFilter::default_instance_, + SingleColumnValueExcludeFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueExcludeFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueExcludeFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SingleColumnValueExcludeFilter)); + SingleColumnValueFilter_descriptor_ = file->message_type(22); + static const int SingleColumnValueFilter_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueFilter, column_family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueFilter, column_qualifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueFilter, compare_op_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueFilter, comparator_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueFilter, filter_if_missing_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueFilter, latest_version_only_), + }; + SingleColumnValueFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SingleColumnValueFilter_descriptor_, + SingleColumnValueFilter::default_instance_, + SingleColumnValueFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SingleColumnValueFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SingleColumnValueFilter)); + SkipFilter_descriptor_ = file->message_type(23); + static const int SkipFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SkipFilter, filter_), + }; + SkipFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SkipFilter_descriptor_, + SkipFilter::default_instance_, + SkipFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SkipFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SkipFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SkipFilter)); + TimestampsFilter_descriptor_ = file->message_type(24); + static const int TimestampsFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimestampsFilter, timestamps_), + }; + TimestampsFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TimestampsFilter_descriptor_, + TimestampsFilter::default_instance_, + TimestampsFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimestampsFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimestampsFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TimestampsFilter)); + ValueFilter_descriptor_ = file->message_type(25); + static const int ValueFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ValueFilter, compare_filter_), + }; + ValueFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ValueFilter_descriptor_, + ValueFilter::default_instance_, + ValueFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ValueFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ValueFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ValueFilter)); + WhileMatchFilter_descriptor_ = file->message_type(26); + static const int WhileMatchFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhileMatchFilter, filter_), + }; + WhileMatchFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WhileMatchFilter_descriptor_, + WhileMatchFilter::default_instance_, + WhileMatchFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhileMatchFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WhileMatchFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WhileMatchFilter)); + FilterAllFilter_descriptor_ = file->message_type(27); + static const int FilterAllFilter_offsets_[1] = { + }; + FilterAllFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FilterAllFilter_descriptor_, + FilterAllFilter::default_instance_, + FilterAllFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterAllFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterAllFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FilterAllFilter)); + RowRange_descriptor_ = file->message_type(28); + static const int RowRange_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowRange, start_row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowRange, start_row_inclusive_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowRange, stop_row_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowRange, stop_row_inclusive_), + }; + RowRange_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RowRange_descriptor_, + RowRange::default_instance_, + RowRange_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowRange, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RowRange, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RowRange)); + MultiRowRangeFilter_descriptor_ = file->message_type(29); + static const int MultiRowRangeFilter_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRowRangeFilter, row_range_list_), + }; + MultiRowRangeFilter_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MultiRowRangeFilter_descriptor_, + MultiRowRangeFilter::default_instance_, + MultiRowRangeFilter_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRowRangeFilter, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRowRangeFilter, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MultiRowRangeFilter)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Filter_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Filter_descriptor_, &Filter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ColumnCountGetFilter_descriptor_, &ColumnCountGetFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ColumnPaginationFilter_descriptor_, &ColumnPaginationFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ColumnPrefixFilter_descriptor_, &ColumnPrefixFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ColumnRangeFilter_descriptor_, &ColumnRangeFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CompareFilter_descriptor_, &CompareFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DependentColumnFilter_descriptor_, &DependentColumnFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FamilyFilter_descriptor_, &FamilyFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FilterList_descriptor_, &FilterList::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FilterWrapper_descriptor_, &FilterWrapper::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FirstKeyOnlyFilter_descriptor_, &FirstKeyOnlyFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FirstKeyValueMatchingQualifiersFilter_descriptor_, &FirstKeyValueMatchingQualifiersFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FuzzyRowFilter_descriptor_, &FuzzyRowFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + InclusiveStopFilter_descriptor_, &InclusiveStopFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + KeyOnlyFilter_descriptor_, &KeyOnlyFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MultipleColumnPrefixFilter_descriptor_, &MultipleColumnPrefixFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PageFilter_descriptor_, &PageFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PrefixFilter_descriptor_, &PrefixFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + QualifierFilter_descriptor_, &QualifierFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RandomRowFilter_descriptor_, &RandomRowFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RowFilter_descriptor_, &RowFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SingleColumnValueExcludeFilter_descriptor_, &SingleColumnValueExcludeFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SingleColumnValueFilter_descriptor_, &SingleColumnValueFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SkipFilter_descriptor_, &SkipFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TimestampsFilter_descriptor_, &TimestampsFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ValueFilter_descriptor_, &ValueFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WhileMatchFilter_descriptor_, &WhileMatchFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FilterAllFilter_descriptor_, &FilterAllFilter::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RowRange_descriptor_, &RowRange::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MultiRowRangeFilter_descriptor_, &MultiRowRangeFilter::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Filter_2eproto() { + delete Filter::default_instance_; + delete Filter_reflection_; + delete ColumnCountGetFilter::default_instance_; + delete ColumnCountGetFilter_reflection_; + delete ColumnPaginationFilter::default_instance_; + delete ColumnPaginationFilter_reflection_; + delete ColumnPrefixFilter::default_instance_; + delete ColumnPrefixFilter_reflection_; + delete ColumnRangeFilter::default_instance_; + delete ColumnRangeFilter_reflection_; + delete CompareFilter::default_instance_; + delete CompareFilter_reflection_; + delete DependentColumnFilter::default_instance_; + delete DependentColumnFilter_reflection_; + delete FamilyFilter::default_instance_; + delete FamilyFilter_reflection_; + delete FilterList::default_instance_; + delete FilterList_reflection_; + delete FilterWrapper::default_instance_; + delete FilterWrapper_reflection_; + delete FirstKeyOnlyFilter::default_instance_; + delete FirstKeyOnlyFilter_reflection_; + delete FirstKeyValueMatchingQualifiersFilter::default_instance_; + delete FirstKeyValueMatchingQualifiersFilter_reflection_; + delete FuzzyRowFilter::default_instance_; + delete FuzzyRowFilter_reflection_; + delete InclusiveStopFilter::default_instance_; + delete InclusiveStopFilter_reflection_; + delete KeyOnlyFilter::default_instance_; + delete KeyOnlyFilter_reflection_; + delete MultipleColumnPrefixFilter::default_instance_; + delete MultipleColumnPrefixFilter_reflection_; + delete PageFilter::default_instance_; + delete PageFilter_reflection_; + delete PrefixFilter::default_instance_; + delete PrefixFilter_reflection_; + delete QualifierFilter::default_instance_; + delete QualifierFilter_reflection_; + delete RandomRowFilter::default_instance_; + delete RandomRowFilter_reflection_; + delete RowFilter::default_instance_; + delete RowFilter_reflection_; + delete SingleColumnValueExcludeFilter::default_instance_; + delete SingleColumnValueExcludeFilter_reflection_; + delete SingleColumnValueFilter::default_instance_; + delete SingleColumnValueFilter_reflection_; + delete SkipFilter::default_instance_; + delete SkipFilter_reflection_; + delete TimestampsFilter::default_instance_; + delete TimestampsFilter_reflection_; + delete ValueFilter::default_instance_; + delete ValueFilter_reflection_; + delete WhileMatchFilter::default_instance_; + delete WhileMatchFilter_reflection_; + delete FilterAllFilter::default_instance_; + delete FilterAllFilter_reflection_; + delete RowRange::default_instance_; + delete RowRange_reflection_; + delete MultiRowRangeFilter::default_instance_; + delete MultiRowRangeFilter_reflection_; +} + +void protobuf_AddDesc_Filter_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_Comparator_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\014Filter.proto\022\010hbase.pb\032\013HBase.proto\032\020C" + "omparator.proto\"1\n\006Filter\022\014\n\004name\030\001 \002(\t\022" + "\031\n\021serialized_filter\030\002 \001(\014\"%\n\024ColumnCoun" + "tGetFilter\022\r\n\005limit\030\001 \002(\005\"N\n\026ColumnPagin" + "ationFilter\022\r\n\005limit\030\001 \002(\005\022\016\n\006offset\030\002 \001" + "(\005\022\025\n\rcolumn_offset\030\003 \001(\014\"$\n\022ColumnPrefi" + "xFilter\022\016\n\006prefix\030\001 \002(\014\"w\n\021ColumnRangeFi" + "lter\022\022\n\nmin_column\030\001 \001(\014\022\034\n\024min_column_i" + "nclusive\030\002 \001(\010\022\022\n\nmax_column\030\003 \001(\014\022\034\n\024ma" + "x_column_inclusive\030\004 \001(\010\"d\n\rCompareFilte" + "r\022)\n\ncompare_op\030\001 \002(\0162\025.hbase.pb.Compare" + "Type\022(\n\ncomparator\030\002 \001(\0132\024.hbase.pb.Comp" + "arator\"\230\001\n\025DependentColumnFilter\022/\n\016comp" + "are_filter\030\001 \002(\0132\027.hbase.pb.CompareFilte" + "r\022\025\n\rcolumn_family\030\002 \001(\014\022\030\n\020column_quali" + "fier\030\003 \001(\014\022\035\n\025drop_dependent_column\030\004 \001(" + "\010\"\?\n\014FamilyFilter\022/\n\016compare_filter\030\001 \002(" + "\0132\027.hbase.pb.CompareFilter\"\222\001\n\nFilterLis" + "t\022/\n\010operator\030\001 \002(\0162\035.hbase.pb.FilterLis" + "t.Operator\022!\n\007filters\030\002 \003(\0132\020.hbase.pb.F" + "ilter\"0\n\010Operator\022\021\n\rMUST_PASS_ALL\020\001\022\021\n\r" + "MUST_PASS_ONE\020\002\"1\n\rFilterWrapper\022 \n\006filt" + "er\030\001 \002(\0132\020.hbase.pb.Filter\"\024\n\022FirstKeyOn" + "lyFilter\";\n%FirstKeyValueMatchingQualifi" + "ersFilter\022\022\n\nqualifiers\030\001 \003(\014\"C\n\016FuzzyRo" + "wFilter\0221\n\017fuzzy_keys_data\030\001 \003(\0132\030.hbase" + ".pb.BytesBytesPair\"+\n\023InclusiveStopFilte" + "r\022\024\n\014stop_row_key\030\001 \001(\014\"#\n\rKeyOnlyFilter" + "\022\022\n\nlen_as_val\030\001 \002(\010\"5\n\032MultipleColumnPr" + "efixFilter\022\027\n\017sorted_prefixes\030\001 \003(\014\"\037\n\nP" + "ageFilter\022\021\n\tpage_size\030\001 \002(\003\"\036\n\014PrefixFi" + "lter\022\016\n\006prefix\030\001 \001(\014\"B\n\017QualifierFilter\022" + "/\n\016compare_filter\030\001 \002(\0132\027.hbase.pb.Compa" + "reFilter\"!\n\017RandomRowFilter\022\016\n\006chance\030\001 " + "\002(\002\"<\n\tRowFilter\022/\n\016compare_filter\030\001 \002(\013" + "2\027.hbase.pb.CompareFilter\"g\n\036SingleColum" + "nValueExcludeFilter\022E\n\032single_column_val" + "ue_filter\030\001 \002(\0132!.hbase.pb.SingleColumnV" + "alueFilter\"\327\001\n\027SingleColumnValueFilter\022\025" + "\n\rcolumn_family\030\001 \001(\014\022\030\n\020column_qualifie" + "r\030\002 \001(\014\022)\n\ncompare_op\030\003 \002(\0162\025.hbase.pb.C" + "ompareType\022(\n\ncomparator\030\004 \002(\0132\024.hbase.p" + "b.Comparator\022\031\n\021filter_if_missing\030\005 \001(\010\022" + "\033\n\023latest_version_only\030\006 \001(\010\".\n\nSkipFilt" + "er\022 \n\006filter\030\001 \002(\0132\020.hbase.pb.Filter\"*\n\020" + "TimestampsFilter\022\026\n\ntimestamps\030\001 \003(\003B\002\020\001" + "\">\n\013ValueFilter\022/\n\016compare_filter\030\001 \002(\0132" + "\027.hbase.pb.CompareFilter\"4\n\020WhileMatchFi" + "lter\022 \n\006filter\030\001 \002(\0132\020.hbase.pb.Filter\"\021" + "\n\017FilterAllFilter\"h\n\010RowRange\022\021\n\tstart_r" + "ow\030\001 \001(\014\022\033\n\023start_row_inclusive\030\002 \001(\010\022\020\n" + "\010stop_row\030\003 \001(\014\022\032\n\022stop_row_inclusive\030\004 " + "\001(\010\"A\n\023MultiRowRangeFilter\022*\n\016row_range_" + "list\030\001 \003(\0132\022.hbase.pb.RowRangeBB\n*org.ap" + "ache.hadoop.hbase.protobuf.generatedB\014Fi" + "lterProtosH\001\210\001\001\240\001\001", 2218); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Filter.proto", &protobuf_RegisterTypes); + Filter::default_instance_ = new Filter(); + ColumnCountGetFilter::default_instance_ = new ColumnCountGetFilter(); + ColumnPaginationFilter::default_instance_ = new ColumnPaginationFilter(); + ColumnPrefixFilter::default_instance_ = new ColumnPrefixFilter(); + ColumnRangeFilter::default_instance_ = new ColumnRangeFilter(); + CompareFilter::default_instance_ = new CompareFilter(); + DependentColumnFilter::default_instance_ = new DependentColumnFilter(); + FamilyFilter::default_instance_ = new FamilyFilter(); + FilterList::default_instance_ = new FilterList(); + FilterWrapper::default_instance_ = new FilterWrapper(); + FirstKeyOnlyFilter::default_instance_ = new FirstKeyOnlyFilter(); + FirstKeyValueMatchingQualifiersFilter::default_instance_ = new FirstKeyValueMatchingQualifiersFilter(); + FuzzyRowFilter::default_instance_ = new FuzzyRowFilter(); + InclusiveStopFilter::default_instance_ = new InclusiveStopFilter(); + KeyOnlyFilter::default_instance_ = new KeyOnlyFilter(); + MultipleColumnPrefixFilter::default_instance_ = new MultipleColumnPrefixFilter(); + PageFilter::default_instance_ = new PageFilter(); + PrefixFilter::default_instance_ = new PrefixFilter(); + QualifierFilter::default_instance_ = new QualifierFilter(); + RandomRowFilter::default_instance_ = new RandomRowFilter(); + RowFilter::default_instance_ = new RowFilter(); + SingleColumnValueExcludeFilter::default_instance_ = new SingleColumnValueExcludeFilter(); + SingleColumnValueFilter::default_instance_ = new SingleColumnValueFilter(); + SkipFilter::default_instance_ = new SkipFilter(); + TimestampsFilter::default_instance_ = new TimestampsFilter(); + ValueFilter::default_instance_ = new ValueFilter(); + WhileMatchFilter::default_instance_ = new WhileMatchFilter(); + FilterAllFilter::default_instance_ = new FilterAllFilter(); + RowRange::default_instance_ = new RowRange(); + MultiRowRangeFilter::default_instance_ = new MultiRowRangeFilter(); + Filter::default_instance_->InitAsDefaultInstance(); + ColumnCountGetFilter::default_instance_->InitAsDefaultInstance(); + ColumnPaginationFilter::default_instance_->InitAsDefaultInstance(); + ColumnPrefixFilter::default_instance_->InitAsDefaultInstance(); + ColumnRangeFilter::default_instance_->InitAsDefaultInstance(); + CompareFilter::default_instance_->InitAsDefaultInstance(); + DependentColumnFilter::default_instance_->InitAsDefaultInstance(); + FamilyFilter::default_instance_->InitAsDefaultInstance(); + FilterList::default_instance_->InitAsDefaultInstance(); + FilterWrapper::default_instance_->InitAsDefaultInstance(); + FirstKeyOnlyFilter::default_instance_->InitAsDefaultInstance(); + FirstKeyValueMatchingQualifiersFilter::default_instance_->InitAsDefaultInstance(); + FuzzyRowFilter::default_instance_->InitAsDefaultInstance(); + InclusiveStopFilter::default_instance_->InitAsDefaultInstance(); + KeyOnlyFilter::default_instance_->InitAsDefaultInstance(); + MultipleColumnPrefixFilter::default_instance_->InitAsDefaultInstance(); + PageFilter::default_instance_->InitAsDefaultInstance(); + PrefixFilter::default_instance_->InitAsDefaultInstance(); + QualifierFilter::default_instance_->InitAsDefaultInstance(); + RandomRowFilter::default_instance_->InitAsDefaultInstance(); + RowFilter::default_instance_->InitAsDefaultInstance(); + SingleColumnValueExcludeFilter::default_instance_->InitAsDefaultInstance(); + SingleColumnValueFilter::default_instance_->InitAsDefaultInstance(); + SkipFilter::default_instance_->InitAsDefaultInstance(); + TimestampsFilter::default_instance_->InitAsDefaultInstance(); + ValueFilter::default_instance_->InitAsDefaultInstance(); + WhileMatchFilter::default_instance_->InitAsDefaultInstance(); + FilterAllFilter::default_instance_->InitAsDefaultInstance(); + RowRange::default_instance_->InitAsDefaultInstance(); + MultiRowRangeFilter::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Filter_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Filter_2eproto { + StaticDescriptorInitializer_Filter_2eproto() { + protobuf_AddDesc_Filter_2eproto(); + } +} static_descriptor_initializer_Filter_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int Filter::kNameFieldNumber; +const int Filter::kSerializedFilterFieldNumber; +#endif // !_MSC_VER + +Filter::Filter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Filter::InitAsDefaultInstance() { +} + +Filter::Filter(const Filter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Filter::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + serialized_filter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Filter::~Filter() { + SharedDtor(); +} + +void Filter::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (serialized_filter_ != &::google::protobuf::internal::kEmptyString) { + delete serialized_filter_; + } + if (this != default_instance_) { + } +} + +void Filter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Filter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Filter_descriptor_; +} + +const Filter& Filter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +Filter* Filter::default_instance_ = NULL; + +Filter* Filter::New() const { + return new Filter; +} + +void Filter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + if (has_serialized_filter()) { + if (serialized_filter_ != &::google::protobuf::internal::kEmptyString) { + serialized_filter_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Filter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_serialized_filter; + break; + } + + // optional bytes serialized_filter = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_serialized_filter: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_serialized_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Filter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + // optional bytes serialized_filter = 2; + if (has_serialized_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->serialized_filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Filter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional bytes serialized_filter = 2; + if (has_serialized_filter()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->serialized_filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Filter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional bytes serialized_filter = 2; + if (has_serialized_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->serialized_filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Filter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Filter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Filter::MergeFrom(const Filter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + if (from.has_serialized_filter()) { + set_serialized_filter(from.serialized_filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Filter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Filter::CopyFrom(const Filter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Filter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void Filter::Swap(Filter* other) { + if (other != this) { + std::swap(name_, other->name_); + std::swap(serialized_filter_, other->serialized_filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Filter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Filter_descriptor_; + metadata.reflection = Filter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ColumnCountGetFilter::kLimitFieldNumber; +#endif // !_MSC_VER + +ColumnCountGetFilter::ColumnCountGetFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ColumnCountGetFilter::InitAsDefaultInstance() { +} + +ColumnCountGetFilter::ColumnCountGetFilter(const ColumnCountGetFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ColumnCountGetFilter::SharedCtor() { + _cached_size_ = 0; + limit_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ColumnCountGetFilter::~ColumnCountGetFilter() { + SharedDtor(); +} + +void ColumnCountGetFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void ColumnCountGetFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ColumnCountGetFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ColumnCountGetFilter_descriptor_; +} + +const ColumnCountGetFilter& ColumnCountGetFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +ColumnCountGetFilter* ColumnCountGetFilter::default_instance_ = NULL; + +ColumnCountGetFilter* ColumnCountGetFilter::New() const { + return new ColumnCountGetFilter; +} + +void ColumnCountGetFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + limit_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ColumnCountGetFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required int32 limit = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &limit_))); + set_has_limit(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ColumnCountGetFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required int32 limit = 1; + if (has_limit()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->limit(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ColumnCountGetFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required int32 limit = 1; + if (has_limit()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->limit(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ColumnCountGetFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required int32 limit = 1; + if (has_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->limit()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ColumnCountGetFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ColumnCountGetFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ColumnCountGetFilter::MergeFrom(const ColumnCountGetFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_limit()) { + set_limit(from.limit()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ColumnCountGetFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ColumnCountGetFilter::CopyFrom(const ColumnCountGetFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnCountGetFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ColumnCountGetFilter::Swap(ColumnCountGetFilter* other) { + if (other != this) { + std::swap(limit_, other->limit_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ColumnCountGetFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ColumnCountGetFilter_descriptor_; + metadata.reflection = ColumnCountGetFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ColumnPaginationFilter::kLimitFieldNumber; +const int ColumnPaginationFilter::kOffsetFieldNumber; +const int ColumnPaginationFilter::kColumnOffsetFieldNumber; +#endif // !_MSC_VER + +ColumnPaginationFilter::ColumnPaginationFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ColumnPaginationFilter::InitAsDefaultInstance() { +} + +ColumnPaginationFilter::ColumnPaginationFilter(const ColumnPaginationFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ColumnPaginationFilter::SharedCtor() { + _cached_size_ = 0; + limit_ = 0; + offset_ = 0; + column_offset_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ColumnPaginationFilter::~ColumnPaginationFilter() { + SharedDtor(); +} + +void ColumnPaginationFilter::SharedDtor() { + if (column_offset_ != &::google::protobuf::internal::kEmptyString) { + delete column_offset_; + } + if (this != default_instance_) { + } +} + +void ColumnPaginationFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ColumnPaginationFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ColumnPaginationFilter_descriptor_; +} + +const ColumnPaginationFilter& ColumnPaginationFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +ColumnPaginationFilter* ColumnPaginationFilter::default_instance_ = NULL; + +ColumnPaginationFilter* ColumnPaginationFilter::New() const { + return new ColumnPaginationFilter; +} + +void ColumnPaginationFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + limit_ = 0; + offset_ = 0; + if (has_column_offset()) { + if (column_offset_ != &::google::protobuf::internal::kEmptyString) { + column_offset_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ColumnPaginationFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required int32 limit = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &limit_))); + set_has_limit(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_offset; + break; + } + + // optional int32 offset = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_offset: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &offset_))); + set_has_offset(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_column_offset; + break; + } + + // optional bytes column_offset = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_offset: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_column_offset())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ColumnPaginationFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required int32 limit = 1; + if (has_limit()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->limit(), output); + } + + // optional int32 offset = 2; + if (has_offset()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->offset(), output); + } + + // optional bytes column_offset = 3; + if (has_column_offset()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->column_offset(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ColumnPaginationFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required int32 limit = 1; + if (has_limit()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->limit(), target); + } + + // optional int32 offset = 2; + if (has_offset()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->offset(), target); + } + + // optional bytes column_offset = 3; + if (has_column_offset()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->column_offset(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ColumnPaginationFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required int32 limit = 1; + if (has_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->limit()); + } + + // optional int32 offset = 2; + if (has_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->offset()); + } + + // optional bytes column_offset = 3; + if (has_column_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->column_offset()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ColumnPaginationFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ColumnPaginationFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ColumnPaginationFilter::MergeFrom(const ColumnPaginationFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_limit()) { + set_limit(from.limit()); + } + if (from.has_offset()) { + set_offset(from.offset()); + } + if (from.has_column_offset()) { + set_column_offset(from.column_offset()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ColumnPaginationFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ColumnPaginationFilter::CopyFrom(const ColumnPaginationFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnPaginationFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ColumnPaginationFilter::Swap(ColumnPaginationFilter* other) { + if (other != this) { + std::swap(limit_, other->limit_); + std::swap(offset_, other->offset_); + std::swap(column_offset_, other->column_offset_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ColumnPaginationFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ColumnPaginationFilter_descriptor_; + metadata.reflection = ColumnPaginationFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ColumnPrefixFilter::kPrefixFieldNumber; +#endif // !_MSC_VER + +ColumnPrefixFilter::ColumnPrefixFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ColumnPrefixFilter::InitAsDefaultInstance() { +} + +ColumnPrefixFilter::ColumnPrefixFilter(const ColumnPrefixFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ColumnPrefixFilter::SharedCtor() { + _cached_size_ = 0; + prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ColumnPrefixFilter::~ColumnPrefixFilter() { + SharedDtor(); +} + +void ColumnPrefixFilter::SharedDtor() { + if (prefix_ != &::google::protobuf::internal::kEmptyString) { + delete prefix_; + } + if (this != default_instance_) { + } +} + +void ColumnPrefixFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ColumnPrefixFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ColumnPrefixFilter_descriptor_; +} + +const ColumnPrefixFilter& ColumnPrefixFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +ColumnPrefixFilter* ColumnPrefixFilter::default_instance_ = NULL; + +ColumnPrefixFilter* ColumnPrefixFilter::New() const { + return new ColumnPrefixFilter; +} + +void ColumnPrefixFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_prefix()) { + if (prefix_ != &::google::protobuf::internal::kEmptyString) { + prefix_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ColumnPrefixFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes prefix = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_prefix())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ColumnPrefixFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes prefix = 1; + if (has_prefix()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->prefix(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ColumnPrefixFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes prefix = 1; + if (has_prefix()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->prefix(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ColumnPrefixFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes prefix = 1; + if (has_prefix()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->prefix()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ColumnPrefixFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ColumnPrefixFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ColumnPrefixFilter::MergeFrom(const ColumnPrefixFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_prefix()) { + set_prefix(from.prefix()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ColumnPrefixFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ColumnPrefixFilter::CopyFrom(const ColumnPrefixFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnPrefixFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ColumnPrefixFilter::Swap(ColumnPrefixFilter* other) { + if (other != this) { + std::swap(prefix_, other->prefix_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ColumnPrefixFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ColumnPrefixFilter_descriptor_; + metadata.reflection = ColumnPrefixFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ColumnRangeFilter::kMinColumnFieldNumber; +const int ColumnRangeFilter::kMinColumnInclusiveFieldNumber; +const int ColumnRangeFilter::kMaxColumnFieldNumber; +const int ColumnRangeFilter::kMaxColumnInclusiveFieldNumber; +#endif // !_MSC_VER + +ColumnRangeFilter::ColumnRangeFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ColumnRangeFilter::InitAsDefaultInstance() { +} + +ColumnRangeFilter::ColumnRangeFilter(const ColumnRangeFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ColumnRangeFilter::SharedCtor() { + _cached_size_ = 0; + min_column_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + min_column_inclusive_ = false; + max_column_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + max_column_inclusive_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ColumnRangeFilter::~ColumnRangeFilter() { + SharedDtor(); +} + +void ColumnRangeFilter::SharedDtor() { + if (min_column_ != &::google::protobuf::internal::kEmptyString) { + delete min_column_; + } + if (max_column_ != &::google::protobuf::internal::kEmptyString) { + delete max_column_; + } + if (this != default_instance_) { + } +} + +void ColumnRangeFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ColumnRangeFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ColumnRangeFilter_descriptor_; +} + +const ColumnRangeFilter& ColumnRangeFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +ColumnRangeFilter* ColumnRangeFilter::default_instance_ = NULL; + +ColumnRangeFilter* ColumnRangeFilter::New() const { + return new ColumnRangeFilter; +} + +void ColumnRangeFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_min_column()) { + if (min_column_ != &::google::protobuf::internal::kEmptyString) { + min_column_->clear(); + } + } + min_column_inclusive_ = false; + if (has_max_column()) { + if (max_column_ != &::google::protobuf::internal::kEmptyString) { + max_column_->clear(); + } + } + max_column_inclusive_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ColumnRangeFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes min_column = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_min_column())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_min_column_inclusive; + break; + } + + // optional bool min_column_inclusive = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_min_column_inclusive: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &min_column_inclusive_))); + set_has_min_column_inclusive(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_max_column; + break; + } + + // optional bytes max_column = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_max_column: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_max_column())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_max_column_inclusive; + break; + } + + // optional bool max_column_inclusive = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_max_column_inclusive: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &max_column_inclusive_))); + set_has_max_column_inclusive(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ColumnRangeFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes min_column = 1; + if (has_min_column()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->min_column(), output); + } + + // optional bool min_column_inclusive = 2; + if (has_min_column_inclusive()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->min_column_inclusive(), output); + } + + // optional bytes max_column = 3; + if (has_max_column()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->max_column(), output); + } + + // optional bool max_column_inclusive = 4; + if (has_max_column_inclusive()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->max_column_inclusive(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ColumnRangeFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes min_column = 1; + if (has_min_column()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->min_column(), target); + } + + // optional bool min_column_inclusive = 2; + if (has_min_column_inclusive()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->min_column_inclusive(), target); + } + + // optional bytes max_column = 3; + if (has_max_column()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->max_column(), target); + } + + // optional bool max_column_inclusive = 4; + if (has_max_column_inclusive()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->max_column_inclusive(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ColumnRangeFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes min_column = 1; + if (has_min_column()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->min_column()); + } + + // optional bool min_column_inclusive = 2; + if (has_min_column_inclusive()) { + total_size += 1 + 1; + } + + // optional bytes max_column = 3; + if (has_max_column()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->max_column()); + } + + // optional bool max_column_inclusive = 4; + if (has_max_column_inclusive()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ColumnRangeFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ColumnRangeFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ColumnRangeFilter::MergeFrom(const ColumnRangeFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_min_column()) { + set_min_column(from.min_column()); + } + if (from.has_min_column_inclusive()) { + set_min_column_inclusive(from.min_column_inclusive()); + } + if (from.has_max_column()) { + set_max_column(from.max_column()); + } + if (from.has_max_column_inclusive()) { + set_max_column_inclusive(from.max_column_inclusive()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ColumnRangeFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ColumnRangeFilter::CopyFrom(const ColumnRangeFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnRangeFilter::IsInitialized() const { + + return true; +} + +void ColumnRangeFilter::Swap(ColumnRangeFilter* other) { + if (other != this) { + std::swap(min_column_, other->min_column_); + std::swap(min_column_inclusive_, other->min_column_inclusive_); + std::swap(max_column_, other->max_column_); + std::swap(max_column_inclusive_, other->max_column_inclusive_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ColumnRangeFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ColumnRangeFilter_descriptor_; + metadata.reflection = ColumnRangeFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CompareFilter::kCompareOpFieldNumber; +const int CompareFilter::kComparatorFieldNumber; +#endif // !_MSC_VER + +CompareFilter::CompareFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CompareFilter::InitAsDefaultInstance() { + comparator_ = const_cast< ::hbase::pb::Comparator*>(&::hbase::pb::Comparator::default_instance()); +} + +CompareFilter::CompareFilter(const CompareFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CompareFilter::SharedCtor() { + _cached_size_ = 0; + compare_op_ = 0; + comparator_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CompareFilter::~CompareFilter() { + SharedDtor(); +} + +void CompareFilter::SharedDtor() { + if (this != default_instance_) { + delete comparator_; + } +} + +void CompareFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CompareFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CompareFilter_descriptor_; +} + +const CompareFilter& CompareFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +CompareFilter* CompareFilter::default_instance_ = NULL; + +CompareFilter* CompareFilter::New() const { + return new CompareFilter; +} + +void CompareFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + compare_op_ = 0; + if (has_comparator()) { + if (comparator_ != NULL) comparator_->::hbase::pb::Comparator::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CompareFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.CompareType compare_op = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::CompareType_IsValid(value)) { + set_compare_op(static_cast< ::hbase::pb::CompareType >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_comparator; + break; + } + + // optional .hbase.pb.Comparator comparator = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_comparator: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_comparator())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CompareFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.CompareType compare_op = 1; + if (has_compare_op()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->compare_op(), output); + } + + // optional .hbase.pb.Comparator comparator = 2; + if (has_comparator()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->comparator(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CompareFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.CompareType compare_op = 1; + if (has_compare_op()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->compare_op(), target); + } + + // optional .hbase.pb.Comparator comparator = 2; + if (has_comparator()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->comparator(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CompareFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.CompareType compare_op = 1; + if (has_compare_op()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->compare_op()); + } + + // optional .hbase.pb.Comparator comparator = 2; + if (has_comparator()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->comparator()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CompareFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CompareFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CompareFilter::MergeFrom(const CompareFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_compare_op()) { + set_compare_op(from.compare_op()); + } + if (from.has_comparator()) { + mutable_comparator()->::hbase::pb::Comparator::MergeFrom(from.comparator()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CompareFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompareFilter::CopyFrom(const CompareFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompareFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_comparator()) { + if (!this->comparator().IsInitialized()) return false; + } + return true; +} + +void CompareFilter::Swap(CompareFilter* other) { + if (other != this) { + std::swap(compare_op_, other->compare_op_); + std::swap(comparator_, other->comparator_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CompareFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CompareFilter_descriptor_; + metadata.reflection = CompareFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DependentColumnFilter::kCompareFilterFieldNumber; +const int DependentColumnFilter::kColumnFamilyFieldNumber; +const int DependentColumnFilter::kColumnQualifierFieldNumber; +const int DependentColumnFilter::kDropDependentColumnFieldNumber; +#endif // !_MSC_VER + +DependentColumnFilter::DependentColumnFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DependentColumnFilter::InitAsDefaultInstance() { + compare_filter_ = const_cast< ::hbase::pb::CompareFilter*>(&::hbase::pb::CompareFilter::default_instance()); +} + +DependentColumnFilter::DependentColumnFilter(const DependentColumnFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DependentColumnFilter::SharedCtor() { + _cached_size_ = 0; + compare_filter_ = NULL; + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + column_qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + drop_dependent_column_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DependentColumnFilter::~DependentColumnFilter() { + SharedDtor(); +} + +void DependentColumnFilter::SharedDtor() { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + delete column_family_; + } + if (column_qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete column_qualifier_; + } + if (this != default_instance_) { + delete compare_filter_; + } +} + +void DependentColumnFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DependentColumnFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DependentColumnFilter_descriptor_; +} + +const DependentColumnFilter& DependentColumnFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +DependentColumnFilter* DependentColumnFilter::default_instance_ = NULL; + +DependentColumnFilter* DependentColumnFilter::New() const { + return new DependentColumnFilter; +} + +void DependentColumnFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_compare_filter()) { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + } + if (has_column_family()) { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + column_family_->clear(); + } + } + if (has_column_qualifier()) { + if (column_qualifier_ != &::google::protobuf::internal::kEmptyString) { + column_qualifier_->clear(); + } + } + drop_dependent_column_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DependentColumnFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.CompareFilter compare_filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_compare_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_column_family; + break; + } + + // optional bytes column_family = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_family: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_column_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_column_qualifier; + break; + } + + // optional bytes column_qualifier = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_qualifier: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_column_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_drop_dependent_column; + break; + } + + // optional bool drop_dependent_column = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_drop_dependent_column: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &drop_dependent_column_))); + set_has_drop_dependent_column(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DependentColumnFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->compare_filter(), output); + } + + // optional bytes column_family = 2; + if (has_column_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->column_family(), output); + } + + // optional bytes column_qualifier = 3; + if (has_column_qualifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->column_qualifier(), output); + } + + // optional bool drop_dependent_column = 4; + if (has_drop_dependent_column()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->drop_dependent_column(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DependentColumnFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->compare_filter(), target); + } + + // optional bytes column_family = 2; + if (has_column_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->column_family(), target); + } + + // optional bytes column_qualifier = 3; + if (has_column_qualifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->column_qualifier(), target); + } + + // optional bool drop_dependent_column = 4; + if (has_drop_dependent_column()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->drop_dependent_column(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DependentColumnFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->compare_filter()); + } + + // optional bytes column_family = 2; + if (has_column_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->column_family()); + } + + // optional bytes column_qualifier = 3; + if (has_column_qualifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->column_qualifier()); + } + + // optional bool drop_dependent_column = 4; + if (has_drop_dependent_column()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DependentColumnFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DependentColumnFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DependentColumnFilter::MergeFrom(const DependentColumnFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_compare_filter()) { + mutable_compare_filter()->::hbase::pb::CompareFilter::MergeFrom(from.compare_filter()); + } + if (from.has_column_family()) { + set_column_family(from.column_family()); + } + if (from.has_column_qualifier()) { + set_column_qualifier(from.column_qualifier()); + } + if (from.has_drop_dependent_column()) { + set_drop_dependent_column(from.drop_dependent_column()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DependentColumnFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DependentColumnFilter::CopyFrom(const DependentColumnFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DependentColumnFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_compare_filter()) { + if (!this->compare_filter().IsInitialized()) return false; + } + return true; +} + +void DependentColumnFilter::Swap(DependentColumnFilter* other) { + if (other != this) { + std::swap(compare_filter_, other->compare_filter_); + std::swap(column_family_, other->column_family_); + std::swap(column_qualifier_, other->column_qualifier_); + std::swap(drop_dependent_column_, other->drop_dependent_column_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DependentColumnFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DependentColumnFilter_descriptor_; + metadata.reflection = DependentColumnFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FamilyFilter::kCompareFilterFieldNumber; +#endif // !_MSC_VER + +FamilyFilter::FamilyFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FamilyFilter::InitAsDefaultInstance() { + compare_filter_ = const_cast< ::hbase::pb::CompareFilter*>(&::hbase::pb::CompareFilter::default_instance()); +} + +FamilyFilter::FamilyFilter(const FamilyFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FamilyFilter::SharedCtor() { + _cached_size_ = 0; + compare_filter_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FamilyFilter::~FamilyFilter() { + SharedDtor(); +} + +void FamilyFilter::SharedDtor() { + if (this != default_instance_) { + delete compare_filter_; + } +} + +void FamilyFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FamilyFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FamilyFilter_descriptor_; +} + +const FamilyFilter& FamilyFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +FamilyFilter* FamilyFilter::default_instance_ = NULL; + +FamilyFilter* FamilyFilter::New() const { + return new FamilyFilter; +} + +void FamilyFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_compare_filter()) { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FamilyFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.CompareFilter compare_filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_compare_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FamilyFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->compare_filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FamilyFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->compare_filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FamilyFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->compare_filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FamilyFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FamilyFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FamilyFilter::MergeFrom(const FamilyFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_compare_filter()) { + mutable_compare_filter()->::hbase::pb::CompareFilter::MergeFrom(from.compare_filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FamilyFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FamilyFilter::CopyFrom(const FamilyFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FamilyFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_compare_filter()) { + if (!this->compare_filter().IsInitialized()) return false; + } + return true; +} + +void FamilyFilter::Swap(FamilyFilter* other) { + if (other != this) { + std::swap(compare_filter_, other->compare_filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FamilyFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FamilyFilter_descriptor_; + metadata.reflection = FamilyFilter_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* FilterList_Operator_descriptor() { + protobuf_AssignDescriptorsOnce(); + return FilterList_Operator_descriptor_; +} +bool FilterList_Operator_IsValid(int value) { + switch(value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const FilterList_Operator FilterList::MUST_PASS_ALL; +const FilterList_Operator FilterList::MUST_PASS_ONE; +const FilterList_Operator FilterList::Operator_MIN; +const FilterList_Operator FilterList::Operator_MAX; +const int FilterList::Operator_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int FilterList::kOperatorFieldNumber; +const int FilterList::kFiltersFieldNumber; +#endif // !_MSC_VER + +FilterList::FilterList() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FilterList::InitAsDefaultInstance() { +} + +FilterList::FilterList(const FilterList& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FilterList::SharedCtor() { + _cached_size_ = 0; + operator__ = 1; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FilterList::~FilterList() { + SharedDtor(); +} + +void FilterList::SharedDtor() { + if (this != default_instance_) { + } +} + +void FilterList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FilterList::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FilterList_descriptor_; +} + +const FilterList& FilterList::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +FilterList* FilterList::default_instance_ = NULL; + +FilterList* FilterList::New() const { + return new FilterList; +} + +void FilterList::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + operator__ = 1; + } + filters_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FilterList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.FilterList.Operator operator = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::FilterList_Operator_IsValid(value)) { + set_operator_(static_cast< ::hbase::pb::FilterList_Operator >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_filters; + break; + } + + // repeated .hbase.pb.Filter filters = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_filters: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_filters())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_filters; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FilterList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.FilterList.Operator operator = 1; + if (has_operator_()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->operator_(), output); + } + + // repeated .hbase.pb.Filter filters = 2; + for (int i = 0; i < this->filters_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->filters(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FilterList::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.FilterList.Operator operator = 1; + if (has_operator_()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->operator_(), target); + } + + // repeated .hbase.pb.Filter filters = 2; + for (int i = 0; i < this->filters_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->filters(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FilterList::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.FilterList.Operator operator = 1; + if (has_operator_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + } + + } + // repeated .hbase.pb.Filter filters = 2; + total_size += 1 * this->filters_size(); + for (int i = 0; i < this->filters_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->filters(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FilterList::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FilterList* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FilterList::MergeFrom(const FilterList& from) { + GOOGLE_CHECK_NE(&from, this); + filters_.MergeFrom(from.filters_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_operator_()) { + set_operator_(from.operator_()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FilterList::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FilterList::CopyFrom(const FilterList& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FilterList::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < filters_size(); i++) { + if (!this->filters(i).IsInitialized()) return false; + } + return true; +} + +void FilterList::Swap(FilterList* other) { + if (other != this) { + std::swap(operator__, other->operator__); + filters_.Swap(&other->filters_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FilterList::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FilterList_descriptor_; + metadata.reflection = FilterList_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FilterWrapper::kFilterFieldNumber; +#endif // !_MSC_VER + +FilterWrapper::FilterWrapper() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FilterWrapper::InitAsDefaultInstance() { + filter_ = const_cast< ::hbase::pb::Filter*>(&::hbase::pb::Filter::default_instance()); +} + +FilterWrapper::FilterWrapper(const FilterWrapper& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FilterWrapper::SharedCtor() { + _cached_size_ = 0; + filter_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FilterWrapper::~FilterWrapper() { + SharedDtor(); +} + +void FilterWrapper::SharedDtor() { + if (this != default_instance_) { + delete filter_; + } +} + +void FilterWrapper::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FilterWrapper::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FilterWrapper_descriptor_; +} + +const FilterWrapper& FilterWrapper::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +FilterWrapper* FilterWrapper::default_instance_ = NULL; + +FilterWrapper* FilterWrapper::New() const { + return new FilterWrapper; +} + +void FilterWrapper::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_filter()) { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FilterWrapper::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.Filter filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FilterWrapper::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FilterWrapper::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FilterWrapper::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FilterWrapper::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FilterWrapper* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FilterWrapper::MergeFrom(const FilterWrapper& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_filter()) { + mutable_filter()->::hbase::pb::Filter::MergeFrom(from.filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FilterWrapper::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FilterWrapper::CopyFrom(const FilterWrapper& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FilterWrapper::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_filter()) { + if (!this->filter().IsInitialized()) return false; + } + return true; +} + +void FilterWrapper::Swap(FilterWrapper* other) { + if (other != this) { + std::swap(filter_, other->filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FilterWrapper::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FilterWrapper_descriptor_; + metadata.reflection = FilterWrapper_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +FirstKeyOnlyFilter::FirstKeyOnlyFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FirstKeyOnlyFilter::InitAsDefaultInstance() { +} + +FirstKeyOnlyFilter::FirstKeyOnlyFilter(const FirstKeyOnlyFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FirstKeyOnlyFilter::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FirstKeyOnlyFilter::~FirstKeyOnlyFilter() { + SharedDtor(); +} + +void FirstKeyOnlyFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void FirstKeyOnlyFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FirstKeyOnlyFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FirstKeyOnlyFilter_descriptor_; +} + +const FirstKeyOnlyFilter& FirstKeyOnlyFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +FirstKeyOnlyFilter* FirstKeyOnlyFilter::default_instance_ = NULL; + +FirstKeyOnlyFilter* FirstKeyOnlyFilter::New() const { + return new FirstKeyOnlyFilter; +} + +void FirstKeyOnlyFilter::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FirstKeyOnlyFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void FirstKeyOnlyFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FirstKeyOnlyFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FirstKeyOnlyFilter::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FirstKeyOnlyFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FirstKeyOnlyFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FirstKeyOnlyFilter::MergeFrom(const FirstKeyOnlyFilter& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FirstKeyOnlyFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FirstKeyOnlyFilter::CopyFrom(const FirstKeyOnlyFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FirstKeyOnlyFilter::IsInitialized() const { + + return true; +} + +void FirstKeyOnlyFilter::Swap(FirstKeyOnlyFilter* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FirstKeyOnlyFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FirstKeyOnlyFilter_descriptor_; + metadata.reflection = FirstKeyOnlyFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FirstKeyValueMatchingQualifiersFilter::kQualifiersFieldNumber; +#endif // !_MSC_VER + +FirstKeyValueMatchingQualifiersFilter::FirstKeyValueMatchingQualifiersFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FirstKeyValueMatchingQualifiersFilter::InitAsDefaultInstance() { +} + +FirstKeyValueMatchingQualifiersFilter::FirstKeyValueMatchingQualifiersFilter(const FirstKeyValueMatchingQualifiersFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FirstKeyValueMatchingQualifiersFilter::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FirstKeyValueMatchingQualifiersFilter::~FirstKeyValueMatchingQualifiersFilter() { + SharedDtor(); +} + +void FirstKeyValueMatchingQualifiersFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void FirstKeyValueMatchingQualifiersFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FirstKeyValueMatchingQualifiersFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FirstKeyValueMatchingQualifiersFilter_descriptor_; +} + +const FirstKeyValueMatchingQualifiersFilter& FirstKeyValueMatchingQualifiersFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +FirstKeyValueMatchingQualifiersFilter* FirstKeyValueMatchingQualifiersFilter::default_instance_ = NULL; + +FirstKeyValueMatchingQualifiersFilter* FirstKeyValueMatchingQualifiersFilter::New() const { + return new FirstKeyValueMatchingQualifiersFilter; +} + +void FirstKeyValueMatchingQualifiersFilter::Clear() { + qualifiers_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FirstKeyValueMatchingQualifiersFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes qualifiers = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_qualifiers: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_qualifiers())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_qualifiers; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FirstKeyValueMatchingQualifiersFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated bytes qualifiers = 1; + for (int i = 0; i < this->qualifiers_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->qualifiers(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FirstKeyValueMatchingQualifiersFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated bytes qualifiers = 1; + for (int i = 0; i < this->qualifiers_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->qualifiers(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FirstKeyValueMatchingQualifiersFilter::ByteSize() const { + int total_size = 0; + + // repeated bytes qualifiers = 1; + total_size += 1 * this->qualifiers_size(); + for (int i = 0; i < this->qualifiers_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->qualifiers(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FirstKeyValueMatchingQualifiersFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FirstKeyValueMatchingQualifiersFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FirstKeyValueMatchingQualifiersFilter::MergeFrom(const FirstKeyValueMatchingQualifiersFilter& from) { + GOOGLE_CHECK_NE(&from, this); + qualifiers_.MergeFrom(from.qualifiers_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FirstKeyValueMatchingQualifiersFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FirstKeyValueMatchingQualifiersFilter::CopyFrom(const FirstKeyValueMatchingQualifiersFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FirstKeyValueMatchingQualifiersFilter::IsInitialized() const { + + return true; +} + +void FirstKeyValueMatchingQualifiersFilter::Swap(FirstKeyValueMatchingQualifiersFilter* other) { + if (other != this) { + qualifiers_.Swap(&other->qualifiers_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FirstKeyValueMatchingQualifiersFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FirstKeyValueMatchingQualifiersFilter_descriptor_; + metadata.reflection = FirstKeyValueMatchingQualifiersFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FuzzyRowFilter::kFuzzyKeysDataFieldNumber; +#endif // !_MSC_VER + +FuzzyRowFilter::FuzzyRowFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FuzzyRowFilter::InitAsDefaultInstance() { +} + +FuzzyRowFilter::FuzzyRowFilter(const FuzzyRowFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FuzzyRowFilter::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FuzzyRowFilter::~FuzzyRowFilter() { + SharedDtor(); +} + +void FuzzyRowFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void FuzzyRowFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FuzzyRowFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FuzzyRowFilter_descriptor_; +} + +const FuzzyRowFilter& FuzzyRowFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +FuzzyRowFilter* FuzzyRowFilter::default_instance_ = NULL; + +FuzzyRowFilter* FuzzyRowFilter::New() const { + return new FuzzyRowFilter; +} + +void FuzzyRowFilter::Clear() { + fuzzy_keys_data_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FuzzyRowFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.BytesBytesPair fuzzy_keys_data = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_fuzzy_keys_data: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_fuzzy_keys_data())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_fuzzy_keys_data; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FuzzyRowFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.BytesBytesPair fuzzy_keys_data = 1; + for (int i = 0; i < this->fuzzy_keys_data_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->fuzzy_keys_data(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FuzzyRowFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.BytesBytesPair fuzzy_keys_data = 1; + for (int i = 0; i < this->fuzzy_keys_data_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->fuzzy_keys_data(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FuzzyRowFilter::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.BytesBytesPair fuzzy_keys_data = 1; + total_size += 1 * this->fuzzy_keys_data_size(); + for (int i = 0; i < this->fuzzy_keys_data_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->fuzzy_keys_data(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FuzzyRowFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FuzzyRowFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FuzzyRowFilter::MergeFrom(const FuzzyRowFilter& from) { + GOOGLE_CHECK_NE(&from, this); + fuzzy_keys_data_.MergeFrom(from.fuzzy_keys_data_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FuzzyRowFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FuzzyRowFilter::CopyFrom(const FuzzyRowFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FuzzyRowFilter::IsInitialized() const { + + for (int i = 0; i < fuzzy_keys_data_size(); i++) { + if (!this->fuzzy_keys_data(i).IsInitialized()) return false; + } + return true; +} + +void FuzzyRowFilter::Swap(FuzzyRowFilter* other) { + if (other != this) { + fuzzy_keys_data_.Swap(&other->fuzzy_keys_data_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FuzzyRowFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FuzzyRowFilter_descriptor_; + metadata.reflection = FuzzyRowFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int InclusiveStopFilter::kStopRowKeyFieldNumber; +#endif // !_MSC_VER + +InclusiveStopFilter::InclusiveStopFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void InclusiveStopFilter::InitAsDefaultInstance() { +} + +InclusiveStopFilter::InclusiveStopFilter(const InclusiveStopFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void InclusiveStopFilter::SharedCtor() { + _cached_size_ = 0; + stop_row_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +InclusiveStopFilter::~InclusiveStopFilter() { + SharedDtor(); +} + +void InclusiveStopFilter::SharedDtor() { + if (stop_row_key_ != &::google::protobuf::internal::kEmptyString) { + delete stop_row_key_; + } + if (this != default_instance_) { + } +} + +void InclusiveStopFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InclusiveStopFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return InclusiveStopFilter_descriptor_; +} + +const InclusiveStopFilter& InclusiveStopFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +InclusiveStopFilter* InclusiveStopFilter::default_instance_ = NULL; + +InclusiveStopFilter* InclusiveStopFilter::New() const { + return new InclusiveStopFilter; +} + +void InclusiveStopFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_stop_row_key()) { + if (stop_row_key_ != &::google::protobuf::internal::kEmptyString) { + stop_row_key_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool InclusiveStopFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes stop_row_key = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_stop_row_key())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void InclusiveStopFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes stop_row_key = 1; + if (has_stop_row_key()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->stop_row_key(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* InclusiveStopFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes stop_row_key = 1; + if (has_stop_row_key()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->stop_row_key(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int InclusiveStopFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes stop_row_key = 1; + if (has_stop_row_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->stop_row_key()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InclusiveStopFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const InclusiveStopFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void InclusiveStopFilter::MergeFrom(const InclusiveStopFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_stop_row_key()) { + set_stop_row_key(from.stop_row_key()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void InclusiveStopFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InclusiveStopFilter::CopyFrom(const InclusiveStopFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InclusiveStopFilter::IsInitialized() const { + + return true; +} + +void InclusiveStopFilter::Swap(InclusiveStopFilter* other) { + if (other != this) { + std::swap(stop_row_key_, other->stop_row_key_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata InclusiveStopFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = InclusiveStopFilter_descriptor_; + metadata.reflection = InclusiveStopFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int KeyOnlyFilter::kLenAsValFieldNumber; +#endif // !_MSC_VER + +KeyOnlyFilter::KeyOnlyFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void KeyOnlyFilter::InitAsDefaultInstance() { +} + +KeyOnlyFilter::KeyOnlyFilter(const KeyOnlyFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void KeyOnlyFilter::SharedCtor() { + _cached_size_ = 0; + len_as_val_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +KeyOnlyFilter::~KeyOnlyFilter() { + SharedDtor(); +} + +void KeyOnlyFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void KeyOnlyFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* KeyOnlyFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return KeyOnlyFilter_descriptor_; +} + +const KeyOnlyFilter& KeyOnlyFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +KeyOnlyFilter* KeyOnlyFilter::default_instance_ = NULL; + +KeyOnlyFilter* KeyOnlyFilter::New() const { + return new KeyOnlyFilter; +} + +void KeyOnlyFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + len_as_val_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool KeyOnlyFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool len_as_val = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &len_as_val_))); + set_has_len_as_val(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void KeyOnlyFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool len_as_val = 1; + if (has_len_as_val()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->len_as_val(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* KeyOnlyFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool len_as_val = 1; + if (has_len_as_val()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->len_as_val(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int KeyOnlyFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool len_as_val = 1; + if (has_len_as_val()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void KeyOnlyFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const KeyOnlyFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void KeyOnlyFilter::MergeFrom(const KeyOnlyFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_len_as_val()) { + set_len_as_val(from.len_as_val()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void KeyOnlyFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void KeyOnlyFilter::CopyFrom(const KeyOnlyFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KeyOnlyFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void KeyOnlyFilter::Swap(KeyOnlyFilter* other) { + if (other != this) { + std::swap(len_as_val_, other->len_as_val_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata KeyOnlyFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = KeyOnlyFilter_descriptor_; + metadata.reflection = KeyOnlyFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MultipleColumnPrefixFilter::kSortedPrefixesFieldNumber; +#endif // !_MSC_VER + +MultipleColumnPrefixFilter::MultipleColumnPrefixFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MultipleColumnPrefixFilter::InitAsDefaultInstance() { +} + +MultipleColumnPrefixFilter::MultipleColumnPrefixFilter(const MultipleColumnPrefixFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MultipleColumnPrefixFilter::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MultipleColumnPrefixFilter::~MultipleColumnPrefixFilter() { + SharedDtor(); +} + +void MultipleColumnPrefixFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void MultipleColumnPrefixFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MultipleColumnPrefixFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MultipleColumnPrefixFilter_descriptor_; +} + +const MultipleColumnPrefixFilter& MultipleColumnPrefixFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +MultipleColumnPrefixFilter* MultipleColumnPrefixFilter::default_instance_ = NULL; + +MultipleColumnPrefixFilter* MultipleColumnPrefixFilter::New() const { + return new MultipleColumnPrefixFilter; +} + +void MultipleColumnPrefixFilter::Clear() { + sorted_prefixes_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MultipleColumnPrefixFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes sorted_prefixes = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_sorted_prefixes: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_sorted_prefixes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_sorted_prefixes; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MultipleColumnPrefixFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated bytes sorted_prefixes = 1; + for (int i = 0; i < this->sorted_prefixes_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->sorted_prefixes(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MultipleColumnPrefixFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated bytes sorted_prefixes = 1; + for (int i = 0; i < this->sorted_prefixes_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->sorted_prefixes(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MultipleColumnPrefixFilter::ByteSize() const { + int total_size = 0; + + // repeated bytes sorted_prefixes = 1; + total_size += 1 * this->sorted_prefixes_size(); + for (int i = 0; i < this->sorted_prefixes_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->sorted_prefixes(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MultipleColumnPrefixFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MultipleColumnPrefixFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MultipleColumnPrefixFilter::MergeFrom(const MultipleColumnPrefixFilter& from) { + GOOGLE_CHECK_NE(&from, this); + sorted_prefixes_.MergeFrom(from.sorted_prefixes_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MultipleColumnPrefixFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultipleColumnPrefixFilter::CopyFrom(const MultipleColumnPrefixFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultipleColumnPrefixFilter::IsInitialized() const { + + return true; +} + +void MultipleColumnPrefixFilter::Swap(MultipleColumnPrefixFilter* other) { + if (other != this) { + sorted_prefixes_.Swap(&other->sorted_prefixes_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MultipleColumnPrefixFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MultipleColumnPrefixFilter_descriptor_; + metadata.reflection = MultipleColumnPrefixFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PageFilter::kPageSizeFieldNumber; +#endif // !_MSC_VER + +PageFilter::PageFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PageFilter::InitAsDefaultInstance() { +} + +PageFilter::PageFilter(const PageFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PageFilter::SharedCtor() { + _cached_size_ = 0; + page_size_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PageFilter::~PageFilter() { + SharedDtor(); +} + +void PageFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void PageFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PageFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PageFilter_descriptor_; +} + +const PageFilter& PageFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +PageFilter* PageFilter::default_instance_ = NULL; + +PageFilter* PageFilter::New() const { + return new PageFilter; +} + +void PageFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + page_size_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PageFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required int64 page_size = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &page_size_))); + set_has_page_size(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PageFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required int64 page_size = 1; + if (has_page_size()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->page_size(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PageFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required int64 page_size = 1; + if (has_page_size()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->page_size(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PageFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required int64 page_size = 1; + if (has_page_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->page_size()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PageFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PageFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PageFilter::MergeFrom(const PageFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_page_size()) { + set_page_size(from.page_size()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PageFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PageFilter::CopyFrom(const PageFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PageFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void PageFilter::Swap(PageFilter* other) { + if (other != this) { + std::swap(page_size_, other->page_size_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PageFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PageFilter_descriptor_; + metadata.reflection = PageFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PrefixFilter::kPrefixFieldNumber; +#endif // !_MSC_VER + +PrefixFilter::PrefixFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PrefixFilter::InitAsDefaultInstance() { +} + +PrefixFilter::PrefixFilter(const PrefixFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PrefixFilter::SharedCtor() { + _cached_size_ = 0; + prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PrefixFilter::~PrefixFilter() { + SharedDtor(); +} + +void PrefixFilter::SharedDtor() { + if (prefix_ != &::google::protobuf::internal::kEmptyString) { + delete prefix_; + } + if (this != default_instance_) { + } +} + +void PrefixFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PrefixFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PrefixFilter_descriptor_; +} + +const PrefixFilter& PrefixFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +PrefixFilter* PrefixFilter::default_instance_ = NULL; + +PrefixFilter* PrefixFilter::New() const { + return new PrefixFilter; +} + +void PrefixFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_prefix()) { + if (prefix_ != &::google::protobuf::internal::kEmptyString) { + prefix_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PrefixFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes prefix = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_prefix())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PrefixFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes prefix = 1; + if (has_prefix()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->prefix(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PrefixFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes prefix = 1; + if (has_prefix()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->prefix(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PrefixFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes prefix = 1; + if (has_prefix()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->prefix()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PrefixFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PrefixFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PrefixFilter::MergeFrom(const PrefixFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_prefix()) { + set_prefix(from.prefix()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PrefixFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PrefixFilter::CopyFrom(const PrefixFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PrefixFilter::IsInitialized() const { + + return true; +} + +void PrefixFilter::Swap(PrefixFilter* other) { + if (other != this) { + std::swap(prefix_, other->prefix_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PrefixFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PrefixFilter_descriptor_; + metadata.reflection = PrefixFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int QualifierFilter::kCompareFilterFieldNumber; +#endif // !_MSC_VER + +QualifierFilter::QualifierFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void QualifierFilter::InitAsDefaultInstance() { + compare_filter_ = const_cast< ::hbase::pb::CompareFilter*>(&::hbase::pb::CompareFilter::default_instance()); +} + +QualifierFilter::QualifierFilter(const QualifierFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void QualifierFilter::SharedCtor() { + _cached_size_ = 0; + compare_filter_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +QualifierFilter::~QualifierFilter() { + SharedDtor(); +} + +void QualifierFilter::SharedDtor() { + if (this != default_instance_) { + delete compare_filter_; + } +} + +void QualifierFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* QualifierFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return QualifierFilter_descriptor_; +} + +const QualifierFilter& QualifierFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +QualifierFilter* QualifierFilter::default_instance_ = NULL; + +QualifierFilter* QualifierFilter::New() const { + return new QualifierFilter; +} + +void QualifierFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_compare_filter()) { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool QualifierFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.CompareFilter compare_filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_compare_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void QualifierFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->compare_filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* QualifierFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->compare_filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int QualifierFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->compare_filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void QualifierFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const QualifierFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void QualifierFilter::MergeFrom(const QualifierFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_compare_filter()) { + mutable_compare_filter()->::hbase::pb::CompareFilter::MergeFrom(from.compare_filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void QualifierFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QualifierFilter::CopyFrom(const QualifierFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QualifierFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_compare_filter()) { + if (!this->compare_filter().IsInitialized()) return false; + } + return true; +} + +void QualifierFilter::Swap(QualifierFilter* other) { + if (other != this) { + std::swap(compare_filter_, other->compare_filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata QualifierFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = QualifierFilter_descriptor_; + metadata.reflection = QualifierFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RandomRowFilter::kChanceFieldNumber; +#endif // !_MSC_VER + +RandomRowFilter::RandomRowFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RandomRowFilter::InitAsDefaultInstance() { +} + +RandomRowFilter::RandomRowFilter(const RandomRowFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RandomRowFilter::SharedCtor() { + _cached_size_ = 0; + chance_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RandomRowFilter::~RandomRowFilter() { + SharedDtor(); +} + +void RandomRowFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void RandomRowFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RandomRowFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RandomRowFilter_descriptor_; +} + +const RandomRowFilter& RandomRowFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +RandomRowFilter* RandomRowFilter::default_instance_ = NULL; + +RandomRowFilter* RandomRowFilter::New() const { + return new RandomRowFilter; +} + +void RandomRowFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + chance_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RandomRowFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required float chance = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &chance_))); + set_has_chance(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RandomRowFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required float chance = 1; + if (has_chance()) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->chance(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RandomRowFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required float chance = 1; + if (has_chance()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->chance(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RandomRowFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required float chance = 1; + if (has_chance()) { + total_size += 1 + 4; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RandomRowFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RandomRowFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RandomRowFilter::MergeFrom(const RandomRowFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_chance()) { + set_chance(from.chance()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RandomRowFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RandomRowFilter::CopyFrom(const RandomRowFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RandomRowFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void RandomRowFilter::Swap(RandomRowFilter* other) { + if (other != this) { + std::swap(chance_, other->chance_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RandomRowFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RandomRowFilter_descriptor_; + metadata.reflection = RandomRowFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RowFilter::kCompareFilterFieldNumber; +#endif // !_MSC_VER + +RowFilter::RowFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RowFilter::InitAsDefaultInstance() { + compare_filter_ = const_cast< ::hbase::pb::CompareFilter*>(&::hbase::pb::CompareFilter::default_instance()); +} + +RowFilter::RowFilter(const RowFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RowFilter::SharedCtor() { + _cached_size_ = 0; + compare_filter_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RowFilter::~RowFilter() { + SharedDtor(); +} + +void RowFilter::SharedDtor() { + if (this != default_instance_) { + delete compare_filter_; + } +} + +void RowFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RowFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RowFilter_descriptor_; +} + +const RowFilter& RowFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +RowFilter* RowFilter::default_instance_ = NULL; + +RowFilter* RowFilter::New() const { + return new RowFilter; +} + +void RowFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_compare_filter()) { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RowFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.CompareFilter compare_filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_compare_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RowFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->compare_filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RowFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->compare_filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RowFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->compare_filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RowFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RowFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RowFilter::MergeFrom(const RowFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_compare_filter()) { + mutable_compare_filter()->::hbase::pb::CompareFilter::MergeFrom(from.compare_filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RowFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RowFilter::CopyFrom(const RowFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RowFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_compare_filter()) { + if (!this->compare_filter().IsInitialized()) return false; + } + return true; +} + +void RowFilter::Swap(RowFilter* other) { + if (other != this) { + std::swap(compare_filter_, other->compare_filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RowFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RowFilter_descriptor_; + metadata.reflection = RowFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SingleColumnValueExcludeFilter::kSingleColumnValueFilterFieldNumber; +#endif // !_MSC_VER + +SingleColumnValueExcludeFilter::SingleColumnValueExcludeFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SingleColumnValueExcludeFilter::InitAsDefaultInstance() { + single_column_value_filter_ = const_cast< ::hbase::pb::SingleColumnValueFilter*>(&::hbase::pb::SingleColumnValueFilter::default_instance()); +} + +SingleColumnValueExcludeFilter::SingleColumnValueExcludeFilter(const SingleColumnValueExcludeFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SingleColumnValueExcludeFilter::SharedCtor() { + _cached_size_ = 0; + single_column_value_filter_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SingleColumnValueExcludeFilter::~SingleColumnValueExcludeFilter() { + SharedDtor(); +} + +void SingleColumnValueExcludeFilter::SharedDtor() { + if (this != default_instance_) { + delete single_column_value_filter_; + } +} + +void SingleColumnValueExcludeFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SingleColumnValueExcludeFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SingleColumnValueExcludeFilter_descriptor_; +} + +const SingleColumnValueExcludeFilter& SingleColumnValueExcludeFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +SingleColumnValueExcludeFilter* SingleColumnValueExcludeFilter::default_instance_ = NULL; + +SingleColumnValueExcludeFilter* SingleColumnValueExcludeFilter::New() const { + return new SingleColumnValueExcludeFilter; +} + +void SingleColumnValueExcludeFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_single_column_value_filter()) { + if (single_column_value_filter_ != NULL) single_column_value_filter_->::hbase::pb::SingleColumnValueFilter::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SingleColumnValueExcludeFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.SingleColumnValueFilter single_column_value_filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_single_column_value_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SingleColumnValueExcludeFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.SingleColumnValueFilter single_column_value_filter = 1; + if (has_single_column_value_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->single_column_value_filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SingleColumnValueExcludeFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.SingleColumnValueFilter single_column_value_filter = 1; + if (has_single_column_value_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->single_column_value_filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SingleColumnValueExcludeFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.SingleColumnValueFilter single_column_value_filter = 1; + if (has_single_column_value_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->single_column_value_filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SingleColumnValueExcludeFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SingleColumnValueExcludeFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SingleColumnValueExcludeFilter::MergeFrom(const SingleColumnValueExcludeFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_single_column_value_filter()) { + mutable_single_column_value_filter()->::hbase::pb::SingleColumnValueFilter::MergeFrom(from.single_column_value_filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SingleColumnValueExcludeFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SingleColumnValueExcludeFilter::CopyFrom(const SingleColumnValueExcludeFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SingleColumnValueExcludeFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_single_column_value_filter()) { + if (!this->single_column_value_filter().IsInitialized()) return false; + } + return true; +} + +void SingleColumnValueExcludeFilter::Swap(SingleColumnValueExcludeFilter* other) { + if (other != this) { + std::swap(single_column_value_filter_, other->single_column_value_filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SingleColumnValueExcludeFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SingleColumnValueExcludeFilter_descriptor_; + metadata.reflection = SingleColumnValueExcludeFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SingleColumnValueFilter::kColumnFamilyFieldNumber; +const int SingleColumnValueFilter::kColumnQualifierFieldNumber; +const int SingleColumnValueFilter::kCompareOpFieldNumber; +const int SingleColumnValueFilter::kComparatorFieldNumber; +const int SingleColumnValueFilter::kFilterIfMissingFieldNumber; +const int SingleColumnValueFilter::kLatestVersionOnlyFieldNumber; +#endif // !_MSC_VER + +SingleColumnValueFilter::SingleColumnValueFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SingleColumnValueFilter::InitAsDefaultInstance() { + comparator_ = const_cast< ::hbase::pb::Comparator*>(&::hbase::pb::Comparator::default_instance()); +} + +SingleColumnValueFilter::SingleColumnValueFilter(const SingleColumnValueFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SingleColumnValueFilter::SharedCtor() { + _cached_size_ = 0; + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + column_qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + compare_op_ = 0; + comparator_ = NULL; + filter_if_missing_ = false; + latest_version_only_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SingleColumnValueFilter::~SingleColumnValueFilter() { + SharedDtor(); +} + +void SingleColumnValueFilter::SharedDtor() { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + delete column_family_; + } + if (column_qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete column_qualifier_; + } + if (this != default_instance_) { + delete comparator_; + } +} + +void SingleColumnValueFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SingleColumnValueFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SingleColumnValueFilter_descriptor_; +} + +const SingleColumnValueFilter& SingleColumnValueFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +SingleColumnValueFilter* SingleColumnValueFilter::default_instance_ = NULL; + +SingleColumnValueFilter* SingleColumnValueFilter::New() const { + return new SingleColumnValueFilter; +} + +void SingleColumnValueFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_column_family()) { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + column_family_->clear(); + } + } + if (has_column_qualifier()) { + if (column_qualifier_ != &::google::protobuf::internal::kEmptyString) { + column_qualifier_->clear(); + } + } + compare_op_ = 0; + if (has_comparator()) { + if (comparator_ != NULL) comparator_->::hbase::pb::Comparator::Clear(); + } + filter_if_missing_ = false; + latest_version_only_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SingleColumnValueFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes column_family = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_column_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_column_qualifier; + break; + } + + // optional bytes column_qualifier = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_qualifier: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_column_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_compare_op; + break; + } + + // required .hbase.pb.CompareType compare_op = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_compare_op: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::CompareType_IsValid(value)) { + set_compare_op(static_cast< ::hbase::pb::CompareType >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_comparator; + break; + } + + // required .hbase.pb.Comparator comparator = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_comparator: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_comparator())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_filter_if_missing; + break; + } + + // optional bool filter_if_missing = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_filter_if_missing: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &filter_if_missing_))); + set_has_filter_if_missing(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_latest_version_only; + break; + } + + // optional bool latest_version_only = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_latest_version_only: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &latest_version_only_))); + set_has_latest_version_only(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SingleColumnValueFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes column_family = 1; + if (has_column_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->column_family(), output); + } + + // optional bytes column_qualifier = 2; + if (has_column_qualifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->column_qualifier(), output); + } + + // required .hbase.pb.CompareType compare_op = 3; + if (has_compare_op()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->compare_op(), output); + } + + // required .hbase.pb.Comparator comparator = 4; + if (has_comparator()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->comparator(), output); + } + + // optional bool filter_if_missing = 5; + if (has_filter_if_missing()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->filter_if_missing(), output); + } + + // optional bool latest_version_only = 6; + if (has_latest_version_only()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->latest_version_only(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SingleColumnValueFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes column_family = 1; + if (has_column_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->column_family(), target); + } + + // optional bytes column_qualifier = 2; + if (has_column_qualifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->column_qualifier(), target); + } + + // required .hbase.pb.CompareType compare_op = 3; + if (has_compare_op()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->compare_op(), target); + } + + // required .hbase.pb.Comparator comparator = 4; + if (has_comparator()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->comparator(), target); + } + + // optional bool filter_if_missing = 5; + if (has_filter_if_missing()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->filter_if_missing(), target); + } + + // optional bool latest_version_only = 6; + if (has_latest_version_only()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->latest_version_only(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SingleColumnValueFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes column_family = 1; + if (has_column_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->column_family()); + } + + // optional bytes column_qualifier = 2; + if (has_column_qualifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->column_qualifier()); + } + + // required .hbase.pb.CompareType compare_op = 3; + if (has_compare_op()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->compare_op()); + } + + // required .hbase.pb.Comparator comparator = 4; + if (has_comparator()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->comparator()); + } + + // optional bool filter_if_missing = 5; + if (has_filter_if_missing()) { + total_size += 1 + 1; + } + + // optional bool latest_version_only = 6; + if (has_latest_version_only()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SingleColumnValueFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SingleColumnValueFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SingleColumnValueFilter::MergeFrom(const SingleColumnValueFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_column_family()) { + set_column_family(from.column_family()); + } + if (from.has_column_qualifier()) { + set_column_qualifier(from.column_qualifier()); + } + if (from.has_compare_op()) { + set_compare_op(from.compare_op()); + } + if (from.has_comparator()) { + mutable_comparator()->::hbase::pb::Comparator::MergeFrom(from.comparator()); + } + if (from.has_filter_if_missing()) { + set_filter_if_missing(from.filter_if_missing()); + } + if (from.has_latest_version_only()) { + set_latest_version_only(from.latest_version_only()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SingleColumnValueFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SingleColumnValueFilter::CopyFrom(const SingleColumnValueFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SingleColumnValueFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000c) != 0x0000000c) return false; + + if (has_comparator()) { + if (!this->comparator().IsInitialized()) return false; + } + return true; +} + +void SingleColumnValueFilter::Swap(SingleColumnValueFilter* other) { + if (other != this) { + std::swap(column_family_, other->column_family_); + std::swap(column_qualifier_, other->column_qualifier_); + std::swap(compare_op_, other->compare_op_); + std::swap(comparator_, other->comparator_); + std::swap(filter_if_missing_, other->filter_if_missing_); + std::swap(latest_version_only_, other->latest_version_only_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SingleColumnValueFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SingleColumnValueFilter_descriptor_; + metadata.reflection = SingleColumnValueFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SkipFilter::kFilterFieldNumber; +#endif // !_MSC_VER + +SkipFilter::SkipFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SkipFilter::InitAsDefaultInstance() { + filter_ = const_cast< ::hbase::pb::Filter*>(&::hbase::pb::Filter::default_instance()); +} + +SkipFilter::SkipFilter(const SkipFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SkipFilter::SharedCtor() { + _cached_size_ = 0; + filter_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SkipFilter::~SkipFilter() { + SharedDtor(); +} + +void SkipFilter::SharedDtor() { + if (this != default_instance_) { + delete filter_; + } +} + +void SkipFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SkipFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SkipFilter_descriptor_; +} + +const SkipFilter& SkipFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +SkipFilter* SkipFilter::default_instance_ = NULL; + +SkipFilter* SkipFilter::New() const { + return new SkipFilter; +} + +void SkipFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_filter()) { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SkipFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.Filter filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SkipFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SkipFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SkipFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SkipFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SkipFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SkipFilter::MergeFrom(const SkipFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_filter()) { + mutable_filter()->::hbase::pb::Filter::MergeFrom(from.filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SkipFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SkipFilter::CopyFrom(const SkipFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SkipFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_filter()) { + if (!this->filter().IsInitialized()) return false; + } + return true; +} + +void SkipFilter::Swap(SkipFilter* other) { + if (other != this) { + std::swap(filter_, other->filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SkipFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SkipFilter_descriptor_; + metadata.reflection = SkipFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TimestampsFilter::kTimestampsFieldNumber; +#endif // !_MSC_VER + +TimestampsFilter::TimestampsFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TimestampsFilter::InitAsDefaultInstance() { +} + +TimestampsFilter::TimestampsFilter(const TimestampsFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TimestampsFilter::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TimestampsFilter::~TimestampsFilter() { + SharedDtor(); +} + +void TimestampsFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void TimestampsFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TimestampsFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TimestampsFilter_descriptor_; +} + +const TimestampsFilter& TimestampsFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +TimestampsFilter* TimestampsFilter::default_instance_ = NULL; + +TimestampsFilter* TimestampsFilter::New() const { + return new TimestampsFilter; +} + +void TimestampsFilter::Clear() { + timestamps_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TimestampsFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated int64 timestamps = 1 [packed = true]; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, this->mutable_timestamps()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + 1, 10, input, this->mutable_timestamps()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TimestampsFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated int64 timestamps = 1 [packed = true]; + if (this->timestamps_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_timestamps_cached_byte_size_); + } + for (int i = 0; i < this->timestamps_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + this->timestamps(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TimestampsFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated int64 timestamps = 1 [packed = true]; + if (this->timestamps_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 1, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + _timestamps_cached_byte_size_, target); + } + for (int i = 0; i < this->timestamps_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->timestamps(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TimestampsFilter::ByteSize() const { + int total_size = 0; + + // repeated int64 timestamps = 1 [packed = true]; + { + int data_size = 0; + for (int i = 0; i < this->timestamps_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + Int64Size(this->timestamps(i)); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _timestamps_cached_byte_size_ = data_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TimestampsFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TimestampsFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TimestampsFilter::MergeFrom(const TimestampsFilter& from) { + GOOGLE_CHECK_NE(&from, this); + timestamps_.MergeFrom(from.timestamps_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TimestampsFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TimestampsFilter::CopyFrom(const TimestampsFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TimestampsFilter::IsInitialized() const { + + return true; +} + +void TimestampsFilter::Swap(TimestampsFilter* other) { + if (other != this) { + timestamps_.Swap(&other->timestamps_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TimestampsFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TimestampsFilter_descriptor_; + metadata.reflection = TimestampsFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ValueFilter::kCompareFilterFieldNumber; +#endif // !_MSC_VER + +ValueFilter::ValueFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ValueFilter::InitAsDefaultInstance() { + compare_filter_ = const_cast< ::hbase::pb::CompareFilter*>(&::hbase::pb::CompareFilter::default_instance()); +} + +ValueFilter::ValueFilter(const ValueFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ValueFilter::SharedCtor() { + _cached_size_ = 0; + compare_filter_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ValueFilter::~ValueFilter() { + SharedDtor(); +} + +void ValueFilter::SharedDtor() { + if (this != default_instance_) { + delete compare_filter_; + } +} + +void ValueFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ValueFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ValueFilter_descriptor_; +} + +const ValueFilter& ValueFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +ValueFilter* ValueFilter::default_instance_ = NULL; + +ValueFilter* ValueFilter::New() const { + return new ValueFilter; +} + +void ValueFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_compare_filter()) { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ValueFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.CompareFilter compare_filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_compare_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ValueFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->compare_filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ValueFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->compare_filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ValueFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.CompareFilter compare_filter = 1; + if (has_compare_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->compare_filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ValueFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ValueFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ValueFilter::MergeFrom(const ValueFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_compare_filter()) { + mutable_compare_filter()->::hbase::pb::CompareFilter::MergeFrom(from.compare_filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ValueFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ValueFilter::CopyFrom(const ValueFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ValueFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_compare_filter()) { + if (!this->compare_filter().IsInitialized()) return false; + } + return true; +} + +void ValueFilter::Swap(ValueFilter* other) { + if (other != this) { + std::swap(compare_filter_, other->compare_filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ValueFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ValueFilter_descriptor_; + metadata.reflection = ValueFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int WhileMatchFilter::kFilterFieldNumber; +#endif // !_MSC_VER + +WhileMatchFilter::WhileMatchFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WhileMatchFilter::InitAsDefaultInstance() { + filter_ = const_cast< ::hbase::pb::Filter*>(&::hbase::pb::Filter::default_instance()); +} + +WhileMatchFilter::WhileMatchFilter(const WhileMatchFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WhileMatchFilter::SharedCtor() { + _cached_size_ = 0; + filter_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WhileMatchFilter::~WhileMatchFilter() { + SharedDtor(); +} + +void WhileMatchFilter::SharedDtor() { + if (this != default_instance_) { + delete filter_; + } +} + +void WhileMatchFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WhileMatchFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WhileMatchFilter_descriptor_; +} + +const WhileMatchFilter& WhileMatchFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +WhileMatchFilter* WhileMatchFilter::default_instance_ = NULL; + +WhileMatchFilter* WhileMatchFilter::New() const { + return new WhileMatchFilter; +} + +void WhileMatchFilter::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_filter()) { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WhileMatchFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.Filter filter = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_filter())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void WhileMatchFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->filter(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WhileMatchFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->filter(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WhileMatchFilter::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.Filter filter = 1; + if (has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->filter()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WhileMatchFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WhileMatchFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WhileMatchFilter::MergeFrom(const WhileMatchFilter& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_filter()) { + mutable_filter()->::hbase::pb::Filter::MergeFrom(from.filter()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WhileMatchFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WhileMatchFilter::CopyFrom(const WhileMatchFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WhileMatchFilter::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_filter()) { + if (!this->filter().IsInitialized()) return false; + } + return true; +} + +void WhileMatchFilter::Swap(WhileMatchFilter* other) { + if (other != this) { + std::swap(filter_, other->filter_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WhileMatchFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WhileMatchFilter_descriptor_; + metadata.reflection = WhileMatchFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +FilterAllFilter::FilterAllFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FilterAllFilter::InitAsDefaultInstance() { +} + +FilterAllFilter::FilterAllFilter(const FilterAllFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FilterAllFilter::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FilterAllFilter::~FilterAllFilter() { + SharedDtor(); +} + +void FilterAllFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void FilterAllFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FilterAllFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FilterAllFilter_descriptor_; +} + +const FilterAllFilter& FilterAllFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +FilterAllFilter* FilterAllFilter::default_instance_ = NULL; + +FilterAllFilter* FilterAllFilter::New() const { + return new FilterAllFilter; +} + +void FilterAllFilter::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FilterAllFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void FilterAllFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FilterAllFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FilterAllFilter::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FilterAllFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FilterAllFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FilterAllFilter::MergeFrom(const FilterAllFilter& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FilterAllFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FilterAllFilter::CopyFrom(const FilterAllFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FilterAllFilter::IsInitialized() const { + + return true; +} + +void FilterAllFilter::Swap(FilterAllFilter* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FilterAllFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FilterAllFilter_descriptor_; + metadata.reflection = FilterAllFilter_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RowRange::kStartRowFieldNumber; +const int RowRange::kStartRowInclusiveFieldNumber; +const int RowRange::kStopRowFieldNumber; +const int RowRange::kStopRowInclusiveFieldNumber; +#endif // !_MSC_VER + +RowRange::RowRange() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RowRange::InitAsDefaultInstance() { +} + +RowRange::RowRange(const RowRange& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RowRange::SharedCtor() { + _cached_size_ = 0; + start_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + start_row_inclusive_ = false; + stop_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + stop_row_inclusive_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RowRange::~RowRange() { + SharedDtor(); +} + +void RowRange::SharedDtor() { + if (start_row_ != &::google::protobuf::internal::kEmptyString) { + delete start_row_; + } + if (stop_row_ != &::google::protobuf::internal::kEmptyString) { + delete stop_row_; + } + if (this != default_instance_) { + } +} + +void RowRange::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RowRange::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RowRange_descriptor_; +} + +const RowRange& RowRange::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +RowRange* RowRange::default_instance_ = NULL; + +RowRange* RowRange::New() const { + return new RowRange; +} + +void RowRange::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_start_row()) { + if (start_row_ != &::google::protobuf::internal::kEmptyString) { + start_row_->clear(); + } + } + start_row_inclusive_ = false; + if (has_stop_row()) { + if (stop_row_ != &::google::protobuf::internal::kEmptyString) { + stop_row_->clear(); + } + } + stop_row_inclusive_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RowRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes start_row = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_start_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_start_row_inclusive; + break; + } + + // optional bool start_row_inclusive = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_start_row_inclusive: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &start_row_inclusive_))); + set_has_start_row_inclusive(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_stop_row; + break; + } + + // optional bytes stop_row = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_stop_row: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_stop_row())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_stop_row_inclusive; + break; + } + + // optional bool stop_row_inclusive = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_stop_row_inclusive: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &stop_row_inclusive_))); + set_has_stop_row_inclusive(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RowRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes start_row = 1; + if (has_start_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->start_row(), output); + } + + // optional bool start_row_inclusive = 2; + if (has_start_row_inclusive()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->start_row_inclusive(), output); + } + + // optional bytes stop_row = 3; + if (has_stop_row()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->stop_row(), output); + } + + // optional bool stop_row_inclusive = 4; + if (has_stop_row_inclusive()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->stop_row_inclusive(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RowRange::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes start_row = 1; + if (has_start_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->start_row(), target); + } + + // optional bool start_row_inclusive = 2; + if (has_start_row_inclusive()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->start_row_inclusive(), target); + } + + // optional bytes stop_row = 3; + if (has_stop_row()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->stop_row(), target); + } + + // optional bool stop_row_inclusive = 4; + if (has_stop_row_inclusive()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->stop_row_inclusive(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RowRange::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes start_row = 1; + if (has_start_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->start_row()); + } + + // optional bool start_row_inclusive = 2; + if (has_start_row_inclusive()) { + total_size += 1 + 1; + } + + // optional bytes stop_row = 3; + if (has_stop_row()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->stop_row()); + } + + // optional bool stop_row_inclusive = 4; + if (has_stop_row_inclusive()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RowRange::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RowRange* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RowRange::MergeFrom(const RowRange& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_start_row()) { + set_start_row(from.start_row()); + } + if (from.has_start_row_inclusive()) { + set_start_row_inclusive(from.start_row_inclusive()); + } + if (from.has_stop_row()) { + set_stop_row(from.stop_row()); + } + if (from.has_stop_row_inclusive()) { + set_stop_row_inclusive(from.stop_row_inclusive()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RowRange::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RowRange::CopyFrom(const RowRange& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RowRange::IsInitialized() const { + + return true; +} + +void RowRange::Swap(RowRange* other) { + if (other != this) { + std::swap(start_row_, other->start_row_); + std::swap(start_row_inclusive_, other->start_row_inclusive_); + std::swap(stop_row_, other->stop_row_); + std::swap(stop_row_inclusive_, other->stop_row_inclusive_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RowRange::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RowRange_descriptor_; + metadata.reflection = RowRange_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MultiRowRangeFilter::kRowRangeListFieldNumber; +#endif // !_MSC_VER + +MultiRowRangeFilter::MultiRowRangeFilter() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MultiRowRangeFilter::InitAsDefaultInstance() { +} + +MultiRowRangeFilter::MultiRowRangeFilter(const MultiRowRangeFilter& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MultiRowRangeFilter::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MultiRowRangeFilter::~MultiRowRangeFilter() { + SharedDtor(); +} + +void MultiRowRangeFilter::SharedDtor() { + if (this != default_instance_) { + } +} + +void MultiRowRangeFilter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MultiRowRangeFilter::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MultiRowRangeFilter_descriptor_; +} + +const MultiRowRangeFilter& MultiRowRangeFilter::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Filter_2eproto(); + return *default_instance_; +} + +MultiRowRangeFilter* MultiRowRangeFilter::default_instance_ = NULL; + +MultiRowRangeFilter* MultiRowRangeFilter::New() const { + return new MultiRowRangeFilter; +} + +void MultiRowRangeFilter::Clear() { + row_range_list_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MultiRowRangeFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.RowRange row_range_list = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_row_range_list: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_row_range_list())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_row_range_list; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MultiRowRangeFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.RowRange row_range_list = 1; + for (int i = 0; i < this->row_range_list_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->row_range_list(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MultiRowRangeFilter::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.RowRange row_range_list = 1; + for (int i = 0; i < this->row_range_list_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->row_range_list(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MultiRowRangeFilter::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.RowRange row_range_list = 1; + total_size += 1 * this->row_range_list_size(); + for (int i = 0; i < this->row_range_list_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->row_range_list(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MultiRowRangeFilter::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MultiRowRangeFilter* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MultiRowRangeFilter::MergeFrom(const MultiRowRangeFilter& from) { + GOOGLE_CHECK_NE(&from, this); + row_range_list_.MergeFrom(from.row_range_list_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MultiRowRangeFilter::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultiRowRangeFilter::CopyFrom(const MultiRowRangeFilter& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultiRowRangeFilter::IsInitialized() const { + + return true; +} + +void MultiRowRangeFilter::Swap(MultiRowRangeFilter* other) { + if (other != this) { + row_range_list_.Swap(&other->row_range_list_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MultiRowRangeFilter::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MultiRowRangeFilter_descriptor_; + metadata.reflection = MultiRowRangeFilter_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Filter.pb.h b/hbase-native-client/src/rpc/generated/Filter.pb.h new file mode 100644 index 0000000..de9d536 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Filter.pb.h @@ -0,0 +1,4948 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Filter.proto + +#ifndef PROTOBUF_Filter_2eproto__INCLUDED +#define PROTOBUF_Filter_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "Comparator.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Filter_2eproto(); +void protobuf_AssignDesc_Filter_2eproto(); +void protobuf_ShutdownFile_Filter_2eproto(); + +class Filter; +class ColumnCountGetFilter; +class ColumnPaginationFilter; +class ColumnPrefixFilter; +class ColumnRangeFilter; +class CompareFilter; +class DependentColumnFilter; +class FamilyFilter; +class FilterList; +class FilterWrapper; +class FirstKeyOnlyFilter; +class FirstKeyValueMatchingQualifiersFilter; +class FuzzyRowFilter; +class InclusiveStopFilter; +class KeyOnlyFilter; +class MultipleColumnPrefixFilter; +class PageFilter; +class PrefixFilter; +class QualifierFilter; +class RandomRowFilter; +class RowFilter; +class SingleColumnValueExcludeFilter; +class SingleColumnValueFilter; +class SkipFilter; +class TimestampsFilter; +class ValueFilter; +class WhileMatchFilter; +class FilterAllFilter; +class RowRange; +class MultiRowRangeFilter; + +enum FilterList_Operator { + FilterList_Operator_MUST_PASS_ALL = 1, + FilterList_Operator_MUST_PASS_ONE = 2 +}; +bool FilterList_Operator_IsValid(int value); +const FilterList_Operator FilterList_Operator_Operator_MIN = FilterList_Operator_MUST_PASS_ALL; +const FilterList_Operator FilterList_Operator_Operator_MAX = FilterList_Operator_MUST_PASS_ONE; +const int FilterList_Operator_Operator_ARRAYSIZE = FilterList_Operator_Operator_MAX + 1; + +const ::google::protobuf::EnumDescriptor* FilterList_Operator_descriptor(); +inline const ::std::string& FilterList_Operator_Name(FilterList_Operator value) { + return ::google::protobuf::internal::NameOfEnum( + FilterList_Operator_descriptor(), value); +} +inline bool FilterList_Operator_Parse( + const ::std::string& name, FilterList_Operator* value) { + return ::google::protobuf::internal::ParseNamedEnum( + FilterList_Operator_descriptor(), name, value); +} +// =================================================================== + +class Filter : public ::google::protobuf::Message { + public: + Filter(); + virtual ~Filter(); + + Filter(const Filter& from); + + inline Filter& operator=(const Filter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Filter& default_instance(); + + void Swap(Filter* other); + + // implements Message ---------------------------------------------- + + Filter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Filter& from); + void MergeFrom(const Filter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // optional bytes serialized_filter = 2; + inline bool has_serialized_filter() const; + inline void clear_serialized_filter(); + static const int kSerializedFilterFieldNumber = 2; + inline const ::std::string& serialized_filter() const; + inline void set_serialized_filter(const ::std::string& value); + inline void set_serialized_filter(const char* value); + inline void set_serialized_filter(const void* value, size_t size); + inline ::std::string* mutable_serialized_filter(); + inline ::std::string* release_serialized_filter(); + inline void set_allocated_serialized_filter(::std::string* serialized_filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.Filter) + private: + inline void set_has_name(); + inline void clear_has_name(); + inline void set_has_serialized_filter(); + inline void clear_has_serialized_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::std::string* serialized_filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static Filter* default_instance_; +}; +// ------------------------------------------------------------------- + +class ColumnCountGetFilter : public ::google::protobuf::Message { + public: + ColumnCountGetFilter(); + virtual ~ColumnCountGetFilter(); + + ColumnCountGetFilter(const ColumnCountGetFilter& from); + + inline ColumnCountGetFilter& operator=(const ColumnCountGetFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ColumnCountGetFilter& default_instance(); + + void Swap(ColumnCountGetFilter* other); + + // implements Message ---------------------------------------------- + + ColumnCountGetFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ColumnCountGetFilter& from); + void MergeFrom(const ColumnCountGetFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required int32 limit = 1; + inline bool has_limit() const; + inline void clear_limit(); + static const int kLimitFieldNumber = 1; + inline ::google::protobuf::int32 limit() const; + inline void set_limit(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ColumnCountGetFilter) + private: + inline void set_has_limit(); + inline void clear_has_limit(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int32 limit_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static ColumnCountGetFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class ColumnPaginationFilter : public ::google::protobuf::Message { + public: + ColumnPaginationFilter(); + virtual ~ColumnPaginationFilter(); + + ColumnPaginationFilter(const ColumnPaginationFilter& from); + + inline ColumnPaginationFilter& operator=(const ColumnPaginationFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ColumnPaginationFilter& default_instance(); + + void Swap(ColumnPaginationFilter* other); + + // implements Message ---------------------------------------------- + + ColumnPaginationFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ColumnPaginationFilter& from); + void MergeFrom(const ColumnPaginationFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required int32 limit = 1; + inline bool has_limit() const; + inline void clear_limit(); + static const int kLimitFieldNumber = 1; + inline ::google::protobuf::int32 limit() const; + inline void set_limit(::google::protobuf::int32 value); + + // optional int32 offset = 2; + inline bool has_offset() const; + inline void clear_offset(); + static const int kOffsetFieldNumber = 2; + inline ::google::protobuf::int32 offset() const; + inline void set_offset(::google::protobuf::int32 value); + + // optional bytes column_offset = 3; + inline bool has_column_offset() const; + inline void clear_column_offset(); + static const int kColumnOffsetFieldNumber = 3; + inline const ::std::string& column_offset() const; + inline void set_column_offset(const ::std::string& value); + inline void set_column_offset(const char* value); + inline void set_column_offset(const void* value, size_t size); + inline ::std::string* mutable_column_offset(); + inline ::std::string* release_column_offset(); + inline void set_allocated_column_offset(::std::string* column_offset); + + // @@protoc_insertion_point(class_scope:hbase.pb.ColumnPaginationFilter) + private: + inline void set_has_limit(); + inline void clear_has_limit(); + inline void set_has_offset(); + inline void clear_has_offset(); + inline void set_has_column_offset(); + inline void clear_has_column_offset(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int32 limit_; + ::google::protobuf::int32 offset_; + ::std::string* column_offset_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static ColumnPaginationFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class ColumnPrefixFilter : public ::google::protobuf::Message { + public: + ColumnPrefixFilter(); + virtual ~ColumnPrefixFilter(); + + ColumnPrefixFilter(const ColumnPrefixFilter& from); + + inline ColumnPrefixFilter& operator=(const ColumnPrefixFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ColumnPrefixFilter& default_instance(); + + void Swap(ColumnPrefixFilter* other); + + // implements Message ---------------------------------------------- + + ColumnPrefixFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ColumnPrefixFilter& from); + void MergeFrom(const ColumnPrefixFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes prefix = 1; + inline bool has_prefix() const; + inline void clear_prefix(); + static const int kPrefixFieldNumber = 1; + inline const ::std::string& prefix() const; + inline void set_prefix(const ::std::string& value); + inline void set_prefix(const char* value); + inline void set_prefix(const void* value, size_t size); + inline ::std::string* mutable_prefix(); + inline ::std::string* release_prefix(); + inline void set_allocated_prefix(::std::string* prefix); + + // @@protoc_insertion_point(class_scope:hbase.pb.ColumnPrefixFilter) + private: + inline void set_has_prefix(); + inline void clear_has_prefix(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* prefix_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static ColumnPrefixFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class ColumnRangeFilter : public ::google::protobuf::Message { + public: + ColumnRangeFilter(); + virtual ~ColumnRangeFilter(); + + ColumnRangeFilter(const ColumnRangeFilter& from); + + inline ColumnRangeFilter& operator=(const ColumnRangeFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ColumnRangeFilter& default_instance(); + + void Swap(ColumnRangeFilter* other); + + // implements Message ---------------------------------------------- + + ColumnRangeFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ColumnRangeFilter& from); + void MergeFrom(const ColumnRangeFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes min_column = 1; + inline bool has_min_column() const; + inline void clear_min_column(); + static const int kMinColumnFieldNumber = 1; + inline const ::std::string& min_column() const; + inline void set_min_column(const ::std::string& value); + inline void set_min_column(const char* value); + inline void set_min_column(const void* value, size_t size); + inline ::std::string* mutable_min_column(); + inline ::std::string* release_min_column(); + inline void set_allocated_min_column(::std::string* min_column); + + // optional bool min_column_inclusive = 2; + inline bool has_min_column_inclusive() const; + inline void clear_min_column_inclusive(); + static const int kMinColumnInclusiveFieldNumber = 2; + inline bool min_column_inclusive() const; + inline void set_min_column_inclusive(bool value); + + // optional bytes max_column = 3; + inline bool has_max_column() const; + inline void clear_max_column(); + static const int kMaxColumnFieldNumber = 3; + inline const ::std::string& max_column() const; + inline void set_max_column(const ::std::string& value); + inline void set_max_column(const char* value); + inline void set_max_column(const void* value, size_t size); + inline ::std::string* mutable_max_column(); + inline ::std::string* release_max_column(); + inline void set_allocated_max_column(::std::string* max_column); + + // optional bool max_column_inclusive = 4; + inline bool has_max_column_inclusive() const; + inline void clear_max_column_inclusive(); + static const int kMaxColumnInclusiveFieldNumber = 4; + inline bool max_column_inclusive() const; + inline void set_max_column_inclusive(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ColumnRangeFilter) + private: + inline void set_has_min_column(); + inline void clear_has_min_column(); + inline void set_has_min_column_inclusive(); + inline void clear_has_min_column_inclusive(); + inline void set_has_max_column(); + inline void clear_has_max_column(); + inline void set_has_max_column_inclusive(); + inline void clear_has_max_column_inclusive(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* min_column_; + ::std::string* max_column_; + bool min_column_inclusive_; + bool max_column_inclusive_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static ColumnRangeFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class CompareFilter : public ::google::protobuf::Message { + public: + CompareFilter(); + virtual ~CompareFilter(); + + CompareFilter(const CompareFilter& from); + + inline CompareFilter& operator=(const CompareFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CompareFilter& default_instance(); + + void Swap(CompareFilter* other); + + // implements Message ---------------------------------------------- + + CompareFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CompareFilter& from); + void MergeFrom(const CompareFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.CompareType compare_op = 1; + inline bool has_compare_op() const; + inline void clear_compare_op(); + static const int kCompareOpFieldNumber = 1; + inline ::hbase::pb::CompareType compare_op() const; + inline void set_compare_op(::hbase::pb::CompareType value); + + // optional .hbase.pb.Comparator comparator = 2; + inline bool has_comparator() const; + inline void clear_comparator(); + static const int kComparatorFieldNumber = 2; + inline const ::hbase::pb::Comparator& comparator() const; + inline ::hbase::pb::Comparator* mutable_comparator(); + inline ::hbase::pb::Comparator* release_comparator(); + inline void set_allocated_comparator(::hbase::pb::Comparator* comparator); + + // @@protoc_insertion_point(class_scope:hbase.pb.CompareFilter) + private: + inline void set_has_compare_op(); + inline void clear_has_compare_op(); + inline void set_has_comparator(); + inline void clear_has_comparator(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Comparator* comparator_; + int compare_op_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static CompareFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class DependentColumnFilter : public ::google::protobuf::Message { + public: + DependentColumnFilter(); + virtual ~DependentColumnFilter(); + + DependentColumnFilter(const DependentColumnFilter& from); + + inline DependentColumnFilter& operator=(const DependentColumnFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DependentColumnFilter& default_instance(); + + void Swap(DependentColumnFilter* other); + + // implements Message ---------------------------------------------- + + DependentColumnFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DependentColumnFilter& from); + void MergeFrom(const DependentColumnFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.CompareFilter compare_filter = 1; + inline bool has_compare_filter() const; + inline void clear_compare_filter(); + static const int kCompareFilterFieldNumber = 1; + inline const ::hbase::pb::CompareFilter& compare_filter() const; + inline ::hbase::pb::CompareFilter* mutable_compare_filter(); + inline ::hbase::pb::CompareFilter* release_compare_filter(); + inline void set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter); + + // optional bytes column_family = 2; + inline bool has_column_family() const; + inline void clear_column_family(); + static const int kColumnFamilyFieldNumber = 2; + inline const ::std::string& column_family() const; + inline void set_column_family(const ::std::string& value); + inline void set_column_family(const char* value); + inline void set_column_family(const void* value, size_t size); + inline ::std::string* mutable_column_family(); + inline ::std::string* release_column_family(); + inline void set_allocated_column_family(::std::string* column_family); + + // optional bytes column_qualifier = 3; + inline bool has_column_qualifier() const; + inline void clear_column_qualifier(); + static const int kColumnQualifierFieldNumber = 3; + inline const ::std::string& column_qualifier() const; + inline void set_column_qualifier(const ::std::string& value); + inline void set_column_qualifier(const char* value); + inline void set_column_qualifier(const void* value, size_t size); + inline ::std::string* mutable_column_qualifier(); + inline ::std::string* release_column_qualifier(); + inline void set_allocated_column_qualifier(::std::string* column_qualifier); + + // optional bool drop_dependent_column = 4; + inline bool has_drop_dependent_column() const; + inline void clear_drop_dependent_column(); + static const int kDropDependentColumnFieldNumber = 4; + inline bool drop_dependent_column() const; + inline void set_drop_dependent_column(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DependentColumnFilter) + private: + inline void set_has_compare_filter(); + inline void clear_has_compare_filter(); + inline void set_has_column_family(); + inline void clear_has_column_family(); + inline void set_has_column_qualifier(); + inline void clear_has_column_qualifier(); + inline void set_has_drop_dependent_column(); + inline void clear_has_drop_dependent_column(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::CompareFilter* compare_filter_; + ::std::string* column_family_; + ::std::string* column_qualifier_; + bool drop_dependent_column_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static DependentColumnFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class FamilyFilter : public ::google::protobuf::Message { + public: + FamilyFilter(); + virtual ~FamilyFilter(); + + FamilyFilter(const FamilyFilter& from); + + inline FamilyFilter& operator=(const FamilyFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FamilyFilter& default_instance(); + + void Swap(FamilyFilter* other); + + // implements Message ---------------------------------------------- + + FamilyFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FamilyFilter& from); + void MergeFrom(const FamilyFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.CompareFilter compare_filter = 1; + inline bool has_compare_filter() const; + inline void clear_compare_filter(); + static const int kCompareFilterFieldNumber = 1; + inline const ::hbase::pb::CompareFilter& compare_filter() const; + inline ::hbase::pb::CompareFilter* mutable_compare_filter(); + inline ::hbase::pb::CompareFilter* release_compare_filter(); + inline void set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.FamilyFilter) + private: + inline void set_has_compare_filter(); + inline void clear_has_compare_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::CompareFilter* compare_filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static FamilyFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class FilterList : public ::google::protobuf::Message { + public: + FilterList(); + virtual ~FilterList(); + + FilterList(const FilterList& from); + + inline FilterList& operator=(const FilterList& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FilterList& default_instance(); + + void Swap(FilterList* other); + + // implements Message ---------------------------------------------- + + FilterList* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FilterList& from); + void MergeFrom(const FilterList& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef FilterList_Operator Operator; + static const Operator MUST_PASS_ALL = FilterList_Operator_MUST_PASS_ALL; + static const Operator MUST_PASS_ONE = FilterList_Operator_MUST_PASS_ONE; + static inline bool Operator_IsValid(int value) { + return FilterList_Operator_IsValid(value); + } + static const Operator Operator_MIN = + FilterList_Operator_Operator_MIN; + static const Operator Operator_MAX = + FilterList_Operator_Operator_MAX; + static const int Operator_ARRAYSIZE = + FilterList_Operator_Operator_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Operator_descriptor() { + return FilterList_Operator_descriptor(); + } + static inline const ::std::string& Operator_Name(Operator value) { + return FilterList_Operator_Name(value); + } + static inline bool Operator_Parse(const ::std::string& name, + Operator* value) { + return FilterList_Operator_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.FilterList.Operator operator = 1; + inline bool has_operator_() const; + inline void clear_operator_(); + static const int kOperatorFieldNumber = 1; + inline ::hbase::pb::FilterList_Operator operator_() const; + inline void set_operator_(::hbase::pb::FilterList_Operator value); + + // repeated .hbase.pb.Filter filters = 2; + inline int filters_size() const; + inline void clear_filters(); + static const int kFiltersFieldNumber = 2; + inline const ::hbase::pb::Filter& filters(int index) const; + inline ::hbase::pb::Filter* mutable_filters(int index); + inline ::hbase::pb::Filter* add_filters(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Filter >& + filters() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Filter >* + mutable_filters(); + + // @@protoc_insertion_point(class_scope:hbase.pb.FilterList) + private: + inline void set_has_operator_(); + inline void clear_has_operator_(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Filter > filters_; + int operator__; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static FilterList* default_instance_; +}; +// ------------------------------------------------------------------- + +class FilterWrapper : public ::google::protobuf::Message { + public: + FilterWrapper(); + virtual ~FilterWrapper(); + + FilterWrapper(const FilterWrapper& from); + + inline FilterWrapper& operator=(const FilterWrapper& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FilterWrapper& default_instance(); + + void Swap(FilterWrapper* other); + + // implements Message ---------------------------------------------- + + FilterWrapper* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FilterWrapper& from); + void MergeFrom(const FilterWrapper& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.Filter filter = 1; + inline bool has_filter() const; + inline void clear_filter(); + static const int kFilterFieldNumber = 1; + inline const ::hbase::pb::Filter& filter() const; + inline ::hbase::pb::Filter* mutable_filter(); + inline ::hbase::pb::Filter* release_filter(); + inline void set_allocated_filter(::hbase::pb::Filter* filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.FilterWrapper) + private: + inline void set_has_filter(); + inline void clear_has_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Filter* filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static FilterWrapper* default_instance_; +}; +// ------------------------------------------------------------------- + +class FirstKeyOnlyFilter : public ::google::protobuf::Message { + public: + FirstKeyOnlyFilter(); + virtual ~FirstKeyOnlyFilter(); + + FirstKeyOnlyFilter(const FirstKeyOnlyFilter& from); + + inline FirstKeyOnlyFilter& operator=(const FirstKeyOnlyFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FirstKeyOnlyFilter& default_instance(); + + void Swap(FirstKeyOnlyFilter* other); + + // implements Message ---------------------------------------------- + + FirstKeyOnlyFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FirstKeyOnlyFilter& from); + void MergeFrom(const FirstKeyOnlyFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.FirstKeyOnlyFilter) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static FirstKeyOnlyFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class FirstKeyValueMatchingQualifiersFilter : public ::google::protobuf::Message { + public: + FirstKeyValueMatchingQualifiersFilter(); + virtual ~FirstKeyValueMatchingQualifiersFilter(); + + FirstKeyValueMatchingQualifiersFilter(const FirstKeyValueMatchingQualifiersFilter& from); + + inline FirstKeyValueMatchingQualifiersFilter& operator=(const FirstKeyValueMatchingQualifiersFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FirstKeyValueMatchingQualifiersFilter& default_instance(); + + void Swap(FirstKeyValueMatchingQualifiersFilter* other); + + // implements Message ---------------------------------------------- + + FirstKeyValueMatchingQualifiersFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FirstKeyValueMatchingQualifiersFilter& from); + void MergeFrom(const FirstKeyValueMatchingQualifiersFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes qualifiers = 1; + inline int qualifiers_size() const; + inline void clear_qualifiers(); + static const int kQualifiersFieldNumber = 1; + inline const ::std::string& qualifiers(int index) const; + inline ::std::string* mutable_qualifiers(int index); + inline void set_qualifiers(int index, const ::std::string& value); + inline void set_qualifiers(int index, const char* value); + inline void set_qualifiers(int index, const void* value, size_t size); + inline ::std::string* add_qualifiers(); + inline void add_qualifiers(const ::std::string& value); + inline void add_qualifiers(const char* value); + inline void add_qualifiers(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& qualifiers() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_qualifiers(); + + // @@protoc_insertion_point(class_scope:hbase.pb.FirstKeyValueMatchingQualifiersFilter) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> qualifiers_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static FirstKeyValueMatchingQualifiersFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class FuzzyRowFilter : public ::google::protobuf::Message { + public: + FuzzyRowFilter(); + virtual ~FuzzyRowFilter(); + + FuzzyRowFilter(const FuzzyRowFilter& from); + + inline FuzzyRowFilter& operator=(const FuzzyRowFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FuzzyRowFilter& default_instance(); + + void Swap(FuzzyRowFilter* other); + + // implements Message ---------------------------------------------- + + FuzzyRowFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FuzzyRowFilter& from); + void MergeFrom(const FuzzyRowFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.BytesBytesPair fuzzy_keys_data = 1; + inline int fuzzy_keys_data_size() const; + inline void clear_fuzzy_keys_data(); + static const int kFuzzyKeysDataFieldNumber = 1; + inline const ::hbase::pb::BytesBytesPair& fuzzy_keys_data(int index) const; + inline ::hbase::pb::BytesBytesPair* mutable_fuzzy_keys_data(int index); + inline ::hbase::pb::BytesBytesPair* add_fuzzy_keys_data(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& + fuzzy_keys_data() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* + mutable_fuzzy_keys_data(); + + // @@protoc_insertion_point(class_scope:hbase.pb.FuzzyRowFilter) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair > fuzzy_keys_data_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static FuzzyRowFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class InclusiveStopFilter : public ::google::protobuf::Message { + public: + InclusiveStopFilter(); + virtual ~InclusiveStopFilter(); + + InclusiveStopFilter(const InclusiveStopFilter& from); + + inline InclusiveStopFilter& operator=(const InclusiveStopFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const InclusiveStopFilter& default_instance(); + + void Swap(InclusiveStopFilter* other); + + // implements Message ---------------------------------------------- + + InclusiveStopFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const InclusiveStopFilter& from); + void MergeFrom(const InclusiveStopFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes stop_row_key = 1; + inline bool has_stop_row_key() const; + inline void clear_stop_row_key(); + static const int kStopRowKeyFieldNumber = 1; + inline const ::std::string& stop_row_key() const; + inline void set_stop_row_key(const ::std::string& value); + inline void set_stop_row_key(const char* value); + inline void set_stop_row_key(const void* value, size_t size); + inline ::std::string* mutable_stop_row_key(); + inline ::std::string* release_stop_row_key(); + inline void set_allocated_stop_row_key(::std::string* stop_row_key); + + // @@protoc_insertion_point(class_scope:hbase.pb.InclusiveStopFilter) + private: + inline void set_has_stop_row_key(); + inline void clear_has_stop_row_key(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* stop_row_key_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static InclusiveStopFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class KeyOnlyFilter : public ::google::protobuf::Message { + public: + KeyOnlyFilter(); + virtual ~KeyOnlyFilter(); + + KeyOnlyFilter(const KeyOnlyFilter& from); + + inline KeyOnlyFilter& operator=(const KeyOnlyFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const KeyOnlyFilter& default_instance(); + + void Swap(KeyOnlyFilter* other); + + // implements Message ---------------------------------------------- + + KeyOnlyFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const KeyOnlyFilter& from); + void MergeFrom(const KeyOnlyFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool len_as_val = 1; + inline bool has_len_as_val() const; + inline void clear_len_as_val(); + static const int kLenAsValFieldNumber = 1; + inline bool len_as_val() const; + inline void set_len_as_val(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.KeyOnlyFilter) + private: + inline void set_has_len_as_val(); + inline void clear_has_len_as_val(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool len_as_val_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static KeyOnlyFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class MultipleColumnPrefixFilter : public ::google::protobuf::Message { + public: + MultipleColumnPrefixFilter(); + virtual ~MultipleColumnPrefixFilter(); + + MultipleColumnPrefixFilter(const MultipleColumnPrefixFilter& from); + + inline MultipleColumnPrefixFilter& operator=(const MultipleColumnPrefixFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultipleColumnPrefixFilter& default_instance(); + + void Swap(MultipleColumnPrefixFilter* other); + + // implements Message ---------------------------------------------- + + MultipleColumnPrefixFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MultipleColumnPrefixFilter& from); + void MergeFrom(const MultipleColumnPrefixFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes sorted_prefixes = 1; + inline int sorted_prefixes_size() const; + inline void clear_sorted_prefixes(); + static const int kSortedPrefixesFieldNumber = 1; + inline const ::std::string& sorted_prefixes(int index) const; + inline ::std::string* mutable_sorted_prefixes(int index); + inline void set_sorted_prefixes(int index, const ::std::string& value); + inline void set_sorted_prefixes(int index, const char* value); + inline void set_sorted_prefixes(int index, const void* value, size_t size); + inline ::std::string* add_sorted_prefixes(); + inline void add_sorted_prefixes(const ::std::string& value); + inline void add_sorted_prefixes(const char* value); + inline void add_sorted_prefixes(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& sorted_prefixes() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_sorted_prefixes(); + + // @@protoc_insertion_point(class_scope:hbase.pb.MultipleColumnPrefixFilter) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> sorted_prefixes_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static MultipleColumnPrefixFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class PageFilter : public ::google::protobuf::Message { + public: + PageFilter(); + virtual ~PageFilter(); + + PageFilter(const PageFilter& from); + + inline PageFilter& operator=(const PageFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PageFilter& default_instance(); + + void Swap(PageFilter* other); + + // implements Message ---------------------------------------------- + + PageFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PageFilter& from); + void MergeFrom(const PageFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required int64 page_size = 1; + inline bool has_page_size() const; + inline void clear_page_size(); + static const int kPageSizeFieldNumber = 1; + inline ::google::protobuf::int64 page_size() const; + inline void set_page_size(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.PageFilter) + private: + inline void set_has_page_size(); + inline void clear_has_page_size(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int64 page_size_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static PageFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class PrefixFilter : public ::google::protobuf::Message { + public: + PrefixFilter(); + virtual ~PrefixFilter(); + + PrefixFilter(const PrefixFilter& from); + + inline PrefixFilter& operator=(const PrefixFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PrefixFilter& default_instance(); + + void Swap(PrefixFilter* other); + + // implements Message ---------------------------------------------- + + PrefixFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PrefixFilter& from); + void MergeFrom(const PrefixFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes prefix = 1; + inline bool has_prefix() const; + inline void clear_prefix(); + static const int kPrefixFieldNumber = 1; + inline const ::std::string& prefix() const; + inline void set_prefix(const ::std::string& value); + inline void set_prefix(const char* value); + inline void set_prefix(const void* value, size_t size); + inline ::std::string* mutable_prefix(); + inline ::std::string* release_prefix(); + inline void set_allocated_prefix(::std::string* prefix); + + // @@protoc_insertion_point(class_scope:hbase.pb.PrefixFilter) + private: + inline void set_has_prefix(); + inline void clear_has_prefix(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* prefix_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static PrefixFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class QualifierFilter : public ::google::protobuf::Message { + public: + QualifierFilter(); + virtual ~QualifierFilter(); + + QualifierFilter(const QualifierFilter& from); + + inline QualifierFilter& operator=(const QualifierFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const QualifierFilter& default_instance(); + + void Swap(QualifierFilter* other); + + // implements Message ---------------------------------------------- + + QualifierFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const QualifierFilter& from); + void MergeFrom(const QualifierFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.CompareFilter compare_filter = 1; + inline bool has_compare_filter() const; + inline void clear_compare_filter(); + static const int kCompareFilterFieldNumber = 1; + inline const ::hbase::pb::CompareFilter& compare_filter() const; + inline ::hbase::pb::CompareFilter* mutable_compare_filter(); + inline ::hbase::pb::CompareFilter* release_compare_filter(); + inline void set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.QualifierFilter) + private: + inline void set_has_compare_filter(); + inline void clear_has_compare_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::CompareFilter* compare_filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static QualifierFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class RandomRowFilter : public ::google::protobuf::Message { + public: + RandomRowFilter(); + virtual ~RandomRowFilter(); + + RandomRowFilter(const RandomRowFilter& from); + + inline RandomRowFilter& operator=(const RandomRowFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RandomRowFilter& default_instance(); + + void Swap(RandomRowFilter* other); + + // implements Message ---------------------------------------------- + + RandomRowFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RandomRowFilter& from); + void MergeFrom(const RandomRowFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required float chance = 1; + inline bool has_chance() const; + inline void clear_chance(); + static const int kChanceFieldNumber = 1; + inline float chance() const; + inline void set_chance(float value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RandomRowFilter) + private: + inline void set_has_chance(); + inline void clear_has_chance(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + float chance_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static RandomRowFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class RowFilter : public ::google::protobuf::Message { + public: + RowFilter(); + virtual ~RowFilter(); + + RowFilter(const RowFilter& from); + + inline RowFilter& operator=(const RowFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RowFilter& default_instance(); + + void Swap(RowFilter* other); + + // implements Message ---------------------------------------------- + + RowFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RowFilter& from); + void MergeFrom(const RowFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.CompareFilter compare_filter = 1; + inline bool has_compare_filter() const; + inline void clear_compare_filter(); + static const int kCompareFilterFieldNumber = 1; + inline const ::hbase::pb::CompareFilter& compare_filter() const; + inline ::hbase::pb::CompareFilter* mutable_compare_filter(); + inline ::hbase::pb::CompareFilter* release_compare_filter(); + inline void set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.RowFilter) + private: + inline void set_has_compare_filter(); + inline void clear_has_compare_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::CompareFilter* compare_filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static RowFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class SingleColumnValueExcludeFilter : public ::google::protobuf::Message { + public: + SingleColumnValueExcludeFilter(); + virtual ~SingleColumnValueExcludeFilter(); + + SingleColumnValueExcludeFilter(const SingleColumnValueExcludeFilter& from); + + inline SingleColumnValueExcludeFilter& operator=(const SingleColumnValueExcludeFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SingleColumnValueExcludeFilter& default_instance(); + + void Swap(SingleColumnValueExcludeFilter* other); + + // implements Message ---------------------------------------------- + + SingleColumnValueExcludeFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SingleColumnValueExcludeFilter& from); + void MergeFrom(const SingleColumnValueExcludeFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.SingleColumnValueFilter single_column_value_filter = 1; + inline bool has_single_column_value_filter() const; + inline void clear_single_column_value_filter(); + static const int kSingleColumnValueFilterFieldNumber = 1; + inline const ::hbase::pb::SingleColumnValueFilter& single_column_value_filter() const; + inline ::hbase::pb::SingleColumnValueFilter* mutable_single_column_value_filter(); + inline ::hbase::pb::SingleColumnValueFilter* release_single_column_value_filter(); + inline void set_allocated_single_column_value_filter(::hbase::pb::SingleColumnValueFilter* single_column_value_filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.SingleColumnValueExcludeFilter) + private: + inline void set_has_single_column_value_filter(); + inline void clear_has_single_column_value_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::SingleColumnValueFilter* single_column_value_filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static SingleColumnValueExcludeFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class SingleColumnValueFilter : public ::google::protobuf::Message { + public: + SingleColumnValueFilter(); + virtual ~SingleColumnValueFilter(); + + SingleColumnValueFilter(const SingleColumnValueFilter& from); + + inline SingleColumnValueFilter& operator=(const SingleColumnValueFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SingleColumnValueFilter& default_instance(); + + void Swap(SingleColumnValueFilter* other); + + // implements Message ---------------------------------------------- + + SingleColumnValueFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SingleColumnValueFilter& from); + void MergeFrom(const SingleColumnValueFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes column_family = 1; + inline bool has_column_family() const; + inline void clear_column_family(); + static const int kColumnFamilyFieldNumber = 1; + inline const ::std::string& column_family() const; + inline void set_column_family(const ::std::string& value); + inline void set_column_family(const char* value); + inline void set_column_family(const void* value, size_t size); + inline ::std::string* mutable_column_family(); + inline ::std::string* release_column_family(); + inline void set_allocated_column_family(::std::string* column_family); + + // optional bytes column_qualifier = 2; + inline bool has_column_qualifier() const; + inline void clear_column_qualifier(); + static const int kColumnQualifierFieldNumber = 2; + inline const ::std::string& column_qualifier() const; + inline void set_column_qualifier(const ::std::string& value); + inline void set_column_qualifier(const char* value); + inline void set_column_qualifier(const void* value, size_t size); + inline ::std::string* mutable_column_qualifier(); + inline ::std::string* release_column_qualifier(); + inline void set_allocated_column_qualifier(::std::string* column_qualifier); + + // required .hbase.pb.CompareType compare_op = 3; + inline bool has_compare_op() const; + inline void clear_compare_op(); + static const int kCompareOpFieldNumber = 3; + inline ::hbase::pb::CompareType compare_op() const; + inline void set_compare_op(::hbase::pb::CompareType value); + + // required .hbase.pb.Comparator comparator = 4; + inline bool has_comparator() const; + inline void clear_comparator(); + static const int kComparatorFieldNumber = 4; + inline const ::hbase::pb::Comparator& comparator() const; + inline ::hbase::pb::Comparator* mutable_comparator(); + inline ::hbase::pb::Comparator* release_comparator(); + inline void set_allocated_comparator(::hbase::pb::Comparator* comparator); + + // optional bool filter_if_missing = 5; + inline bool has_filter_if_missing() const; + inline void clear_filter_if_missing(); + static const int kFilterIfMissingFieldNumber = 5; + inline bool filter_if_missing() const; + inline void set_filter_if_missing(bool value); + + // optional bool latest_version_only = 6; + inline bool has_latest_version_only() const; + inline void clear_latest_version_only(); + static const int kLatestVersionOnlyFieldNumber = 6; + inline bool latest_version_only() const; + inline void set_latest_version_only(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SingleColumnValueFilter) + private: + inline void set_has_column_family(); + inline void clear_has_column_family(); + inline void set_has_column_qualifier(); + inline void clear_has_column_qualifier(); + inline void set_has_compare_op(); + inline void clear_has_compare_op(); + inline void set_has_comparator(); + inline void clear_has_comparator(); + inline void set_has_filter_if_missing(); + inline void clear_has_filter_if_missing(); + inline void set_has_latest_version_only(); + inline void clear_has_latest_version_only(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* column_family_; + ::std::string* column_qualifier_; + ::hbase::pb::Comparator* comparator_; + int compare_op_; + bool filter_if_missing_; + bool latest_version_only_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static SingleColumnValueFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class SkipFilter : public ::google::protobuf::Message { + public: + SkipFilter(); + virtual ~SkipFilter(); + + SkipFilter(const SkipFilter& from); + + inline SkipFilter& operator=(const SkipFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SkipFilter& default_instance(); + + void Swap(SkipFilter* other); + + // implements Message ---------------------------------------------- + + SkipFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SkipFilter& from); + void MergeFrom(const SkipFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.Filter filter = 1; + inline bool has_filter() const; + inline void clear_filter(); + static const int kFilterFieldNumber = 1; + inline const ::hbase::pb::Filter& filter() const; + inline ::hbase::pb::Filter* mutable_filter(); + inline ::hbase::pb::Filter* release_filter(); + inline void set_allocated_filter(::hbase::pb::Filter* filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.SkipFilter) + private: + inline void set_has_filter(); + inline void clear_has_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Filter* filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static SkipFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class TimestampsFilter : public ::google::protobuf::Message { + public: + TimestampsFilter(); + virtual ~TimestampsFilter(); + + TimestampsFilter(const TimestampsFilter& from); + + inline TimestampsFilter& operator=(const TimestampsFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TimestampsFilter& default_instance(); + + void Swap(TimestampsFilter* other); + + // implements Message ---------------------------------------------- + + TimestampsFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TimestampsFilter& from); + void MergeFrom(const TimestampsFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated int64 timestamps = 1 [packed = true]; + inline int timestamps_size() const; + inline void clear_timestamps(); + static const int kTimestampsFieldNumber = 1; + inline ::google::protobuf::int64 timestamps(int index) const; + inline void set_timestamps(int index, ::google::protobuf::int64 value); + inline void add_timestamps(::google::protobuf::int64 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + timestamps() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + mutable_timestamps(); + + // @@protoc_insertion_point(class_scope:hbase.pb.TimestampsFilter) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedField< ::google::protobuf::int64 > timestamps_; + mutable int _timestamps_cached_byte_size_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static TimestampsFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class ValueFilter : public ::google::protobuf::Message { + public: + ValueFilter(); + virtual ~ValueFilter(); + + ValueFilter(const ValueFilter& from); + + inline ValueFilter& operator=(const ValueFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ValueFilter& default_instance(); + + void Swap(ValueFilter* other); + + // implements Message ---------------------------------------------- + + ValueFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ValueFilter& from); + void MergeFrom(const ValueFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.CompareFilter compare_filter = 1; + inline bool has_compare_filter() const; + inline void clear_compare_filter(); + static const int kCompareFilterFieldNumber = 1; + inline const ::hbase::pb::CompareFilter& compare_filter() const; + inline ::hbase::pb::CompareFilter* mutable_compare_filter(); + inline ::hbase::pb::CompareFilter* release_compare_filter(); + inline void set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.ValueFilter) + private: + inline void set_has_compare_filter(); + inline void clear_has_compare_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::CompareFilter* compare_filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static ValueFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class WhileMatchFilter : public ::google::protobuf::Message { + public: + WhileMatchFilter(); + virtual ~WhileMatchFilter(); + + WhileMatchFilter(const WhileMatchFilter& from); + + inline WhileMatchFilter& operator=(const WhileMatchFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WhileMatchFilter& default_instance(); + + void Swap(WhileMatchFilter* other); + + // implements Message ---------------------------------------------- + + WhileMatchFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WhileMatchFilter& from); + void MergeFrom(const WhileMatchFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.Filter filter = 1; + inline bool has_filter() const; + inline void clear_filter(); + static const int kFilterFieldNumber = 1; + inline const ::hbase::pb::Filter& filter() const; + inline ::hbase::pb::Filter* mutable_filter(); + inline ::hbase::pb::Filter* release_filter(); + inline void set_allocated_filter(::hbase::pb::Filter* filter); + + // @@protoc_insertion_point(class_scope:hbase.pb.WhileMatchFilter) + private: + inline void set_has_filter(); + inline void clear_has_filter(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Filter* filter_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static WhileMatchFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class FilterAllFilter : public ::google::protobuf::Message { + public: + FilterAllFilter(); + virtual ~FilterAllFilter(); + + FilterAllFilter(const FilterAllFilter& from); + + inline FilterAllFilter& operator=(const FilterAllFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FilterAllFilter& default_instance(); + + void Swap(FilterAllFilter* other); + + // implements Message ---------------------------------------------- + + FilterAllFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FilterAllFilter& from); + void MergeFrom(const FilterAllFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.FilterAllFilter) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static FilterAllFilter* default_instance_; +}; +// ------------------------------------------------------------------- + +class RowRange : public ::google::protobuf::Message { + public: + RowRange(); + virtual ~RowRange(); + + RowRange(const RowRange& from); + + inline RowRange& operator=(const RowRange& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RowRange& default_instance(); + + void Swap(RowRange* other); + + // implements Message ---------------------------------------------- + + RowRange* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RowRange& from); + void MergeFrom(const RowRange& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes start_row = 1; + inline bool has_start_row() const; + inline void clear_start_row(); + static const int kStartRowFieldNumber = 1; + inline const ::std::string& start_row() const; + inline void set_start_row(const ::std::string& value); + inline void set_start_row(const char* value); + inline void set_start_row(const void* value, size_t size); + inline ::std::string* mutable_start_row(); + inline ::std::string* release_start_row(); + inline void set_allocated_start_row(::std::string* start_row); + + // optional bool start_row_inclusive = 2; + inline bool has_start_row_inclusive() const; + inline void clear_start_row_inclusive(); + static const int kStartRowInclusiveFieldNumber = 2; + inline bool start_row_inclusive() const; + inline void set_start_row_inclusive(bool value); + + // optional bytes stop_row = 3; + inline bool has_stop_row() const; + inline void clear_stop_row(); + static const int kStopRowFieldNumber = 3; + inline const ::std::string& stop_row() const; + inline void set_stop_row(const ::std::string& value); + inline void set_stop_row(const char* value); + inline void set_stop_row(const void* value, size_t size); + inline ::std::string* mutable_stop_row(); + inline ::std::string* release_stop_row(); + inline void set_allocated_stop_row(::std::string* stop_row); + + // optional bool stop_row_inclusive = 4; + inline bool has_stop_row_inclusive() const; + inline void clear_stop_row_inclusive(); + static const int kStopRowInclusiveFieldNumber = 4; + inline bool stop_row_inclusive() const; + inline void set_stop_row_inclusive(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RowRange) + private: + inline void set_has_start_row(); + inline void clear_has_start_row(); + inline void set_has_start_row_inclusive(); + inline void clear_has_start_row_inclusive(); + inline void set_has_stop_row(); + inline void clear_has_stop_row(); + inline void set_has_stop_row_inclusive(); + inline void clear_has_stop_row_inclusive(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* start_row_; + ::std::string* stop_row_; + bool start_row_inclusive_; + bool stop_row_inclusive_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static RowRange* default_instance_; +}; +// ------------------------------------------------------------------- + +class MultiRowRangeFilter : public ::google::protobuf::Message { + public: + MultiRowRangeFilter(); + virtual ~MultiRowRangeFilter(); + + MultiRowRangeFilter(const MultiRowRangeFilter& from); + + inline MultiRowRangeFilter& operator=(const MultiRowRangeFilter& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultiRowRangeFilter& default_instance(); + + void Swap(MultiRowRangeFilter* other); + + // implements Message ---------------------------------------------- + + MultiRowRangeFilter* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MultiRowRangeFilter& from); + void MergeFrom(const MultiRowRangeFilter& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.RowRange row_range_list = 1; + inline int row_range_list_size() const; + inline void clear_row_range_list(); + static const int kRowRangeListFieldNumber = 1; + inline const ::hbase::pb::RowRange& row_range_list(int index) const; + inline ::hbase::pb::RowRange* mutable_row_range_list(int index); + inline ::hbase::pb::RowRange* add_row_range_list(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RowRange >& + row_range_list() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RowRange >* + mutable_row_range_list(); + + // @@protoc_insertion_point(class_scope:hbase.pb.MultiRowRangeFilter) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RowRange > row_range_list_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Filter_2eproto(); + friend void protobuf_AssignDesc_Filter_2eproto(); + friend void protobuf_ShutdownFile_Filter_2eproto(); + + void InitAsDefaultInstance(); + static MultiRowRangeFilter* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// Filter + +// required string name = 1; +inline bool Filter::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Filter::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void Filter::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Filter::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& Filter::name() const { + return *name_; +} +inline void Filter::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void Filter::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void Filter::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Filter::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* Filter::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Filter::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes serialized_filter = 2; +inline bool Filter::has_serialized_filter() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Filter::set_has_serialized_filter() { + _has_bits_[0] |= 0x00000002u; +} +inline void Filter::clear_has_serialized_filter() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Filter::clear_serialized_filter() { + if (serialized_filter_ != &::google::protobuf::internal::kEmptyString) { + serialized_filter_->clear(); + } + clear_has_serialized_filter(); +} +inline const ::std::string& Filter::serialized_filter() const { + return *serialized_filter_; +} +inline void Filter::set_serialized_filter(const ::std::string& value) { + set_has_serialized_filter(); + if (serialized_filter_ == &::google::protobuf::internal::kEmptyString) { + serialized_filter_ = new ::std::string; + } + serialized_filter_->assign(value); +} +inline void Filter::set_serialized_filter(const char* value) { + set_has_serialized_filter(); + if (serialized_filter_ == &::google::protobuf::internal::kEmptyString) { + serialized_filter_ = new ::std::string; + } + serialized_filter_->assign(value); +} +inline void Filter::set_serialized_filter(const void* value, size_t size) { + set_has_serialized_filter(); + if (serialized_filter_ == &::google::protobuf::internal::kEmptyString) { + serialized_filter_ = new ::std::string; + } + serialized_filter_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Filter::mutable_serialized_filter() { + set_has_serialized_filter(); + if (serialized_filter_ == &::google::protobuf::internal::kEmptyString) { + serialized_filter_ = new ::std::string; + } + return serialized_filter_; +} +inline ::std::string* Filter::release_serialized_filter() { + clear_has_serialized_filter(); + if (serialized_filter_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = serialized_filter_; + serialized_filter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Filter::set_allocated_serialized_filter(::std::string* serialized_filter) { + if (serialized_filter_ != &::google::protobuf::internal::kEmptyString) { + delete serialized_filter_; + } + if (serialized_filter) { + set_has_serialized_filter(); + serialized_filter_ = serialized_filter; + } else { + clear_has_serialized_filter(); + serialized_filter_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ColumnCountGetFilter + +// required int32 limit = 1; +inline bool ColumnCountGetFilter::has_limit() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ColumnCountGetFilter::set_has_limit() { + _has_bits_[0] |= 0x00000001u; +} +inline void ColumnCountGetFilter::clear_has_limit() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ColumnCountGetFilter::clear_limit() { + limit_ = 0; + clear_has_limit(); +} +inline ::google::protobuf::int32 ColumnCountGetFilter::limit() const { + return limit_; +} +inline void ColumnCountGetFilter::set_limit(::google::protobuf::int32 value) { + set_has_limit(); + limit_ = value; +} + +// ------------------------------------------------------------------- + +// ColumnPaginationFilter + +// required int32 limit = 1; +inline bool ColumnPaginationFilter::has_limit() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ColumnPaginationFilter::set_has_limit() { + _has_bits_[0] |= 0x00000001u; +} +inline void ColumnPaginationFilter::clear_has_limit() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ColumnPaginationFilter::clear_limit() { + limit_ = 0; + clear_has_limit(); +} +inline ::google::protobuf::int32 ColumnPaginationFilter::limit() const { + return limit_; +} +inline void ColumnPaginationFilter::set_limit(::google::protobuf::int32 value) { + set_has_limit(); + limit_ = value; +} + +// optional int32 offset = 2; +inline bool ColumnPaginationFilter::has_offset() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ColumnPaginationFilter::set_has_offset() { + _has_bits_[0] |= 0x00000002u; +} +inline void ColumnPaginationFilter::clear_has_offset() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ColumnPaginationFilter::clear_offset() { + offset_ = 0; + clear_has_offset(); +} +inline ::google::protobuf::int32 ColumnPaginationFilter::offset() const { + return offset_; +} +inline void ColumnPaginationFilter::set_offset(::google::protobuf::int32 value) { + set_has_offset(); + offset_ = value; +} + +// optional bytes column_offset = 3; +inline bool ColumnPaginationFilter::has_column_offset() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ColumnPaginationFilter::set_has_column_offset() { + _has_bits_[0] |= 0x00000004u; +} +inline void ColumnPaginationFilter::clear_has_column_offset() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ColumnPaginationFilter::clear_column_offset() { + if (column_offset_ != &::google::protobuf::internal::kEmptyString) { + column_offset_->clear(); + } + clear_has_column_offset(); +} +inline const ::std::string& ColumnPaginationFilter::column_offset() const { + return *column_offset_; +} +inline void ColumnPaginationFilter::set_column_offset(const ::std::string& value) { + set_has_column_offset(); + if (column_offset_ == &::google::protobuf::internal::kEmptyString) { + column_offset_ = new ::std::string; + } + column_offset_->assign(value); +} +inline void ColumnPaginationFilter::set_column_offset(const char* value) { + set_has_column_offset(); + if (column_offset_ == &::google::protobuf::internal::kEmptyString) { + column_offset_ = new ::std::string; + } + column_offset_->assign(value); +} +inline void ColumnPaginationFilter::set_column_offset(const void* value, size_t size) { + set_has_column_offset(); + if (column_offset_ == &::google::protobuf::internal::kEmptyString) { + column_offset_ = new ::std::string; + } + column_offset_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ColumnPaginationFilter::mutable_column_offset() { + set_has_column_offset(); + if (column_offset_ == &::google::protobuf::internal::kEmptyString) { + column_offset_ = new ::std::string; + } + return column_offset_; +} +inline ::std::string* ColumnPaginationFilter::release_column_offset() { + clear_has_column_offset(); + if (column_offset_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = column_offset_; + column_offset_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ColumnPaginationFilter::set_allocated_column_offset(::std::string* column_offset) { + if (column_offset_ != &::google::protobuf::internal::kEmptyString) { + delete column_offset_; + } + if (column_offset) { + set_has_column_offset(); + column_offset_ = column_offset; + } else { + clear_has_column_offset(); + column_offset_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ColumnPrefixFilter + +// required bytes prefix = 1; +inline bool ColumnPrefixFilter::has_prefix() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ColumnPrefixFilter::set_has_prefix() { + _has_bits_[0] |= 0x00000001u; +} +inline void ColumnPrefixFilter::clear_has_prefix() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ColumnPrefixFilter::clear_prefix() { + if (prefix_ != &::google::protobuf::internal::kEmptyString) { + prefix_->clear(); + } + clear_has_prefix(); +} +inline const ::std::string& ColumnPrefixFilter::prefix() const { + return *prefix_; +} +inline void ColumnPrefixFilter::set_prefix(const ::std::string& value) { + set_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + prefix_ = new ::std::string; + } + prefix_->assign(value); +} +inline void ColumnPrefixFilter::set_prefix(const char* value) { + set_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + prefix_ = new ::std::string; + } + prefix_->assign(value); +} +inline void ColumnPrefixFilter::set_prefix(const void* value, size_t size) { + set_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + prefix_ = new ::std::string; + } + prefix_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ColumnPrefixFilter::mutable_prefix() { + set_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + prefix_ = new ::std::string; + } + return prefix_; +} +inline ::std::string* ColumnPrefixFilter::release_prefix() { + clear_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = prefix_; + prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ColumnPrefixFilter::set_allocated_prefix(::std::string* prefix) { + if (prefix_ != &::google::protobuf::internal::kEmptyString) { + delete prefix_; + } + if (prefix) { + set_has_prefix(); + prefix_ = prefix; + } else { + clear_has_prefix(); + prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ColumnRangeFilter + +// optional bytes min_column = 1; +inline bool ColumnRangeFilter::has_min_column() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ColumnRangeFilter::set_has_min_column() { + _has_bits_[0] |= 0x00000001u; +} +inline void ColumnRangeFilter::clear_has_min_column() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ColumnRangeFilter::clear_min_column() { + if (min_column_ != &::google::protobuf::internal::kEmptyString) { + min_column_->clear(); + } + clear_has_min_column(); +} +inline const ::std::string& ColumnRangeFilter::min_column() const { + return *min_column_; +} +inline void ColumnRangeFilter::set_min_column(const ::std::string& value) { + set_has_min_column(); + if (min_column_ == &::google::protobuf::internal::kEmptyString) { + min_column_ = new ::std::string; + } + min_column_->assign(value); +} +inline void ColumnRangeFilter::set_min_column(const char* value) { + set_has_min_column(); + if (min_column_ == &::google::protobuf::internal::kEmptyString) { + min_column_ = new ::std::string; + } + min_column_->assign(value); +} +inline void ColumnRangeFilter::set_min_column(const void* value, size_t size) { + set_has_min_column(); + if (min_column_ == &::google::protobuf::internal::kEmptyString) { + min_column_ = new ::std::string; + } + min_column_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ColumnRangeFilter::mutable_min_column() { + set_has_min_column(); + if (min_column_ == &::google::protobuf::internal::kEmptyString) { + min_column_ = new ::std::string; + } + return min_column_; +} +inline ::std::string* ColumnRangeFilter::release_min_column() { + clear_has_min_column(); + if (min_column_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = min_column_; + min_column_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ColumnRangeFilter::set_allocated_min_column(::std::string* min_column) { + if (min_column_ != &::google::protobuf::internal::kEmptyString) { + delete min_column_; + } + if (min_column) { + set_has_min_column(); + min_column_ = min_column; + } else { + clear_has_min_column(); + min_column_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool min_column_inclusive = 2; +inline bool ColumnRangeFilter::has_min_column_inclusive() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ColumnRangeFilter::set_has_min_column_inclusive() { + _has_bits_[0] |= 0x00000002u; +} +inline void ColumnRangeFilter::clear_has_min_column_inclusive() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ColumnRangeFilter::clear_min_column_inclusive() { + min_column_inclusive_ = false; + clear_has_min_column_inclusive(); +} +inline bool ColumnRangeFilter::min_column_inclusive() const { + return min_column_inclusive_; +} +inline void ColumnRangeFilter::set_min_column_inclusive(bool value) { + set_has_min_column_inclusive(); + min_column_inclusive_ = value; +} + +// optional bytes max_column = 3; +inline bool ColumnRangeFilter::has_max_column() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ColumnRangeFilter::set_has_max_column() { + _has_bits_[0] |= 0x00000004u; +} +inline void ColumnRangeFilter::clear_has_max_column() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ColumnRangeFilter::clear_max_column() { + if (max_column_ != &::google::protobuf::internal::kEmptyString) { + max_column_->clear(); + } + clear_has_max_column(); +} +inline const ::std::string& ColumnRangeFilter::max_column() const { + return *max_column_; +} +inline void ColumnRangeFilter::set_max_column(const ::std::string& value) { + set_has_max_column(); + if (max_column_ == &::google::protobuf::internal::kEmptyString) { + max_column_ = new ::std::string; + } + max_column_->assign(value); +} +inline void ColumnRangeFilter::set_max_column(const char* value) { + set_has_max_column(); + if (max_column_ == &::google::protobuf::internal::kEmptyString) { + max_column_ = new ::std::string; + } + max_column_->assign(value); +} +inline void ColumnRangeFilter::set_max_column(const void* value, size_t size) { + set_has_max_column(); + if (max_column_ == &::google::protobuf::internal::kEmptyString) { + max_column_ = new ::std::string; + } + max_column_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ColumnRangeFilter::mutable_max_column() { + set_has_max_column(); + if (max_column_ == &::google::protobuf::internal::kEmptyString) { + max_column_ = new ::std::string; + } + return max_column_; +} +inline ::std::string* ColumnRangeFilter::release_max_column() { + clear_has_max_column(); + if (max_column_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = max_column_; + max_column_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ColumnRangeFilter::set_allocated_max_column(::std::string* max_column) { + if (max_column_ != &::google::protobuf::internal::kEmptyString) { + delete max_column_; + } + if (max_column) { + set_has_max_column(); + max_column_ = max_column; + } else { + clear_has_max_column(); + max_column_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool max_column_inclusive = 4; +inline bool ColumnRangeFilter::has_max_column_inclusive() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ColumnRangeFilter::set_has_max_column_inclusive() { + _has_bits_[0] |= 0x00000008u; +} +inline void ColumnRangeFilter::clear_has_max_column_inclusive() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ColumnRangeFilter::clear_max_column_inclusive() { + max_column_inclusive_ = false; + clear_has_max_column_inclusive(); +} +inline bool ColumnRangeFilter::max_column_inclusive() const { + return max_column_inclusive_; +} +inline void ColumnRangeFilter::set_max_column_inclusive(bool value) { + set_has_max_column_inclusive(); + max_column_inclusive_ = value; +} + +// ------------------------------------------------------------------- + +// CompareFilter + +// required .hbase.pb.CompareType compare_op = 1; +inline bool CompareFilter::has_compare_op() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CompareFilter::set_has_compare_op() { + _has_bits_[0] |= 0x00000001u; +} +inline void CompareFilter::clear_has_compare_op() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CompareFilter::clear_compare_op() { + compare_op_ = 0; + clear_has_compare_op(); +} +inline ::hbase::pb::CompareType CompareFilter::compare_op() const { + return static_cast< ::hbase::pb::CompareType >(compare_op_); +} +inline void CompareFilter::set_compare_op(::hbase::pb::CompareType value) { + assert(::hbase::pb::CompareType_IsValid(value)); + set_has_compare_op(); + compare_op_ = value; +} + +// optional .hbase.pb.Comparator comparator = 2; +inline bool CompareFilter::has_comparator() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CompareFilter::set_has_comparator() { + _has_bits_[0] |= 0x00000002u; +} +inline void CompareFilter::clear_has_comparator() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CompareFilter::clear_comparator() { + if (comparator_ != NULL) comparator_->::hbase::pb::Comparator::Clear(); + clear_has_comparator(); +} +inline const ::hbase::pb::Comparator& CompareFilter::comparator() const { + return comparator_ != NULL ? *comparator_ : *default_instance_->comparator_; +} +inline ::hbase::pb::Comparator* CompareFilter::mutable_comparator() { + set_has_comparator(); + if (comparator_ == NULL) comparator_ = new ::hbase::pb::Comparator; + return comparator_; +} +inline ::hbase::pb::Comparator* CompareFilter::release_comparator() { + clear_has_comparator(); + ::hbase::pb::Comparator* temp = comparator_; + comparator_ = NULL; + return temp; +} +inline void CompareFilter::set_allocated_comparator(::hbase::pb::Comparator* comparator) { + delete comparator_; + comparator_ = comparator; + if (comparator) { + set_has_comparator(); + } else { + clear_has_comparator(); + } +} + +// ------------------------------------------------------------------- + +// DependentColumnFilter + +// required .hbase.pb.CompareFilter compare_filter = 1; +inline bool DependentColumnFilter::has_compare_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DependentColumnFilter::set_has_compare_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void DependentColumnFilter::clear_has_compare_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DependentColumnFilter::clear_compare_filter() { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + clear_has_compare_filter(); +} +inline const ::hbase::pb::CompareFilter& DependentColumnFilter::compare_filter() const { + return compare_filter_ != NULL ? *compare_filter_ : *default_instance_->compare_filter_; +} +inline ::hbase::pb::CompareFilter* DependentColumnFilter::mutable_compare_filter() { + set_has_compare_filter(); + if (compare_filter_ == NULL) compare_filter_ = new ::hbase::pb::CompareFilter; + return compare_filter_; +} +inline ::hbase::pb::CompareFilter* DependentColumnFilter::release_compare_filter() { + clear_has_compare_filter(); + ::hbase::pb::CompareFilter* temp = compare_filter_; + compare_filter_ = NULL; + return temp; +} +inline void DependentColumnFilter::set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter) { + delete compare_filter_; + compare_filter_ = compare_filter; + if (compare_filter) { + set_has_compare_filter(); + } else { + clear_has_compare_filter(); + } +} + +// optional bytes column_family = 2; +inline bool DependentColumnFilter::has_column_family() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DependentColumnFilter::set_has_column_family() { + _has_bits_[0] |= 0x00000002u; +} +inline void DependentColumnFilter::clear_has_column_family() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DependentColumnFilter::clear_column_family() { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + column_family_->clear(); + } + clear_has_column_family(); +} +inline const ::std::string& DependentColumnFilter::column_family() const { + return *column_family_; +} +inline void DependentColumnFilter::set_column_family(const ::std::string& value) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(value); +} +inline void DependentColumnFilter::set_column_family(const char* value) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(value); +} +inline void DependentColumnFilter::set_column_family(const void* value, size_t size) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DependentColumnFilter::mutable_column_family() { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + return column_family_; +} +inline ::std::string* DependentColumnFilter::release_column_family() { + clear_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = column_family_; + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DependentColumnFilter::set_allocated_column_family(::std::string* column_family) { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + delete column_family_; + } + if (column_family) { + set_has_column_family(); + column_family_ = column_family; + } else { + clear_has_column_family(); + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes column_qualifier = 3; +inline bool DependentColumnFilter::has_column_qualifier() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DependentColumnFilter::set_has_column_qualifier() { + _has_bits_[0] |= 0x00000004u; +} +inline void DependentColumnFilter::clear_has_column_qualifier() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DependentColumnFilter::clear_column_qualifier() { + if (column_qualifier_ != &::google::protobuf::internal::kEmptyString) { + column_qualifier_->clear(); + } + clear_has_column_qualifier(); +} +inline const ::std::string& DependentColumnFilter::column_qualifier() const { + return *column_qualifier_; +} +inline void DependentColumnFilter::set_column_qualifier(const ::std::string& value) { + set_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + column_qualifier_ = new ::std::string; + } + column_qualifier_->assign(value); +} +inline void DependentColumnFilter::set_column_qualifier(const char* value) { + set_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + column_qualifier_ = new ::std::string; + } + column_qualifier_->assign(value); +} +inline void DependentColumnFilter::set_column_qualifier(const void* value, size_t size) { + set_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + column_qualifier_ = new ::std::string; + } + column_qualifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DependentColumnFilter::mutable_column_qualifier() { + set_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + column_qualifier_ = new ::std::string; + } + return column_qualifier_; +} +inline ::std::string* DependentColumnFilter::release_column_qualifier() { + clear_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = column_qualifier_; + column_qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DependentColumnFilter::set_allocated_column_qualifier(::std::string* column_qualifier) { + if (column_qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete column_qualifier_; + } + if (column_qualifier) { + set_has_column_qualifier(); + column_qualifier_ = column_qualifier; + } else { + clear_has_column_qualifier(); + column_qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool drop_dependent_column = 4; +inline bool DependentColumnFilter::has_drop_dependent_column() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DependentColumnFilter::set_has_drop_dependent_column() { + _has_bits_[0] |= 0x00000008u; +} +inline void DependentColumnFilter::clear_has_drop_dependent_column() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DependentColumnFilter::clear_drop_dependent_column() { + drop_dependent_column_ = false; + clear_has_drop_dependent_column(); +} +inline bool DependentColumnFilter::drop_dependent_column() const { + return drop_dependent_column_; +} +inline void DependentColumnFilter::set_drop_dependent_column(bool value) { + set_has_drop_dependent_column(); + drop_dependent_column_ = value; +} + +// ------------------------------------------------------------------- + +// FamilyFilter + +// required .hbase.pb.CompareFilter compare_filter = 1; +inline bool FamilyFilter::has_compare_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FamilyFilter::set_has_compare_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void FamilyFilter::clear_has_compare_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FamilyFilter::clear_compare_filter() { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + clear_has_compare_filter(); +} +inline const ::hbase::pb::CompareFilter& FamilyFilter::compare_filter() const { + return compare_filter_ != NULL ? *compare_filter_ : *default_instance_->compare_filter_; +} +inline ::hbase::pb::CompareFilter* FamilyFilter::mutable_compare_filter() { + set_has_compare_filter(); + if (compare_filter_ == NULL) compare_filter_ = new ::hbase::pb::CompareFilter; + return compare_filter_; +} +inline ::hbase::pb::CompareFilter* FamilyFilter::release_compare_filter() { + clear_has_compare_filter(); + ::hbase::pb::CompareFilter* temp = compare_filter_; + compare_filter_ = NULL; + return temp; +} +inline void FamilyFilter::set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter) { + delete compare_filter_; + compare_filter_ = compare_filter; + if (compare_filter) { + set_has_compare_filter(); + } else { + clear_has_compare_filter(); + } +} + +// ------------------------------------------------------------------- + +// FilterList + +// required .hbase.pb.FilterList.Operator operator = 1; +inline bool FilterList::has_operator_() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FilterList::set_has_operator_() { + _has_bits_[0] |= 0x00000001u; +} +inline void FilterList::clear_has_operator_() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FilterList::clear_operator_() { + operator__ = 1; + clear_has_operator_(); +} +inline ::hbase::pb::FilterList_Operator FilterList::operator_() const { + return static_cast< ::hbase::pb::FilterList_Operator >(operator__); +} +inline void FilterList::set_operator_(::hbase::pb::FilterList_Operator value) { + assert(::hbase::pb::FilterList_Operator_IsValid(value)); + set_has_operator_(); + operator__ = value; +} + +// repeated .hbase.pb.Filter filters = 2; +inline int FilterList::filters_size() const { + return filters_.size(); +} +inline void FilterList::clear_filters() { + filters_.Clear(); +} +inline const ::hbase::pb::Filter& FilterList::filters(int index) const { + return filters_.Get(index); +} +inline ::hbase::pb::Filter* FilterList::mutable_filters(int index) { + return filters_.Mutable(index); +} +inline ::hbase::pb::Filter* FilterList::add_filters() { + return filters_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Filter >& +FilterList::filters() const { + return filters_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Filter >* +FilterList::mutable_filters() { + return &filters_; +} + +// ------------------------------------------------------------------- + +// FilterWrapper + +// required .hbase.pb.Filter filter = 1; +inline bool FilterWrapper::has_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FilterWrapper::set_has_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void FilterWrapper::clear_has_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FilterWrapper::clear_filter() { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + clear_has_filter(); +} +inline const ::hbase::pb::Filter& FilterWrapper::filter() const { + return filter_ != NULL ? *filter_ : *default_instance_->filter_; +} +inline ::hbase::pb::Filter* FilterWrapper::mutable_filter() { + set_has_filter(); + if (filter_ == NULL) filter_ = new ::hbase::pb::Filter; + return filter_; +} +inline ::hbase::pb::Filter* FilterWrapper::release_filter() { + clear_has_filter(); + ::hbase::pb::Filter* temp = filter_; + filter_ = NULL; + return temp; +} +inline void FilterWrapper::set_allocated_filter(::hbase::pb::Filter* filter) { + delete filter_; + filter_ = filter; + if (filter) { + set_has_filter(); + } else { + clear_has_filter(); + } +} + +// ------------------------------------------------------------------- + +// FirstKeyOnlyFilter + +// ------------------------------------------------------------------- + +// FirstKeyValueMatchingQualifiersFilter + +// repeated bytes qualifiers = 1; +inline int FirstKeyValueMatchingQualifiersFilter::qualifiers_size() const { + return qualifiers_.size(); +} +inline void FirstKeyValueMatchingQualifiersFilter::clear_qualifiers() { + qualifiers_.Clear(); +} +inline const ::std::string& FirstKeyValueMatchingQualifiersFilter::qualifiers(int index) const { + return qualifiers_.Get(index); +} +inline ::std::string* FirstKeyValueMatchingQualifiersFilter::mutable_qualifiers(int index) { + return qualifiers_.Mutable(index); +} +inline void FirstKeyValueMatchingQualifiersFilter::set_qualifiers(int index, const ::std::string& value) { + qualifiers_.Mutable(index)->assign(value); +} +inline void FirstKeyValueMatchingQualifiersFilter::set_qualifiers(int index, const char* value) { + qualifiers_.Mutable(index)->assign(value); +} +inline void FirstKeyValueMatchingQualifiersFilter::set_qualifiers(int index, const void* value, size_t size) { + qualifiers_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* FirstKeyValueMatchingQualifiersFilter::add_qualifiers() { + return qualifiers_.Add(); +} +inline void FirstKeyValueMatchingQualifiersFilter::add_qualifiers(const ::std::string& value) { + qualifiers_.Add()->assign(value); +} +inline void FirstKeyValueMatchingQualifiersFilter::add_qualifiers(const char* value) { + qualifiers_.Add()->assign(value); +} +inline void FirstKeyValueMatchingQualifiersFilter::add_qualifiers(const void* value, size_t size) { + qualifiers_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +FirstKeyValueMatchingQualifiersFilter::qualifiers() const { + return qualifiers_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +FirstKeyValueMatchingQualifiersFilter::mutable_qualifiers() { + return &qualifiers_; +} + +// ------------------------------------------------------------------- + +// FuzzyRowFilter + +// repeated .hbase.pb.BytesBytesPair fuzzy_keys_data = 1; +inline int FuzzyRowFilter::fuzzy_keys_data_size() const { + return fuzzy_keys_data_.size(); +} +inline void FuzzyRowFilter::clear_fuzzy_keys_data() { + fuzzy_keys_data_.Clear(); +} +inline const ::hbase::pb::BytesBytesPair& FuzzyRowFilter::fuzzy_keys_data(int index) const { + return fuzzy_keys_data_.Get(index); +} +inline ::hbase::pb::BytesBytesPair* FuzzyRowFilter::mutable_fuzzy_keys_data(int index) { + return fuzzy_keys_data_.Mutable(index); +} +inline ::hbase::pb::BytesBytesPair* FuzzyRowFilter::add_fuzzy_keys_data() { + return fuzzy_keys_data_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& +FuzzyRowFilter::fuzzy_keys_data() const { + return fuzzy_keys_data_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* +FuzzyRowFilter::mutable_fuzzy_keys_data() { + return &fuzzy_keys_data_; +} + +// ------------------------------------------------------------------- + +// InclusiveStopFilter + +// optional bytes stop_row_key = 1; +inline bool InclusiveStopFilter::has_stop_row_key() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void InclusiveStopFilter::set_has_stop_row_key() { + _has_bits_[0] |= 0x00000001u; +} +inline void InclusiveStopFilter::clear_has_stop_row_key() { + _has_bits_[0] &= ~0x00000001u; +} +inline void InclusiveStopFilter::clear_stop_row_key() { + if (stop_row_key_ != &::google::protobuf::internal::kEmptyString) { + stop_row_key_->clear(); + } + clear_has_stop_row_key(); +} +inline const ::std::string& InclusiveStopFilter::stop_row_key() const { + return *stop_row_key_; +} +inline void InclusiveStopFilter::set_stop_row_key(const ::std::string& value) { + set_has_stop_row_key(); + if (stop_row_key_ == &::google::protobuf::internal::kEmptyString) { + stop_row_key_ = new ::std::string; + } + stop_row_key_->assign(value); +} +inline void InclusiveStopFilter::set_stop_row_key(const char* value) { + set_has_stop_row_key(); + if (stop_row_key_ == &::google::protobuf::internal::kEmptyString) { + stop_row_key_ = new ::std::string; + } + stop_row_key_->assign(value); +} +inline void InclusiveStopFilter::set_stop_row_key(const void* value, size_t size) { + set_has_stop_row_key(); + if (stop_row_key_ == &::google::protobuf::internal::kEmptyString) { + stop_row_key_ = new ::std::string; + } + stop_row_key_->assign(reinterpret_cast(value), size); +} +inline ::std::string* InclusiveStopFilter::mutable_stop_row_key() { + set_has_stop_row_key(); + if (stop_row_key_ == &::google::protobuf::internal::kEmptyString) { + stop_row_key_ = new ::std::string; + } + return stop_row_key_; +} +inline ::std::string* InclusiveStopFilter::release_stop_row_key() { + clear_has_stop_row_key(); + if (stop_row_key_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = stop_row_key_; + stop_row_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void InclusiveStopFilter::set_allocated_stop_row_key(::std::string* stop_row_key) { + if (stop_row_key_ != &::google::protobuf::internal::kEmptyString) { + delete stop_row_key_; + } + if (stop_row_key) { + set_has_stop_row_key(); + stop_row_key_ = stop_row_key; + } else { + clear_has_stop_row_key(); + stop_row_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// KeyOnlyFilter + +// required bool len_as_val = 1; +inline bool KeyOnlyFilter::has_len_as_val() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void KeyOnlyFilter::set_has_len_as_val() { + _has_bits_[0] |= 0x00000001u; +} +inline void KeyOnlyFilter::clear_has_len_as_val() { + _has_bits_[0] &= ~0x00000001u; +} +inline void KeyOnlyFilter::clear_len_as_val() { + len_as_val_ = false; + clear_has_len_as_val(); +} +inline bool KeyOnlyFilter::len_as_val() const { + return len_as_val_; +} +inline void KeyOnlyFilter::set_len_as_val(bool value) { + set_has_len_as_val(); + len_as_val_ = value; +} + +// ------------------------------------------------------------------- + +// MultipleColumnPrefixFilter + +// repeated bytes sorted_prefixes = 1; +inline int MultipleColumnPrefixFilter::sorted_prefixes_size() const { + return sorted_prefixes_.size(); +} +inline void MultipleColumnPrefixFilter::clear_sorted_prefixes() { + sorted_prefixes_.Clear(); +} +inline const ::std::string& MultipleColumnPrefixFilter::sorted_prefixes(int index) const { + return sorted_prefixes_.Get(index); +} +inline ::std::string* MultipleColumnPrefixFilter::mutable_sorted_prefixes(int index) { + return sorted_prefixes_.Mutable(index); +} +inline void MultipleColumnPrefixFilter::set_sorted_prefixes(int index, const ::std::string& value) { + sorted_prefixes_.Mutable(index)->assign(value); +} +inline void MultipleColumnPrefixFilter::set_sorted_prefixes(int index, const char* value) { + sorted_prefixes_.Mutable(index)->assign(value); +} +inline void MultipleColumnPrefixFilter::set_sorted_prefixes(int index, const void* value, size_t size) { + sorted_prefixes_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* MultipleColumnPrefixFilter::add_sorted_prefixes() { + return sorted_prefixes_.Add(); +} +inline void MultipleColumnPrefixFilter::add_sorted_prefixes(const ::std::string& value) { + sorted_prefixes_.Add()->assign(value); +} +inline void MultipleColumnPrefixFilter::add_sorted_prefixes(const char* value) { + sorted_prefixes_.Add()->assign(value); +} +inline void MultipleColumnPrefixFilter::add_sorted_prefixes(const void* value, size_t size) { + sorted_prefixes_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +MultipleColumnPrefixFilter::sorted_prefixes() const { + return sorted_prefixes_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +MultipleColumnPrefixFilter::mutable_sorted_prefixes() { + return &sorted_prefixes_; +} + +// ------------------------------------------------------------------- + +// PageFilter + +// required int64 page_size = 1; +inline bool PageFilter::has_page_size() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PageFilter::set_has_page_size() { + _has_bits_[0] |= 0x00000001u; +} +inline void PageFilter::clear_has_page_size() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PageFilter::clear_page_size() { + page_size_ = GOOGLE_LONGLONG(0); + clear_has_page_size(); +} +inline ::google::protobuf::int64 PageFilter::page_size() const { + return page_size_; +} +inline void PageFilter::set_page_size(::google::protobuf::int64 value) { + set_has_page_size(); + page_size_ = value; +} + +// ------------------------------------------------------------------- + +// PrefixFilter + +// optional bytes prefix = 1; +inline bool PrefixFilter::has_prefix() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PrefixFilter::set_has_prefix() { + _has_bits_[0] |= 0x00000001u; +} +inline void PrefixFilter::clear_has_prefix() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PrefixFilter::clear_prefix() { + if (prefix_ != &::google::protobuf::internal::kEmptyString) { + prefix_->clear(); + } + clear_has_prefix(); +} +inline const ::std::string& PrefixFilter::prefix() const { + return *prefix_; +} +inline void PrefixFilter::set_prefix(const ::std::string& value) { + set_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + prefix_ = new ::std::string; + } + prefix_->assign(value); +} +inline void PrefixFilter::set_prefix(const char* value) { + set_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + prefix_ = new ::std::string; + } + prefix_->assign(value); +} +inline void PrefixFilter::set_prefix(const void* value, size_t size) { + set_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + prefix_ = new ::std::string; + } + prefix_->assign(reinterpret_cast(value), size); +} +inline ::std::string* PrefixFilter::mutable_prefix() { + set_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + prefix_ = new ::std::string; + } + return prefix_; +} +inline ::std::string* PrefixFilter::release_prefix() { + clear_has_prefix(); + if (prefix_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = prefix_; + prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void PrefixFilter::set_allocated_prefix(::std::string* prefix) { + if (prefix_ != &::google::protobuf::internal::kEmptyString) { + delete prefix_; + } + if (prefix) { + set_has_prefix(); + prefix_ = prefix; + } else { + clear_has_prefix(); + prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// QualifierFilter + +// required .hbase.pb.CompareFilter compare_filter = 1; +inline bool QualifierFilter::has_compare_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void QualifierFilter::set_has_compare_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void QualifierFilter::clear_has_compare_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void QualifierFilter::clear_compare_filter() { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + clear_has_compare_filter(); +} +inline const ::hbase::pb::CompareFilter& QualifierFilter::compare_filter() const { + return compare_filter_ != NULL ? *compare_filter_ : *default_instance_->compare_filter_; +} +inline ::hbase::pb::CompareFilter* QualifierFilter::mutable_compare_filter() { + set_has_compare_filter(); + if (compare_filter_ == NULL) compare_filter_ = new ::hbase::pb::CompareFilter; + return compare_filter_; +} +inline ::hbase::pb::CompareFilter* QualifierFilter::release_compare_filter() { + clear_has_compare_filter(); + ::hbase::pb::CompareFilter* temp = compare_filter_; + compare_filter_ = NULL; + return temp; +} +inline void QualifierFilter::set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter) { + delete compare_filter_; + compare_filter_ = compare_filter; + if (compare_filter) { + set_has_compare_filter(); + } else { + clear_has_compare_filter(); + } +} + +// ------------------------------------------------------------------- + +// RandomRowFilter + +// required float chance = 1; +inline bool RandomRowFilter::has_chance() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RandomRowFilter::set_has_chance() { + _has_bits_[0] |= 0x00000001u; +} +inline void RandomRowFilter::clear_has_chance() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RandomRowFilter::clear_chance() { + chance_ = 0; + clear_has_chance(); +} +inline float RandomRowFilter::chance() const { + return chance_; +} +inline void RandomRowFilter::set_chance(float value) { + set_has_chance(); + chance_ = value; +} + +// ------------------------------------------------------------------- + +// RowFilter + +// required .hbase.pb.CompareFilter compare_filter = 1; +inline bool RowFilter::has_compare_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RowFilter::set_has_compare_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void RowFilter::clear_has_compare_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RowFilter::clear_compare_filter() { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + clear_has_compare_filter(); +} +inline const ::hbase::pb::CompareFilter& RowFilter::compare_filter() const { + return compare_filter_ != NULL ? *compare_filter_ : *default_instance_->compare_filter_; +} +inline ::hbase::pb::CompareFilter* RowFilter::mutable_compare_filter() { + set_has_compare_filter(); + if (compare_filter_ == NULL) compare_filter_ = new ::hbase::pb::CompareFilter; + return compare_filter_; +} +inline ::hbase::pb::CompareFilter* RowFilter::release_compare_filter() { + clear_has_compare_filter(); + ::hbase::pb::CompareFilter* temp = compare_filter_; + compare_filter_ = NULL; + return temp; +} +inline void RowFilter::set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter) { + delete compare_filter_; + compare_filter_ = compare_filter; + if (compare_filter) { + set_has_compare_filter(); + } else { + clear_has_compare_filter(); + } +} + +// ------------------------------------------------------------------- + +// SingleColumnValueExcludeFilter + +// required .hbase.pb.SingleColumnValueFilter single_column_value_filter = 1; +inline bool SingleColumnValueExcludeFilter::has_single_column_value_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SingleColumnValueExcludeFilter::set_has_single_column_value_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void SingleColumnValueExcludeFilter::clear_has_single_column_value_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SingleColumnValueExcludeFilter::clear_single_column_value_filter() { + if (single_column_value_filter_ != NULL) single_column_value_filter_->::hbase::pb::SingleColumnValueFilter::Clear(); + clear_has_single_column_value_filter(); +} +inline const ::hbase::pb::SingleColumnValueFilter& SingleColumnValueExcludeFilter::single_column_value_filter() const { + return single_column_value_filter_ != NULL ? *single_column_value_filter_ : *default_instance_->single_column_value_filter_; +} +inline ::hbase::pb::SingleColumnValueFilter* SingleColumnValueExcludeFilter::mutable_single_column_value_filter() { + set_has_single_column_value_filter(); + if (single_column_value_filter_ == NULL) single_column_value_filter_ = new ::hbase::pb::SingleColumnValueFilter; + return single_column_value_filter_; +} +inline ::hbase::pb::SingleColumnValueFilter* SingleColumnValueExcludeFilter::release_single_column_value_filter() { + clear_has_single_column_value_filter(); + ::hbase::pb::SingleColumnValueFilter* temp = single_column_value_filter_; + single_column_value_filter_ = NULL; + return temp; +} +inline void SingleColumnValueExcludeFilter::set_allocated_single_column_value_filter(::hbase::pb::SingleColumnValueFilter* single_column_value_filter) { + delete single_column_value_filter_; + single_column_value_filter_ = single_column_value_filter; + if (single_column_value_filter) { + set_has_single_column_value_filter(); + } else { + clear_has_single_column_value_filter(); + } +} + +// ------------------------------------------------------------------- + +// SingleColumnValueFilter + +// optional bytes column_family = 1; +inline bool SingleColumnValueFilter::has_column_family() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SingleColumnValueFilter::set_has_column_family() { + _has_bits_[0] |= 0x00000001u; +} +inline void SingleColumnValueFilter::clear_has_column_family() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SingleColumnValueFilter::clear_column_family() { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + column_family_->clear(); + } + clear_has_column_family(); +} +inline const ::std::string& SingleColumnValueFilter::column_family() const { + return *column_family_; +} +inline void SingleColumnValueFilter::set_column_family(const ::std::string& value) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(value); +} +inline void SingleColumnValueFilter::set_column_family(const char* value) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(value); +} +inline void SingleColumnValueFilter::set_column_family(const void* value, size_t size) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SingleColumnValueFilter::mutable_column_family() { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + return column_family_; +} +inline ::std::string* SingleColumnValueFilter::release_column_family() { + clear_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = column_family_; + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SingleColumnValueFilter::set_allocated_column_family(::std::string* column_family) { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + delete column_family_; + } + if (column_family) { + set_has_column_family(); + column_family_ = column_family; + } else { + clear_has_column_family(); + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes column_qualifier = 2; +inline bool SingleColumnValueFilter::has_column_qualifier() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SingleColumnValueFilter::set_has_column_qualifier() { + _has_bits_[0] |= 0x00000002u; +} +inline void SingleColumnValueFilter::clear_has_column_qualifier() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SingleColumnValueFilter::clear_column_qualifier() { + if (column_qualifier_ != &::google::protobuf::internal::kEmptyString) { + column_qualifier_->clear(); + } + clear_has_column_qualifier(); +} +inline const ::std::string& SingleColumnValueFilter::column_qualifier() const { + return *column_qualifier_; +} +inline void SingleColumnValueFilter::set_column_qualifier(const ::std::string& value) { + set_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + column_qualifier_ = new ::std::string; + } + column_qualifier_->assign(value); +} +inline void SingleColumnValueFilter::set_column_qualifier(const char* value) { + set_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + column_qualifier_ = new ::std::string; + } + column_qualifier_->assign(value); +} +inline void SingleColumnValueFilter::set_column_qualifier(const void* value, size_t size) { + set_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + column_qualifier_ = new ::std::string; + } + column_qualifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SingleColumnValueFilter::mutable_column_qualifier() { + set_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + column_qualifier_ = new ::std::string; + } + return column_qualifier_; +} +inline ::std::string* SingleColumnValueFilter::release_column_qualifier() { + clear_has_column_qualifier(); + if (column_qualifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = column_qualifier_; + column_qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SingleColumnValueFilter::set_allocated_column_qualifier(::std::string* column_qualifier) { + if (column_qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete column_qualifier_; + } + if (column_qualifier) { + set_has_column_qualifier(); + column_qualifier_ = column_qualifier; + } else { + clear_has_column_qualifier(); + column_qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required .hbase.pb.CompareType compare_op = 3; +inline bool SingleColumnValueFilter::has_compare_op() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SingleColumnValueFilter::set_has_compare_op() { + _has_bits_[0] |= 0x00000004u; +} +inline void SingleColumnValueFilter::clear_has_compare_op() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SingleColumnValueFilter::clear_compare_op() { + compare_op_ = 0; + clear_has_compare_op(); +} +inline ::hbase::pb::CompareType SingleColumnValueFilter::compare_op() const { + return static_cast< ::hbase::pb::CompareType >(compare_op_); +} +inline void SingleColumnValueFilter::set_compare_op(::hbase::pb::CompareType value) { + assert(::hbase::pb::CompareType_IsValid(value)); + set_has_compare_op(); + compare_op_ = value; +} + +// required .hbase.pb.Comparator comparator = 4; +inline bool SingleColumnValueFilter::has_comparator() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void SingleColumnValueFilter::set_has_comparator() { + _has_bits_[0] |= 0x00000008u; +} +inline void SingleColumnValueFilter::clear_has_comparator() { + _has_bits_[0] &= ~0x00000008u; +} +inline void SingleColumnValueFilter::clear_comparator() { + if (comparator_ != NULL) comparator_->::hbase::pb::Comparator::Clear(); + clear_has_comparator(); +} +inline const ::hbase::pb::Comparator& SingleColumnValueFilter::comparator() const { + return comparator_ != NULL ? *comparator_ : *default_instance_->comparator_; +} +inline ::hbase::pb::Comparator* SingleColumnValueFilter::mutable_comparator() { + set_has_comparator(); + if (comparator_ == NULL) comparator_ = new ::hbase::pb::Comparator; + return comparator_; +} +inline ::hbase::pb::Comparator* SingleColumnValueFilter::release_comparator() { + clear_has_comparator(); + ::hbase::pb::Comparator* temp = comparator_; + comparator_ = NULL; + return temp; +} +inline void SingleColumnValueFilter::set_allocated_comparator(::hbase::pb::Comparator* comparator) { + delete comparator_; + comparator_ = comparator; + if (comparator) { + set_has_comparator(); + } else { + clear_has_comparator(); + } +} + +// optional bool filter_if_missing = 5; +inline bool SingleColumnValueFilter::has_filter_if_missing() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void SingleColumnValueFilter::set_has_filter_if_missing() { + _has_bits_[0] |= 0x00000010u; +} +inline void SingleColumnValueFilter::clear_has_filter_if_missing() { + _has_bits_[0] &= ~0x00000010u; +} +inline void SingleColumnValueFilter::clear_filter_if_missing() { + filter_if_missing_ = false; + clear_has_filter_if_missing(); +} +inline bool SingleColumnValueFilter::filter_if_missing() const { + return filter_if_missing_; +} +inline void SingleColumnValueFilter::set_filter_if_missing(bool value) { + set_has_filter_if_missing(); + filter_if_missing_ = value; +} + +// optional bool latest_version_only = 6; +inline bool SingleColumnValueFilter::has_latest_version_only() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void SingleColumnValueFilter::set_has_latest_version_only() { + _has_bits_[0] |= 0x00000020u; +} +inline void SingleColumnValueFilter::clear_has_latest_version_only() { + _has_bits_[0] &= ~0x00000020u; +} +inline void SingleColumnValueFilter::clear_latest_version_only() { + latest_version_only_ = false; + clear_has_latest_version_only(); +} +inline bool SingleColumnValueFilter::latest_version_only() const { + return latest_version_only_; +} +inline void SingleColumnValueFilter::set_latest_version_only(bool value) { + set_has_latest_version_only(); + latest_version_only_ = value; +} + +// ------------------------------------------------------------------- + +// SkipFilter + +// required .hbase.pb.Filter filter = 1; +inline bool SkipFilter::has_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SkipFilter::set_has_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void SkipFilter::clear_has_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SkipFilter::clear_filter() { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + clear_has_filter(); +} +inline const ::hbase::pb::Filter& SkipFilter::filter() const { + return filter_ != NULL ? *filter_ : *default_instance_->filter_; +} +inline ::hbase::pb::Filter* SkipFilter::mutable_filter() { + set_has_filter(); + if (filter_ == NULL) filter_ = new ::hbase::pb::Filter; + return filter_; +} +inline ::hbase::pb::Filter* SkipFilter::release_filter() { + clear_has_filter(); + ::hbase::pb::Filter* temp = filter_; + filter_ = NULL; + return temp; +} +inline void SkipFilter::set_allocated_filter(::hbase::pb::Filter* filter) { + delete filter_; + filter_ = filter; + if (filter) { + set_has_filter(); + } else { + clear_has_filter(); + } +} + +// ------------------------------------------------------------------- + +// TimestampsFilter + +// repeated int64 timestamps = 1 [packed = true]; +inline int TimestampsFilter::timestamps_size() const { + return timestamps_.size(); +} +inline void TimestampsFilter::clear_timestamps() { + timestamps_.Clear(); +} +inline ::google::protobuf::int64 TimestampsFilter::timestamps(int index) const { + return timestamps_.Get(index); +} +inline void TimestampsFilter::set_timestamps(int index, ::google::protobuf::int64 value) { + timestamps_.Set(index, value); +} +inline void TimestampsFilter::add_timestamps(::google::protobuf::int64 value) { + timestamps_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +TimestampsFilter::timestamps() const { + return timestamps_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +TimestampsFilter::mutable_timestamps() { + return ×tamps_; +} + +// ------------------------------------------------------------------- + +// ValueFilter + +// required .hbase.pb.CompareFilter compare_filter = 1; +inline bool ValueFilter::has_compare_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ValueFilter::set_has_compare_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void ValueFilter::clear_has_compare_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ValueFilter::clear_compare_filter() { + if (compare_filter_ != NULL) compare_filter_->::hbase::pb::CompareFilter::Clear(); + clear_has_compare_filter(); +} +inline const ::hbase::pb::CompareFilter& ValueFilter::compare_filter() const { + return compare_filter_ != NULL ? *compare_filter_ : *default_instance_->compare_filter_; +} +inline ::hbase::pb::CompareFilter* ValueFilter::mutable_compare_filter() { + set_has_compare_filter(); + if (compare_filter_ == NULL) compare_filter_ = new ::hbase::pb::CompareFilter; + return compare_filter_; +} +inline ::hbase::pb::CompareFilter* ValueFilter::release_compare_filter() { + clear_has_compare_filter(); + ::hbase::pb::CompareFilter* temp = compare_filter_; + compare_filter_ = NULL; + return temp; +} +inline void ValueFilter::set_allocated_compare_filter(::hbase::pb::CompareFilter* compare_filter) { + delete compare_filter_; + compare_filter_ = compare_filter; + if (compare_filter) { + set_has_compare_filter(); + } else { + clear_has_compare_filter(); + } +} + +// ------------------------------------------------------------------- + +// WhileMatchFilter + +// required .hbase.pb.Filter filter = 1; +inline bool WhileMatchFilter::has_filter() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WhileMatchFilter::set_has_filter() { + _has_bits_[0] |= 0x00000001u; +} +inline void WhileMatchFilter::clear_has_filter() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WhileMatchFilter::clear_filter() { + if (filter_ != NULL) filter_->::hbase::pb::Filter::Clear(); + clear_has_filter(); +} +inline const ::hbase::pb::Filter& WhileMatchFilter::filter() const { + return filter_ != NULL ? *filter_ : *default_instance_->filter_; +} +inline ::hbase::pb::Filter* WhileMatchFilter::mutable_filter() { + set_has_filter(); + if (filter_ == NULL) filter_ = new ::hbase::pb::Filter; + return filter_; +} +inline ::hbase::pb::Filter* WhileMatchFilter::release_filter() { + clear_has_filter(); + ::hbase::pb::Filter* temp = filter_; + filter_ = NULL; + return temp; +} +inline void WhileMatchFilter::set_allocated_filter(::hbase::pb::Filter* filter) { + delete filter_; + filter_ = filter; + if (filter) { + set_has_filter(); + } else { + clear_has_filter(); + } +} + +// ------------------------------------------------------------------- + +// FilterAllFilter + +// ------------------------------------------------------------------- + +// RowRange + +// optional bytes start_row = 1; +inline bool RowRange::has_start_row() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RowRange::set_has_start_row() { + _has_bits_[0] |= 0x00000001u; +} +inline void RowRange::clear_has_start_row() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RowRange::clear_start_row() { + if (start_row_ != &::google::protobuf::internal::kEmptyString) { + start_row_->clear(); + } + clear_has_start_row(); +} +inline const ::std::string& RowRange::start_row() const { + return *start_row_; +} +inline void RowRange::set_start_row(const ::std::string& value) { + set_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + start_row_ = new ::std::string; + } + start_row_->assign(value); +} +inline void RowRange::set_start_row(const char* value) { + set_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + start_row_ = new ::std::string; + } + start_row_->assign(value); +} +inline void RowRange::set_start_row(const void* value, size_t size) { + set_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + start_row_ = new ::std::string; + } + start_row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RowRange::mutable_start_row() { + set_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + start_row_ = new ::std::string; + } + return start_row_; +} +inline ::std::string* RowRange::release_start_row() { + clear_has_start_row(); + if (start_row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = start_row_; + start_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RowRange::set_allocated_start_row(::std::string* start_row) { + if (start_row_ != &::google::protobuf::internal::kEmptyString) { + delete start_row_; + } + if (start_row) { + set_has_start_row(); + start_row_ = start_row; + } else { + clear_has_start_row(); + start_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool start_row_inclusive = 2; +inline bool RowRange::has_start_row_inclusive() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RowRange::set_has_start_row_inclusive() { + _has_bits_[0] |= 0x00000002u; +} +inline void RowRange::clear_has_start_row_inclusive() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RowRange::clear_start_row_inclusive() { + start_row_inclusive_ = false; + clear_has_start_row_inclusive(); +} +inline bool RowRange::start_row_inclusive() const { + return start_row_inclusive_; +} +inline void RowRange::set_start_row_inclusive(bool value) { + set_has_start_row_inclusive(); + start_row_inclusive_ = value; +} + +// optional bytes stop_row = 3; +inline bool RowRange::has_stop_row() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RowRange::set_has_stop_row() { + _has_bits_[0] |= 0x00000004u; +} +inline void RowRange::clear_has_stop_row() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RowRange::clear_stop_row() { + if (stop_row_ != &::google::protobuf::internal::kEmptyString) { + stop_row_->clear(); + } + clear_has_stop_row(); +} +inline const ::std::string& RowRange::stop_row() const { + return *stop_row_; +} +inline void RowRange::set_stop_row(const ::std::string& value) { + set_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + stop_row_ = new ::std::string; + } + stop_row_->assign(value); +} +inline void RowRange::set_stop_row(const char* value) { + set_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + stop_row_ = new ::std::string; + } + stop_row_->assign(value); +} +inline void RowRange::set_stop_row(const void* value, size_t size) { + set_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + stop_row_ = new ::std::string; + } + stop_row_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RowRange::mutable_stop_row() { + set_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + stop_row_ = new ::std::string; + } + return stop_row_; +} +inline ::std::string* RowRange::release_stop_row() { + clear_has_stop_row(); + if (stop_row_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = stop_row_; + stop_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RowRange::set_allocated_stop_row(::std::string* stop_row) { + if (stop_row_ != &::google::protobuf::internal::kEmptyString) { + delete stop_row_; + } + if (stop_row) { + set_has_stop_row(); + stop_row_ = stop_row; + } else { + clear_has_stop_row(); + stop_row_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool stop_row_inclusive = 4; +inline bool RowRange::has_stop_row_inclusive() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RowRange::set_has_stop_row_inclusive() { + _has_bits_[0] |= 0x00000008u; +} +inline void RowRange::clear_has_stop_row_inclusive() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RowRange::clear_stop_row_inclusive() { + stop_row_inclusive_ = false; + clear_has_stop_row_inclusive(); +} +inline bool RowRange::stop_row_inclusive() const { + return stop_row_inclusive_; +} +inline void RowRange::set_stop_row_inclusive(bool value) { + set_has_stop_row_inclusive(); + stop_row_inclusive_ = value; +} + +// ------------------------------------------------------------------- + +// MultiRowRangeFilter + +// repeated .hbase.pb.RowRange row_range_list = 1; +inline int MultiRowRangeFilter::row_range_list_size() const { + return row_range_list_.size(); +} +inline void MultiRowRangeFilter::clear_row_range_list() { + row_range_list_.Clear(); +} +inline const ::hbase::pb::RowRange& MultiRowRangeFilter::row_range_list(int index) const { + return row_range_list_.Get(index); +} +inline ::hbase::pb::RowRange* MultiRowRangeFilter::mutable_row_range_list(int index) { + return row_range_list_.Mutable(index); +} +inline ::hbase::pb::RowRange* MultiRowRangeFilter::add_row_range_list() { + return row_range_list_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RowRange >& +MultiRowRangeFilter::row_range_list() const { + return row_range_list_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RowRange >* +MultiRowRangeFilter::mutable_row_range_list() { + return &row_range_list_; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::FilterList_Operator>() { + return ::hbase::pb::FilterList_Operator_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Filter_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/HBase.pb.cc b/hbase-native-client/src/rpc/generated/HBase.pb.cc new file mode 100644 index 0000000..b00a9b7 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/HBase.pb.cc @@ -0,0 +1,8310 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HBase.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "HBase.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* TableName_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TableName_reflection_ = NULL; +const ::google::protobuf::Descriptor* TableSchema_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TableSchema_reflection_ = NULL; +const ::google::protobuf::Descriptor* TableState_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TableState_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* TableState_State_descriptor_ = NULL; +const ::google::protobuf::Descriptor* TableDescriptor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TableDescriptor_reflection_ = NULL; +const ::google::protobuf::Descriptor* ColumnFamilySchema_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ColumnFamilySchema_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* FavoredNodes_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FavoredNodes_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionSpecifier_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionSpecifier_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* RegionSpecifier_RegionSpecifierType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* TimeRange_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TimeRange_reflection_ = NULL; +const ::google::protobuf::Descriptor* ColumnFamilyTimeRange_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ColumnFamilyTimeRange_reflection_ = NULL; +const ::google::protobuf::Descriptor* ServerName_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ServerName_reflection_ = NULL; +const ::google::protobuf::Descriptor* Coprocessor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Coprocessor_reflection_ = NULL; +const ::google::protobuf::Descriptor* NameStringPair_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NameStringPair_reflection_ = NULL; +const ::google::protobuf::Descriptor* NameBytesPair_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NameBytesPair_reflection_ = NULL; +const ::google::protobuf::Descriptor* BytesBytesPair_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BytesBytesPair_reflection_ = NULL; +const ::google::protobuf::Descriptor* NameInt64Pair_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NameInt64Pair_reflection_ = NULL; +const ::google::protobuf::Descriptor* SnapshotDescription_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SnapshotDescription_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* SnapshotDescription_Type_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ProcedureDescription_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ProcedureDescription_reflection_ = NULL; +const ::google::protobuf::Descriptor* EmptyMsg_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EmptyMsg_reflection_ = NULL; +const ::google::protobuf::Descriptor* LongMsg_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + LongMsg_reflection_ = NULL; +const ::google::protobuf::Descriptor* DoubleMsg_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DoubleMsg_reflection_ = NULL; +const ::google::protobuf::Descriptor* BigDecimalMsg_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BigDecimalMsg_reflection_ = NULL; +const ::google::protobuf::Descriptor* UUID_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UUID_reflection_ = NULL; +const ::google::protobuf::Descriptor* NamespaceDescriptor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NamespaceDescriptor_reflection_ = NULL; +const ::google::protobuf::Descriptor* VersionInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + VersionInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionServerInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionServerInfo_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* CompareType_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* TimeUnit_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_HBase_2eproto() { + protobuf_AddDesc_HBase_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "HBase.proto"); + GOOGLE_CHECK(file != NULL); + TableName_descriptor_ = file->message_type(0); + static const int TableName_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableName, namespace__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableName, qualifier_), + }; + TableName_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TableName_descriptor_, + TableName::default_instance_, + TableName_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableName, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableName, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TableName)); + TableSchema_descriptor_ = file->message_type(1); + static const int TableSchema_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSchema, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSchema, attributes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSchema, column_families_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSchema, configuration_), + }; + TableSchema_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TableSchema_descriptor_, + TableSchema::default_instance_, + TableSchema_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSchema, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSchema, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TableSchema)); + TableState_descriptor_ = file->message_type(2); + static const int TableState_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableState, state_), + }; + TableState_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TableState_descriptor_, + TableState::default_instance_, + TableState_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableState, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableState, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TableState)); + TableState_State_descriptor_ = TableState_descriptor_->enum_type(0); + TableDescriptor_descriptor_ = file->message_type(3); + static const int TableDescriptor_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDescriptor, schema_), + }; + TableDescriptor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TableDescriptor_descriptor_, + TableDescriptor::default_instance_, + TableDescriptor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDescriptor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDescriptor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TableDescriptor)); + ColumnFamilySchema_descriptor_ = file->message_type(4); + static const int ColumnFamilySchema_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilySchema, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilySchema, attributes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilySchema, configuration_), + }; + ColumnFamilySchema_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ColumnFamilySchema_descriptor_, + ColumnFamilySchema::default_instance_, + ColumnFamilySchema_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilySchema, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilySchema, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ColumnFamilySchema)); + RegionInfo_descriptor_ = file->message_type(5); + static const int RegionInfo_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, region_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, start_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, end_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, offline_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, split_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, replica_id_), + }; + RegionInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionInfo_descriptor_, + RegionInfo::default_instance_, + RegionInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionInfo)); + FavoredNodes_descriptor_ = file->message_type(6); + static const int FavoredNodes_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FavoredNodes, favored_node_), + }; + FavoredNodes_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FavoredNodes_descriptor_, + FavoredNodes::default_instance_, + FavoredNodes_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FavoredNodes, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FavoredNodes, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FavoredNodes)); + RegionSpecifier_descriptor_ = file->message_type(7); + static const int RegionSpecifier_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionSpecifier, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionSpecifier, value_), + }; + RegionSpecifier_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionSpecifier_descriptor_, + RegionSpecifier::default_instance_, + RegionSpecifier_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionSpecifier, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionSpecifier, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionSpecifier)); + RegionSpecifier_RegionSpecifierType_descriptor_ = RegionSpecifier_descriptor_->enum_type(0); + TimeRange_descriptor_ = file->message_type(8); + static const int TimeRange_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeRange, from_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeRange, to_), + }; + TimeRange_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TimeRange_descriptor_, + TimeRange::default_instance_, + TimeRange_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeRange, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeRange, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TimeRange)); + ColumnFamilyTimeRange_descriptor_ = file->message_type(9); + static const int ColumnFamilyTimeRange_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilyTimeRange, column_family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilyTimeRange, time_range_), + }; + ColumnFamilyTimeRange_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ColumnFamilyTimeRange_descriptor_, + ColumnFamilyTimeRange::default_instance_, + ColumnFamilyTimeRange_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilyTimeRange, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnFamilyTimeRange, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ColumnFamilyTimeRange)); + ServerName_descriptor_ = file->message_type(10); + static const int ServerName_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerName, host_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerName, port_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerName, start_code_), + }; + ServerName_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ServerName_descriptor_, + ServerName::default_instance_, + ServerName_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerName, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerName, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ServerName)); + Coprocessor_descriptor_ = file->message_type(11); + static const int Coprocessor_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Coprocessor, name_), + }; + Coprocessor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Coprocessor_descriptor_, + Coprocessor::default_instance_, + Coprocessor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Coprocessor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Coprocessor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Coprocessor)); + NameStringPair_descriptor_ = file->message_type(12); + static const int NameStringPair_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameStringPair, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameStringPair, value_), + }; + NameStringPair_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NameStringPair_descriptor_, + NameStringPair::default_instance_, + NameStringPair_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameStringPair, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameStringPair, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NameStringPair)); + NameBytesPair_descriptor_ = file->message_type(13); + static const int NameBytesPair_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameBytesPair, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameBytesPair, value_), + }; + NameBytesPair_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NameBytesPair_descriptor_, + NameBytesPair::default_instance_, + NameBytesPair_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameBytesPair, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameBytesPair, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NameBytesPair)); + BytesBytesPair_descriptor_ = file->message_type(14); + static const int BytesBytesPair_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesBytesPair, first_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesBytesPair, second_), + }; + BytesBytesPair_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BytesBytesPair_descriptor_, + BytesBytesPair::default_instance_, + BytesBytesPair_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesBytesPair, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesBytesPair, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BytesBytesPair)); + NameInt64Pair_descriptor_ = file->message_type(15); + static const int NameInt64Pair_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameInt64Pair, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameInt64Pair, value_), + }; + NameInt64Pair_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NameInt64Pair_descriptor_, + NameInt64Pair::default_instance_, + NameInt64Pair_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameInt64Pair, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameInt64Pair, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NameInt64Pair)); + SnapshotDescription_descriptor_ = file->message_type(16); + static const int SnapshotDescription_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDescription, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDescription, table_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDescription, creation_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDescription, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDescription, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDescription, owner_), + }; + SnapshotDescription_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SnapshotDescription_descriptor_, + SnapshotDescription::default_instance_, + SnapshotDescription_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDescription, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDescription, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SnapshotDescription)); + SnapshotDescription_Type_descriptor_ = SnapshotDescription_descriptor_->enum_type(0); + ProcedureDescription_descriptor_ = file->message_type(17); + static const int ProcedureDescription_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureDescription, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureDescription, instance_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureDescription, creation_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureDescription, configuration_), + }; + ProcedureDescription_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ProcedureDescription_descriptor_, + ProcedureDescription::default_instance_, + ProcedureDescription_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureDescription, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureDescription, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ProcedureDescription)); + EmptyMsg_descriptor_ = file->message_type(18); + static const int EmptyMsg_offsets_[1] = { + }; + EmptyMsg_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EmptyMsg_descriptor_, + EmptyMsg::default_instance_, + EmptyMsg_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmptyMsg, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmptyMsg, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EmptyMsg)); + LongMsg_descriptor_ = file->message_type(19); + static const int LongMsg_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LongMsg, long_msg_), + }; + LongMsg_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + LongMsg_descriptor_, + LongMsg::default_instance_, + LongMsg_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LongMsg, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LongMsg, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(LongMsg)); + DoubleMsg_descriptor_ = file->message_type(20); + static const int DoubleMsg_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleMsg, double_msg_), + }; + DoubleMsg_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DoubleMsg_descriptor_, + DoubleMsg::default_instance_, + DoubleMsg_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleMsg, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleMsg, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DoubleMsg)); + BigDecimalMsg_descriptor_ = file->message_type(21); + static const int BigDecimalMsg_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BigDecimalMsg, bigdecimal_msg_), + }; + BigDecimalMsg_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BigDecimalMsg_descriptor_, + BigDecimalMsg::default_instance_, + BigDecimalMsg_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BigDecimalMsg, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BigDecimalMsg, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BigDecimalMsg)); + UUID_descriptor_ = file->message_type(22); + static const int UUID_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UUID, least_sig_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UUID, most_sig_bits_), + }; + UUID_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UUID_descriptor_, + UUID::default_instance_, + UUID_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UUID, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UUID, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UUID)); + NamespaceDescriptor_descriptor_ = file->message_type(23); + static const int NamespaceDescriptor_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamespaceDescriptor, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamespaceDescriptor, configuration_), + }; + NamespaceDescriptor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NamespaceDescriptor_descriptor_, + NamespaceDescriptor::default_instance_, + NamespaceDescriptor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamespaceDescriptor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamespaceDescriptor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NamespaceDescriptor)); + VersionInfo_descriptor_ = file->message_type(24); + static const int VersionInfo_offsets_[8] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, url_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, revision_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, user_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, date_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, src_checksum_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, version_major_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, version_minor_), + }; + VersionInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + VersionInfo_descriptor_, + VersionInfo::default_instance_, + VersionInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(VersionInfo)); + RegionServerInfo_descriptor_ = file->message_type(25); + static const int RegionServerInfo_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerInfo, infoport_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerInfo, version_info_), + }; + RegionServerInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionServerInfo_descriptor_, + RegionServerInfo::default_instance_, + RegionServerInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionServerInfo)); + CompareType_descriptor_ = file->enum_type(0); + TimeUnit_descriptor_ = file->enum_type(1); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_HBase_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TableName_descriptor_, &TableName::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TableSchema_descriptor_, &TableSchema::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TableState_descriptor_, &TableState::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TableDescriptor_descriptor_, &TableDescriptor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ColumnFamilySchema_descriptor_, &ColumnFamilySchema::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionInfo_descriptor_, &RegionInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FavoredNodes_descriptor_, &FavoredNodes::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionSpecifier_descriptor_, &RegionSpecifier::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TimeRange_descriptor_, &TimeRange::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ColumnFamilyTimeRange_descriptor_, &ColumnFamilyTimeRange::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ServerName_descriptor_, &ServerName::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Coprocessor_descriptor_, &Coprocessor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NameStringPair_descriptor_, &NameStringPair::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NameBytesPair_descriptor_, &NameBytesPair::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BytesBytesPair_descriptor_, &BytesBytesPair::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NameInt64Pair_descriptor_, &NameInt64Pair::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SnapshotDescription_descriptor_, &SnapshotDescription::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ProcedureDescription_descriptor_, &ProcedureDescription::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EmptyMsg_descriptor_, &EmptyMsg::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + LongMsg_descriptor_, &LongMsg::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DoubleMsg_descriptor_, &DoubleMsg::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BigDecimalMsg_descriptor_, &BigDecimalMsg::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UUID_descriptor_, &UUID::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NamespaceDescriptor_descriptor_, &NamespaceDescriptor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + VersionInfo_descriptor_, &VersionInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionServerInfo_descriptor_, &RegionServerInfo::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_HBase_2eproto() { + delete TableName::default_instance_; + delete TableName_reflection_; + delete TableSchema::default_instance_; + delete TableSchema_reflection_; + delete TableState::default_instance_; + delete TableState_reflection_; + delete TableDescriptor::default_instance_; + delete TableDescriptor_reflection_; + delete ColumnFamilySchema::default_instance_; + delete ColumnFamilySchema_reflection_; + delete RegionInfo::default_instance_; + delete RegionInfo_reflection_; + delete FavoredNodes::default_instance_; + delete FavoredNodes_reflection_; + delete RegionSpecifier::default_instance_; + delete RegionSpecifier_reflection_; + delete TimeRange::default_instance_; + delete TimeRange_reflection_; + delete ColumnFamilyTimeRange::default_instance_; + delete ColumnFamilyTimeRange_reflection_; + delete ServerName::default_instance_; + delete ServerName_reflection_; + delete Coprocessor::default_instance_; + delete Coprocessor_reflection_; + delete NameStringPair::default_instance_; + delete NameStringPair_reflection_; + delete NameBytesPair::default_instance_; + delete NameBytesPair_reflection_; + delete BytesBytesPair::default_instance_; + delete BytesBytesPair_reflection_; + delete NameInt64Pair::default_instance_; + delete NameInt64Pair_reflection_; + delete SnapshotDescription::default_instance_; + delete SnapshotDescription_reflection_; + delete ProcedureDescription::default_instance_; + delete ProcedureDescription_reflection_; + delete EmptyMsg::default_instance_; + delete EmptyMsg_reflection_; + delete LongMsg::default_instance_; + delete LongMsg_reflection_; + delete DoubleMsg::default_instance_; + delete DoubleMsg_reflection_; + delete BigDecimalMsg::default_instance_; + delete BigDecimalMsg_reflection_; + delete UUID::default_instance_; + delete UUID_reflection_; + delete NamespaceDescriptor::default_instance_; + delete NamespaceDescriptor_reflection_; + delete VersionInfo::default_instance_; + delete VersionInfo_reflection_; + delete RegionServerInfo::default_instance_; + delete RegionServerInfo_reflection_; +} + +void protobuf_AddDesc_HBase_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_Cell_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\013HBase.proto\022\010hbase.pb\032\nCell.proto\"1\n\tT" + "ableName\022\021\n\tnamespace\030\001 \002(\014\022\021\n\tqualifier" + "\030\002 \002(\014\"\314\001\n\013TableSchema\022\'\n\ntable_name\030\001 \001" + "(\0132\023.hbase.pb.TableName\022,\n\nattributes\030\002 " + "\003(\0132\030.hbase.pb.BytesBytesPair\0225\n\017column_" + "families\030\003 \003(\0132\034.hbase.pb.ColumnFamilySc" + "hema\022/\n\rconfiguration\030\004 \003(\0132\030.hbase.pb.N" + "ameStringPair\"x\n\nTableState\022)\n\005state\030\001 \002" + "(\0162\032.hbase.pb.TableState.State\"\?\n\005State\022" + "\013\n\007ENABLED\020\000\022\014\n\010DISABLED\020\001\022\r\n\tDISABLING\020" + "\002\022\014\n\010ENABLING\020\003\"8\n\017TableDescriptor\022%\n\006sc" + "hema\030\001 \002(\0132\025.hbase.pb.TableSchema\"\201\001\n\022Co" + "lumnFamilySchema\022\014\n\004name\030\001 \002(\014\022,\n\nattrib" + "utes\030\002 \003(\0132\030.hbase.pb.BytesBytesPair\022/\n\r" + "configuration\030\003 \003(\0132\030.hbase.pb.NameStrin" + "gPair\"\243\001\n\nRegionInfo\022\021\n\tregion_id\030\001 \002(\004\022" + "\'\n\ntable_name\030\002 \002(\0132\023.hbase.pb.TableName" + "\022\021\n\tstart_key\030\003 \001(\014\022\017\n\007end_key\030\004 \001(\014\022\017\n\007" + "offline\030\005 \001(\010\022\r\n\005split\030\006 \001(\010\022\025\n\nreplica_" + "id\030\007 \001(\005:\0010\":\n\014FavoredNodes\022*\n\014favored_n" + "ode\030\001 \003(\0132\024.hbase.pb.ServerName\"\236\001\n\017Regi" + "onSpecifier\022;\n\004type\030\001 \002(\0162-.hbase.pb.Reg" + "ionSpecifier.RegionSpecifierType\022\r\n\005valu" + "e\030\002 \002(\014\"\?\n\023RegionSpecifierType\022\017\n\013REGION" + "_NAME\020\001\022\027\n\023ENCODED_REGION_NAME\020\002\"%\n\tTime" + "Range\022\014\n\004from\030\001 \001(\004\022\n\n\002to\030\002 \001(\004\"W\n\025Colum" + "nFamilyTimeRange\022\025\n\rcolumn_family\030\001 \002(\014\022" + "\'\n\ntime_range\030\002 \002(\0132\023.hbase.pb.TimeRange" + "\"A\n\nServerName\022\021\n\thost_name\030\001 \002(\t\022\014\n\004por" + "t\030\002 \001(\r\022\022\n\nstart_code\030\003 \001(\004\"\033\n\013Coprocess" + "or\022\014\n\004name\030\001 \002(\t\"-\n\016NameStringPair\022\014\n\004na" + "me\030\001 \002(\t\022\r\n\005value\030\002 \002(\t\",\n\rNameBytesPair" + "\022\014\n\004name\030\001 \002(\t\022\r\n\005value\030\002 \001(\014\"/\n\016BytesBy" + "tesPair\022\r\n\005first\030\001 \002(\014\022\016\n\006second\030\002 \002(\014\"," + "\n\rNameInt64Pair\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002" + " \001(\003\"\325\001\n\023SnapshotDescription\022\014\n\004name\030\001 \002" + "(\t\022\r\n\005table\030\002 \001(\t\022\030\n\rcreation_time\030\003 \001(\003" + ":\0010\0227\n\004type\030\004 \001(\0162\".hbase.pb.SnapshotDes" + "cription.Type:\005FLUSH\022\017\n\007version\030\005 \001(\005\022\r\n" + "\005owner\030\006 \001(\t\".\n\004Type\022\014\n\010DISABLED\020\000\022\t\n\005FL" + "USH\020\001\022\r\n\tSKIPFLUSH\020\002\"\206\001\n\024ProcedureDescri" + "ption\022\021\n\tsignature\030\001 \002(\t\022\020\n\010instance\030\002 \001" + "(\t\022\030\n\rcreation_time\030\003 \001(\003:\0010\022/\n\rconfigur" + "ation\030\004 \003(\0132\030.hbase.pb.NameStringPair\"\n\n" + "\010EmptyMsg\"\033\n\007LongMsg\022\020\n\010long_msg\030\001 \002(\003\"\037" + "\n\tDoubleMsg\022\022\n\ndouble_msg\030\001 \002(\001\"\'\n\rBigDe" + "cimalMsg\022\026\n\016bigdecimal_msg\030\001 \002(\014\"5\n\004UUID" + "\022\026\n\016least_sig_bits\030\001 \002(\004\022\025\n\rmost_sig_bit" + "s\030\002 \002(\004\"T\n\023NamespaceDescriptor\022\014\n\004name\030\001" + " \002(\014\022/\n\rconfiguration\030\002 \003(\0132\030.hbase.pb.N" + "ameStringPair\"\235\001\n\013VersionInfo\022\017\n\007version" + "\030\001 \002(\t\022\013\n\003url\030\002 \002(\t\022\020\n\010revision\030\003 \002(\t\022\014\n" + "\004user\030\004 \002(\t\022\014\n\004date\030\005 \002(\t\022\024\n\014src_checksu" + "m\030\006 \002(\t\022\025\n\rversion_major\030\007 \001(\r\022\025\n\rversio" + "n_minor\030\010 \001(\r\"Q\n\020RegionServerInfo\022\020\n\010inf" + "oPort\030\001 \001(\005\022+\n\014version_info\030\002 \001(\0132\025.hbas" + "e.pb.VersionInfo*r\n\013CompareType\022\010\n\004LESS\020" + "\000\022\021\n\rLESS_OR_EQUAL\020\001\022\t\n\005EQUAL\020\002\022\r\n\tNOT_E" + "QUAL\020\003\022\024\n\020GREATER_OR_EQUAL\020\004\022\013\n\007GREATER\020" + "\005\022\t\n\005NO_OP\020\006*n\n\010TimeUnit\022\017\n\013NANOSECONDS\020" + "\001\022\020\n\014MICROSECONDS\020\002\022\020\n\014MILLISECONDS\020\003\022\013\n" + "\007SECONDS\020\004\022\013\n\007MINUTES\020\005\022\t\n\005HOURS\020\006\022\010\n\004DA" + "YS\020\007B>\n*org.apache.hadoop.hbase.protobuf" + ".generatedB\013HBaseProtosH\001\240\001\001", 2548); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "HBase.proto", &protobuf_RegisterTypes); + TableName::default_instance_ = new TableName(); + TableSchema::default_instance_ = new TableSchema(); + TableState::default_instance_ = new TableState(); + TableDescriptor::default_instance_ = new TableDescriptor(); + ColumnFamilySchema::default_instance_ = new ColumnFamilySchema(); + RegionInfo::default_instance_ = new RegionInfo(); + FavoredNodes::default_instance_ = new FavoredNodes(); + RegionSpecifier::default_instance_ = new RegionSpecifier(); + TimeRange::default_instance_ = new TimeRange(); + ColumnFamilyTimeRange::default_instance_ = new ColumnFamilyTimeRange(); + ServerName::default_instance_ = new ServerName(); + Coprocessor::default_instance_ = new Coprocessor(); + NameStringPair::default_instance_ = new NameStringPair(); + NameBytesPair::default_instance_ = new NameBytesPair(); + BytesBytesPair::default_instance_ = new BytesBytesPair(); + NameInt64Pair::default_instance_ = new NameInt64Pair(); + SnapshotDescription::default_instance_ = new SnapshotDescription(); + ProcedureDescription::default_instance_ = new ProcedureDescription(); + EmptyMsg::default_instance_ = new EmptyMsg(); + LongMsg::default_instance_ = new LongMsg(); + DoubleMsg::default_instance_ = new DoubleMsg(); + BigDecimalMsg::default_instance_ = new BigDecimalMsg(); + UUID::default_instance_ = new UUID(); + NamespaceDescriptor::default_instance_ = new NamespaceDescriptor(); + VersionInfo::default_instance_ = new VersionInfo(); + RegionServerInfo::default_instance_ = new RegionServerInfo(); + TableName::default_instance_->InitAsDefaultInstance(); + TableSchema::default_instance_->InitAsDefaultInstance(); + TableState::default_instance_->InitAsDefaultInstance(); + TableDescriptor::default_instance_->InitAsDefaultInstance(); + ColumnFamilySchema::default_instance_->InitAsDefaultInstance(); + RegionInfo::default_instance_->InitAsDefaultInstance(); + FavoredNodes::default_instance_->InitAsDefaultInstance(); + RegionSpecifier::default_instance_->InitAsDefaultInstance(); + TimeRange::default_instance_->InitAsDefaultInstance(); + ColumnFamilyTimeRange::default_instance_->InitAsDefaultInstance(); + ServerName::default_instance_->InitAsDefaultInstance(); + Coprocessor::default_instance_->InitAsDefaultInstance(); + NameStringPair::default_instance_->InitAsDefaultInstance(); + NameBytesPair::default_instance_->InitAsDefaultInstance(); + BytesBytesPair::default_instance_->InitAsDefaultInstance(); + NameInt64Pair::default_instance_->InitAsDefaultInstance(); + SnapshotDescription::default_instance_->InitAsDefaultInstance(); + ProcedureDescription::default_instance_->InitAsDefaultInstance(); + EmptyMsg::default_instance_->InitAsDefaultInstance(); + LongMsg::default_instance_->InitAsDefaultInstance(); + DoubleMsg::default_instance_->InitAsDefaultInstance(); + BigDecimalMsg::default_instance_->InitAsDefaultInstance(); + UUID::default_instance_->InitAsDefaultInstance(); + NamespaceDescriptor::default_instance_->InitAsDefaultInstance(); + VersionInfo::default_instance_->InitAsDefaultInstance(); + RegionServerInfo::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_HBase_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_HBase_2eproto { + StaticDescriptorInitializer_HBase_2eproto() { + protobuf_AddDesc_HBase_2eproto(); + } +} static_descriptor_initializer_HBase_2eproto_; +const ::google::protobuf::EnumDescriptor* CompareType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return CompareType_descriptor_; +} +bool CompareType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* TimeUnit_descriptor() { + protobuf_AssignDescriptorsOnce(); + return TimeUnit_descriptor_; +} +bool TimeUnit_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TableName::kNamespaceFieldNumber; +const int TableName::kQualifierFieldNumber; +#endif // !_MSC_VER + +TableName::TableName() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TableName::InitAsDefaultInstance() { +} + +TableName::TableName(const TableName& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TableName::SharedCtor() { + _cached_size_ = 0; + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TableName::~TableName() { + SharedDtor(); +} + +void TableName::SharedDtor() { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + delete namespace__; + } + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (this != default_instance_) { + } +} + +void TableName::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TableName::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TableName_descriptor_; +} + +const TableName& TableName::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +TableName* TableName::default_instance_ = NULL; + +TableName* TableName::New() const { + return new TableName; +} + +void TableName::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespace_()) { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + namespace__->clear(); + } + } + if (has_qualifier()) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TableName::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes namespace = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_namespace_())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_qualifier; + break; + } + + // required bytes qualifier = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_qualifier: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_qualifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TableName::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes namespace = 1; + if (has_namespace_()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->namespace_(), output); + } + + // required bytes qualifier = 2; + if (has_qualifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->qualifier(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TableName::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes namespace = 1; + if (has_namespace_()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->namespace_(), target); + } + + // required bytes qualifier = 2; + if (has_qualifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->qualifier(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TableName::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes namespace = 1; + if (has_namespace_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->namespace_()); + } + + // required bytes qualifier = 2; + if (has_qualifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->qualifier()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TableName::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TableName* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TableName::MergeFrom(const TableName& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespace_()) { + set_namespace_(from.namespace_()); + } + if (from.has_qualifier()) { + set_qualifier(from.qualifier()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TableName::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TableName::CopyFrom(const TableName& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TableName::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void TableName::Swap(TableName* other) { + if (other != this) { + std::swap(namespace__, other->namespace__); + std::swap(qualifier_, other->qualifier_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TableName::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TableName_descriptor_; + metadata.reflection = TableName_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TableSchema::kTableNameFieldNumber; +const int TableSchema::kAttributesFieldNumber; +const int TableSchema::kColumnFamiliesFieldNumber; +const int TableSchema::kConfigurationFieldNumber; +#endif // !_MSC_VER + +TableSchema::TableSchema() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TableSchema::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +TableSchema::TableSchema(const TableSchema& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TableSchema::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TableSchema::~TableSchema() { + SharedDtor(); +} + +void TableSchema::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void TableSchema::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TableSchema::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TableSchema_descriptor_; +} + +const TableSchema& TableSchema::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +TableSchema* TableSchema::default_instance_ = NULL; + +TableSchema* TableSchema::New() const { + return new TableSchema; +} + +void TableSchema::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + } + attributes_.Clear(); + column_families_.Clear(); + configuration_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TableSchema::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_attributes; + break; + } + + // repeated .hbase.pb.BytesBytesPair attributes = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_attributes: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_attributes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_attributes; + if (input->ExpectTag(26)) goto parse_column_families; + break; + } + + // repeated .hbase.pb.ColumnFamilySchema column_families = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_families: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_column_families())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_column_families; + if (input->ExpectTag(34)) goto parse_configuration; + break; + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_configuration: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_configuration())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_configuration; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TableSchema::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // repeated .hbase.pb.BytesBytesPair attributes = 2; + for (int i = 0; i < this->attributes_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->attributes(i), output); + } + + // repeated .hbase.pb.ColumnFamilySchema column_families = 3; + for (int i = 0; i < this->column_families_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->column_families(i), output); + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + for (int i = 0; i < this->configuration_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->configuration(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TableSchema::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // repeated .hbase.pb.BytesBytesPair attributes = 2; + for (int i = 0; i < this->attributes_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->attributes(i), target); + } + + // repeated .hbase.pb.ColumnFamilySchema column_families = 3; + for (int i = 0; i < this->column_families_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->column_families(i), target); + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + for (int i = 0; i < this->configuration_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->configuration(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TableSchema::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + } + // repeated .hbase.pb.BytesBytesPair attributes = 2; + total_size += 1 * this->attributes_size(); + for (int i = 0; i < this->attributes_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->attributes(i)); + } + + // repeated .hbase.pb.ColumnFamilySchema column_families = 3; + total_size += 1 * this->column_families_size(); + for (int i = 0; i < this->column_families_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->column_families(i)); + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + total_size += 1 * this->configuration_size(); + for (int i = 0; i < this->configuration_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->configuration(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TableSchema::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TableSchema* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TableSchema::MergeFrom(const TableSchema& from) { + GOOGLE_CHECK_NE(&from, this); + attributes_.MergeFrom(from.attributes_); + column_families_.MergeFrom(from.column_families_); + configuration_.MergeFrom(from.configuration_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TableSchema::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TableSchema::CopyFrom(const TableSchema& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TableSchema::IsInitialized() const { + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + for (int i = 0; i < attributes_size(); i++) { + if (!this->attributes(i).IsInitialized()) return false; + } + for (int i = 0; i < column_families_size(); i++) { + if (!this->column_families(i).IsInitialized()) return false; + } + for (int i = 0; i < configuration_size(); i++) { + if (!this->configuration(i).IsInitialized()) return false; + } + return true; +} + +void TableSchema::Swap(TableSchema* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + attributes_.Swap(&other->attributes_); + column_families_.Swap(&other->column_families_); + configuration_.Swap(&other->configuration_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TableSchema::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TableSchema_descriptor_; + metadata.reflection = TableSchema_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* TableState_State_descriptor() { + protobuf_AssignDescriptorsOnce(); + return TableState_State_descriptor_; +} +bool TableState_State_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const TableState_State TableState::ENABLED; +const TableState_State TableState::DISABLED; +const TableState_State TableState::DISABLING; +const TableState_State TableState::ENABLING; +const TableState_State TableState::State_MIN; +const TableState_State TableState::State_MAX; +const int TableState::State_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int TableState::kStateFieldNumber; +#endif // !_MSC_VER + +TableState::TableState() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TableState::InitAsDefaultInstance() { +} + +TableState::TableState(const TableState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TableState::SharedCtor() { + _cached_size_ = 0; + state_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TableState::~TableState() { + SharedDtor(); +} + +void TableState::SharedDtor() { + if (this != default_instance_) { + } +} + +void TableState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TableState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TableState_descriptor_; +} + +const TableState& TableState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +TableState* TableState::default_instance_ = NULL; + +TableState* TableState::New() const { + return new TableState; +} + +void TableState::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + state_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TableState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableState.State state = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::TableState_State_IsValid(value)) { + set_state(static_cast< ::hbase::pb::TableState_State >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TableState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableState.State state = 1; + if (has_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TableState::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableState.State state = 1; + if (has_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TableState::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableState.State state = 1; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TableState::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TableState* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TableState::MergeFrom(const TableState& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_state()) { + set_state(from.state()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TableState::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TableState::CopyFrom(const TableState& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TableState::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void TableState::Swap(TableState* other) { + if (other != this) { + std::swap(state_, other->state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TableState::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TableState_descriptor_; + metadata.reflection = TableState_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TableDescriptor::kSchemaFieldNumber; +#endif // !_MSC_VER + +TableDescriptor::TableDescriptor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TableDescriptor::InitAsDefaultInstance() { + schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +TableDescriptor::TableDescriptor(const TableDescriptor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TableDescriptor::SharedCtor() { + _cached_size_ = 0; + schema_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TableDescriptor::~TableDescriptor() { + SharedDtor(); +} + +void TableDescriptor::SharedDtor() { + if (this != default_instance_) { + delete schema_; + } +} + +void TableDescriptor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TableDescriptor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TableDescriptor_descriptor_; +} + +const TableDescriptor& TableDescriptor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +TableDescriptor* TableDescriptor::default_instance_ = NULL; + +TableDescriptor* TableDescriptor::New() const { + return new TableDescriptor; +} + +void TableDescriptor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_schema()) { + if (schema_ != NULL) schema_->::hbase::pb::TableSchema::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TableDescriptor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableSchema schema = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TableDescriptor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableSchema schema = 1; + if (has_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->schema(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TableDescriptor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableSchema schema = 1; + if (has_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->schema(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TableDescriptor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableSchema schema = 1; + if (has_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->schema()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TableDescriptor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TableDescriptor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TableDescriptor::MergeFrom(const TableDescriptor& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_schema()) { + mutable_schema()->::hbase::pb::TableSchema::MergeFrom(from.schema()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TableDescriptor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TableDescriptor::CopyFrom(const TableDescriptor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TableDescriptor::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_schema()) { + if (!this->schema().IsInitialized()) return false; + } + return true; +} + +void TableDescriptor::Swap(TableDescriptor* other) { + if (other != this) { + std::swap(schema_, other->schema_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TableDescriptor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TableDescriptor_descriptor_; + metadata.reflection = TableDescriptor_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ColumnFamilySchema::kNameFieldNumber; +const int ColumnFamilySchema::kAttributesFieldNumber; +const int ColumnFamilySchema::kConfigurationFieldNumber; +#endif // !_MSC_VER + +ColumnFamilySchema::ColumnFamilySchema() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ColumnFamilySchema::InitAsDefaultInstance() { +} + +ColumnFamilySchema::ColumnFamilySchema(const ColumnFamilySchema& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ColumnFamilySchema::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ColumnFamilySchema::~ColumnFamilySchema() { + SharedDtor(); +} + +void ColumnFamilySchema::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (this != default_instance_) { + } +} + +void ColumnFamilySchema::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ColumnFamilySchema::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ColumnFamilySchema_descriptor_; +} + +const ColumnFamilySchema& ColumnFamilySchema::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +ColumnFamilySchema* ColumnFamilySchema::default_instance_ = NULL; + +ColumnFamilySchema* ColumnFamilySchema::New() const { + return new ColumnFamilySchema; +} + +void ColumnFamilySchema::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + } + attributes_.Clear(); + configuration_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ColumnFamilySchema::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_attributes; + break; + } + + // repeated .hbase.pb.BytesBytesPair attributes = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_attributes: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_attributes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_attributes; + if (input->ExpectTag(26)) goto parse_configuration; + break; + } + + // repeated .hbase.pb.NameStringPair configuration = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_configuration: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_configuration())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_configuration; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ColumnFamilySchema::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->name(), output); + } + + // repeated .hbase.pb.BytesBytesPair attributes = 2; + for (int i = 0; i < this->attributes_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->attributes(i), output); + } + + // repeated .hbase.pb.NameStringPair configuration = 3; + for (int i = 0; i < this->configuration_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->configuration(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ColumnFamilySchema::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes name = 1; + if (has_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->name(), target); + } + + // repeated .hbase.pb.BytesBytesPair attributes = 2; + for (int i = 0; i < this->attributes_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->attributes(i), target); + } + + // repeated .hbase.pb.NameStringPair configuration = 3; + for (int i = 0; i < this->configuration_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->configuration(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ColumnFamilySchema::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->name()); + } + + } + // repeated .hbase.pb.BytesBytesPair attributes = 2; + total_size += 1 * this->attributes_size(); + for (int i = 0; i < this->attributes_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->attributes(i)); + } + + // repeated .hbase.pb.NameStringPair configuration = 3; + total_size += 1 * this->configuration_size(); + for (int i = 0; i < this->configuration_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->configuration(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ColumnFamilySchema::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ColumnFamilySchema* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ColumnFamilySchema::MergeFrom(const ColumnFamilySchema& from) { + GOOGLE_CHECK_NE(&from, this); + attributes_.MergeFrom(from.attributes_); + configuration_.MergeFrom(from.configuration_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ColumnFamilySchema::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ColumnFamilySchema::CopyFrom(const ColumnFamilySchema& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnFamilySchema::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < attributes_size(); i++) { + if (!this->attributes(i).IsInitialized()) return false; + } + for (int i = 0; i < configuration_size(); i++) { + if (!this->configuration(i).IsInitialized()) return false; + } + return true; +} + +void ColumnFamilySchema::Swap(ColumnFamilySchema* other) { + if (other != this) { + std::swap(name_, other->name_); + attributes_.Swap(&other->attributes_); + configuration_.Swap(&other->configuration_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ColumnFamilySchema::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ColumnFamilySchema_descriptor_; + metadata.reflection = ColumnFamilySchema_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionInfo::kRegionIdFieldNumber; +const int RegionInfo::kTableNameFieldNumber; +const int RegionInfo::kStartKeyFieldNumber; +const int RegionInfo::kEndKeyFieldNumber; +const int RegionInfo::kOfflineFieldNumber; +const int RegionInfo::kSplitFieldNumber; +const int RegionInfo::kReplicaIdFieldNumber; +#endif // !_MSC_VER + +RegionInfo::RegionInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionInfo::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +RegionInfo::RegionInfo(const RegionInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionInfo::SharedCtor() { + _cached_size_ = 0; + region_id_ = GOOGLE_ULONGLONG(0); + table_name_ = NULL; + start_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + end_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + offline_ = false; + split_ = false; + replica_id_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionInfo::~RegionInfo() { + SharedDtor(); +} + +void RegionInfo::SharedDtor() { + if (start_key_ != &::google::protobuf::internal::kEmptyString) { + delete start_key_; + } + if (end_key_ != &::google::protobuf::internal::kEmptyString) { + delete end_key_; + } + if (this != default_instance_) { + delete table_name_; + } +} + +void RegionInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionInfo_descriptor_; +} + +const RegionInfo& RegionInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +RegionInfo* RegionInfo::default_instance_ = NULL; + +RegionInfo* RegionInfo::New() const { + return new RegionInfo; +} + +void RegionInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + region_id_ = GOOGLE_ULONGLONG(0); + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_start_key()) { + if (start_key_ != &::google::protobuf::internal::kEmptyString) { + start_key_->clear(); + } + } + if (has_end_key()) { + if (end_key_ != &::google::protobuf::internal::kEmptyString) { + end_key_->clear(); + } + } + offline_ = false; + split_ = false; + replica_id_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 region_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, ®ion_id_))); + set_has_region_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_start_key; + break; + } + + // optional bytes start_key = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_start_key: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_start_key())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_end_key; + break; + } + + // optional bytes end_key = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_end_key: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_end_key())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_offline; + break; + } + + // optional bool offline = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_offline: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &offline_))); + set_has_offline(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_split; + break; + } + + // optional bool split = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_split: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &split_))); + set_has_split(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_replica_id; + break; + } + + // optional int32 replica_id = 7 [default = 0]; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_replica_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &replica_id_))); + set_has_replica_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 region_id = 1; + if (has_region_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->region_id(), output); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(), output); + } + + // optional bytes start_key = 3; + if (has_start_key()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->start_key(), output); + } + + // optional bytes end_key = 4; + if (has_end_key()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 4, this->end_key(), output); + } + + // optional bool offline = 5; + if (has_offline()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->offline(), output); + } + + // optional bool split = 6; + if (has_split()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->split(), output); + } + + // optional int32 replica_id = 7 [default = 0]; + if (has_replica_id()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->replica_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 region_id = 1; + if (has_region_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->region_id(), target); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(), target); + } + + // optional bytes start_key = 3; + if (has_start_key()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->start_key(), target); + } + + // optional bytes end_key = 4; + if (has_end_key()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->end_key(), target); + } + + // optional bool offline = 5; + if (has_offline()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->offline(), target); + } + + // optional bool split = 6; + if (has_split()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->split(), target); + } + + // optional int32 replica_id = 7 [default = 0]; + if (has_replica_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->replica_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 region_id = 1; + if (has_region_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->region_id()); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional bytes start_key = 3; + if (has_start_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->start_key()); + } + + // optional bytes end_key = 4; + if (has_end_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->end_key()); + } + + // optional bool offline = 5; + if (has_offline()) { + total_size += 1 + 1; + } + + // optional bool split = 6; + if (has_split()) { + total_size += 1 + 1; + } + + // optional int32 replica_id = 7 [default = 0]; + if (has_replica_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->replica_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionInfo::MergeFrom(const RegionInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region_id()) { + set_region_id(from.region_id()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_start_key()) { + set_start_key(from.start_key()); + } + if (from.has_end_key()) { + set_end_key(from.end_key()); + } + if (from.has_offline()) { + set_offline(from.offline()); + } + if (from.has_split()) { + set_split(from.split()); + } + if (from.has_replica_id()) { + set_replica_id(from.replica_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionInfo::CopyFrom(const RegionInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void RegionInfo::Swap(RegionInfo* other) { + if (other != this) { + std::swap(region_id_, other->region_id_); + std::swap(table_name_, other->table_name_); + std::swap(start_key_, other->start_key_); + std::swap(end_key_, other->end_key_); + std::swap(offline_, other->offline_); + std::swap(split_, other->split_); + std::swap(replica_id_, other->replica_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionInfo_descriptor_; + metadata.reflection = RegionInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FavoredNodes::kFavoredNodeFieldNumber; +#endif // !_MSC_VER + +FavoredNodes::FavoredNodes() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FavoredNodes::InitAsDefaultInstance() { +} + +FavoredNodes::FavoredNodes(const FavoredNodes& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FavoredNodes::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FavoredNodes::~FavoredNodes() { + SharedDtor(); +} + +void FavoredNodes::SharedDtor() { + if (this != default_instance_) { + } +} + +void FavoredNodes::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FavoredNodes::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FavoredNodes_descriptor_; +} + +const FavoredNodes& FavoredNodes::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +FavoredNodes* FavoredNodes::default_instance_ = NULL; + +FavoredNodes* FavoredNodes::New() const { + return new FavoredNodes; +} + +void FavoredNodes::Clear() { + favored_node_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FavoredNodes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.ServerName favored_node = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_favored_node: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_favored_node())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_favored_node; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FavoredNodes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.ServerName favored_node = 1; + for (int i = 0; i < this->favored_node_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->favored_node(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FavoredNodes::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.ServerName favored_node = 1; + for (int i = 0; i < this->favored_node_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->favored_node(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FavoredNodes::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.ServerName favored_node = 1; + total_size += 1 * this->favored_node_size(); + for (int i = 0; i < this->favored_node_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->favored_node(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FavoredNodes::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FavoredNodes* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FavoredNodes::MergeFrom(const FavoredNodes& from) { + GOOGLE_CHECK_NE(&from, this); + favored_node_.MergeFrom(from.favored_node_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FavoredNodes::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FavoredNodes::CopyFrom(const FavoredNodes& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FavoredNodes::IsInitialized() const { + + for (int i = 0; i < favored_node_size(); i++) { + if (!this->favored_node(i).IsInitialized()) return false; + } + return true; +} + +void FavoredNodes::Swap(FavoredNodes* other) { + if (other != this) { + favored_node_.Swap(&other->favored_node_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FavoredNodes::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FavoredNodes_descriptor_; + metadata.reflection = FavoredNodes_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* RegionSpecifier_RegionSpecifierType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionSpecifier_RegionSpecifierType_descriptor_; +} +bool RegionSpecifier_RegionSpecifierType_IsValid(int value) { + switch(value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const RegionSpecifier_RegionSpecifierType RegionSpecifier::REGION_NAME; +const RegionSpecifier_RegionSpecifierType RegionSpecifier::ENCODED_REGION_NAME; +const RegionSpecifier_RegionSpecifierType RegionSpecifier::RegionSpecifierType_MIN; +const RegionSpecifier_RegionSpecifierType RegionSpecifier::RegionSpecifierType_MAX; +const int RegionSpecifier::RegionSpecifierType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int RegionSpecifier::kTypeFieldNumber; +const int RegionSpecifier::kValueFieldNumber; +#endif // !_MSC_VER + +RegionSpecifier::RegionSpecifier() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionSpecifier::InitAsDefaultInstance() { +} + +RegionSpecifier::RegionSpecifier(const RegionSpecifier& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionSpecifier::SharedCtor() { + _cached_size_ = 0; + type_ = 1; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionSpecifier::~RegionSpecifier() { + SharedDtor(); +} + +void RegionSpecifier::SharedDtor() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (this != default_instance_) { + } +} + +void RegionSpecifier::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionSpecifier::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionSpecifier_descriptor_; +} + +const RegionSpecifier& RegionSpecifier::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +RegionSpecifier* RegionSpecifier::default_instance_ = NULL; + +RegionSpecifier* RegionSpecifier::New() const { + return new RegionSpecifier; +} + +void RegionSpecifier::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + type_ = 1; + if (has_value()) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionSpecifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier.RegionSpecifierType type = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::RegionSpecifier_RegionSpecifierType_IsValid(value)) { + set_type(static_cast< ::hbase::pb::RegionSpecifier_RegionSpecifierType >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_value; + break; + } + + // required bytes value = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionSpecifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier.RegionSpecifierType type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // required bytes value = 2; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionSpecifier::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier.RegionSpecifierType type = 1; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // required bytes value = 2; + if (has_value()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionSpecifier::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier.RegionSpecifierType type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // required bytes value = 2; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionSpecifier::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionSpecifier* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionSpecifier::MergeFrom(const RegionSpecifier& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_value()) { + set_value(from.value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionSpecifier::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionSpecifier::CopyFrom(const RegionSpecifier& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionSpecifier::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void RegionSpecifier::Swap(RegionSpecifier* other) { + if (other != this) { + std::swap(type_, other->type_); + std::swap(value_, other->value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionSpecifier::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionSpecifier_descriptor_; + metadata.reflection = RegionSpecifier_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TimeRange::kFromFieldNumber; +const int TimeRange::kToFieldNumber; +#endif // !_MSC_VER + +TimeRange::TimeRange() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TimeRange::InitAsDefaultInstance() { +} + +TimeRange::TimeRange(const TimeRange& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TimeRange::SharedCtor() { + _cached_size_ = 0; + from_ = GOOGLE_ULONGLONG(0); + to_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TimeRange::~TimeRange() { + SharedDtor(); +} + +void TimeRange::SharedDtor() { + if (this != default_instance_) { + } +} + +void TimeRange::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TimeRange::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TimeRange_descriptor_; +} + +const TimeRange& TimeRange::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +TimeRange* TimeRange::default_instance_ = NULL; + +TimeRange* TimeRange::New() const { + return new TimeRange; +} + +void TimeRange::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + from_ = GOOGLE_ULONGLONG(0); + to_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TimeRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 from = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &from_))); + set_has_from(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_to; + break; + } + + // optional uint64 to = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_to: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &to_))); + set_has_to(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TimeRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 from = 1; + if (has_from()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->from(), output); + } + + // optional uint64 to = 2; + if (has_to()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->to(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TimeRange::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 from = 1; + if (has_from()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->from(), target); + } + + // optional uint64 to = 2; + if (has_to()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->to(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TimeRange::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 from = 1; + if (has_from()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->from()); + } + + // optional uint64 to = 2; + if (has_to()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->to()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TimeRange::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TimeRange* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TimeRange::MergeFrom(const TimeRange& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_from()) { + set_from(from.from()); + } + if (from.has_to()) { + set_to(from.to()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TimeRange::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TimeRange::CopyFrom(const TimeRange& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TimeRange::IsInitialized() const { + + return true; +} + +void TimeRange::Swap(TimeRange* other) { + if (other != this) { + std::swap(from_, other->from_); + std::swap(to_, other->to_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TimeRange::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TimeRange_descriptor_; + metadata.reflection = TimeRange_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ColumnFamilyTimeRange::kColumnFamilyFieldNumber; +const int ColumnFamilyTimeRange::kTimeRangeFieldNumber; +#endif // !_MSC_VER + +ColumnFamilyTimeRange::ColumnFamilyTimeRange() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ColumnFamilyTimeRange::InitAsDefaultInstance() { + time_range_ = const_cast< ::hbase::pb::TimeRange*>(&::hbase::pb::TimeRange::default_instance()); +} + +ColumnFamilyTimeRange::ColumnFamilyTimeRange(const ColumnFamilyTimeRange& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ColumnFamilyTimeRange::SharedCtor() { + _cached_size_ = 0; + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + time_range_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ColumnFamilyTimeRange::~ColumnFamilyTimeRange() { + SharedDtor(); +} + +void ColumnFamilyTimeRange::SharedDtor() { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + delete column_family_; + } + if (this != default_instance_) { + delete time_range_; + } +} + +void ColumnFamilyTimeRange::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ColumnFamilyTimeRange::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ColumnFamilyTimeRange_descriptor_; +} + +const ColumnFamilyTimeRange& ColumnFamilyTimeRange::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +ColumnFamilyTimeRange* ColumnFamilyTimeRange::default_instance_ = NULL; + +ColumnFamilyTimeRange* ColumnFamilyTimeRange::New() const { + return new ColumnFamilyTimeRange; +} + +void ColumnFamilyTimeRange::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_column_family()) { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + column_family_->clear(); + } + } + if (has_time_range()) { + if (time_range_ != NULL) time_range_->::hbase::pb::TimeRange::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ColumnFamilyTimeRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes column_family = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_column_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_time_range; + break; + } + + // required .hbase.pb.TimeRange time_range = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_time_range: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_time_range())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ColumnFamilyTimeRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes column_family = 1; + if (has_column_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->column_family(), output); + } + + // required .hbase.pb.TimeRange time_range = 2; + if (has_time_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->time_range(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ColumnFamilyTimeRange::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes column_family = 1; + if (has_column_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->column_family(), target); + } + + // required .hbase.pb.TimeRange time_range = 2; + if (has_time_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->time_range(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ColumnFamilyTimeRange::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes column_family = 1; + if (has_column_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->column_family()); + } + + // required .hbase.pb.TimeRange time_range = 2; + if (has_time_range()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->time_range()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ColumnFamilyTimeRange::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ColumnFamilyTimeRange* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ColumnFamilyTimeRange::MergeFrom(const ColumnFamilyTimeRange& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_column_family()) { + set_column_family(from.column_family()); + } + if (from.has_time_range()) { + mutable_time_range()->::hbase::pb::TimeRange::MergeFrom(from.time_range()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ColumnFamilyTimeRange::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ColumnFamilyTimeRange::CopyFrom(const ColumnFamilyTimeRange& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnFamilyTimeRange::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void ColumnFamilyTimeRange::Swap(ColumnFamilyTimeRange* other) { + if (other != this) { + std::swap(column_family_, other->column_family_); + std::swap(time_range_, other->time_range_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ColumnFamilyTimeRange::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ColumnFamilyTimeRange_descriptor_; + metadata.reflection = ColumnFamilyTimeRange_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ServerName::kHostNameFieldNumber; +const int ServerName::kPortFieldNumber; +const int ServerName::kStartCodeFieldNumber; +#endif // !_MSC_VER + +ServerName::ServerName() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ServerName::InitAsDefaultInstance() { +} + +ServerName::ServerName(const ServerName& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ServerName::SharedCtor() { + _cached_size_ = 0; + host_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + port_ = 0u; + start_code_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ServerName::~ServerName() { + SharedDtor(); +} + +void ServerName::SharedDtor() { + if (host_name_ != &::google::protobuf::internal::kEmptyString) { + delete host_name_; + } + if (this != default_instance_) { + } +} + +void ServerName::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ServerName::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ServerName_descriptor_; +} + +const ServerName& ServerName::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +ServerName* ServerName::default_instance_ = NULL; + +ServerName* ServerName::New() const { + return new ServerName; +} + +void ServerName::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_host_name()) { + if (host_name_ != &::google::protobuf::internal::kEmptyString) { + host_name_->clear(); + } + } + port_ = 0u; + start_code_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ServerName::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string host_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_host_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->host_name().data(), this->host_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_port; + break; + } + + // optional uint32 port = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_port: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &port_))); + set_has_port(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_start_code; + break; + } + + // optional uint64 start_code = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_start_code: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &start_code_))); + set_has_start_code(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ServerName::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string host_name = 1; + if (has_host_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->host_name().data(), this->host_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->host_name(), output); + } + + // optional uint32 port = 2; + if (has_port()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->port(), output); + } + + // optional uint64 start_code = 3; + if (has_start_code()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->start_code(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ServerName::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string host_name = 1; + if (has_host_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->host_name().data(), this->host_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->host_name(), target); + } + + // optional uint32 port = 2; + if (has_port()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->port(), target); + } + + // optional uint64 start_code = 3; + if (has_start_code()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->start_code(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ServerName::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string host_name = 1; + if (has_host_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->host_name()); + } + + // optional uint32 port = 2; + if (has_port()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->port()); + } + + // optional uint64 start_code = 3; + if (has_start_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->start_code()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ServerName::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ServerName* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ServerName::MergeFrom(const ServerName& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_host_name()) { + set_host_name(from.host_name()); + } + if (from.has_port()) { + set_port(from.port()); + } + if (from.has_start_code()) { + set_start_code(from.start_code()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ServerName::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ServerName::CopyFrom(const ServerName& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerName::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ServerName::Swap(ServerName* other) { + if (other != this) { + std::swap(host_name_, other->host_name_); + std::swap(port_, other->port_); + std::swap(start_code_, other->start_code_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ServerName::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ServerName_descriptor_; + metadata.reflection = ServerName_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Coprocessor::kNameFieldNumber; +#endif // !_MSC_VER + +Coprocessor::Coprocessor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Coprocessor::InitAsDefaultInstance() { +} + +Coprocessor::Coprocessor(const Coprocessor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Coprocessor::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Coprocessor::~Coprocessor() { + SharedDtor(); +} + +void Coprocessor::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (this != default_instance_) { + } +} + +void Coprocessor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Coprocessor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Coprocessor_descriptor_; +} + +const Coprocessor& Coprocessor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +Coprocessor* Coprocessor::default_instance_ = NULL; + +Coprocessor* Coprocessor::New() const { + return new Coprocessor; +} + +void Coprocessor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Coprocessor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Coprocessor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Coprocessor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Coprocessor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Coprocessor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Coprocessor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Coprocessor::MergeFrom(const Coprocessor& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Coprocessor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Coprocessor::CopyFrom(const Coprocessor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Coprocessor::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void Coprocessor::Swap(Coprocessor* other) { + if (other != this) { + std::swap(name_, other->name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Coprocessor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Coprocessor_descriptor_; + metadata.reflection = Coprocessor_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int NameStringPair::kNameFieldNumber; +const int NameStringPair::kValueFieldNumber; +#endif // !_MSC_VER + +NameStringPair::NameStringPair() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NameStringPair::InitAsDefaultInstance() { +} + +NameStringPair::NameStringPair(const NameStringPair& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NameStringPair::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NameStringPair::~NameStringPair() { + SharedDtor(); +} + +void NameStringPair::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (this != default_instance_) { + } +} + +void NameStringPair::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NameStringPair::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NameStringPair_descriptor_; +} + +const NameStringPair& NameStringPair::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +NameStringPair* NameStringPair::default_instance_ = NULL; + +NameStringPair* NameStringPair::New() const { + return new NameStringPair; +} + +void NameStringPair::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + if (has_value()) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NameStringPair::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_value; + break; + } + + // required string value = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->value().data(), this->value().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void NameStringPair::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + // required string value = 2; + if (has_value()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->value().data(), this->value().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NameStringPair::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // required string value = 2; + if (has_value()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->value().data(), this->value().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NameStringPair::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // required string value = 2; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NameStringPair::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NameStringPair* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NameStringPair::MergeFrom(const NameStringPair& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + if (from.has_value()) { + set_value(from.value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NameStringPair::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NameStringPair::CopyFrom(const NameStringPair& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NameStringPair::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void NameStringPair::Swap(NameStringPair* other) { + if (other != this) { + std::swap(name_, other->name_); + std::swap(value_, other->value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NameStringPair::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NameStringPair_descriptor_; + metadata.reflection = NameStringPair_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int NameBytesPair::kNameFieldNumber; +const int NameBytesPair::kValueFieldNumber; +#endif // !_MSC_VER + +NameBytesPair::NameBytesPair() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NameBytesPair::InitAsDefaultInstance() { +} + +NameBytesPair::NameBytesPair(const NameBytesPair& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NameBytesPair::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NameBytesPair::~NameBytesPair() { + SharedDtor(); +} + +void NameBytesPair::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (this != default_instance_) { + } +} + +void NameBytesPair::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NameBytesPair::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NameBytesPair_descriptor_; +} + +const NameBytesPair& NameBytesPair::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +NameBytesPair* NameBytesPair::default_instance_ = NULL; + +NameBytesPair* NameBytesPair::New() const { + return new NameBytesPair; +} + +void NameBytesPair::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + if (has_value()) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NameBytesPair::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_value; + break; + } + + // optional bytes value = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_value: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void NameBytesPair::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + // optional bytes value = 2; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NameBytesPair::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional bytes value = 2; + if (has_value()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NameBytesPair::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional bytes value = 2; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NameBytesPair::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NameBytesPair* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NameBytesPair::MergeFrom(const NameBytesPair& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + if (from.has_value()) { + set_value(from.value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NameBytesPair::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NameBytesPair::CopyFrom(const NameBytesPair& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NameBytesPair::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void NameBytesPair::Swap(NameBytesPair* other) { + if (other != this) { + std::swap(name_, other->name_); + std::swap(value_, other->value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NameBytesPair::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NameBytesPair_descriptor_; + metadata.reflection = NameBytesPair_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BytesBytesPair::kFirstFieldNumber; +const int BytesBytesPair::kSecondFieldNumber; +#endif // !_MSC_VER + +BytesBytesPair::BytesBytesPair() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BytesBytesPair::InitAsDefaultInstance() { +} + +BytesBytesPair::BytesBytesPair(const BytesBytesPair& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BytesBytesPair::SharedCtor() { + _cached_size_ = 0; + first_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + second_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BytesBytesPair::~BytesBytesPair() { + SharedDtor(); +} + +void BytesBytesPair::SharedDtor() { + if (first_ != &::google::protobuf::internal::kEmptyString) { + delete first_; + } + if (second_ != &::google::protobuf::internal::kEmptyString) { + delete second_; + } + if (this != default_instance_) { + } +} + +void BytesBytesPair::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BytesBytesPair::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BytesBytesPair_descriptor_; +} + +const BytesBytesPair& BytesBytesPair::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +BytesBytesPair* BytesBytesPair::default_instance_ = NULL; + +BytesBytesPair* BytesBytesPair::New() const { + return new BytesBytesPair; +} + +void BytesBytesPair::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_first()) { + if (first_ != &::google::protobuf::internal::kEmptyString) { + first_->clear(); + } + } + if (has_second()) { + if (second_ != &::google::protobuf::internal::kEmptyString) { + second_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BytesBytesPair::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes first = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_first())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_second; + break; + } + + // required bytes second = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_second: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_second())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BytesBytesPair::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes first = 1; + if (has_first()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->first(), output); + } + + // required bytes second = 2; + if (has_second()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->second(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BytesBytesPair::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes first = 1; + if (has_first()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->first(), target); + } + + // required bytes second = 2; + if (has_second()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->second(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BytesBytesPair::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes first = 1; + if (has_first()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->first()); + } + + // required bytes second = 2; + if (has_second()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->second()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BytesBytesPair::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BytesBytesPair* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BytesBytesPair::MergeFrom(const BytesBytesPair& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_first()) { + set_first(from.first()); + } + if (from.has_second()) { + set_second(from.second()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BytesBytesPair::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BytesBytesPair::CopyFrom(const BytesBytesPair& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BytesBytesPair::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void BytesBytesPair::Swap(BytesBytesPair* other) { + if (other != this) { + std::swap(first_, other->first_); + std::swap(second_, other->second_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BytesBytesPair::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BytesBytesPair_descriptor_; + metadata.reflection = BytesBytesPair_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int NameInt64Pair::kNameFieldNumber; +const int NameInt64Pair::kValueFieldNumber; +#endif // !_MSC_VER + +NameInt64Pair::NameInt64Pair() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NameInt64Pair::InitAsDefaultInstance() { +} + +NameInt64Pair::NameInt64Pair(const NameInt64Pair& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NameInt64Pair::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + value_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NameInt64Pair::~NameInt64Pair() { + SharedDtor(); +} + +void NameInt64Pair::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (this != default_instance_) { + } +} + +void NameInt64Pair::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NameInt64Pair::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NameInt64Pair_descriptor_; +} + +const NameInt64Pair& NameInt64Pair::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +NameInt64Pair* NameInt64Pair::default_instance_ = NULL; + +NameInt64Pair* NameInt64Pair::New() const { + return new NameInt64Pair; +} + +void NameInt64Pair::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + value_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NameInt64Pair::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_value; + break; + } + + // optional int64 value = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_value: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &value_))); + set_has_value(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void NameInt64Pair::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + // optional int64 value = 2; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NameInt64Pair::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional int64 value = 2; + if (has_value()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NameInt64Pair::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional int64 value = 2; + if (has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->value()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NameInt64Pair::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NameInt64Pair* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NameInt64Pair::MergeFrom(const NameInt64Pair& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + if (from.has_value()) { + set_value(from.value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NameInt64Pair::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NameInt64Pair::CopyFrom(const NameInt64Pair& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NameInt64Pair::IsInitialized() const { + + return true; +} + +void NameInt64Pair::Swap(NameInt64Pair* other) { + if (other != this) { + std::swap(name_, other->name_); + std::swap(value_, other->value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NameInt64Pair::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NameInt64Pair_descriptor_; + metadata.reflection = NameInt64Pair_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* SnapshotDescription_Type_descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotDescription_Type_descriptor_; +} +bool SnapshotDescription_Type_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const SnapshotDescription_Type SnapshotDescription::DISABLED; +const SnapshotDescription_Type SnapshotDescription::FLUSH; +const SnapshotDescription_Type SnapshotDescription::SKIPFLUSH; +const SnapshotDescription_Type SnapshotDescription::Type_MIN; +const SnapshotDescription_Type SnapshotDescription::Type_MAX; +const int SnapshotDescription::Type_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int SnapshotDescription::kNameFieldNumber; +const int SnapshotDescription::kTableFieldNumber; +const int SnapshotDescription::kCreationTimeFieldNumber; +const int SnapshotDescription::kTypeFieldNumber; +const int SnapshotDescription::kVersionFieldNumber; +const int SnapshotDescription::kOwnerFieldNumber; +#endif // !_MSC_VER + +SnapshotDescription::SnapshotDescription() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SnapshotDescription::InitAsDefaultInstance() { +} + +SnapshotDescription::SnapshotDescription(const SnapshotDescription& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SnapshotDescription::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + table_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + creation_time_ = GOOGLE_LONGLONG(0); + type_ = 1; + version_ = 0; + owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SnapshotDescription::~SnapshotDescription() { + SharedDtor(); +} + +void SnapshotDescription::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (table_ != &::google::protobuf::internal::kEmptyString) { + delete table_; + } + if (owner_ != &::google::protobuf::internal::kEmptyString) { + delete owner_; + } + if (this != default_instance_) { + } +} + +void SnapshotDescription::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SnapshotDescription::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotDescription_descriptor_; +} + +const SnapshotDescription& SnapshotDescription::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +SnapshotDescription* SnapshotDescription::default_instance_ = NULL; + +SnapshotDescription* SnapshotDescription::New() const { + return new SnapshotDescription; +} + +void SnapshotDescription::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + if (has_table()) { + if (table_ != &::google::protobuf::internal::kEmptyString) { + table_->clear(); + } + } + creation_time_ = GOOGLE_LONGLONG(0); + type_ = 1; + version_ = 0; + if (has_owner()) { + if (owner_ != &::google::protobuf::internal::kEmptyString) { + owner_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SnapshotDescription::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table; + break; + } + + // optional string table = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_table())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->table().data(), this->table().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_creation_time; + break; + } + + // optional int64 creation_time = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_creation_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &creation_time_))); + set_has_creation_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_type; + break; + } + + // optional .hbase.pb.SnapshotDescription.Type type = 4 [default = FLUSH]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_type: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::SnapshotDescription_Type_IsValid(value)) { + set_type(static_cast< ::hbase::pb::SnapshotDescription_Type >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_version; + break; + } + + // optional int32 version = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_version: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &version_))); + set_has_version(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_owner; + break; + } + + // optional string owner = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_owner: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->owner().data(), this->owner().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SnapshotDescription::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + // optional string table = 2; + if (has_table()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->table().data(), this->table().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->table(), output); + } + + // optional int64 creation_time = 3 [default = 0]; + if (has_creation_time()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->creation_time(), output); + } + + // optional .hbase.pb.SnapshotDescription.Type type = 4 [default = FLUSH]; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->type(), output); + } + + // optional int32 version = 5; + if (has_version()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->version(), output); + } + + // optional string owner = 6; + if (has_owner()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->owner().data(), this->owner().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 6, this->owner(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SnapshotDescription::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional string table = 2; + if (has_table()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->table().data(), this->table().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->table(), target); + } + + // optional int64 creation_time = 3 [default = 0]; + if (has_creation_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->creation_time(), target); + } + + // optional .hbase.pb.SnapshotDescription.Type type = 4 [default = FLUSH]; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->type(), target); + } + + // optional int32 version = 5; + if (has_version()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->version(), target); + } + + // optional string owner = 6; + if (has_owner()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->owner().data(), this->owner().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->owner(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SnapshotDescription::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional string table = 2; + if (has_table()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->table()); + } + + // optional int64 creation_time = 3 [default = 0]; + if (has_creation_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->creation_time()); + } + + // optional .hbase.pb.SnapshotDescription.Type type = 4 [default = FLUSH]; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // optional int32 version = 5; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->version()); + } + + // optional string owner = 6; + if (has_owner()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SnapshotDescription::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SnapshotDescription* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SnapshotDescription::MergeFrom(const SnapshotDescription& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + if (from.has_table()) { + set_table(from.table()); + } + if (from.has_creation_time()) { + set_creation_time(from.creation_time()); + } + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_version()) { + set_version(from.version()); + } + if (from.has_owner()) { + set_owner(from.owner()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SnapshotDescription::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SnapshotDescription::CopyFrom(const SnapshotDescription& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SnapshotDescription::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SnapshotDescription::Swap(SnapshotDescription* other) { + if (other != this) { + std::swap(name_, other->name_); + std::swap(table_, other->table_); + std::swap(creation_time_, other->creation_time_); + std::swap(type_, other->type_); + std::swap(version_, other->version_); + std::swap(owner_, other->owner_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SnapshotDescription::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SnapshotDescription_descriptor_; + metadata.reflection = SnapshotDescription_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ProcedureDescription::kSignatureFieldNumber; +const int ProcedureDescription::kInstanceFieldNumber; +const int ProcedureDescription::kCreationTimeFieldNumber; +const int ProcedureDescription::kConfigurationFieldNumber; +#endif // !_MSC_VER + +ProcedureDescription::ProcedureDescription() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ProcedureDescription::InitAsDefaultInstance() { +} + +ProcedureDescription::ProcedureDescription(const ProcedureDescription& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ProcedureDescription::SharedCtor() { + _cached_size_ = 0; + signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + instance_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + creation_time_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ProcedureDescription::~ProcedureDescription() { + SharedDtor(); +} + +void ProcedureDescription::SharedDtor() { + if (signature_ != &::google::protobuf::internal::kEmptyString) { + delete signature_; + } + if (instance_ != &::google::protobuf::internal::kEmptyString) { + delete instance_; + } + if (this != default_instance_) { + } +} + +void ProcedureDescription::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProcedureDescription::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcedureDescription_descriptor_; +} + +const ProcedureDescription& ProcedureDescription::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +ProcedureDescription* ProcedureDescription::default_instance_ = NULL; + +ProcedureDescription* ProcedureDescription::New() const { + return new ProcedureDescription; +} + +void ProcedureDescription::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_signature()) { + if (signature_ != &::google::protobuf::internal::kEmptyString) { + signature_->clear(); + } + } + if (has_instance()) { + if (instance_ != &::google::protobuf::internal::kEmptyString) { + instance_->clear(); + } + } + creation_time_ = GOOGLE_LONGLONG(0); + } + configuration_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ProcedureDescription::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string signature = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_signature())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->signature().data(), this->signature().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_instance; + break; + } + + // optional string instance = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_instance: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_instance())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->instance().data(), this->instance().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_creation_time; + break; + } + + // optional int64 creation_time = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_creation_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &creation_time_))); + set_has_creation_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_configuration; + break; + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_configuration: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_configuration())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_configuration; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ProcedureDescription::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string signature = 1; + if (has_signature()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->signature().data(), this->signature().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->signature(), output); + } + + // optional string instance = 2; + if (has_instance()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->instance().data(), this->instance().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->instance(), output); + } + + // optional int64 creation_time = 3 [default = 0]; + if (has_creation_time()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->creation_time(), output); + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + for (int i = 0; i < this->configuration_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->configuration(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ProcedureDescription::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string signature = 1; + if (has_signature()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->signature().data(), this->signature().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->signature(), target); + } + + // optional string instance = 2; + if (has_instance()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->instance().data(), this->instance().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->instance(), target); + } + + // optional int64 creation_time = 3 [default = 0]; + if (has_creation_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->creation_time(), target); + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + for (int i = 0; i < this->configuration_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->configuration(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ProcedureDescription::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string signature = 1; + if (has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->signature()); + } + + // optional string instance = 2; + if (has_instance()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->instance()); + } + + // optional int64 creation_time = 3 [default = 0]; + if (has_creation_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->creation_time()); + } + + } + // repeated .hbase.pb.NameStringPair configuration = 4; + total_size += 1 * this->configuration_size(); + for (int i = 0; i < this->configuration_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->configuration(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProcedureDescription::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ProcedureDescription* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ProcedureDescription::MergeFrom(const ProcedureDescription& from) { + GOOGLE_CHECK_NE(&from, this); + configuration_.MergeFrom(from.configuration_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_signature()) { + set_signature(from.signature()); + } + if (from.has_instance()) { + set_instance(from.instance()); + } + if (from.has_creation_time()) { + set_creation_time(from.creation_time()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ProcedureDescription::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProcedureDescription::CopyFrom(const ProcedureDescription& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureDescription::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < configuration_size(); i++) { + if (!this->configuration(i).IsInitialized()) return false; + } + return true; +} + +void ProcedureDescription::Swap(ProcedureDescription* other) { + if (other != this) { + std::swap(signature_, other->signature_); + std::swap(instance_, other->instance_); + std::swap(creation_time_, other->creation_time_); + configuration_.Swap(&other->configuration_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ProcedureDescription::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ProcedureDescription_descriptor_; + metadata.reflection = ProcedureDescription_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +EmptyMsg::EmptyMsg() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EmptyMsg::InitAsDefaultInstance() { +} + +EmptyMsg::EmptyMsg(const EmptyMsg& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EmptyMsg::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EmptyMsg::~EmptyMsg() { + SharedDtor(); +} + +void EmptyMsg::SharedDtor() { + if (this != default_instance_) { + } +} + +void EmptyMsg::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EmptyMsg::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EmptyMsg_descriptor_; +} + +const EmptyMsg& EmptyMsg::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +EmptyMsg* EmptyMsg::default_instance_ = NULL; + +EmptyMsg* EmptyMsg::New() const { + return new EmptyMsg; +} + +void EmptyMsg::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EmptyMsg::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void EmptyMsg::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EmptyMsg::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EmptyMsg::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EmptyMsg::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EmptyMsg* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EmptyMsg::MergeFrom(const EmptyMsg& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EmptyMsg::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EmptyMsg::CopyFrom(const EmptyMsg& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EmptyMsg::IsInitialized() const { + + return true; +} + +void EmptyMsg::Swap(EmptyMsg* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EmptyMsg::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EmptyMsg_descriptor_; + metadata.reflection = EmptyMsg_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int LongMsg::kLongMsgFieldNumber; +#endif // !_MSC_VER + +LongMsg::LongMsg() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void LongMsg::InitAsDefaultInstance() { +} + +LongMsg::LongMsg(const LongMsg& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void LongMsg::SharedCtor() { + _cached_size_ = 0; + long_msg_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +LongMsg::~LongMsg() { + SharedDtor(); +} + +void LongMsg::SharedDtor() { + if (this != default_instance_) { + } +} + +void LongMsg::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LongMsg::descriptor() { + protobuf_AssignDescriptorsOnce(); + return LongMsg_descriptor_; +} + +const LongMsg& LongMsg::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +LongMsg* LongMsg::default_instance_ = NULL; + +LongMsg* LongMsg::New() const { + return new LongMsg; +} + +void LongMsg::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + long_msg_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool LongMsg::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required int64 long_msg = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &long_msg_))); + set_has_long_msg(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void LongMsg::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required int64 long_msg = 1; + if (has_long_msg()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->long_msg(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* LongMsg::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required int64 long_msg = 1; + if (has_long_msg()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->long_msg(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int LongMsg::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required int64 long_msg = 1; + if (has_long_msg()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->long_msg()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LongMsg::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const LongMsg* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void LongMsg::MergeFrom(const LongMsg& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_long_msg()) { + set_long_msg(from.long_msg()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void LongMsg::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LongMsg::CopyFrom(const LongMsg& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LongMsg::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void LongMsg::Swap(LongMsg* other) { + if (other != this) { + std::swap(long_msg_, other->long_msg_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata LongMsg::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = LongMsg_descriptor_; + metadata.reflection = LongMsg_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DoubleMsg::kDoubleMsgFieldNumber; +#endif // !_MSC_VER + +DoubleMsg::DoubleMsg() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DoubleMsg::InitAsDefaultInstance() { +} + +DoubleMsg::DoubleMsg(const DoubleMsg& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DoubleMsg::SharedCtor() { + _cached_size_ = 0; + double_msg_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DoubleMsg::~DoubleMsg() { + SharedDtor(); +} + +void DoubleMsg::SharedDtor() { + if (this != default_instance_) { + } +} + +void DoubleMsg::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DoubleMsg::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DoubleMsg_descriptor_; +} + +const DoubleMsg& DoubleMsg::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +DoubleMsg* DoubleMsg::default_instance_ = NULL; + +DoubleMsg* DoubleMsg::New() const { + return new DoubleMsg; +} + +void DoubleMsg::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + double_msg_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DoubleMsg::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required double double_msg = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &double_msg_))); + set_has_double_msg(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DoubleMsg::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required double double_msg = 1; + if (has_double_msg()) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->double_msg(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DoubleMsg::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required double double_msg = 1; + if (has_double_msg()) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->double_msg(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DoubleMsg::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required double double_msg = 1; + if (has_double_msg()) { + total_size += 1 + 8; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DoubleMsg::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DoubleMsg* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DoubleMsg::MergeFrom(const DoubleMsg& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_double_msg()) { + set_double_msg(from.double_msg()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DoubleMsg::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DoubleMsg::CopyFrom(const DoubleMsg& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DoubleMsg::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void DoubleMsg::Swap(DoubleMsg* other) { + if (other != this) { + std::swap(double_msg_, other->double_msg_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DoubleMsg::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DoubleMsg_descriptor_; + metadata.reflection = DoubleMsg_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BigDecimalMsg::kBigdecimalMsgFieldNumber; +#endif // !_MSC_VER + +BigDecimalMsg::BigDecimalMsg() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BigDecimalMsg::InitAsDefaultInstance() { +} + +BigDecimalMsg::BigDecimalMsg(const BigDecimalMsg& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BigDecimalMsg::SharedCtor() { + _cached_size_ = 0; + bigdecimal_msg_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BigDecimalMsg::~BigDecimalMsg() { + SharedDtor(); +} + +void BigDecimalMsg::SharedDtor() { + if (bigdecimal_msg_ != &::google::protobuf::internal::kEmptyString) { + delete bigdecimal_msg_; + } + if (this != default_instance_) { + } +} + +void BigDecimalMsg::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BigDecimalMsg::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BigDecimalMsg_descriptor_; +} + +const BigDecimalMsg& BigDecimalMsg::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +BigDecimalMsg* BigDecimalMsg::default_instance_ = NULL; + +BigDecimalMsg* BigDecimalMsg::New() const { + return new BigDecimalMsg; +} + +void BigDecimalMsg::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_bigdecimal_msg()) { + if (bigdecimal_msg_ != &::google::protobuf::internal::kEmptyString) { + bigdecimal_msg_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BigDecimalMsg::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes bigdecimal_msg = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_bigdecimal_msg())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BigDecimalMsg::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes bigdecimal_msg = 1; + if (has_bigdecimal_msg()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->bigdecimal_msg(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BigDecimalMsg::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes bigdecimal_msg = 1; + if (has_bigdecimal_msg()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->bigdecimal_msg(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BigDecimalMsg::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes bigdecimal_msg = 1; + if (has_bigdecimal_msg()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->bigdecimal_msg()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BigDecimalMsg::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BigDecimalMsg* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BigDecimalMsg::MergeFrom(const BigDecimalMsg& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_bigdecimal_msg()) { + set_bigdecimal_msg(from.bigdecimal_msg()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BigDecimalMsg::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BigDecimalMsg::CopyFrom(const BigDecimalMsg& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BigDecimalMsg::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void BigDecimalMsg::Swap(BigDecimalMsg* other) { + if (other != this) { + std::swap(bigdecimal_msg_, other->bigdecimal_msg_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BigDecimalMsg::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BigDecimalMsg_descriptor_; + metadata.reflection = BigDecimalMsg_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int UUID::kLeastSigBitsFieldNumber; +const int UUID::kMostSigBitsFieldNumber; +#endif // !_MSC_VER + +UUID::UUID() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UUID::InitAsDefaultInstance() { +} + +UUID::UUID(const UUID& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UUID::SharedCtor() { + _cached_size_ = 0; + least_sig_bits_ = GOOGLE_ULONGLONG(0); + most_sig_bits_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UUID::~UUID() { + SharedDtor(); +} + +void UUID::SharedDtor() { + if (this != default_instance_) { + } +} + +void UUID::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UUID::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UUID_descriptor_; +} + +const UUID& UUID::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +UUID* UUID::default_instance_ = NULL; + +UUID* UUID::New() const { + return new UUID; +} + +void UUID::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + least_sig_bits_ = GOOGLE_ULONGLONG(0); + most_sig_bits_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UUID::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 least_sig_bits = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &least_sig_bits_))); + set_has_least_sig_bits(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_most_sig_bits; + break; + } + + // required uint64 most_sig_bits = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_most_sig_bits: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &most_sig_bits_))); + set_has_most_sig_bits(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UUID::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 least_sig_bits = 1; + if (has_least_sig_bits()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->least_sig_bits(), output); + } + + // required uint64 most_sig_bits = 2; + if (has_most_sig_bits()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->most_sig_bits(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UUID::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 least_sig_bits = 1; + if (has_least_sig_bits()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->least_sig_bits(), target); + } + + // required uint64 most_sig_bits = 2; + if (has_most_sig_bits()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->most_sig_bits(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UUID::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 least_sig_bits = 1; + if (has_least_sig_bits()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->least_sig_bits()); + } + + // required uint64 most_sig_bits = 2; + if (has_most_sig_bits()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->most_sig_bits()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UUID::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UUID* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UUID::MergeFrom(const UUID& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_least_sig_bits()) { + set_least_sig_bits(from.least_sig_bits()); + } + if (from.has_most_sig_bits()) { + set_most_sig_bits(from.most_sig_bits()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UUID::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UUID::CopyFrom(const UUID& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UUID::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void UUID::Swap(UUID* other) { + if (other != this) { + std::swap(least_sig_bits_, other->least_sig_bits_); + std::swap(most_sig_bits_, other->most_sig_bits_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UUID::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UUID_descriptor_; + metadata.reflection = UUID_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int NamespaceDescriptor::kNameFieldNumber; +const int NamespaceDescriptor::kConfigurationFieldNumber; +#endif // !_MSC_VER + +NamespaceDescriptor::NamespaceDescriptor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NamespaceDescriptor::InitAsDefaultInstance() { +} + +NamespaceDescriptor::NamespaceDescriptor(const NamespaceDescriptor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NamespaceDescriptor::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NamespaceDescriptor::~NamespaceDescriptor() { + SharedDtor(); +} + +void NamespaceDescriptor::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (this != default_instance_) { + } +} + +void NamespaceDescriptor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NamespaceDescriptor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NamespaceDescriptor_descriptor_; +} + +const NamespaceDescriptor& NamespaceDescriptor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +NamespaceDescriptor* NamespaceDescriptor::default_instance_ = NULL; + +NamespaceDescriptor* NamespaceDescriptor::New() const { + return new NamespaceDescriptor; +} + +void NamespaceDescriptor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + } + configuration_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NamespaceDescriptor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_configuration; + break; + } + + // repeated .hbase.pb.NameStringPair configuration = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_configuration: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_configuration())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_configuration; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void NamespaceDescriptor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->name(), output); + } + + // repeated .hbase.pb.NameStringPair configuration = 2; + for (int i = 0; i < this->configuration_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->configuration(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NamespaceDescriptor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes name = 1; + if (has_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->name(), target); + } + + // repeated .hbase.pb.NameStringPair configuration = 2; + for (int i = 0; i < this->configuration_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->configuration(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NamespaceDescriptor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->name()); + } + + } + // repeated .hbase.pb.NameStringPair configuration = 2; + total_size += 1 * this->configuration_size(); + for (int i = 0; i < this->configuration_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->configuration(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NamespaceDescriptor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NamespaceDescriptor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NamespaceDescriptor::MergeFrom(const NamespaceDescriptor& from) { + GOOGLE_CHECK_NE(&from, this); + configuration_.MergeFrom(from.configuration_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NamespaceDescriptor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamespaceDescriptor::CopyFrom(const NamespaceDescriptor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamespaceDescriptor::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < configuration_size(); i++) { + if (!this->configuration(i).IsInitialized()) return false; + } + return true; +} + +void NamespaceDescriptor::Swap(NamespaceDescriptor* other) { + if (other != this) { + std::swap(name_, other->name_); + configuration_.Swap(&other->configuration_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NamespaceDescriptor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NamespaceDescriptor_descriptor_; + metadata.reflection = NamespaceDescriptor_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int VersionInfo::kVersionFieldNumber; +const int VersionInfo::kUrlFieldNumber; +const int VersionInfo::kRevisionFieldNumber; +const int VersionInfo::kUserFieldNumber; +const int VersionInfo::kDateFieldNumber; +const int VersionInfo::kSrcChecksumFieldNumber; +const int VersionInfo::kVersionMajorFieldNumber; +const int VersionInfo::kVersionMinorFieldNumber; +#endif // !_MSC_VER + +VersionInfo::VersionInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void VersionInfo::InitAsDefaultInstance() { +} + +VersionInfo::VersionInfo(const VersionInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void VersionInfo::SharedCtor() { + _cached_size_ = 0; + version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + revision_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + src_checksum_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + version_major_ = 0u; + version_minor_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +VersionInfo::~VersionInfo() { + SharedDtor(); +} + +void VersionInfo::SharedDtor() { + if (version_ != &::google::protobuf::internal::kEmptyString) { + delete version_; + } + if (url_ != &::google::protobuf::internal::kEmptyString) { + delete url_; + } + if (revision_ != &::google::protobuf::internal::kEmptyString) { + delete revision_; + } + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (date_ != &::google::protobuf::internal::kEmptyString) { + delete date_; + } + if (src_checksum_ != &::google::protobuf::internal::kEmptyString) { + delete src_checksum_; + } + if (this != default_instance_) { + } +} + +void VersionInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VersionInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return VersionInfo_descriptor_; +} + +const VersionInfo& VersionInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +VersionInfo* VersionInfo::default_instance_ = NULL; + +VersionInfo* VersionInfo::New() const { + return new VersionInfo; +} + +void VersionInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_version()) { + if (version_ != &::google::protobuf::internal::kEmptyString) { + version_->clear(); + } + } + if (has_url()) { + if (url_ != &::google::protobuf::internal::kEmptyString) { + url_->clear(); + } + } + if (has_revision()) { + if (revision_ != &::google::protobuf::internal::kEmptyString) { + revision_->clear(); + } + } + if (has_user()) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + } + if (has_date()) { + if (date_ != &::google::protobuf::internal::kEmptyString) { + date_->clear(); + } + } + if (has_src_checksum()) { + if (src_checksum_ != &::google::protobuf::internal::kEmptyString) { + src_checksum_->clear(); + } + } + version_major_ = 0u; + version_minor_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool VersionInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string version = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_url; + break; + } + + // required string url = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_url: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_url())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->url().data(), this->url().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_revision; + break; + } + + // required string revision = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_revision: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_revision())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->revision().data(), this->revision().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_user; + break; + } + + // required string user = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_user: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_user())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user().data(), this->user().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_date; + break; + } + + // required string date = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_date: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_date())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->date().data(), this->date().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_src_checksum; + break; + } + + // required string src_checksum = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_src_checksum: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_src_checksum())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->src_checksum().data(), this->src_checksum().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_version_major; + break; + } + + // optional uint32 version_major = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_version_major: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_major_))); + set_has_version_major(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_version_minor; + break; + } + + // optional uint32 version_minor = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_version_minor: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_minor_))); + set_has_version_minor(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void VersionInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string version = 1; + if (has_version()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->version(), output); + } + + // required string url = 2; + if (has_url()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->url().data(), this->url().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->url(), output); + } + + // required string revision = 3; + if (has_revision()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->revision().data(), this->revision().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->revision(), output); + } + + // required string user = 4; + if (has_user()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user().data(), this->user().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->user(), output); + } + + // required string date = 5; + if (has_date()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->date().data(), this->date().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->date(), output); + } + + // required string src_checksum = 6; + if (has_src_checksum()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->src_checksum().data(), this->src_checksum().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 6, this->src_checksum(), output); + } + + // optional uint32 version_major = 7; + if (has_version_major()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->version_major(), output); + } + + // optional uint32 version_minor = 8; + if (has_version_minor()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->version_minor(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* VersionInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string version = 1; + if (has_version()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->version(), target); + } + + // required string url = 2; + if (has_url()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->url().data(), this->url().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->url(), target); + } + + // required string revision = 3; + if (has_revision()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->revision().data(), this->revision().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->revision(), target); + } + + // required string user = 4; + if (has_user()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user().data(), this->user().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->user(), target); + } + + // required string date = 5; + if (has_date()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->date().data(), this->date().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->date(), target); + } + + // required string src_checksum = 6; + if (has_src_checksum()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->src_checksum().data(), this->src_checksum().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->src_checksum(), target); + } + + // optional uint32 version_major = 7; + if (has_version_major()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->version_major(), target); + } + + // optional uint32 version_minor = 8; + if (has_version_minor()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->version_minor(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int VersionInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // required string url = 2; + if (has_url()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->url()); + } + + // required string revision = 3; + if (has_revision()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->revision()); + } + + // required string user = 4; + if (has_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->user()); + } + + // required string date = 5; + if (has_date()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->date()); + } + + // required string src_checksum = 6; + if (has_src_checksum()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->src_checksum()); + } + + // optional uint32 version_major = 7; + if (has_version_major()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version_major()); + } + + // optional uint32 version_minor = 8; + if (has_version_minor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version_minor()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void VersionInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const VersionInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void VersionInfo::MergeFrom(const VersionInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_version()) { + set_version(from.version()); + } + if (from.has_url()) { + set_url(from.url()); + } + if (from.has_revision()) { + set_revision(from.revision()); + } + if (from.has_user()) { + set_user(from.user()); + } + if (from.has_date()) { + set_date(from.date()); + } + if (from.has_src_checksum()) { + set_src_checksum(from.src_checksum()); + } + if (from.has_version_major()) { + set_version_major(from.version_major()); + } + if (from.has_version_minor()) { + set_version_minor(from.version_minor()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void VersionInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VersionInfo::CopyFrom(const VersionInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VersionInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; + + return true; +} + +void VersionInfo::Swap(VersionInfo* other) { + if (other != this) { + std::swap(version_, other->version_); + std::swap(url_, other->url_); + std::swap(revision_, other->revision_); + std::swap(user_, other->user_); + std::swap(date_, other->date_); + std::swap(src_checksum_, other->src_checksum_); + std::swap(version_major_, other->version_major_); + std::swap(version_minor_, other->version_minor_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata VersionInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = VersionInfo_descriptor_; + metadata.reflection = VersionInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionServerInfo::kInfoPortFieldNumber; +const int RegionServerInfo::kVersionInfoFieldNumber; +#endif // !_MSC_VER + +RegionServerInfo::RegionServerInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionServerInfo::InitAsDefaultInstance() { + version_info_ = const_cast< ::hbase::pb::VersionInfo*>(&::hbase::pb::VersionInfo::default_instance()); +} + +RegionServerInfo::RegionServerInfo(const RegionServerInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionServerInfo::SharedCtor() { + _cached_size_ = 0; + infoport_ = 0; + version_info_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionServerInfo::~RegionServerInfo() { + SharedDtor(); +} + +void RegionServerInfo::SharedDtor() { + if (this != default_instance_) { + delete version_info_; + } +} + +void RegionServerInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionServerInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionServerInfo_descriptor_; +} + +const RegionServerInfo& RegionServerInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HBase_2eproto(); + return *default_instance_; +} + +RegionServerInfo* RegionServerInfo::default_instance_ = NULL; + +RegionServerInfo* RegionServerInfo::New() const { + return new RegionServerInfo; +} + +void RegionServerInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + infoport_ = 0; + if (has_version_info()) { + if (version_info_ != NULL) version_info_->::hbase::pb::VersionInfo::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionServerInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 infoPort = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &infoport_))); + set_has_infoport(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_version_info; + break; + } + + // optional .hbase.pb.VersionInfo version_info = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_version_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_version_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionServerInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional int32 infoPort = 1; + if (has_infoport()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->infoport(), output); + } + + // optional .hbase.pb.VersionInfo version_info = 2; + if (has_version_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->version_info(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionServerInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional int32 infoPort = 1; + if (has_infoport()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->infoport(), target); + } + + // optional .hbase.pb.VersionInfo version_info = 2; + if (has_version_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->version_info(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionServerInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional int32 infoPort = 1; + if (has_infoport()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->infoport()); + } + + // optional .hbase.pb.VersionInfo version_info = 2; + if (has_version_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->version_info()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionServerInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionServerInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionServerInfo::MergeFrom(const RegionServerInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_infoport()) { + set_infoport(from.infoport()); + } + if (from.has_version_info()) { + mutable_version_info()->::hbase::pb::VersionInfo::MergeFrom(from.version_info()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionServerInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionServerInfo::CopyFrom(const RegionServerInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionServerInfo::IsInitialized() const { + + if (has_version_info()) { + if (!this->version_info().IsInitialized()) return false; + } + return true; +} + +void RegionServerInfo::Swap(RegionServerInfo* other) { + if (other != this) { + std::swap(infoport_, other->infoport_); + std::swap(version_info_, other->version_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionServerInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionServerInfo_descriptor_; + metadata.reflection = RegionServerInfo_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/HBase.pb.h b/hbase-native-client/src/rpc/generated/HBase.pb.h new file mode 100644 index 0000000..9d0f08c --- /dev/null +++ b/hbase-native-client/src/rpc/generated/HBase.pb.h @@ -0,0 +1,5991 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HBase.proto + +#ifndef PROTOBUF_HBase_2eproto__INCLUDED +#define PROTOBUF_HBase_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "Cell.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_HBase_2eproto(); +void protobuf_AssignDesc_HBase_2eproto(); +void protobuf_ShutdownFile_HBase_2eproto(); + +class TableName; +class TableSchema; +class TableState; +class TableDescriptor; +class ColumnFamilySchema; +class RegionInfo; +class FavoredNodes; +class RegionSpecifier; +class TimeRange; +class ColumnFamilyTimeRange; +class ServerName; +class Coprocessor; +class NameStringPair; +class NameBytesPair; +class BytesBytesPair; +class NameInt64Pair; +class SnapshotDescription; +class ProcedureDescription; +class EmptyMsg; +class LongMsg; +class DoubleMsg; +class BigDecimalMsg; +class UUID; +class NamespaceDescriptor; +class VersionInfo; +class RegionServerInfo; + +enum TableState_State { + TableState_State_ENABLED = 0, + TableState_State_DISABLED = 1, + TableState_State_DISABLING = 2, + TableState_State_ENABLING = 3 +}; +bool TableState_State_IsValid(int value); +const TableState_State TableState_State_State_MIN = TableState_State_ENABLED; +const TableState_State TableState_State_State_MAX = TableState_State_ENABLING; +const int TableState_State_State_ARRAYSIZE = TableState_State_State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TableState_State_descriptor(); +inline const ::std::string& TableState_State_Name(TableState_State value) { + return ::google::protobuf::internal::NameOfEnum( + TableState_State_descriptor(), value); +} +inline bool TableState_State_Parse( + const ::std::string& name, TableState_State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TableState_State_descriptor(), name, value); +} +enum RegionSpecifier_RegionSpecifierType { + RegionSpecifier_RegionSpecifierType_REGION_NAME = 1, + RegionSpecifier_RegionSpecifierType_ENCODED_REGION_NAME = 2 +}; +bool RegionSpecifier_RegionSpecifierType_IsValid(int value); +const RegionSpecifier_RegionSpecifierType RegionSpecifier_RegionSpecifierType_RegionSpecifierType_MIN = RegionSpecifier_RegionSpecifierType_REGION_NAME; +const RegionSpecifier_RegionSpecifierType RegionSpecifier_RegionSpecifierType_RegionSpecifierType_MAX = RegionSpecifier_RegionSpecifierType_ENCODED_REGION_NAME; +const int RegionSpecifier_RegionSpecifierType_RegionSpecifierType_ARRAYSIZE = RegionSpecifier_RegionSpecifierType_RegionSpecifierType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RegionSpecifier_RegionSpecifierType_descriptor(); +inline const ::std::string& RegionSpecifier_RegionSpecifierType_Name(RegionSpecifier_RegionSpecifierType value) { + return ::google::protobuf::internal::NameOfEnum( + RegionSpecifier_RegionSpecifierType_descriptor(), value); +} +inline bool RegionSpecifier_RegionSpecifierType_Parse( + const ::std::string& name, RegionSpecifier_RegionSpecifierType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RegionSpecifier_RegionSpecifierType_descriptor(), name, value); +} +enum SnapshotDescription_Type { + SnapshotDescription_Type_DISABLED = 0, + SnapshotDescription_Type_FLUSH = 1, + SnapshotDescription_Type_SKIPFLUSH = 2 +}; +bool SnapshotDescription_Type_IsValid(int value); +const SnapshotDescription_Type SnapshotDescription_Type_Type_MIN = SnapshotDescription_Type_DISABLED; +const SnapshotDescription_Type SnapshotDescription_Type_Type_MAX = SnapshotDescription_Type_SKIPFLUSH; +const int SnapshotDescription_Type_Type_ARRAYSIZE = SnapshotDescription_Type_Type_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SnapshotDescription_Type_descriptor(); +inline const ::std::string& SnapshotDescription_Type_Name(SnapshotDescription_Type value) { + return ::google::protobuf::internal::NameOfEnum( + SnapshotDescription_Type_descriptor(), value); +} +inline bool SnapshotDescription_Type_Parse( + const ::std::string& name, SnapshotDescription_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SnapshotDescription_Type_descriptor(), name, value); +} +enum CompareType { + LESS = 0, + LESS_OR_EQUAL = 1, + EQUAL = 2, + NOT_EQUAL = 3, + GREATER_OR_EQUAL = 4, + GREATER = 5, + NO_OP = 6 +}; +bool CompareType_IsValid(int value); +const CompareType CompareType_MIN = LESS; +const CompareType CompareType_MAX = NO_OP; +const int CompareType_ARRAYSIZE = CompareType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* CompareType_descriptor(); +inline const ::std::string& CompareType_Name(CompareType value) { + return ::google::protobuf::internal::NameOfEnum( + CompareType_descriptor(), value); +} +inline bool CompareType_Parse( + const ::std::string& name, CompareType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CompareType_descriptor(), name, value); +} +enum TimeUnit { + NANOSECONDS = 1, + MICROSECONDS = 2, + MILLISECONDS = 3, + SECONDS = 4, + MINUTES = 5, + HOURS = 6, + DAYS = 7 +}; +bool TimeUnit_IsValid(int value); +const TimeUnit TimeUnit_MIN = NANOSECONDS; +const TimeUnit TimeUnit_MAX = DAYS; +const int TimeUnit_ARRAYSIZE = TimeUnit_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TimeUnit_descriptor(); +inline const ::std::string& TimeUnit_Name(TimeUnit value) { + return ::google::protobuf::internal::NameOfEnum( + TimeUnit_descriptor(), value); +} +inline bool TimeUnit_Parse( + const ::std::string& name, TimeUnit* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TimeUnit_descriptor(), name, value); +} +// =================================================================== + +class TableName : public ::google::protobuf::Message { + public: + TableName(); + virtual ~TableName(); + + TableName(const TableName& from); + + inline TableName& operator=(const TableName& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TableName& default_instance(); + + void Swap(TableName* other); + + // implements Message ---------------------------------------------- + + TableName* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TableName& from); + void MergeFrom(const TableName& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes namespace = 1; + inline bool has_namespace_() const; + inline void clear_namespace_(); + static const int kNamespaceFieldNumber = 1; + inline const ::std::string& namespace_() const; + inline void set_namespace_(const ::std::string& value); + inline void set_namespace_(const char* value); + inline void set_namespace_(const void* value, size_t size); + inline ::std::string* mutable_namespace_(); + inline ::std::string* release_namespace_(); + inline void set_allocated_namespace_(::std::string* namespace_); + + // required bytes qualifier = 2; + inline bool has_qualifier() const; + inline void clear_qualifier(); + static const int kQualifierFieldNumber = 2; + inline const ::std::string& qualifier() const; + inline void set_qualifier(const ::std::string& value); + inline void set_qualifier(const char* value); + inline void set_qualifier(const void* value, size_t size); + inline ::std::string* mutable_qualifier(); + inline ::std::string* release_qualifier(); + inline void set_allocated_qualifier(::std::string* qualifier); + + // @@protoc_insertion_point(class_scope:hbase.pb.TableName) + private: + inline void set_has_namespace_(); + inline void clear_has_namespace_(); + inline void set_has_qualifier(); + inline void clear_has_qualifier(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* namespace__; + ::std::string* qualifier_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static TableName* default_instance_; +}; +// ------------------------------------------------------------------- + +class TableSchema : public ::google::protobuf::Message { + public: + TableSchema(); + virtual ~TableSchema(); + + TableSchema(const TableSchema& from); + + inline TableSchema& operator=(const TableSchema& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TableSchema& default_instance(); + + void Swap(TableSchema* other); + + // implements Message ---------------------------------------------- + + TableSchema* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TableSchema& from); + void MergeFrom(const TableSchema& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // repeated .hbase.pb.BytesBytesPair attributes = 2; + inline int attributes_size() const; + inline void clear_attributes(); + static const int kAttributesFieldNumber = 2; + inline const ::hbase::pb::BytesBytesPair& attributes(int index) const; + inline ::hbase::pb::BytesBytesPair* mutable_attributes(int index); + inline ::hbase::pb::BytesBytesPair* add_attributes(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& + attributes() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* + mutable_attributes(); + + // repeated .hbase.pb.ColumnFamilySchema column_families = 3; + inline int column_families_size() const; + inline void clear_column_families(); + static const int kColumnFamiliesFieldNumber = 3; + inline const ::hbase::pb::ColumnFamilySchema& column_families(int index) const; + inline ::hbase::pb::ColumnFamilySchema* mutable_column_families(int index); + inline ::hbase::pb::ColumnFamilySchema* add_column_families(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilySchema >& + column_families() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilySchema >* + mutable_column_families(); + + // repeated .hbase.pb.NameStringPair configuration = 4; + inline int configuration_size() const; + inline void clear_configuration(); + static const int kConfigurationFieldNumber = 4; + inline const ::hbase::pb::NameStringPair& configuration(int index) const; + inline ::hbase::pb::NameStringPair* mutable_configuration(int index); + inline ::hbase::pb::NameStringPair* add_configuration(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& + configuration() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* + mutable_configuration(); + + // @@protoc_insertion_point(class_scope:hbase.pb.TableSchema) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair > attributes_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilySchema > column_families_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair > configuration_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static TableSchema* default_instance_; +}; +// ------------------------------------------------------------------- + +class TableState : public ::google::protobuf::Message { + public: + TableState(); + virtual ~TableState(); + + TableState(const TableState& from); + + inline TableState& operator=(const TableState& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TableState& default_instance(); + + void Swap(TableState* other); + + // implements Message ---------------------------------------------- + + TableState* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TableState& from); + void MergeFrom(const TableState& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef TableState_State State; + static const State ENABLED = TableState_State_ENABLED; + static const State DISABLED = TableState_State_DISABLED; + static const State DISABLING = TableState_State_DISABLING; + static const State ENABLING = TableState_State_ENABLING; + static inline bool State_IsValid(int value) { + return TableState_State_IsValid(value); + } + static const State State_MIN = + TableState_State_State_MIN; + static const State State_MAX = + TableState_State_State_MAX; + static const int State_ARRAYSIZE = + TableState_State_State_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + State_descriptor() { + return TableState_State_descriptor(); + } + static inline const ::std::string& State_Name(State value) { + return TableState_State_Name(value); + } + static inline bool State_Parse(const ::std::string& name, + State* value) { + return TableState_State_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableState.State state = 1; + inline bool has_state() const; + inline void clear_state(); + static const int kStateFieldNumber = 1; + inline ::hbase::pb::TableState_State state() const; + inline void set_state(::hbase::pb::TableState_State value); + + // @@protoc_insertion_point(class_scope:hbase.pb.TableState) + private: + inline void set_has_state(); + inline void clear_has_state(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + int state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static TableState* default_instance_; +}; +// ------------------------------------------------------------------- + +class TableDescriptor : public ::google::protobuf::Message { + public: + TableDescriptor(); + virtual ~TableDescriptor(); + + TableDescriptor(const TableDescriptor& from); + + inline TableDescriptor& operator=(const TableDescriptor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TableDescriptor& default_instance(); + + void Swap(TableDescriptor* other); + + // implements Message ---------------------------------------------- + + TableDescriptor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TableDescriptor& from); + void MergeFrom(const TableDescriptor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableSchema schema = 1; + inline bool has_schema() const; + inline void clear_schema(); + static const int kSchemaFieldNumber = 1; + inline const ::hbase::pb::TableSchema& schema() const; + inline ::hbase::pb::TableSchema* mutable_schema(); + inline ::hbase::pb::TableSchema* release_schema(); + inline void set_allocated_schema(::hbase::pb::TableSchema* schema); + + // @@protoc_insertion_point(class_scope:hbase.pb.TableDescriptor) + private: + inline void set_has_schema(); + inline void clear_has_schema(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableSchema* schema_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static TableDescriptor* default_instance_; +}; +// ------------------------------------------------------------------- + +class ColumnFamilySchema : public ::google::protobuf::Message { + public: + ColumnFamilySchema(); + virtual ~ColumnFamilySchema(); + + ColumnFamilySchema(const ColumnFamilySchema& from); + + inline ColumnFamilySchema& operator=(const ColumnFamilySchema& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ColumnFamilySchema& default_instance(); + + void Swap(ColumnFamilySchema* other); + + // implements Message ---------------------------------------------- + + ColumnFamilySchema* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ColumnFamilySchema& from); + void MergeFrom(const ColumnFamilySchema& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const void* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // repeated .hbase.pb.BytesBytesPair attributes = 2; + inline int attributes_size() const; + inline void clear_attributes(); + static const int kAttributesFieldNumber = 2; + inline const ::hbase::pb::BytesBytesPair& attributes(int index) const; + inline ::hbase::pb::BytesBytesPair* mutable_attributes(int index); + inline ::hbase::pb::BytesBytesPair* add_attributes(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& + attributes() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* + mutable_attributes(); + + // repeated .hbase.pb.NameStringPair configuration = 3; + inline int configuration_size() const; + inline void clear_configuration(); + static const int kConfigurationFieldNumber = 3; + inline const ::hbase::pb::NameStringPair& configuration(int index) const; + inline ::hbase::pb::NameStringPair* mutable_configuration(int index); + inline ::hbase::pb::NameStringPair* add_configuration(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& + configuration() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* + mutable_configuration(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ColumnFamilySchema) + private: + inline void set_has_name(); + inline void clear_has_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair > attributes_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair > configuration_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static ColumnFamilySchema* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionInfo : public ::google::protobuf::Message { + public: + RegionInfo(); + virtual ~RegionInfo(); + + RegionInfo(const RegionInfo& from); + + inline RegionInfo& operator=(const RegionInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionInfo& default_instance(); + + void Swap(RegionInfo* other); + + // implements Message ---------------------------------------------- + + RegionInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionInfo& from); + void MergeFrom(const RegionInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 region_id = 1; + inline bool has_region_id() const; + inline void clear_region_id(); + static const int kRegionIdFieldNumber = 1; + inline ::google::protobuf::uint64 region_id() const; + inline void set_region_id(::google::protobuf::uint64 value); + + // required .hbase.pb.TableName table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional bytes start_key = 3; + inline bool has_start_key() const; + inline void clear_start_key(); + static const int kStartKeyFieldNumber = 3; + inline const ::std::string& start_key() const; + inline void set_start_key(const ::std::string& value); + inline void set_start_key(const char* value); + inline void set_start_key(const void* value, size_t size); + inline ::std::string* mutable_start_key(); + inline ::std::string* release_start_key(); + inline void set_allocated_start_key(::std::string* start_key); + + // optional bytes end_key = 4; + inline bool has_end_key() const; + inline void clear_end_key(); + static const int kEndKeyFieldNumber = 4; + inline const ::std::string& end_key() const; + inline void set_end_key(const ::std::string& value); + inline void set_end_key(const char* value); + inline void set_end_key(const void* value, size_t size); + inline ::std::string* mutable_end_key(); + inline ::std::string* release_end_key(); + inline void set_allocated_end_key(::std::string* end_key); + + // optional bool offline = 5; + inline bool has_offline() const; + inline void clear_offline(); + static const int kOfflineFieldNumber = 5; + inline bool offline() const; + inline void set_offline(bool value); + + // optional bool split = 6; + inline bool has_split() const; + inline void clear_split(); + static const int kSplitFieldNumber = 6; + inline bool split() const; + inline void set_split(bool value); + + // optional int32 replica_id = 7 [default = 0]; + inline bool has_replica_id() const; + inline void clear_replica_id(); + static const int kReplicaIdFieldNumber = 7; + inline ::google::protobuf::int32 replica_id() const; + inline void set_replica_id(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionInfo) + private: + inline void set_has_region_id(); + inline void clear_has_region_id(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_start_key(); + inline void clear_has_start_key(); + inline void set_has_end_key(); + inline void clear_has_end_key(); + inline void set_has_offline(); + inline void clear_has_offline(); + inline void set_has_split(); + inline void clear_has_split(); + inline void set_has_replica_id(); + inline void clear_has_replica_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 region_id_; + ::hbase::pb::TableName* table_name_; + ::std::string* start_key_; + ::std::string* end_key_; + bool offline_; + bool split_; + ::google::protobuf::int32 replica_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static RegionInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class FavoredNodes : public ::google::protobuf::Message { + public: + FavoredNodes(); + virtual ~FavoredNodes(); + + FavoredNodes(const FavoredNodes& from); + + inline FavoredNodes& operator=(const FavoredNodes& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FavoredNodes& default_instance(); + + void Swap(FavoredNodes* other); + + // implements Message ---------------------------------------------- + + FavoredNodes* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FavoredNodes& from); + void MergeFrom(const FavoredNodes& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.ServerName favored_node = 1; + inline int favored_node_size() const; + inline void clear_favored_node(); + static const int kFavoredNodeFieldNumber = 1; + inline const ::hbase::pb::ServerName& favored_node(int index) const; + inline ::hbase::pb::ServerName* mutable_favored_node(int index); + inline ::hbase::pb::ServerName* add_favored_node(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& + favored_node() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* + mutable_favored_node(); + + // @@protoc_insertion_point(class_scope:hbase.pb.FavoredNodes) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName > favored_node_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static FavoredNodes* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionSpecifier : public ::google::protobuf::Message { + public: + RegionSpecifier(); + virtual ~RegionSpecifier(); + + RegionSpecifier(const RegionSpecifier& from); + + inline RegionSpecifier& operator=(const RegionSpecifier& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionSpecifier& default_instance(); + + void Swap(RegionSpecifier* other); + + // implements Message ---------------------------------------------- + + RegionSpecifier* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionSpecifier& from); + void MergeFrom(const RegionSpecifier& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef RegionSpecifier_RegionSpecifierType RegionSpecifierType; + static const RegionSpecifierType REGION_NAME = RegionSpecifier_RegionSpecifierType_REGION_NAME; + static const RegionSpecifierType ENCODED_REGION_NAME = RegionSpecifier_RegionSpecifierType_ENCODED_REGION_NAME; + static inline bool RegionSpecifierType_IsValid(int value) { + return RegionSpecifier_RegionSpecifierType_IsValid(value); + } + static const RegionSpecifierType RegionSpecifierType_MIN = + RegionSpecifier_RegionSpecifierType_RegionSpecifierType_MIN; + static const RegionSpecifierType RegionSpecifierType_MAX = + RegionSpecifier_RegionSpecifierType_RegionSpecifierType_MAX; + static const int RegionSpecifierType_ARRAYSIZE = + RegionSpecifier_RegionSpecifierType_RegionSpecifierType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RegionSpecifierType_descriptor() { + return RegionSpecifier_RegionSpecifierType_descriptor(); + } + static inline const ::std::string& RegionSpecifierType_Name(RegionSpecifierType value) { + return RegionSpecifier_RegionSpecifierType_Name(value); + } + static inline bool RegionSpecifierType_Parse(const ::std::string& name, + RegionSpecifierType* value) { + return RegionSpecifier_RegionSpecifierType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier.RegionSpecifierType type = 1; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 1; + inline ::hbase::pb::RegionSpecifier_RegionSpecifierType type() const; + inline void set_type(::hbase::pb::RegionSpecifier_RegionSpecifierType value); + + // required bytes value = 2; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 2; + inline const ::std::string& value() const; + inline void set_value(const ::std::string& value); + inline void set_value(const char* value); + inline void set_value(const void* value, size_t size); + inline ::std::string* mutable_value(); + inline ::std::string* release_value(); + inline void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionSpecifier) + private: + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_value(); + inline void clear_has_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* value_; + int type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static RegionSpecifier* default_instance_; +}; +// ------------------------------------------------------------------- + +class TimeRange : public ::google::protobuf::Message { + public: + TimeRange(); + virtual ~TimeRange(); + + TimeRange(const TimeRange& from); + + inline TimeRange& operator=(const TimeRange& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TimeRange& default_instance(); + + void Swap(TimeRange* other); + + // implements Message ---------------------------------------------- + + TimeRange* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TimeRange& from); + void MergeFrom(const TimeRange& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 from = 1; + inline bool has_from() const; + inline void clear_from(); + static const int kFromFieldNumber = 1; + inline ::google::protobuf::uint64 from() const; + inline void set_from(::google::protobuf::uint64 value); + + // optional uint64 to = 2; + inline bool has_to() const; + inline void clear_to(); + static const int kToFieldNumber = 2; + inline ::google::protobuf::uint64 to() const; + inline void set_to(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.TimeRange) + private: + inline void set_has_from(); + inline void clear_has_from(); + inline void set_has_to(); + inline void clear_has_to(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 from_; + ::google::protobuf::uint64 to_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static TimeRange* default_instance_; +}; +// ------------------------------------------------------------------- + +class ColumnFamilyTimeRange : public ::google::protobuf::Message { + public: + ColumnFamilyTimeRange(); + virtual ~ColumnFamilyTimeRange(); + + ColumnFamilyTimeRange(const ColumnFamilyTimeRange& from); + + inline ColumnFamilyTimeRange& operator=(const ColumnFamilyTimeRange& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ColumnFamilyTimeRange& default_instance(); + + void Swap(ColumnFamilyTimeRange* other); + + // implements Message ---------------------------------------------- + + ColumnFamilyTimeRange* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ColumnFamilyTimeRange& from); + void MergeFrom(const ColumnFamilyTimeRange& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes column_family = 1; + inline bool has_column_family() const; + inline void clear_column_family(); + static const int kColumnFamilyFieldNumber = 1; + inline const ::std::string& column_family() const; + inline void set_column_family(const ::std::string& value); + inline void set_column_family(const char* value); + inline void set_column_family(const void* value, size_t size); + inline ::std::string* mutable_column_family(); + inline ::std::string* release_column_family(); + inline void set_allocated_column_family(::std::string* column_family); + + // required .hbase.pb.TimeRange time_range = 2; + inline bool has_time_range() const; + inline void clear_time_range(); + static const int kTimeRangeFieldNumber = 2; + inline const ::hbase::pb::TimeRange& time_range() const; + inline ::hbase::pb::TimeRange* mutable_time_range(); + inline ::hbase::pb::TimeRange* release_time_range(); + inline void set_allocated_time_range(::hbase::pb::TimeRange* time_range); + + // @@protoc_insertion_point(class_scope:hbase.pb.ColumnFamilyTimeRange) + private: + inline void set_has_column_family(); + inline void clear_has_column_family(); + inline void set_has_time_range(); + inline void clear_has_time_range(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* column_family_; + ::hbase::pb::TimeRange* time_range_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static ColumnFamilyTimeRange* default_instance_; +}; +// ------------------------------------------------------------------- + +class ServerName : public ::google::protobuf::Message { + public: + ServerName(); + virtual ~ServerName(); + + ServerName(const ServerName& from); + + inline ServerName& operator=(const ServerName& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ServerName& default_instance(); + + void Swap(ServerName* other); + + // implements Message ---------------------------------------------- + + ServerName* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ServerName& from); + void MergeFrom(const ServerName& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string host_name = 1; + inline bool has_host_name() const; + inline void clear_host_name(); + static const int kHostNameFieldNumber = 1; + inline const ::std::string& host_name() const; + inline void set_host_name(const ::std::string& value); + inline void set_host_name(const char* value); + inline void set_host_name(const char* value, size_t size); + inline ::std::string* mutable_host_name(); + inline ::std::string* release_host_name(); + inline void set_allocated_host_name(::std::string* host_name); + + // optional uint32 port = 2; + inline bool has_port() const; + inline void clear_port(); + static const int kPortFieldNumber = 2; + inline ::google::protobuf::uint32 port() const; + inline void set_port(::google::protobuf::uint32 value); + + // optional uint64 start_code = 3; + inline bool has_start_code() const; + inline void clear_start_code(); + static const int kStartCodeFieldNumber = 3; + inline ::google::protobuf::uint64 start_code() const; + inline void set_start_code(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ServerName) + private: + inline void set_has_host_name(); + inline void clear_has_host_name(); + inline void set_has_port(); + inline void clear_has_port(); + inline void set_has_start_code(); + inline void clear_has_start_code(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* host_name_; + ::google::protobuf::uint64 start_code_; + ::google::protobuf::uint32 port_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static ServerName* default_instance_; +}; +// ------------------------------------------------------------------- + +class Coprocessor : public ::google::protobuf::Message { + public: + Coprocessor(); + virtual ~Coprocessor(); + + Coprocessor(const Coprocessor& from); + + inline Coprocessor& operator=(const Coprocessor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Coprocessor& default_instance(); + + void Swap(Coprocessor* other); + + // implements Message ---------------------------------------------- + + Coprocessor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Coprocessor& from); + void MergeFrom(const Coprocessor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:hbase.pb.Coprocessor) + private: + inline void set_has_name(); + inline void clear_has_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static Coprocessor* default_instance_; +}; +// ------------------------------------------------------------------- + +class NameStringPair : public ::google::protobuf::Message { + public: + NameStringPair(); + virtual ~NameStringPair(); + + NameStringPair(const NameStringPair& from); + + inline NameStringPair& operator=(const NameStringPair& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NameStringPair& default_instance(); + + void Swap(NameStringPair* other); + + // implements Message ---------------------------------------------- + + NameStringPair* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NameStringPair& from); + void MergeFrom(const NameStringPair& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // required string value = 2; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 2; + inline const ::std::string& value() const; + inline void set_value(const ::std::string& value); + inline void set_value(const char* value); + inline void set_value(const char* value, size_t size); + inline ::std::string* mutable_value(); + inline ::std::string* release_value(); + inline void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:hbase.pb.NameStringPair) + private: + inline void set_has_name(); + inline void clear_has_name(); + inline void set_has_value(); + inline void clear_has_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::std::string* value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static NameStringPair* default_instance_; +}; +// ------------------------------------------------------------------- + +class NameBytesPair : public ::google::protobuf::Message { + public: + NameBytesPair(); + virtual ~NameBytesPair(); + + NameBytesPair(const NameBytesPair& from); + + inline NameBytesPair& operator=(const NameBytesPair& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NameBytesPair& default_instance(); + + void Swap(NameBytesPair* other); + + // implements Message ---------------------------------------------- + + NameBytesPair* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NameBytesPair& from); + void MergeFrom(const NameBytesPair& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // optional bytes value = 2; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 2; + inline const ::std::string& value() const; + inline void set_value(const ::std::string& value); + inline void set_value(const char* value); + inline void set_value(const void* value, size_t size); + inline ::std::string* mutable_value(); + inline ::std::string* release_value(); + inline void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:hbase.pb.NameBytesPair) + private: + inline void set_has_name(); + inline void clear_has_name(); + inline void set_has_value(); + inline void clear_has_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::std::string* value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static NameBytesPair* default_instance_; +}; +// ------------------------------------------------------------------- + +class BytesBytesPair : public ::google::protobuf::Message { + public: + BytesBytesPair(); + virtual ~BytesBytesPair(); + + BytesBytesPair(const BytesBytesPair& from); + + inline BytesBytesPair& operator=(const BytesBytesPair& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BytesBytesPair& default_instance(); + + void Swap(BytesBytesPair* other); + + // implements Message ---------------------------------------------- + + BytesBytesPair* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BytesBytesPair& from); + void MergeFrom(const BytesBytesPair& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes first = 1; + inline bool has_first() const; + inline void clear_first(); + static const int kFirstFieldNumber = 1; + inline const ::std::string& first() const; + inline void set_first(const ::std::string& value); + inline void set_first(const char* value); + inline void set_first(const void* value, size_t size); + inline ::std::string* mutable_first(); + inline ::std::string* release_first(); + inline void set_allocated_first(::std::string* first); + + // required bytes second = 2; + inline bool has_second() const; + inline void clear_second(); + static const int kSecondFieldNumber = 2; + inline const ::std::string& second() const; + inline void set_second(const ::std::string& value); + inline void set_second(const char* value); + inline void set_second(const void* value, size_t size); + inline ::std::string* mutable_second(); + inline ::std::string* release_second(); + inline void set_allocated_second(::std::string* second); + + // @@protoc_insertion_point(class_scope:hbase.pb.BytesBytesPair) + private: + inline void set_has_first(); + inline void clear_has_first(); + inline void set_has_second(); + inline void clear_has_second(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* first_; + ::std::string* second_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static BytesBytesPair* default_instance_; +}; +// ------------------------------------------------------------------- + +class NameInt64Pair : public ::google::protobuf::Message { + public: + NameInt64Pair(); + virtual ~NameInt64Pair(); + + NameInt64Pair(const NameInt64Pair& from); + + inline NameInt64Pair& operator=(const NameInt64Pair& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NameInt64Pair& default_instance(); + + void Swap(NameInt64Pair* other); + + // implements Message ---------------------------------------------- + + NameInt64Pair* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NameInt64Pair& from); + void MergeFrom(const NameInt64Pair& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // optional int64 value = 2; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 2; + inline ::google::protobuf::int64 value() const; + inline void set_value(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.NameInt64Pair) + private: + inline void set_has_name(); + inline void clear_has_name(); + inline void set_has_value(); + inline void clear_has_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::google::protobuf::int64 value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static NameInt64Pair* default_instance_; +}; +// ------------------------------------------------------------------- + +class SnapshotDescription : public ::google::protobuf::Message { + public: + SnapshotDescription(); + virtual ~SnapshotDescription(); + + SnapshotDescription(const SnapshotDescription& from); + + inline SnapshotDescription& operator=(const SnapshotDescription& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SnapshotDescription& default_instance(); + + void Swap(SnapshotDescription* other); + + // implements Message ---------------------------------------------- + + SnapshotDescription* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SnapshotDescription& from); + void MergeFrom(const SnapshotDescription& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef SnapshotDescription_Type Type; + static const Type DISABLED = SnapshotDescription_Type_DISABLED; + static const Type FLUSH = SnapshotDescription_Type_FLUSH; + static const Type SKIPFLUSH = SnapshotDescription_Type_SKIPFLUSH; + static inline bool Type_IsValid(int value) { + return SnapshotDescription_Type_IsValid(value); + } + static const Type Type_MIN = + SnapshotDescription_Type_Type_MIN; + static const Type Type_MAX = + SnapshotDescription_Type_Type_MAX; + static const int Type_ARRAYSIZE = + SnapshotDescription_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Type_descriptor() { + return SnapshotDescription_Type_descriptor(); + } + static inline const ::std::string& Type_Name(Type value) { + return SnapshotDescription_Type_Name(value); + } + static inline bool Type_Parse(const ::std::string& name, + Type* value) { + return SnapshotDescription_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // optional string table = 2; + inline bool has_table() const; + inline void clear_table(); + static const int kTableFieldNumber = 2; + inline const ::std::string& table() const; + inline void set_table(const ::std::string& value); + inline void set_table(const char* value); + inline void set_table(const char* value, size_t size); + inline ::std::string* mutable_table(); + inline ::std::string* release_table(); + inline void set_allocated_table(::std::string* table); + + // optional int64 creation_time = 3 [default = 0]; + inline bool has_creation_time() const; + inline void clear_creation_time(); + static const int kCreationTimeFieldNumber = 3; + inline ::google::protobuf::int64 creation_time() const; + inline void set_creation_time(::google::protobuf::int64 value); + + // optional .hbase.pb.SnapshotDescription.Type type = 4 [default = FLUSH]; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 4; + inline ::hbase::pb::SnapshotDescription_Type type() const; + inline void set_type(::hbase::pb::SnapshotDescription_Type value); + + // optional int32 version = 5; + inline bool has_version() const; + inline void clear_version(); + static const int kVersionFieldNumber = 5; + inline ::google::protobuf::int32 version() const; + inline void set_version(::google::protobuf::int32 value); + + // optional string owner = 6; + inline bool has_owner() const; + inline void clear_owner(); + static const int kOwnerFieldNumber = 6; + inline const ::std::string& owner() const; + inline void set_owner(const ::std::string& value); + inline void set_owner(const char* value); + inline void set_owner(const char* value, size_t size); + inline ::std::string* mutable_owner(); + inline ::std::string* release_owner(); + inline void set_allocated_owner(::std::string* owner); + + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotDescription) + private: + inline void set_has_name(); + inline void clear_has_name(); + inline void set_has_table(); + inline void clear_has_table(); + inline void set_has_creation_time(); + inline void clear_has_creation_time(); + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_version(); + inline void clear_has_version(); + inline void set_has_owner(); + inline void clear_has_owner(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::std::string* table_; + ::google::protobuf::int64 creation_time_; + int type_; + ::google::protobuf::int32 version_; + ::std::string* owner_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static SnapshotDescription* default_instance_; +}; +// ------------------------------------------------------------------- + +class ProcedureDescription : public ::google::protobuf::Message { + public: + ProcedureDescription(); + virtual ~ProcedureDescription(); + + ProcedureDescription(const ProcedureDescription& from); + + inline ProcedureDescription& operator=(const ProcedureDescription& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ProcedureDescription& default_instance(); + + void Swap(ProcedureDescription* other); + + // implements Message ---------------------------------------------- + + ProcedureDescription* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ProcedureDescription& from); + void MergeFrom(const ProcedureDescription& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string signature = 1; + inline bool has_signature() const; + inline void clear_signature(); + static const int kSignatureFieldNumber = 1; + inline const ::std::string& signature() const; + inline void set_signature(const ::std::string& value); + inline void set_signature(const char* value); + inline void set_signature(const char* value, size_t size); + inline ::std::string* mutable_signature(); + inline ::std::string* release_signature(); + inline void set_allocated_signature(::std::string* signature); + + // optional string instance = 2; + inline bool has_instance() const; + inline void clear_instance(); + static const int kInstanceFieldNumber = 2; + inline const ::std::string& instance() const; + inline void set_instance(const ::std::string& value); + inline void set_instance(const char* value); + inline void set_instance(const char* value, size_t size); + inline ::std::string* mutable_instance(); + inline ::std::string* release_instance(); + inline void set_allocated_instance(::std::string* instance); + + // optional int64 creation_time = 3 [default = 0]; + inline bool has_creation_time() const; + inline void clear_creation_time(); + static const int kCreationTimeFieldNumber = 3; + inline ::google::protobuf::int64 creation_time() const; + inline void set_creation_time(::google::protobuf::int64 value); + + // repeated .hbase.pb.NameStringPair configuration = 4; + inline int configuration_size() const; + inline void clear_configuration(); + static const int kConfigurationFieldNumber = 4; + inline const ::hbase::pb::NameStringPair& configuration(int index) const; + inline ::hbase::pb::NameStringPair* mutable_configuration(int index); + inline ::hbase::pb::NameStringPair* add_configuration(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& + configuration() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* + mutable_configuration(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ProcedureDescription) + private: + inline void set_has_signature(); + inline void clear_has_signature(); + inline void set_has_instance(); + inline void clear_has_instance(); + inline void set_has_creation_time(); + inline void clear_has_creation_time(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* signature_; + ::std::string* instance_; + ::google::protobuf::int64 creation_time_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair > configuration_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static ProcedureDescription* default_instance_; +}; +// ------------------------------------------------------------------- + +class EmptyMsg : public ::google::protobuf::Message { + public: + EmptyMsg(); + virtual ~EmptyMsg(); + + EmptyMsg(const EmptyMsg& from); + + inline EmptyMsg& operator=(const EmptyMsg& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EmptyMsg& default_instance(); + + void Swap(EmptyMsg* other); + + // implements Message ---------------------------------------------- + + EmptyMsg* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EmptyMsg& from); + void MergeFrom(const EmptyMsg& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.EmptyMsg) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static EmptyMsg* default_instance_; +}; +// ------------------------------------------------------------------- + +class LongMsg : public ::google::protobuf::Message { + public: + LongMsg(); + virtual ~LongMsg(); + + LongMsg(const LongMsg& from); + + inline LongMsg& operator=(const LongMsg& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LongMsg& default_instance(); + + void Swap(LongMsg* other); + + // implements Message ---------------------------------------------- + + LongMsg* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const LongMsg& from); + void MergeFrom(const LongMsg& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required int64 long_msg = 1; + inline bool has_long_msg() const; + inline void clear_long_msg(); + static const int kLongMsgFieldNumber = 1; + inline ::google::protobuf::int64 long_msg() const; + inline void set_long_msg(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.LongMsg) + private: + inline void set_has_long_msg(); + inline void clear_has_long_msg(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int64 long_msg_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static LongMsg* default_instance_; +}; +// ------------------------------------------------------------------- + +class DoubleMsg : public ::google::protobuf::Message { + public: + DoubleMsg(); + virtual ~DoubleMsg(); + + DoubleMsg(const DoubleMsg& from); + + inline DoubleMsg& operator=(const DoubleMsg& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DoubleMsg& default_instance(); + + void Swap(DoubleMsg* other); + + // implements Message ---------------------------------------------- + + DoubleMsg* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DoubleMsg& from); + void MergeFrom(const DoubleMsg& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required double double_msg = 1; + inline bool has_double_msg() const; + inline void clear_double_msg(); + static const int kDoubleMsgFieldNumber = 1; + inline double double_msg() const; + inline void set_double_msg(double value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DoubleMsg) + private: + inline void set_has_double_msg(); + inline void clear_has_double_msg(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + double double_msg_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static DoubleMsg* default_instance_; +}; +// ------------------------------------------------------------------- + +class BigDecimalMsg : public ::google::protobuf::Message { + public: + BigDecimalMsg(); + virtual ~BigDecimalMsg(); + + BigDecimalMsg(const BigDecimalMsg& from); + + inline BigDecimalMsg& operator=(const BigDecimalMsg& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BigDecimalMsg& default_instance(); + + void Swap(BigDecimalMsg* other); + + // implements Message ---------------------------------------------- + + BigDecimalMsg* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BigDecimalMsg& from); + void MergeFrom(const BigDecimalMsg& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes bigdecimal_msg = 1; + inline bool has_bigdecimal_msg() const; + inline void clear_bigdecimal_msg(); + static const int kBigdecimalMsgFieldNumber = 1; + inline const ::std::string& bigdecimal_msg() const; + inline void set_bigdecimal_msg(const ::std::string& value); + inline void set_bigdecimal_msg(const char* value); + inline void set_bigdecimal_msg(const void* value, size_t size); + inline ::std::string* mutable_bigdecimal_msg(); + inline ::std::string* release_bigdecimal_msg(); + inline void set_allocated_bigdecimal_msg(::std::string* bigdecimal_msg); + + // @@protoc_insertion_point(class_scope:hbase.pb.BigDecimalMsg) + private: + inline void set_has_bigdecimal_msg(); + inline void clear_has_bigdecimal_msg(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* bigdecimal_msg_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static BigDecimalMsg* default_instance_; +}; +// ------------------------------------------------------------------- + +class UUID : public ::google::protobuf::Message { + public: + UUID(); + virtual ~UUID(); + + UUID(const UUID& from); + + inline UUID& operator=(const UUID& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UUID& default_instance(); + + void Swap(UUID* other); + + // implements Message ---------------------------------------------- + + UUID* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UUID& from); + void MergeFrom(const UUID& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 least_sig_bits = 1; + inline bool has_least_sig_bits() const; + inline void clear_least_sig_bits(); + static const int kLeastSigBitsFieldNumber = 1; + inline ::google::protobuf::uint64 least_sig_bits() const; + inline void set_least_sig_bits(::google::protobuf::uint64 value); + + // required uint64 most_sig_bits = 2; + inline bool has_most_sig_bits() const; + inline void clear_most_sig_bits(); + static const int kMostSigBitsFieldNumber = 2; + inline ::google::protobuf::uint64 most_sig_bits() const; + inline void set_most_sig_bits(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.UUID) + private: + inline void set_has_least_sig_bits(); + inline void clear_has_least_sig_bits(); + inline void set_has_most_sig_bits(); + inline void clear_has_most_sig_bits(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 least_sig_bits_; + ::google::protobuf::uint64 most_sig_bits_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static UUID* default_instance_; +}; +// ------------------------------------------------------------------- + +class NamespaceDescriptor : public ::google::protobuf::Message { + public: + NamespaceDescriptor(); + virtual ~NamespaceDescriptor(); + + NamespaceDescriptor(const NamespaceDescriptor& from); + + inline NamespaceDescriptor& operator=(const NamespaceDescriptor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NamespaceDescriptor& default_instance(); + + void Swap(NamespaceDescriptor* other); + + // implements Message ---------------------------------------------- + + NamespaceDescriptor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NamespaceDescriptor& from); + void MergeFrom(const NamespaceDescriptor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const void* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // repeated .hbase.pb.NameStringPair configuration = 2; + inline int configuration_size() const; + inline void clear_configuration(); + static const int kConfigurationFieldNumber = 2; + inline const ::hbase::pb::NameStringPair& configuration(int index) const; + inline ::hbase::pb::NameStringPair* mutable_configuration(int index); + inline ::hbase::pb::NameStringPair* add_configuration(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& + configuration() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* + mutable_configuration(); + + // @@protoc_insertion_point(class_scope:hbase.pb.NamespaceDescriptor) + private: + inline void set_has_name(); + inline void clear_has_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair > configuration_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static NamespaceDescriptor* default_instance_; +}; +// ------------------------------------------------------------------- + +class VersionInfo : public ::google::protobuf::Message { + public: + VersionInfo(); + virtual ~VersionInfo(); + + VersionInfo(const VersionInfo& from); + + inline VersionInfo& operator=(const VersionInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const VersionInfo& default_instance(); + + void Swap(VersionInfo* other); + + // implements Message ---------------------------------------------- + + VersionInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const VersionInfo& from); + void MergeFrom(const VersionInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string version = 1; + inline bool has_version() const; + inline void clear_version(); + static const int kVersionFieldNumber = 1; + inline const ::std::string& version() const; + inline void set_version(const ::std::string& value); + inline void set_version(const char* value); + inline void set_version(const char* value, size_t size); + inline ::std::string* mutable_version(); + inline ::std::string* release_version(); + inline void set_allocated_version(::std::string* version); + + // required string url = 2; + inline bool has_url() const; + inline void clear_url(); + static const int kUrlFieldNumber = 2; + inline const ::std::string& url() const; + inline void set_url(const ::std::string& value); + inline void set_url(const char* value); + inline void set_url(const char* value, size_t size); + inline ::std::string* mutable_url(); + inline ::std::string* release_url(); + inline void set_allocated_url(::std::string* url); + + // required string revision = 3; + inline bool has_revision() const; + inline void clear_revision(); + static const int kRevisionFieldNumber = 3; + inline const ::std::string& revision() const; + inline void set_revision(const ::std::string& value); + inline void set_revision(const char* value); + inline void set_revision(const char* value, size_t size); + inline ::std::string* mutable_revision(); + inline ::std::string* release_revision(); + inline void set_allocated_revision(::std::string* revision); + + // required string user = 4; + inline bool has_user() const; + inline void clear_user(); + static const int kUserFieldNumber = 4; + inline const ::std::string& user() const; + inline void set_user(const ::std::string& value); + inline void set_user(const char* value); + inline void set_user(const char* value, size_t size); + inline ::std::string* mutable_user(); + inline ::std::string* release_user(); + inline void set_allocated_user(::std::string* user); + + // required string date = 5; + inline bool has_date() const; + inline void clear_date(); + static const int kDateFieldNumber = 5; + inline const ::std::string& date() const; + inline void set_date(const ::std::string& value); + inline void set_date(const char* value); + inline void set_date(const char* value, size_t size); + inline ::std::string* mutable_date(); + inline ::std::string* release_date(); + inline void set_allocated_date(::std::string* date); + + // required string src_checksum = 6; + inline bool has_src_checksum() const; + inline void clear_src_checksum(); + static const int kSrcChecksumFieldNumber = 6; + inline const ::std::string& src_checksum() const; + inline void set_src_checksum(const ::std::string& value); + inline void set_src_checksum(const char* value); + inline void set_src_checksum(const char* value, size_t size); + inline ::std::string* mutable_src_checksum(); + inline ::std::string* release_src_checksum(); + inline void set_allocated_src_checksum(::std::string* src_checksum); + + // optional uint32 version_major = 7; + inline bool has_version_major() const; + inline void clear_version_major(); + static const int kVersionMajorFieldNumber = 7; + inline ::google::protobuf::uint32 version_major() const; + inline void set_version_major(::google::protobuf::uint32 value); + + // optional uint32 version_minor = 8; + inline bool has_version_minor() const; + inline void clear_version_minor(); + static const int kVersionMinorFieldNumber = 8; + inline ::google::protobuf::uint32 version_minor() const; + inline void set_version_minor(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.VersionInfo) + private: + inline void set_has_version(); + inline void clear_has_version(); + inline void set_has_url(); + inline void clear_has_url(); + inline void set_has_revision(); + inline void clear_has_revision(); + inline void set_has_user(); + inline void clear_has_user(); + inline void set_has_date(); + inline void clear_has_date(); + inline void set_has_src_checksum(); + inline void clear_has_src_checksum(); + inline void set_has_version_major(); + inline void clear_has_version_major(); + inline void set_has_version_minor(); + inline void clear_has_version_minor(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* version_; + ::std::string* url_; + ::std::string* revision_; + ::std::string* user_; + ::std::string* date_; + ::std::string* src_checksum_; + ::google::protobuf::uint32 version_major_; + ::google::protobuf::uint32 version_minor_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static VersionInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionServerInfo : public ::google::protobuf::Message { + public: + RegionServerInfo(); + virtual ~RegionServerInfo(); + + RegionServerInfo(const RegionServerInfo& from); + + inline RegionServerInfo& operator=(const RegionServerInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionServerInfo& default_instance(); + + void Swap(RegionServerInfo* other); + + // implements Message ---------------------------------------------- + + RegionServerInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionServerInfo& from); + void MergeFrom(const RegionServerInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional int32 infoPort = 1; + inline bool has_infoport() const; + inline void clear_infoport(); + static const int kInfoPortFieldNumber = 1; + inline ::google::protobuf::int32 infoport() const; + inline void set_infoport(::google::protobuf::int32 value); + + // optional .hbase.pb.VersionInfo version_info = 2; + inline bool has_version_info() const; + inline void clear_version_info(); + static const int kVersionInfoFieldNumber = 2; + inline const ::hbase::pb::VersionInfo& version_info() const; + inline ::hbase::pb::VersionInfo* mutable_version_info(); + inline ::hbase::pb::VersionInfo* release_version_info(); + inline void set_allocated_version_info(::hbase::pb::VersionInfo* version_info); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionServerInfo) + private: + inline void set_has_infoport(); + inline void clear_has_infoport(); + inline void set_has_version_info(); + inline void clear_has_version_info(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::VersionInfo* version_info_; + ::google::protobuf::int32 infoport_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_HBase_2eproto(); + friend void protobuf_AssignDesc_HBase_2eproto(); + friend void protobuf_ShutdownFile_HBase_2eproto(); + + void InitAsDefaultInstance(); + static RegionServerInfo* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// TableName + +// required bytes namespace = 1; +inline bool TableName::has_namespace_() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TableName::set_has_namespace_() { + _has_bits_[0] |= 0x00000001u; +} +inline void TableName::clear_has_namespace_() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TableName::clear_namespace_() { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + namespace__->clear(); + } + clear_has_namespace_(); +} +inline const ::std::string& TableName::namespace_() const { + return *namespace__; +} +inline void TableName::set_namespace_(const ::std::string& value) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(value); +} +inline void TableName::set_namespace_(const char* value) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(value); +} +inline void TableName::set_namespace_(const void* value, size_t size) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(reinterpret_cast(value), size); +} +inline ::std::string* TableName::mutable_namespace_() { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + return namespace__; +} +inline ::std::string* TableName::release_namespace_() { + clear_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespace__; + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void TableName::set_allocated_namespace_(::std::string* namespace_) { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + delete namespace__; + } + if (namespace_) { + set_has_namespace_(); + namespace__ = namespace_; + } else { + clear_has_namespace_(); + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes qualifier = 2; +inline bool TableName::has_qualifier() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TableName::set_has_qualifier() { + _has_bits_[0] |= 0x00000002u; +} +inline void TableName::clear_has_qualifier() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TableName::clear_qualifier() { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + qualifier_->clear(); + } + clear_has_qualifier(); +} +inline const ::std::string& TableName::qualifier() const { + return *qualifier_; +} +inline void TableName::set_qualifier(const ::std::string& value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void TableName::set_qualifier(const char* value) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(value); +} +inline void TableName::set_qualifier(const void* value, size_t size) { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + qualifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* TableName::mutable_qualifier() { + set_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + qualifier_ = new ::std::string; + } + return qualifier_; +} +inline ::std::string* TableName::release_qualifier() { + clear_has_qualifier(); + if (qualifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = qualifier_; + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void TableName::set_allocated_qualifier(::std::string* qualifier) { + if (qualifier_ != &::google::protobuf::internal::kEmptyString) { + delete qualifier_; + } + if (qualifier) { + set_has_qualifier(); + qualifier_ = qualifier; + } else { + clear_has_qualifier(); + qualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// TableSchema + +// optional .hbase.pb.TableName table_name = 1; +inline bool TableSchema::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TableSchema::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void TableSchema::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TableSchema::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& TableSchema::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* TableSchema::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* TableSchema::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void TableSchema::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// repeated .hbase.pb.BytesBytesPair attributes = 2; +inline int TableSchema::attributes_size() const { + return attributes_.size(); +} +inline void TableSchema::clear_attributes() { + attributes_.Clear(); +} +inline const ::hbase::pb::BytesBytesPair& TableSchema::attributes(int index) const { + return attributes_.Get(index); +} +inline ::hbase::pb::BytesBytesPair* TableSchema::mutable_attributes(int index) { + return attributes_.Mutable(index); +} +inline ::hbase::pb::BytesBytesPair* TableSchema::add_attributes() { + return attributes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& +TableSchema::attributes() const { + return attributes_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* +TableSchema::mutable_attributes() { + return &attributes_; +} + +// repeated .hbase.pb.ColumnFamilySchema column_families = 3; +inline int TableSchema::column_families_size() const { + return column_families_.size(); +} +inline void TableSchema::clear_column_families() { + column_families_.Clear(); +} +inline const ::hbase::pb::ColumnFamilySchema& TableSchema::column_families(int index) const { + return column_families_.Get(index); +} +inline ::hbase::pb::ColumnFamilySchema* TableSchema::mutable_column_families(int index) { + return column_families_.Mutable(index); +} +inline ::hbase::pb::ColumnFamilySchema* TableSchema::add_column_families() { + return column_families_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilySchema >& +TableSchema::column_families() const { + return column_families_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ColumnFamilySchema >* +TableSchema::mutable_column_families() { + return &column_families_; +} + +// repeated .hbase.pb.NameStringPair configuration = 4; +inline int TableSchema::configuration_size() const { + return configuration_.size(); +} +inline void TableSchema::clear_configuration() { + configuration_.Clear(); +} +inline const ::hbase::pb::NameStringPair& TableSchema::configuration(int index) const { + return configuration_.Get(index); +} +inline ::hbase::pb::NameStringPair* TableSchema::mutable_configuration(int index) { + return configuration_.Mutable(index); +} +inline ::hbase::pb::NameStringPair* TableSchema::add_configuration() { + return configuration_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& +TableSchema::configuration() const { + return configuration_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* +TableSchema::mutable_configuration() { + return &configuration_; +} + +// ------------------------------------------------------------------- + +// TableState + +// required .hbase.pb.TableState.State state = 1; +inline bool TableState::has_state() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TableState::set_has_state() { + _has_bits_[0] |= 0x00000001u; +} +inline void TableState::clear_has_state() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TableState::clear_state() { + state_ = 0; + clear_has_state(); +} +inline ::hbase::pb::TableState_State TableState::state() const { + return static_cast< ::hbase::pb::TableState_State >(state_); +} +inline void TableState::set_state(::hbase::pb::TableState_State value) { + assert(::hbase::pb::TableState_State_IsValid(value)); + set_has_state(); + state_ = value; +} + +// ------------------------------------------------------------------- + +// TableDescriptor + +// required .hbase.pb.TableSchema schema = 1; +inline bool TableDescriptor::has_schema() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TableDescriptor::set_has_schema() { + _has_bits_[0] |= 0x00000001u; +} +inline void TableDescriptor::clear_has_schema() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TableDescriptor::clear_schema() { + if (schema_ != NULL) schema_->::hbase::pb::TableSchema::Clear(); + clear_has_schema(); +} +inline const ::hbase::pb::TableSchema& TableDescriptor::schema() const { + return schema_ != NULL ? *schema_ : *default_instance_->schema_; +} +inline ::hbase::pb::TableSchema* TableDescriptor::mutable_schema() { + set_has_schema(); + if (schema_ == NULL) schema_ = new ::hbase::pb::TableSchema; + return schema_; +} +inline ::hbase::pb::TableSchema* TableDescriptor::release_schema() { + clear_has_schema(); + ::hbase::pb::TableSchema* temp = schema_; + schema_ = NULL; + return temp; +} +inline void TableDescriptor::set_allocated_schema(::hbase::pb::TableSchema* schema) { + delete schema_; + schema_ = schema; + if (schema) { + set_has_schema(); + } else { + clear_has_schema(); + } +} + +// ------------------------------------------------------------------- + +// ColumnFamilySchema + +// required bytes name = 1; +inline bool ColumnFamilySchema::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ColumnFamilySchema::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ColumnFamilySchema::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ColumnFamilySchema::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& ColumnFamilySchema::name() const { + return *name_; +} +inline void ColumnFamilySchema::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void ColumnFamilySchema::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void ColumnFamilySchema::set_name(const void* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ColumnFamilySchema::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* ColumnFamilySchema::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ColumnFamilySchema::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.BytesBytesPair attributes = 2; +inline int ColumnFamilySchema::attributes_size() const { + return attributes_.size(); +} +inline void ColumnFamilySchema::clear_attributes() { + attributes_.Clear(); +} +inline const ::hbase::pb::BytesBytesPair& ColumnFamilySchema::attributes(int index) const { + return attributes_.Get(index); +} +inline ::hbase::pb::BytesBytesPair* ColumnFamilySchema::mutable_attributes(int index) { + return attributes_.Mutable(index); +} +inline ::hbase::pb::BytesBytesPair* ColumnFamilySchema::add_attributes() { + return attributes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& +ColumnFamilySchema::attributes() const { + return attributes_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* +ColumnFamilySchema::mutable_attributes() { + return &attributes_; +} + +// repeated .hbase.pb.NameStringPair configuration = 3; +inline int ColumnFamilySchema::configuration_size() const { + return configuration_.size(); +} +inline void ColumnFamilySchema::clear_configuration() { + configuration_.Clear(); +} +inline const ::hbase::pb::NameStringPair& ColumnFamilySchema::configuration(int index) const { + return configuration_.Get(index); +} +inline ::hbase::pb::NameStringPair* ColumnFamilySchema::mutable_configuration(int index) { + return configuration_.Mutable(index); +} +inline ::hbase::pb::NameStringPair* ColumnFamilySchema::add_configuration() { + return configuration_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& +ColumnFamilySchema::configuration() const { + return configuration_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* +ColumnFamilySchema::mutable_configuration() { + return &configuration_; +} + +// ------------------------------------------------------------------- + +// RegionInfo + +// required uint64 region_id = 1; +inline bool RegionInfo::has_region_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionInfo::set_has_region_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionInfo::clear_has_region_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionInfo::clear_region_id() { + region_id_ = GOOGLE_ULONGLONG(0); + clear_has_region_id(); +} +inline ::google::protobuf::uint64 RegionInfo::region_id() const { + return region_id_; +} +inline void RegionInfo::set_region_id(::google::protobuf::uint64 value) { + set_has_region_id(); + region_id_ = value; +} + +// required .hbase.pb.TableName table_name = 2; +inline bool RegionInfo::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionInfo::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionInfo::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionInfo::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& RegionInfo::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* RegionInfo::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* RegionInfo::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void RegionInfo::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional bytes start_key = 3; +inline bool RegionInfo::has_start_key() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RegionInfo::set_has_start_key() { + _has_bits_[0] |= 0x00000004u; +} +inline void RegionInfo::clear_has_start_key() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RegionInfo::clear_start_key() { + if (start_key_ != &::google::protobuf::internal::kEmptyString) { + start_key_->clear(); + } + clear_has_start_key(); +} +inline const ::std::string& RegionInfo::start_key() const { + return *start_key_; +} +inline void RegionInfo::set_start_key(const ::std::string& value) { + set_has_start_key(); + if (start_key_ == &::google::protobuf::internal::kEmptyString) { + start_key_ = new ::std::string; + } + start_key_->assign(value); +} +inline void RegionInfo::set_start_key(const char* value) { + set_has_start_key(); + if (start_key_ == &::google::protobuf::internal::kEmptyString) { + start_key_ = new ::std::string; + } + start_key_->assign(value); +} +inline void RegionInfo::set_start_key(const void* value, size_t size) { + set_has_start_key(); + if (start_key_ == &::google::protobuf::internal::kEmptyString) { + start_key_ = new ::std::string; + } + start_key_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegionInfo::mutable_start_key() { + set_has_start_key(); + if (start_key_ == &::google::protobuf::internal::kEmptyString) { + start_key_ = new ::std::string; + } + return start_key_; +} +inline ::std::string* RegionInfo::release_start_key() { + clear_has_start_key(); + if (start_key_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = start_key_; + start_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegionInfo::set_allocated_start_key(::std::string* start_key) { + if (start_key_ != &::google::protobuf::internal::kEmptyString) { + delete start_key_; + } + if (start_key) { + set_has_start_key(); + start_key_ = start_key; + } else { + clear_has_start_key(); + start_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes end_key = 4; +inline bool RegionInfo::has_end_key() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RegionInfo::set_has_end_key() { + _has_bits_[0] |= 0x00000008u; +} +inline void RegionInfo::clear_has_end_key() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RegionInfo::clear_end_key() { + if (end_key_ != &::google::protobuf::internal::kEmptyString) { + end_key_->clear(); + } + clear_has_end_key(); +} +inline const ::std::string& RegionInfo::end_key() const { + return *end_key_; +} +inline void RegionInfo::set_end_key(const ::std::string& value) { + set_has_end_key(); + if (end_key_ == &::google::protobuf::internal::kEmptyString) { + end_key_ = new ::std::string; + } + end_key_->assign(value); +} +inline void RegionInfo::set_end_key(const char* value) { + set_has_end_key(); + if (end_key_ == &::google::protobuf::internal::kEmptyString) { + end_key_ = new ::std::string; + } + end_key_->assign(value); +} +inline void RegionInfo::set_end_key(const void* value, size_t size) { + set_has_end_key(); + if (end_key_ == &::google::protobuf::internal::kEmptyString) { + end_key_ = new ::std::string; + } + end_key_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegionInfo::mutable_end_key() { + set_has_end_key(); + if (end_key_ == &::google::protobuf::internal::kEmptyString) { + end_key_ = new ::std::string; + } + return end_key_; +} +inline ::std::string* RegionInfo::release_end_key() { + clear_has_end_key(); + if (end_key_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = end_key_; + end_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegionInfo::set_allocated_end_key(::std::string* end_key) { + if (end_key_ != &::google::protobuf::internal::kEmptyString) { + delete end_key_; + } + if (end_key) { + set_has_end_key(); + end_key_ = end_key; + } else { + clear_has_end_key(); + end_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool offline = 5; +inline bool RegionInfo::has_offline() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void RegionInfo::set_has_offline() { + _has_bits_[0] |= 0x00000010u; +} +inline void RegionInfo::clear_has_offline() { + _has_bits_[0] &= ~0x00000010u; +} +inline void RegionInfo::clear_offline() { + offline_ = false; + clear_has_offline(); +} +inline bool RegionInfo::offline() const { + return offline_; +} +inline void RegionInfo::set_offline(bool value) { + set_has_offline(); + offline_ = value; +} + +// optional bool split = 6; +inline bool RegionInfo::has_split() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void RegionInfo::set_has_split() { + _has_bits_[0] |= 0x00000020u; +} +inline void RegionInfo::clear_has_split() { + _has_bits_[0] &= ~0x00000020u; +} +inline void RegionInfo::clear_split() { + split_ = false; + clear_has_split(); +} +inline bool RegionInfo::split() const { + return split_; +} +inline void RegionInfo::set_split(bool value) { + set_has_split(); + split_ = value; +} + +// optional int32 replica_id = 7 [default = 0]; +inline bool RegionInfo::has_replica_id() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void RegionInfo::set_has_replica_id() { + _has_bits_[0] |= 0x00000040u; +} +inline void RegionInfo::clear_has_replica_id() { + _has_bits_[0] &= ~0x00000040u; +} +inline void RegionInfo::clear_replica_id() { + replica_id_ = 0; + clear_has_replica_id(); +} +inline ::google::protobuf::int32 RegionInfo::replica_id() const { + return replica_id_; +} +inline void RegionInfo::set_replica_id(::google::protobuf::int32 value) { + set_has_replica_id(); + replica_id_ = value; +} + +// ------------------------------------------------------------------- + +// FavoredNodes + +// repeated .hbase.pb.ServerName favored_node = 1; +inline int FavoredNodes::favored_node_size() const { + return favored_node_.size(); +} +inline void FavoredNodes::clear_favored_node() { + favored_node_.Clear(); +} +inline const ::hbase::pb::ServerName& FavoredNodes::favored_node(int index) const { + return favored_node_.Get(index); +} +inline ::hbase::pb::ServerName* FavoredNodes::mutable_favored_node(int index) { + return favored_node_.Mutable(index); +} +inline ::hbase::pb::ServerName* FavoredNodes::add_favored_node() { + return favored_node_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& +FavoredNodes::favored_node() const { + return favored_node_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* +FavoredNodes::mutable_favored_node() { + return &favored_node_; +} + +// ------------------------------------------------------------------- + +// RegionSpecifier + +// required .hbase.pb.RegionSpecifier.RegionSpecifierType type = 1; +inline bool RegionSpecifier::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionSpecifier::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionSpecifier::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionSpecifier::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hbase::pb::RegionSpecifier_RegionSpecifierType RegionSpecifier::type() const { + return static_cast< ::hbase::pb::RegionSpecifier_RegionSpecifierType >(type_); +} +inline void RegionSpecifier::set_type(::hbase::pb::RegionSpecifier_RegionSpecifierType value) { + assert(::hbase::pb::RegionSpecifier_RegionSpecifierType_IsValid(value)); + set_has_type(); + type_ = value; +} + +// required bytes value = 2; +inline bool RegionSpecifier::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionSpecifier::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionSpecifier::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionSpecifier::clear_value() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + clear_has_value(); +} +inline const ::std::string& RegionSpecifier::value() const { + return *value_; +} +inline void RegionSpecifier::set_value(const ::std::string& value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void RegionSpecifier::set_value(const char* value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void RegionSpecifier::set_value(const void* value, size_t size) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegionSpecifier::mutable_value() { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + return value_; +} +inline ::std::string* RegionSpecifier::release_value() { + clear_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = value_; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegionSpecifier::set_allocated_value(::std::string* value) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (value) { + set_has_value(); + value_ = value; + } else { + clear_has_value(); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// TimeRange + +// optional uint64 from = 1; +inline bool TimeRange::has_from() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TimeRange::set_has_from() { + _has_bits_[0] |= 0x00000001u; +} +inline void TimeRange::clear_has_from() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TimeRange::clear_from() { + from_ = GOOGLE_ULONGLONG(0); + clear_has_from(); +} +inline ::google::protobuf::uint64 TimeRange::from() const { + return from_; +} +inline void TimeRange::set_from(::google::protobuf::uint64 value) { + set_has_from(); + from_ = value; +} + +// optional uint64 to = 2; +inline bool TimeRange::has_to() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TimeRange::set_has_to() { + _has_bits_[0] |= 0x00000002u; +} +inline void TimeRange::clear_has_to() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TimeRange::clear_to() { + to_ = GOOGLE_ULONGLONG(0); + clear_has_to(); +} +inline ::google::protobuf::uint64 TimeRange::to() const { + return to_; +} +inline void TimeRange::set_to(::google::protobuf::uint64 value) { + set_has_to(); + to_ = value; +} + +// ------------------------------------------------------------------- + +// ColumnFamilyTimeRange + +// required bytes column_family = 1; +inline bool ColumnFamilyTimeRange::has_column_family() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ColumnFamilyTimeRange::set_has_column_family() { + _has_bits_[0] |= 0x00000001u; +} +inline void ColumnFamilyTimeRange::clear_has_column_family() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ColumnFamilyTimeRange::clear_column_family() { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + column_family_->clear(); + } + clear_has_column_family(); +} +inline const ::std::string& ColumnFamilyTimeRange::column_family() const { + return *column_family_; +} +inline void ColumnFamilyTimeRange::set_column_family(const ::std::string& value) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(value); +} +inline void ColumnFamilyTimeRange::set_column_family(const char* value) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(value); +} +inline void ColumnFamilyTimeRange::set_column_family(const void* value, size_t size) { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + column_family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ColumnFamilyTimeRange::mutable_column_family() { + set_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + column_family_ = new ::std::string; + } + return column_family_; +} +inline ::std::string* ColumnFamilyTimeRange::release_column_family() { + clear_has_column_family(); + if (column_family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = column_family_; + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ColumnFamilyTimeRange::set_allocated_column_family(::std::string* column_family) { + if (column_family_ != &::google::protobuf::internal::kEmptyString) { + delete column_family_; + } + if (column_family) { + set_has_column_family(); + column_family_ = column_family; + } else { + clear_has_column_family(); + column_family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required .hbase.pb.TimeRange time_range = 2; +inline bool ColumnFamilyTimeRange::has_time_range() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ColumnFamilyTimeRange::set_has_time_range() { + _has_bits_[0] |= 0x00000002u; +} +inline void ColumnFamilyTimeRange::clear_has_time_range() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ColumnFamilyTimeRange::clear_time_range() { + if (time_range_ != NULL) time_range_->::hbase::pb::TimeRange::Clear(); + clear_has_time_range(); +} +inline const ::hbase::pb::TimeRange& ColumnFamilyTimeRange::time_range() const { + return time_range_ != NULL ? *time_range_ : *default_instance_->time_range_; +} +inline ::hbase::pb::TimeRange* ColumnFamilyTimeRange::mutable_time_range() { + set_has_time_range(); + if (time_range_ == NULL) time_range_ = new ::hbase::pb::TimeRange; + return time_range_; +} +inline ::hbase::pb::TimeRange* ColumnFamilyTimeRange::release_time_range() { + clear_has_time_range(); + ::hbase::pb::TimeRange* temp = time_range_; + time_range_ = NULL; + return temp; +} +inline void ColumnFamilyTimeRange::set_allocated_time_range(::hbase::pb::TimeRange* time_range) { + delete time_range_; + time_range_ = time_range; + if (time_range) { + set_has_time_range(); + } else { + clear_has_time_range(); + } +} + +// ------------------------------------------------------------------- + +// ServerName + +// required string host_name = 1; +inline bool ServerName::has_host_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ServerName::set_has_host_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ServerName::clear_has_host_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ServerName::clear_host_name() { + if (host_name_ != &::google::protobuf::internal::kEmptyString) { + host_name_->clear(); + } + clear_has_host_name(); +} +inline const ::std::string& ServerName::host_name() const { + return *host_name_; +} +inline void ServerName::set_host_name(const ::std::string& value) { + set_has_host_name(); + if (host_name_ == &::google::protobuf::internal::kEmptyString) { + host_name_ = new ::std::string; + } + host_name_->assign(value); +} +inline void ServerName::set_host_name(const char* value) { + set_has_host_name(); + if (host_name_ == &::google::protobuf::internal::kEmptyString) { + host_name_ = new ::std::string; + } + host_name_->assign(value); +} +inline void ServerName::set_host_name(const char* value, size_t size) { + set_has_host_name(); + if (host_name_ == &::google::protobuf::internal::kEmptyString) { + host_name_ = new ::std::string; + } + host_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ServerName::mutable_host_name() { + set_has_host_name(); + if (host_name_ == &::google::protobuf::internal::kEmptyString) { + host_name_ = new ::std::string; + } + return host_name_; +} +inline ::std::string* ServerName::release_host_name() { + clear_has_host_name(); + if (host_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = host_name_; + host_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ServerName::set_allocated_host_name(::std::string* host_name) { + if (host_name_ != &::google::protobuf::internal::kEmptyString) { + delete host_name_; + } + if (host_name) { + set_has_host_name(); + host_name_ = host_name; + } else { + clear_has_host_name(); + host_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint32 port = 2; +inline bool ServerName::has_port() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ServerName::set_has_port() { + _has_bits_[0] |= 0x00000002u; +} +inline void ServerName::clear_has_port() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ServerName::clear_port() { + port_ = 0u; + clear_has_port(); +} +inline ::google::protobuf::uint32 ServerName::port() const { + return port_; +} +inline void ServerName::set_port(::google::protobuf::uint32 value) { + set_has_port(); + port_ = value; +} + +// optional uint64 start_code = 3; +inline bool ServerName::has_start_code() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ServerName::set_has_start_code() { + _has_bits_[0] |= 0x00000004u; +} +inline void ServerName::clear_has_start_code() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ServerName::clear_start_code() { + start_code_ = GOOGLE_ULONGLONG(0); + clear_has_start_code(); +} +inline ::google::protobuf::uint64 ServerName::start_code() const { + return start_code_; +} +inline void ServerName::set_start_code(::google::protobuf::uint64 value) { + set_has_start_code(); + start_code_ = value; +} + +// ------------------------------------------------------------------- + +// Coprocessor + +// required string name = 1; +inline bool Coprocessor::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Coprocessor::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void Coprocessor::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Coprocessor::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& Coprocessor::name() const { + return *name_; +} +inline void Coprocessor::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void Coprocessor::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void Coprocessor::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Coprocessor::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* Coprocessor::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Coprocessor::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// NameStringPair + +// required string name = 1; +inline bool NameStringPair::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NameStringPair::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void NameStringPair::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NameStringPair::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& NameStringPair::name() const { + return *name_; +} +inline void NameStringPair::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void NameStringPair::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void NameStringPair::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* NameStringPair::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* NameStringPair::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void NameStringPair::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string value = 2; +inline bool NameStringPair::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NameStringPair::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void NameStringPair::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NameStringPair::clear_value() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + clear_has_value(); +} +inline const ::std::string& NameStringPair::value() const { + return *value_; +} +inline void NameStringPair::set_value(const ::std::string& value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void NameStringPair::set_value(const char* value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void NameStringPair::set_value(const char* value, size_t size) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(reinterpret_cast(value), size); +} +inline ::std::string* NameStringPair::mutable_value() { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + return value_; +} +inline ::std::string* NameStringPair::release_value() { + clear_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = value_; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void NameStringPair::set_allocated_value(::std::string* value) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (value) { + set_has_value(); + value_ = value; + } else { + clear_has_value(); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// NameBytesPair + +// required string name = 1; +inline bool NameBytesPair::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NameBytesPair::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void NameBytesPair::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NameBytesPair::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& NameBytesPair::name() const { + return *name_; +} +inline void NameBytesPair::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void NameBytesPair::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void NameBytesPair::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* NameBytesPair::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* NameBytesPair::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void NameBytesPair::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes value = 2; +inline bool NameBytesPair::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NameBytesPair::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void NameBytesPair::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NameBytesPair::clear_value() { + if (value_ != &::google::protobuf::internal::kEmptyString) { + value_->clear(); + } + clear_has_value(); +} +inline const ::std::string& NameBytesPair::value() const { + return *value_; +} +inline void NameBytesPair::set_value(const ::std::string& value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void NameBytesPair::set_value(const char* value) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(value); +} +inline void NameBytesPair::set_value(const void* value, size_t size) { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + value_->assign(reinterpret_cast(value), size); +} +inline ::std::string* NameBytesPair::mutable_value() { + set_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + value_ = new ::std::string; + } + return value_; +} +inline ::std::string* NameBytesPair::release_value() { + clear_has_value(); + if (value_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = value_; + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void NameBytesPair::set_allocated_value(::std::string* value) { + if (value_ != &::google::protobuf::internal::kEmptyString) { + delete value_; + } + if (value) { + set_has_value(); + value_ = value; + } else { + clear_has_value(); + value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// BytesBytesPair + +// required bytes first = 1; +inline bool BytesBytesPair::has_first() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BytesBytesPair::set_has_first() { + _has_bits_[0] |= 0x00000001u; +} +inline void BytesBytesPair::clear_has_first() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BytesBytesPair::clear_first() { + if (first_ != &::google::protobuf::internal::kEmptyString) { + first_->clear(); + } + clear_has_first(); +} +inline const ::std::string& BytesBytesPair::first() const { + return *first_; +} +inline void BytesBytesPair::set_first(const ::std::string& value) { + set_has_first(); + if (first_ == &::google::protobuf::internal::kEmptyString) { + first_ = new ::std::string; + } + first_->assign(value); +} +inline void BytesBytesPair::set_first(const char* value) { + set_has_first(); + if (first_ == &::google::protobuf::internal::kEmptyString) { + first_ = new ::std::string; + } + first_->assign(value); +} +inline void BytesBytesPair::set_first(const void* value, size_t size) { + set_has_first(); + if (first_ == &::google::protobuf::internal::kEmptyString) { + first_ = new ::std::string; + } + first_->assign(reinterpret_cast(value), size); +} +inline ::std::string* BytesBytesPair::mutable_first() { + set_has_first(); + if (first_ == &::google::protobuf::internal::kEmptyString) { + first_ = new ::std::string; + } + return first_; +} +inline ::std::string* BytesBytesPair::release_first() { + clear_has_first(); + if (first_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = first_; + first_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void BytesBytesPair::set_allocated_first(::std::string* first) { + if (first_ != &::google::protobuf::internal::kEmptyString) { + delete first_; + } + if (first) { + set_has_first(); + first_ = first; + } else { + clear_has_first(); + first_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes second = 2; +inline bool BytesBytesPair::has_second() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BytesBytesPair::set_has_second() { + _has_bits_[0] |= 0x00000002u; +} +inline void BytesBytesPair::clear_has_second() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BytesBytesPair::clear_second() { + if (second_ != &::google::protobuf::internal::kEmptyString) { + second_->clear(); + } + clear_has_second(); +} +inline const ::std::string& BytesBytesPair::second() const { + return *second_; +} +inline void BytesBytesPair::set_second(const ::std::string& value) { + set_has_second(); + if (second_ == &::google::protobuf::internal::kEmptyString) { + second_ = new ::std::string; + } + second_->assign(value); +} +inline void BytesBytesPair::set_second(const char* value) { + set_has_second(); + if (second_ == &::google::protobuf::internal::kEmptyString) { + second_ = new ::std::string; + } + second_->assign(value); +} +inline void BytesBytesPair::set_second(const void* value, size_t size) { + set_has_second(); + if (second_ == &::google::protobuf::internal::kEmptyString) { + second_ = new ::std::string; + } + second_->assign(reinterpret_cast(value), size); +} +inline ::std::string* BytesBytesPair::mutable_second() { + set_has_second(); + if (second_ == &::google::protobuf::internal::kEmptyString) { + second_ = new ::std::string; + } + return second_; +} +inline ::std::string* BytesBytesPair::release_second() { + clear_has_second(); + if (second_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = second_; + second_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void BytesBytesPair::set_allocated_second(::std::string* second) { + if (second_ != &::google::protobuf::internal::kEmptyString) { + delete second_; + } + if (second) { + set_has_second(); + second_ = second; + } else { + clear_has_second(); + second_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// NameInt64Pair + +// optional string name = 1; +inline bool NameInt64Pair::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NameInt64Pair::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void NameInt64Pair::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NameInt64Pair::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& NameInt64Pair::name() const { + return *name_; +} +inline void NameInt64Pair::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void NameInt64Pair::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void NameInt64Pair::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* NameInt64Pair::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* NameInt64Pair::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void NameInt64Pair::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional int64 value = 2; +inline bool NameInt64Pair::has_value() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NameInt64Pair::set_has_value() { + _has_bits_[0] |= 0x00000002u; +} +inline void NameInt64Pair::clear_has_value() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NameInt64Pair::clear_value() { + value_ = GOOGLE_LONGLONG(0); + clear_has_value(); +} +inline ::google::protobuf::int64 NameInt64Pair::value() const { + return value_; +} +inline void NameInt64Pair::set_value(::google::protobuf::int64 value) { + set_has_value(); + value_ = value; +} + +// ------------------------------------------------------------------- + +// SnapshotDescription + +// required string name = 1; +inline bool SnapshotDescription::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SnapshotDescription::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void SnapshotDescription::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SnapshotDescription::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& SnapshotDescription::name() const { + return *name_; +} +inline void SnapshotDescription::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void SnapshotDescription::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void SnapshotDescription::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SnapshotDescription::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* SnapshotDescription::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SnapshotDescription::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string table = 2; +inline bool SnapshotDescription::has_table() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SnapshotDescription::set_has_table() { + _has_bits_[0] |= 0x00000002u; +} +inline void SnapshotDescription::clear_has_table() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SnapshotDescription::clear_table() { + if (table_ != &::google::protobuf::internal::kEmptyString) { + table_->clear(); + } + clear_has_table(); +} +inline const ::std::string& SnapshotDescription::table() const { + return *table_; +} +inline void SnapshotDescription::set_table(const ::std::string& value) { + set_has_table(); + if (table_ == &::google::protobuf::internal::kEmptyString) { + table_ = new ::std::string; + } + table_->assign(value); +} +inline void SnapshotDescription::set_table(const char* value) { + set_has_table(); + if (table_ == &::google::protobuf::internal::kEmptyString) { + table_ = new ::std::string; + } + table_->assign(value); +} +inline void SnapshotDescription::set_table(const char* value, size_t size) { + set_has_table(); + if (table_ == &::google::protobuf::internal::kEmptyString) { + table_ = new ::std::string; + } + table_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SnapshotDescription::mutable_table() { + set_has_table(); + if (table_ == &::google::protobuf::internal::kEmptyString) { + table_ = new ::std::string; + } + return table_; +} +inline ::std::string* SnapshotDescription::release_table() { + clear_has_table(); + if (table_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = table_; + table_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SnapshotDescription::set_allocated_table(::std::string* table) { + if (table_ != &::google::protobuf::internal::kEmptyString) { + delete table_; + } + if (table) { + set_has_table(); + table_ = table; + } else { + clear_has_table(); + table_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional int64 creation_time = 3 [default = 0]; +inline bool SnapshotDescription::has_creation_time() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SnapshotDescription::set_has_creation_time() { + _has_bits_[0] |= 0x00000004u; +} +inline void SnapshotDescription::clear_has_creation_time() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SnapshotDescription::clear_creation_time() { + creation_time_ = GOOGLE_LONGLONG(0); + clear_has_creation_time(); +} +inline ::google::protobuf::int64 SnapshotDescription::creation_time() const { + return creation_time_; +} +inline void SnapshotDescription::set_creation_time(::google::protobuf::int64 value) { + set_has_creation_time(); + creation_time_ = value; +} + +// optional .hbase.pb.SnapshotDescription.Type type = 4 [default = FLUSH]; +inline bool SnapshotDescription::has_type() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void SnapshotDescription::set_has_type() { + _has_bits_[0] |= 0x00000008u; +} +inline void SnapshotDescription::clear_has_type() { + _has_bits_[0] &= ~0x00000008u; +} +inline void SnapshotDescription::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hbase::pb::SnapshotDescription_Type SnapshotDescription::type() const { + return static_cast< ::hbase::pb::SnapshotDescription_Type >(type_); +} +inline void SnapshotDescription::set_type(::hbase::pb::SnapshotDescription_Type value) { + assert(::hbase::pb::SnapshotDescription_Type_IsValid(value)); + set_has_type(); + type_ = value; +} + +// optional int32 version = 5; +inline bool SnapshotDescription::has_version() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void SnapshotDescription::set_has_version() { + _has_bits_[0] |= 0x00000010u; +} +inline void SnapshotDescription::clear_has_version() { + _has_bits_[0] &= ~0x00000010u; +} +inline void SnapshotDescription::clear_version() { + version_ = 0; + clear_has_version(); +} +inline ::google::protobuf::int32 SnapshotDescription::version() const { + return version_; +} +inline void SnapshotDescription::set_version(::google::protobuf::int32 value) { + set_has_version(); + version_ = value; +} + +// optional string owner = 6; +inline bool SnapshotDescription::has_owner() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void SnapshotDescription::set_has_owner() { + _has_bits_[0] |= 0x00000020u; +} +inline void SnapshotDescription::clear_has_owner() { + _has_bits_[0] &= ~0x00000020u; +} +inline void SnapshotDescription::clear_owner() { + if (owner_ != &::google::protobuf::internal::kEmptyString) { + owner_->clear(); + } + clear_has_owner(); +} +inline const ::std::string& SnapshotDescription::owner() const { + return *owner_; +} +inline void SnapshotDescription::set_owner(const ::std::string& value) { + set_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + owner_ = new ::std::string; + } + owner_->assign(value); +} +inline void SnapshotDescription::set_owner(const char* value) { + set_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + owner_ = new ::std::string; + } + owner_->assign(value); +} +inline void SnapshotDescription::set_owner(const char* value, size_t size) { + set_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + owner_ = new ::std::string; + } + owner_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SnapshotDescription::mutable_owner() { + set_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + owner_ = new ::std::string; + } + return owner_; +} +inline ::std::string* SnapshotDescription::release_owner() { + clear_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = owner_; + owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SnapshotDescription::set_allocated_owner(::std::string* owner) { + if (owner_ != &::google::protobuf::internal::kEmptyString) { + delete owner_; + } + if (owner) { + set_has_owner(); + owner_ = owner; + } else { + clear_has_owner(); + owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ProcedureDescription + +// required string signature = 1; +inline bool ProcedureDescription::has_signature() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ProcedureDescription::set_has_signature() { + _has_bits_[0] |= 0x00000001u; +} +inline void ProcedureDescription::clear_has_signature() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ProcedureDescription::clear_signature() { + if (signature_ != &::google::protobuf::internal::kEmptyString) { + signature_->clear(); + } + clear_has_signature(); +} +inline const ::std::string& ProcedureDescription::signature() const { + return *signature_; +} +inline void ProcedureDescription::set_signature(const ::std::string& value) { + set_has_signature(); + if (signature_ == &::google::protobuf::internal::kEmptyString) { + signature_ = new ::std::string; + } + signature_->assign(value); +} +inline void ProcedureDescription::set_signature(const char* value) { + set_has_signature(); + if (signature_ == &::google::protobuf::internal::kEmptyString) { + signature_ = new ::std::string; + } + signature_->assign(value); +} +inline void ProcedureDescription::set_signature(const char* value, size_t size) { + set_has_signature(); + if (signature_ == &::google::protobuf::internal::kEmptyString) { + signature_ = new ::std::string; + } + signature_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ProcedureDescription::mutable_signature() { + set_has_signature(); + if (signature_ == &::google::protobuf::internal::kEmptyString) { + signature_ = new ::std::string; + } + return signature_; +} +inline ::std::string* ProcedureDescription::release_signature() { + clear_has_signature(); + if (signature_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = signature_; + signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ProcedureDescription::set_allocated_signature(::std::string* signature) { + if (signature_ != &::google::protobuf::internal::kEmptyString) { + delete signature_; + } + if (signature) { + set_has_signature(); + signature_ = signature; + } else { + clear_has_signature(); + signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string instance = 2; +inline bool ProcedureDescription::has_instance() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ProcedureDescription::set_has_instance() { + _has_bits_[0] |= 0x00000002u; +} +inline void ProcedureDescription::clear_has_instance() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ProcedureDescription::clear_instance() { + if (instance_ != &::google::protobuf::internal::kEmptyString) { + instance_->clear(); + } + clear_has_instance(); +} +inline const ::std::string& ProcedureDescription::instance() const { + return *instance_; +} +inline void ProcedureDescription::set_instance(const ::std::string& value) { + set_has_instance(); + if (instance_ == &::google::protobuf::internal::kEmptyString) { + instance_ = new ::std::string; + } + instance_->assign(value); +} +inline void ProcedureDescription::set_instance(const char* value) { + set_has_instance(); + if (instance_ == &::google::protobuf::internal::kEmptyString) { + instance_ = new ::std::string; + } + instance_->assign(value); +} +inline void ProcedureDescription::set_instance(const char* value, size_t size) { + set_has_instance(); + if (instance_ == &::google::protobuf::internal::kEmptyString) { + instance_ = new ::std::string; + } + instance_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ProcedureDescription::mutable_instance() { + set_has_instance(); + if (instance_ == &::google::protobuf::internal::kEmptyString) { + instance_ = new ::std::string; + } + return instance_; +} +inline ::std::string* ProcedureDescription::release_instance() { + clear_has_instance(); + if (instance_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = instance_; + instance_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ProcedureDescription::set_allocated_instance(::std::string* instance) { + if (instance_ != &::google::protobuf::internal::kEmptyString) { + delete instance_; + } + if (instance) { + set_has_instance(); + instance_ = instance; + } else { + clear_has_instance(); + instance_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional int64 creation_time = 3 [default = 0]; +inline bool ProcedureDescription::has_creation_time() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ProcedureDescription::set_has_creation_time() { + _has_bits_[0] |= 0x00000004u; +} +inline void ProcedureDescription::clear_has_creation_time() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ProcedureDescription::clear_creation_time() { + creation_time_ = GOOGLE_LONGLONG(0); + clear_has_creation_time(); +} +inline ::google::protobuf::int64 ProcedureDescription::creation_time() const { + return creation_time_; +} +inline void ProcedureDescription::set_creation_time(::google::protobuf::int64 value) { + set_has_creation_time(); + creation_time_ = value; +} + +// repeated .hbase.pb.NameStringPair configuration = 4; +inline int ProcedureDescription::configuration_size() const { + return configuration_.size(); +} +inline void ProcedureDescription::clear_configuration() { + configuration_.Clear(); +} +inline const ::hbase::pb::NameStringPair& ProcedureDescription::configuration(int index) const { + return configuration_.Get(index); +} +inline ::hbase::pb::NameStringPair* ProcedureDescription::mutable_configuration(int index) { + return configuration_.Mutable(index); +} +inline ::hbase::pb::NameStringPair* ProcedureDescription::add_configuration() { + return configuration_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& +ProcedureDescription::configuration() const { + return configuration_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* +ProcedureDescription::mutable_configuration() { + return &configuration_; +} + +// ------------------------------------------------------------------- + +// EmptyMsg + +// ------------------------------------------------------------------- + +// LongMsg + +// required int64 long_msg = 1; +inline bool LongMsg::has_long_msg() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LongMsg::set_has_long_msg() { + _has_bits_[0] |= 0x00000001u; +} +inline void LongMsg::clear_has_long_msg() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LongMsg::clear_long_msg() { + long_msg_ = GOOGLE_LONGLONG(0); + clear_has_long_msg(); +} +inline ::google::protobuf::int64 LongMsg::long_msg() const { + return long_msg_; +} +inline void LongMsg::set_long_msg(::google::protobuf::int64 value) { + set_has_long_msg(); + long_msg_ = value; +} + +// ------------------------------------------------------------------- + +// DoubleMsg + +// required double double_msg = 1; +inline bool DoubleMsg::has_double_msg() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DoubleMsg::set_has_double_msg() { + _has_bits_[0] |= 0x00000001u; +} +inline void DoubleMsg::clear_has_double_msg() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DoubleMsg::clear_double_msg() { + double_msg_ = 0; + clear_has_double_msg(); +} +inline double DoubleMsg::double_msg() const { + return double_msg_; +} +inline void DoubleMsg::set_double_msg(double value) { + set_has_double_msg(); + double_msg_ = value; +} + +// ------------------------------------------------------------------- + +// BigDecimalMsg + +// required bytes bigdecimal_msg = 1; +inline bool BigDecimalMsg::has_bigdecimal_msg() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BigDecimalMsg::set_has_bigdecimal_msg() { + _has_bits_[0] |= 0x00000001u; +} +inline void BigDecimalMsg::clear_has_bigdecimal_msg() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BigDecimalMsg::clear_bigdecimal_msg() { + if (bigdecimal_msg_ != &::google::protobuf::internal::kEmptyString) { + bigdecimal_msg_->clear(); + } + clear_has_bigdecimal_msg(); +} +inline const ::std::string& BigDecimalMsg::bigdecimal_msg() const { + return *bigdecimal_msg_; +} +inline void BigDecimalMsg::set_bigdecimal_msg(const ::std::string& value) { + set_has_bigdecimal_msg(); + if (bigdecimal_msg_ == &::google::protobuf::internal::kEmptyString) { + bigdecimal_msg_ = new ::std::string; + } + bigdecimal_msg_->assign(value); +} +inline void BigDecimalMsg::set_bigdecimal_msg(const char* value) { + set_has_bigdecimal_msg(); + if (bigdecimal_msg_ == &::google::protobuf::internal::kEmptyString) { + bigdecimal_msg_ = new ::std::string; + } + bigdecimal_msg_->assign(value); +} +inline void BigDecimalMsg::set_bigdecimal_msg(const void* value, size_t size) { + set_has_bigdecimal_msg(); + if (bigdecimal_msg_ == &::google::protobuf::internal::kEmptyString) { + bigdecimal_msg_ = new ::std::string; + } + bigdecimal_msg_->assign(reinterpret_cast(value), size); +} +inline ::std::string* BigDecimalMsg::mutable_bigdecimal_msg() { + set_has_bigdecimal_msg(); + if (bigdecimal_msg_ == &::google::protobuf::internal::kEmptyString) { + bigdecimal_msg_ = new ::std::string; + } + return bigdecimal_msg_; +} +inline ::std::string* BigDecimalMsg::release_bigdecimal_msg() { + clear_has_bigdecimal_msg(); + if (bigdecimal_msg_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = bigdecimal_msg_; + bigdecimal_msg_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void BigDecimalMsg::set_allocated_bigdecimal_msg(::std::string* bigdecimal_msg) { + if (bigdecimal_msg_ != &::google::protobuf::internal::kEmptyString) { + delete bigdecimal_msg_; + } + if (bigdecimal_msg) { + set_has_bigdecimal_msg(); + bigdecimal_msg_ = bigdecimal_msg; + } else { + clear_has_bigdecimal_msg(); + bigdecimal_msg_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// UUID + +// required uint64 least_sig_bits = 1; +inline bool UUID::has_least_sig_bits() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UUID::set_has_least_sig_bits() { + _has_bits_[0] |= 0x00000001u; +} +inline void UUID::clear_has_least_sig_bits() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UUID::clear_least_sig_bits() { + least_sig_bits_ = GOOGLE_ULONGLONG(0); + clear_has_least_sig_bits(); +} +inline ::google::protobuf::uint64 UUID::least_sig_bits() const { + return least_sig_bits_; +} +inline void UUID::set_least_sig_bits(::google::protobuf::uint64 value) { + set_has_least_sig_bits(); + least_sig_bits_ = value; +} + +// required uint64 most_sig_bits = 2; +inline bool UUID::has_most_sig_bits() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void UUID::set_has_most_sig_bits() { + _has_bits_[0] |= 0x00000002u; +} +inline void UUID::clear_has_most_sig_bits() { + _has_bits_[0] &= ~0x00000002u; +} +inline void UUID::clear_most_sig_bits() { + most_sig_bits_ = GOOGLE_ULONGLONG(0); + clear_has_most_sig_bits(); +} +inline ::google::protobuf::uint64 UUID::most_sig_bits() const { + return most_sig_bits_; +} +inline void UUID::set_most_sig_bits(::google::protobuf::uint64 value) { + set_has_most_sig_bits(); + most_sig_bits_ = value; +} + +// ------------------------------------------------------------------- + +// NamespaceDescriptor + +// required bytes name = 1; +inline bool NamespaceDescriptor::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NamespaceDescriptor::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void NamespaceDescriptor::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NamespaceDescriptor::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& NamespaceDescriptor::name() const { + return *name_; +} +inline void NamespaceDescriptor::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void NamespaceDescriptor::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void NamespaceDescriptor::set_name(const void* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* NamespaceDescriptor::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* NamespaceDescriptor::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void NamespaceDescriptor::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.NameStringPair configuration = 2; +inline int NamespaceDescriptor::configuration_size() const { + return configuration_.size(); +} +inline void NamespaceDescriptor::clear_configuration() { + configuration_.Clear(); +} +inline const ::hbase::pb::NameStringPair& NamespaceDescriptor::configuration(int index) const { + return configuration_.Get(index); +} +inline ::hbase::pb::NameStringPair* NamespaceDescriptor::mutable_configuration(int index) { + return configuration_.Mutable(index); +} +inline ::hbase::pb::NameStringPair* NamespaceDescriptor::add_configuration() { + return configuration_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& +NamespaceDescriptor::configuration() const { + return configuration_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* +NamespaceDescriptor::mutable_configuration() { + return &configuration_; +} + +// ------------------------------------------------------------------- + +// VersionInfo + +// required string version = 1; +inline bool VersionInfo::has_version() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void VersionInfo::set_has_version() { + _has_bits_[0] |= 0x00000001u; +} +inline void VersionInfo::clear_has_version() { + _has_bits_[0] &= ~0x00000001u; +} +inline void VersionInfo::clear_version() { + if (version_ != &::google::protobuf::internal::kEmptyString) { + version_->clear(); + } + clear_has_version(); +} +inline const ::std::string& VersionInfo::version() const { + return *version_; +} +inline void VersionInfo::set_version(const ::std::string& value) { + set_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + version_ = new ::std::string; + } + version_->assign(value); +} +inline void VersionInfo::set_version(const char* value) { + set_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + version_ = new ::std::string; + } + version_->assign(value); +} +inline void VersionInfo::set_version(const char* value, size_t size) { + set_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + version_ = new ::std::string; + } + version_->assign(reinterpret_cast(value), size); +} +inline ::std::string* VersionInfo::mutable_version() { + set_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + version_ = new ::std::string; + } + return version_; +} +inline ::std::string* VersionInfo::release_version() { + clear_has_version(); + if (version_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = version_; + version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void VersionInfo::set_allocated_version(::std::string* version) { + if (version_ != &::google::protobuf::internal::kEmptyString) { + delete version_; + } + if (version) { + set_has_version(); + version_ = version; + } else { + clear_has_version(); + version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string url = 2; +inline bool VersionInfo::has_url() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void VersionInfo::set_has_url() { + _has_bits_[0] |= 0x00000002u; +} +inline void VersionInfo::clear_has_url() { + _has_bits_[0] &= ~0x00000002u; +} +inline void VersionInfo::clear_url() { + if (url_ != &::google::protobuf::internal::kEmptyString) { + url_->clear(); + } + clear_has_url(); +} +inline const ::std::string& VersionInfo::url() const { + return *url_; +} +inline void VersionInfo::set_url(const ::std::string& value) { + set_has_url(); + if (url_ == &::google::protobuf::internal::kEmptyString) { + url_ = new ::std::string; + } + url_->assign(value); +} +inline void VersionInfo::set_url(const char* value) { + set_has_url(); + if (url_ == &::google::protobuf::internal::kEmptyString) { + url_ = new ::std::string; + } + url_->assign(value); +} +inline void VersionInfo::set_url(const char* value, size_t size) { + set_has_url(); + if (url_ == &::google::protobuf::internal::kEmptyString) { + url_ = new ::std::string; + } + url_->assign(reinterpret_cast(value), size); +} +inline ::std::string* VersionInfo::mutable_url() { + set_has_url(); + if (url_ == &::google::protobuf::internal::kEmptyString) { + url_ = new ::std::string; + } + return url_; +} +inline ::std::string* VersionInfo::release_url() { + clear_has_url(); + if (url_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = url_; + url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void VersionInfo::set_allocated_url(::std::string* url) { + if (url_ != &::google::protobuf::internal::kEmptyString) { + delete url_; + } + if (url) { + set_has_url(); + url_ = url; + } else { + clear_has_url(); + url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string revision = 3; +inline bool VersionInfo::has_revision() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void VersionInfo::set_has_revision() { + _has_bits_[0] |= 0x00000004u; +} +inline void VersionInfo::clear_has_revision() { + _has_bits_[0] &= ~0x00000004u; +} +inline void VersionInfo::clear_revision() { + if (revision_ != &::google::protobuf::internal::kEmptyString) { + revision_->clear(); + } + clear_has_revision(); +} +inline const ::std::string& VersionInfo::revision() const { + return *revision_; +} +inline void VersionInfo::set_revision(const ::std::string& value) { + set_has_revision(); + if (revision_ == &::google::protobuf::internal::kEmptyString) { + revision_ = new ::std::string; + } + revision_->assign(value); +} +inline void VersionInfo::set_revision(const char* value) { + set_has_revision(); + if (revision_ == &::google::protobuf::internal::kEmptyString) { + revision_ = new ::std::string; + } + revision_->assign(value); +} +inline void VersionInfo::set_revision(const char* value, size_t size) { + set_has_revision(); + if (revision_ == &::google::protobuf::internal::kEmptyString) { + revision_ = new ::std::string; + } + revision_->assign(reinterpret_cast(value), size); +} +inline ::std::string* VersionInfo::mutable_revision() { + set_has_revision(); + if (revision_ == &::google::protobuf::internal::kEmptyString) { + revision_ = new ::std::string; + } + return revision_; +} +inline ::std::string* VersionInfo::release_revision() { + clear_has_revision(); + if (revision_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = revision_; + revision_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void VersionInfo::set_allocated_revision(::std::string* revision) { + if (revision_ != &::google::protobuf::internal::kEmptyString) { + delete revision_; + } + if (revision) { + set_has_revision(); + revision_ = revision; + } else { + clear_has_revision(); + revision_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string user = 4; +inline bool VersionInfo::has_user() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void VersionInfo::set_has_user() { + _has_bits_[0] |= 0x00000008u; +} +inline void VersionInfo::clear_has_user() { + _has_bits_[0] &= ~0x00000008u; +} +inline void VersionInfo::clear_user() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + clear_has_user(); +} +inline const ::std::string& VersionInfo::user() const { + return *user_; +} +inline void VersionInfo::set_user(const ::std::string& value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void VersionInfo::set_user(const char* value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void VersionInfo::set_user(const char* value, size_t size) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* VersionInfo::mutable_user() { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + return user_; +} +inline ::std::string* VersionInfo::release_user() { + clear_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void VersionInfo::set_allocated_user(::std::string* user) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (user) { + set_has_user(); + user_ = user; + } else { + clear_has_user(); + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string date = 5; +inline bool VersionInfo::has_date() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void VersionInfo::set_has_date() { + _has_bits_[0] |= 0x00000010u; +} +inline void VersionInfo::clear_has_date() { + _has_bits_[0] &= ~0x00000010u; +} +inline void VersionInfo::clear_date() { + if (date_ != &::google::protobuf::internal::kEmptyString) { + date_->clear(); + } + clear_has_date(); +} +inline const ::std::string& VersionInfo::date() const { + return *date_; +} +inline void VersionInfo::set_date(const ::std::string& value) { + set_has_date(); + if (date_ == &::google::protobuf::internal::kEmptyString) { + date_ = new ::std::string; + } + date_->assign(value); +} +inline void VersionInfo::set_date(const char* value) { + set_has_date(); + if (date_ == &::google::protobuf::internal::kEmptyString) { + date_ = new ::std::string; + } + date_->assign(value); +} +inline void VersionInfo::set_date(const char* value, size_t size) { + set_has_date(); + if (date_ == &::google::protobuf::internal::kEmptyString) { + date_ = new ::std::string; + } + date_->assign(reinterpret_cast(value), size); +} +inline ::std::string* VersionInfo::mutable_date() { + set_has_date(); + if (date_ == &::google::protobuf::internal::kEmptyString) { + date_ = new ::std::string; + } + return date_; +} +inline ::std::string* VersionInfo::release_date() { + clear_has_date(); + if (date_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = date_; + date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void VersionInfo::set_allocated_date(::std::string* date) { + if (date_ != &::google::protobuf::internal::kEmptyString) { + delete date_; + } + if (date) { + set_has_date(); + date_ = date; + } else { + clear_has_date(); + date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string src_checksum = 6; +inline bool VersionInfo::has_src_checksum() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void VersionInfo::set_has_src_checksum() { + _has_bits_[0] |= 0x00000020u; +} +inline void VersionInfo::clear_has_src_checksum() { + _has_bits_[0] &= ~0x00000020u; +} +inline void VersionInfo::clear_src_checksum() { + if (src_checksum_ != &::google::protobuf::internal::kEmptyString) { + src_checksum_->clear(); + } + clear_has_src_checksum(); +} +inline const ::std::string& VersionInfo::src_checksum() const { + return *src_checksum_; +} +inline void VersionInfo::set_src_checksum(const ::std::string& value) { + set_has_src_checksum(); + if (src_checksum_ == &::google::protobuf::internal::kEmptyString) { + src_checksum_ = new ::std::string; + } + src_checksum_->assign(value); +} +inline void VersionInfo::set_src_checksum(const char* value) { + set_has_src_checksum(); + if (src_checksum_ == &::google::protobuf::internal::kEmptyString) { + src_checksum_ = new ::std::string; + } + src_checksum_->assign(value); +} +inline void VersionInfo::set_src_checksum(const char* value, size_t size) { + set_has_src_checksum(); + if (src_checksum_ == &::google::protobuf::internal::kEmptyString) { + src_checksum_ = new ::std::string; + } + src_checksum_->assign(reinterpret_cast(value), size); +} +inline ::std::string* VersionInfo::mutable_src_checksum() { + set_has_src_checksum(); + if (src_checksum_ == &::google::protobuf::internal::kEmptyString) { + src_checksum_ = new ::std::string; + } + return src_checksum_; +} +inline ::std::string* VersionInfo::release_src_checksum() { + clear_has_src_checksum(); + if (src_checksum_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = src_checksum_; + src_checksum_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void VersionInfo::set_allocated_src_checksum(::std::string* src_checksum) { + if (src_checksum_ != &::google::protobuf::internal::kEmptyString) { + delete src_checksum_; + } + if (src_checksum) { + set_has_src_checksum(); + src_checksum_ = src_checksum; + } else { + clear_has_src_checksum(); + src_checksum_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint32 version_major = 7; +inline bool VersionInfo::has_version_major() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void VersionInfo::set_has_version_major() { + _has_bits_[0] |= 0x00000040u; +} +inline void VersionInfo::clear_has_version_major() { + _has_bits_[0] &= ~0x00000040u; +} +inline void VersionInfo::clear_version_major() { + version_major_ = 0u; + clear_has_version_major(); +} +inline ::google::protobuf::uint32 VersionInfo::version_major() const { + return version_major_; +} +inline void VersionInfo::set_version_major(::google::protobuf::uint32 value) { + set_has_version_major(); + version_major_ = value; +} + +// optional uint32 version_minor = 8; +inline bool VersionInfo::has_version_minor() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void VersionInfo::set_has_version_minor() { + _has_bits_[0] |= 0x00000080u; +} +inline void VersionInfo::clear_has_version_minor() { + _has_bits_[0] &= ~0x00000080u; +} +inline void VersionInfo::clear_version_minor() { + version_minor_ = 0u; + clear_has_version_minor(); +} +inline ::google::protobuf::uint32 VersionInfo::version_minor() const { + return version_minor_; +} +inline void VersionInfo::set_version_minor(::google::protobuf::uint32 value) { + set_has_version_minor(); + version_minor_ = value; +} + +// ------------------------------------------------------------------- + +// RegionServerInfo + +// optional int32 infoPort = 1; +inline bool RegionServerInfo::has_infoport() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionServerInfo::set_has_infoport() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionServerInfo::clear_has_infoport() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionServerInfo::clear_infoport() { + infoport_ = 0; + clear_has_infoport(); +} +inline ::google::protobuf::int32 RegionServerInfo::infoport() const { + return infoport_; +} +inline void RegionServerInfo::set_infoport(::google::protobuf::int32 value) { + set_has_infoport(); + infoport_ = value; +} + +// optional .hbase.pb.VersionInfo version_info = 2; +inline bool RegionServerInfo::has_version_info() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionServerInfo::set_has_version_info() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionServerInfo::clear_has_version_info() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionServerInfo::clear_version_info() { + if (version_info_ != NULL) version_info_->::hbase::pb::VersionInfo::Clear(); + clear_has_version_info(); +} +inline const ::hbase::pb::VersionInfo& RegionServerInfo::version_info() const { + return version_info_ != NULL ? *version_info_ : *default_instance_->version_info_; +} +inline ::hbase::pb::VersionInfo* RegionServerInfo::mutable_version_info() { + set_has_version_info(); + if (version_info_ == NULL) version_info_ = new ::hbase::pb::VersionInfo; + return version_info_; +} +inline ::hbase::pb::VersionInfo* RegionServerInfo::release_version_info() { + clear_has_version_info(); + ::hbase::pb::VersionInfo* temp = version_info_; + version_info_ = NULL; + return temp; +} +inline void RegionServerInfo::set_allocated_version_info(::hbase::pb::VersionInfo* version_info) { + delete version_info_; + version_info_ = version_info; + if (version_info) { + set_has_version_info(); + } else { + clear_has_version_info(); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::TableState_State>() { + return ::hbase::pb::TableState_State_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::RegionSpecifier_RegionSpecifierType>() { + return ::hbase::pb::RegionSpecifier_RegionSpecifierType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::SnapshotDescription_Type>() { + return ::hbase::pb::SnapshotDescription_Type_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::CompareType>() { + return ::hbase::pb::CompareType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::TimeUnit>() { + return ::hbase::pb::TimeUnit_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_HBase_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/HFile.pb.cc b/hbase-native-client/src/rpc/generated/HFile.pb.cc new file mode 100644 index 0000000..56113b1 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/HFile.pb.cc @@ -0,0 +1,1078 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HFile.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "HFile.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* FileInfoProto_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FileInfoProto_reflection_ = NULL; +const ::google::protobuf::Descriptor* FileTrailerProto_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FileTrailerProto_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_HFile_2eproto() { + protobuf_AddDesc_HFile_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "HFile.proto"); + GOOGLE_CHECK(file != NULL); + FileInfoProto_descriptor_ = file->message_type(0); + static const int FileInfoProto_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileInfoProto, map_entry_), + }; + FileInfoProto_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FileInfoProto_descriptor_, + FileInfoProto::default_instance_, + FileInfoProto_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileInfoProto, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileInfoProto, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FileInfoProto)); + FileTrailerProto_descriptor_ = file->message_type(1); + static const int FileTrailerProto_offsets_[13] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, file_info_offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, load_on_open_data_offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, uncompressed_data_index_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, total_uncompressed_bytes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, data_index_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, meta_index_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, entry_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, num_data_index_levels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, first_data_block_offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, last_data_block_offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, comparator_class_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, compression_codec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, encryption_key_), + }; + FileTrailerProto_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FileTrailerProto_descriptor_, + FileTrailerProto::default_instance_, + FileTrailerProto_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileTrailerProto, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FileTrailerProto)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_HFile_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FileInfoProto_descriptor_, &FileInfoProto::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FileTrailerProto_descriptor_, &FileTrailerProto::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_HFile_2eproto() { + delete FileInfoProto::default_instance_; + delete FileInfoProto_reflection_; + delete FileTrailerProto::default_instance_; + delete FileTrailerProto_reflection_; +} + +void protobuf_AddDesc_HFile_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\013HFile.proto\022\010hbase.pb\032\013HBase.proto\"<\n\r" + "FileInfoProto\022+\n\tmap_entry\030\001 \003(\0132\030.hbase" + ".pb.BytesBytesPair\"\221\003\n\020FileTrailerProto\022" + "\030\n\020file_info_offset\030\001 \001(\004\022 \n\030load_on_ope" + "n_data_offset\030\002 \001(\004\022$\n\034uncompressed_data" + "_index_size\030\003 \001(\004\022 \n\030total_uncompressed_" + "bytes\030\004 \001(\004\022\030\n\020data_index_count\030\005 \001(\r\022\030\n" + "\020meta_index_count\030\006 \001(\r\022\023\n\013entry_count\030\007" + " \001(\004\022\035\n\025num_data_index_levels\030\010 \001(\r\022\037\n\027f" + "irst_data_block_offset\030\t \001(\004\022\036\n\026last_dat" + "a_block_offset\030\n \001(\004\022\035\n\025comparator_class" + "_name\030\013 \001(\t\022\031\n\021compression_codec\030\014 \001(\r\022\026" + "\n\016encryption_key\030\r \001(\014BA\n*org.apache.had" + "oop.hbase.protobuf.generatedB\013HFileProto" + "sH\001\210\001\001\240\001\001", 569); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "HFile.proto", &protobuf_RegisterTypes); + FileInfoProto::default_instance_ = new FileInfoProto(); + FileTrailerProto::default_instance_ = new FileTrailerProto(); + FileInfoProto::default_instance_->InitAsDefaultInstance(); + FileTrailerProto::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_HFile_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_HFile_2eproto { + StaticDescriptorInitializer_HFile_2eproto() { + protobuf_AddDesc_HFile_2eproto(); + } +} static_descriptor_initializer_HFile_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int FileInfoProto::kMapEntryFieldNumber; +#endif // !_MSC_VER + +FileInfoProto::FileInfoProto() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FileInfoProto::InitAsDefaultInstance() { +} + +FileInfoProto::FileInfoProto(const FileInfoProto& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FileInfoProto::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FileInfoProto::~FileInfoProto() { + SharedDtor(); +} + +void FileInfoProto::SharedDtor() { + if (this != default_instance_) { + } +} + +void FileInfoProto::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FileInfoProto::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FileInfoProto_descriptor_; +} + +const FileInfoProto& FileInfoProto::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HFile_2eproto(); + return *default_instance_; +} + +FileInfoProto* FileInfoProto::default_instance_ = NULL; + +FileInfoProto* FileInfoProto::New() const { + return new FileInfoProto; +} + +void FileInfoProto::Clear() { + map_entry_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FileInfoProto::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.BytesBytesPair map_entry = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_map_entry: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_map_entry())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_map_entry; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FileInfoProto::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.BytesBytesPair map_entry = 1; + for (int i = 0; i < this->map_entry_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->map_entry(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FileInfoProto::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.BytesBytesPair map_entry = 1; + for (int i = 0; i < this->map_entry_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->map_entry(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FileInfoProto::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.BytesBytesPair map_entry = 1; + total_size += 1 * this->map_entry_size(); + for (int i = 0; i < this->map_entry_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->map_entry(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FileInfoProto::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FileInfoProto* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FileInfoProto::MergeFrom(const FileInfoProto& from) { + GOOGLE_CHECK_NE(&from, this); + map_entry_.MergeFrom(from.map_entry_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FileInfoProto::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FileInfoProto::CopyFrom(const FileInfoProto& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FileInfoProto::IsInitialized() const { + + for (int i = 0; i < map_entry_size(); i++) { + if (!this->map_entry(i).IsInitialized()) return false; + } + return true; +} + +void FileInfoProto::Swap(FileInfoProto* other) { + if (other != this) { + map_entry_.Swap(&other->map_entry_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FileInfoProto::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FileInfoProto_descriptor_; + metadata.reflection = FileInfoProto_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FileTrailerProto::kFileInfoOffsetFieldNumber; +const int FileTrailerProto::kLoadOnOpenDataOffsetFieldNumber; +const int FileTrailerProto::kUncompressedDataIndexSizeFieldNumber; +const int FileTrailerProto::kTotalUncompressedBytesFieldNumber; +const int FileTrailerProto::kDataIndexCountFieldNumber; +const int FileTrailerProto::kMetaIndexCountFieldNumber; +const int FileTrailerProto::kEntryCountFieldNumber; +const int FileTrailerProto::kNumDataIndexLevelsFieldNumber; +const int FileTrailerProto::kFirstDataBlockOffsetFieldNumber; +const int FileTrailerProto::kLastDataBlockOffsetFieldNumber; +const int FileTrailerProto::kComparatorClassNameFieldNumber; +const int FileTrailerProto::kCompressionCodecFieldNumber; +const int FileTrailerProto::kEncryptionKeyFieldNumber; +#endif // !_MSC_VER + +FileTrailerProto::FileTrailerProto() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FileTrailerProto::InitAsDefaultInstance() { +} + +FileTrailerProto::FileTrailerProto(const FileTrailerProto& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FileTrailerProto::SharedCtor() { + _cached_size_ = 0; + file_info_offset_ = GOOGLE_ULONGLONG(0); + load_on_open_data_offset_ = GOOGLE_ULONGLONG(0); + uncompressed_data_index_size_ = GOOGLE_ULONGLONG(0); + total_uncompressed_bytes_ = GOOGLE_ULONGLONG(0); + data_index_count_ = 0u; + meta_index_count_ = 0u; + entry_count_ = GOOGLE_ULONGLONG(0); + num_data_index_levels_ = 0u; + first_data_block_offset_ = GOOGLE_ULONGLONG(0); + last_data_block_offset_ = GOOGLE_ULONGLONG(0); + comparator_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + compression_codec_ = 0u; + encryption_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FileTrailerProto::~FileTrailerProto() { + SharedDtor(); +} + +void FileTrailerProto::SharedDtor() { + if (comparator_class_name_ != &::google::protobuf::internal::kEmptyString) { + delete comparator_class_name_; + } + if (encryption_key_ != &::google::protobuf::internal::kEmptyString) { + delete encryption_key_; + } + if (this != default_instance_) { + } +} + +void FileTrailerProto::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FileTrailerProto::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FileTrailerProto_descriptor_; +} + +const FileTrailerProto& FileTrailerProto::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_HFile_2eproto(); + return *default_instance_; +} + +FileTrailerProto* FileTrailerProto::default_instance_ = NULL; + +FileTrailerProto* FileTrailerProto::New() const { + return new FileTrailerProto; +} + +void FileTrailerProto::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + file_info_offset_ = GOOGLE_ULONGLONG(0); + load_on_open_data_offset_ = GOOGLE_ULONGLONG(0); + uncompressed_data_index_size_ = GOOGLE_ULONGLONG(0); + total_uncompressed_bytes_ = GOOGLE_ULONGLONG(0); + data_index_count_ = 0u; + meta_index_count_ = 0u; + entry_count_ = GOOGLE_ULONGLONG(0); + num_data_index_levels_ = 0u; + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + first_data_block_offset_ = GOOGLE_ULONGLONG(0); + last_data_block_offset_ = GOOGLE_ULONGLONG(0); + if (has_comparator_class_name()) { + if (comparator_class_name_ != &::google::protobuf::internal::kEmptyString) { + comparator_class_name_->clear(); + } + } + compression_codec_ = 0u; + if (has_encryption_key()) { + if (encryption_key_ != &::google::protobuf::internal::kEmptyString) { + encryption_key_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FileTrailerProto::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 file_info_offset = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &file_info_offset_))); + set_has_file_info_offset(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_load_on_open_data_offset; + break; + } + + // optional uint64 load_on_open_data_offset = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_load_on_open_data_offset: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &load_on_open_data_offset_))); + set_has_load_on_open_data_offset(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_uncompressed_data_index_size; + break; + } + + // optional uint64 uncompressed_data_index_size = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_uncompressed_data_index_size: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &uncompressed_data_index_size_))); + set_has_uncompressed_data_index_size(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_total_uncompressed_bytes; + break; + } + + // optional uint64 total_uncompressed_bytes = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_total_uncompressed_bytes: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &total_uncompressed_bytes_))); + set_has_total_uncompressed_bytes(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_data_index_count; + break; + } + + // optional uint32 data_index_count = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_data_index_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &data_index_count_))); + set_has_data_index_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_meta_index_count; + break; + } + + // optional uint32 meta_index_count = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_meta_index_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &meta_index_count_))); + set_has_meta_index_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_entry_count; + break; + } + + // optional uint64 entry_count = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_entry_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &entry_count_))); + set_has_entry_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_num_data_index_levels; + break; + } + + // optional uint32 num_data_index_levels = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_num_data_index_levels: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_data_index_levels_))); + set_has_num_data_index_levels(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_first_data_block_offset; + break; + } + + // optional uint64 first_data_block_offset = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_first_data_block_offset: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &first_data_block_offset_))); + set_has_first_data_block_offset(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(80)) goto parse_last_data_block_offset; + break; + } + + // optional uint64 last_data_block_offset = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_last_data_block_offset: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &last_data_block_offset_))); + set_has_last_data_block_offset(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(90)) goto parse_comparator_class_name; + break; + } + + // optional string comparator_class_name = 11; + case 11: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_comparator_class_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_comparator_class_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->comparator_class_name().data(), this->comparator_class_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(96)) goto parse_compression_codec; + break; + } + + // optional uint32 compression_codec = 12; + case 12: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_compression_codec: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &compression_codec_))); + set_has_compression_codec(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(106)) goto parse_encryption_key; + break; + } + + // optional bytes encryption_key = 13; + case 13: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_encryption_key: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encryption_key())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FileTrailerProto::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 file_info_offset = 1; + if (has_file_info_offset()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->file_info_offset(), output); + } + + // optional uint64 load_on_open_data_offset = 2; + if (has_load_on_open_data_offset()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->load_on_open_data_offset(), output); + } + + // optional uint64 uncompressed_data_index_size = 3; + if (has_uncompressed_data_index_size()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->uncompressed_data_index_size(), output); + } + + // optional uint64 total_uncompressed_bytes = 4; + if (has_total_uncompressed_bytes()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->total_uncompressed_bytes(), output); + } + + // optional uint32 data_index_count = 5; + if (has_data_index_count()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->data_index_count(), output); + } + + // optional uint32 meta_index_count = 6; + if (has_meta_index_count()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->meta_index_count(), output); + } + + // optional uint64 entry_count = 7; + if (has_entry_count()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->entry_count(), output); + } + + // optional uint32 num_data_index_levels = 8; + if (has_num_data_index_levels()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->num_data_index_levels(), output); + } + + // optional uint64 first_data_block_offset = 9; + if (has_first_data_block_offset()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->first_data_block_offset(), output); + } + + // optional uint64 last_data_block_offset = 10; + if (has_last_data_block_offset()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->last_data_block_offset(), output); + } + + // optional string comparator_class_name = 11; + if (has_comparator_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->comparator_class_name().data(), this->comparator_class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 11, this->comparator_class_name(), output); + } + + // optional uint32 compression_codec = 12; + if (has_compression_codec()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->compression_codec(), output); + } + + // optional bytes encryption_key = 13; + if (has_encryption_key()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 13, this->encryption_key(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FileTrailerProto::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 file_info_offset = 1; + if (has_file_info_offset()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->file_info_offset(), target); + } + + // optional uint64 load_on_open_data_offset = 2; + if (has_load_on_open_data_offset()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->load_on_open_data_offset(), target); + } + + // optional uint64 uncompressed_data_index_size = 3; + if (has_uncompressed_data_index_size()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->uncompressed_data_index_size(), target); + } + + // optional uint64 total_uncompressed_bytes = 4; + if (has_total_uncompressed_bytes()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->total_uncompressed_bytes(), target); + } + + // optional uint32 data_index_count = 5; + if (has_data_index_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->data_index_count(), target); + } + + // optional uint32 meta_index_count = 6; + if (has_meta_index_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->meta_index_count(), target); + } + + // optional uint64 entry_count = 7; + if (has_entry_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->entry_count(), target); + } + + // optional uint32 num_data_index_levels = 8; + if (has_num_data_index_levels()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->num_data_index_levels(), target); + } + + // optional uint64 first_data_block_offset = 9; + if (has_first_data_block_offset()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->first_data_block_offset(), target); + } + + // optional uint64 last_data_block_offset = 10; + if (has_last_data_block_offset()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->last_data_block_offset(), target); + } + + // optional string comparator_class_name = 11; + if (has_comparator_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->comparator_class_name().data(), this->comparator_class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 11, this->comparator_class_name(), target); + } + + // optional uint32 compression_codec = 12; + if (has_compression_codec()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->compression_codec(), target); + } + + // optional bytes encryption_key = 13; + if (has_encryption_key()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 13, this->encryption_key(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FileTrailerProto::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 file_info_offset = 1; + if (has_file_info_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->file_info_offset()); + } + + // optional uint64 load_on_open_data_offset = 2; + if (has_load_on_open_data_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->load_on_open_data_offset()); + } + + // optional uint64 uncompressed_data_index_size = 3; + if (has_uncompressed_data_index_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->uncompressed_data_index_size()); + } + + // optional uint64 total_uncompressed_bytes = 4; + if (has_total_uncompressed_bytes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->total_uncompressed_bytes()); + } + + // optional uint32 data_index_count = 5; + if (has_data_index_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->data_index_count()); + } + + // optional uint32 meta_index_count = 6; + if (has_meta_index_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->meta_index_count()); + } + + // optional uint64 entry_count = 7; + if (has_entry_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->entry_count()); + } + + // optional uint32 num_data_index_levels = 8; + if (has_num_data_index_levels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_data_index_levels()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional uint64 first_data_block_offset = 9; + if (has_first_data_block_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->first_data_block_offset()); + } + + // optional uint64 last_data_block_offset = 10; + if (has_last_data_block_offset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->last_data_block_offset()); + } + + // optional string comparator_class_name = 11; + if (has_comparator_class_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->comparator_class_name()); + } + + // optional uint32 compression_codec = 12; + if (has_compression_codec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->compression_codec()); + } + + // optional bytes encryption_key = 13; + if (has_encryption_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encryption_key()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FileTrailerProto::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FileTrailerProto* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FileTrailerProto::MergeFrom(const FileTrailerProto& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_file_info_offset()) { + set_file_info_offset(from.file_info_offset()); + } + if (from.has_load_on_open_data_offset()) { + set_load_on_open_data_offset(from.load_on_open_data_offset()); + } + if (from.has_uncompressed_data_index_size()) { + set_uncompressed_data_index_size(from.uncompressed_data_index_size()); + } + if (from.has_total_uncompressed_bytes()) { + set_total_uncompressed_bytes(from.total_uncompressed_bytes()); + } + if (from.has_data_index_count()) { + set_data_index_count(from.data_index_count()); + } + if (from.has_meta_index_count()) { + set_meta_index_count(from.meta_index_count()); + } + if (from.has_entry_count()) { + set_entry_count(from.entry_count()); + } + if (from.has_num_data_index_levels()) { + set_num_data_index_levels(from.num_data_index_levels()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_first_data_block_offset()) { + set_first_data_block_offset(from.first_data_block_offset()); + } + if (from.has_last_data_block_offset()) { + set_last_data_block_offset(from.last_data_block_offset()); + } + if (from.has_comparator_class_name()) { + set_comparator_class_name(from.comparator_class_name()); + } + if (from.has_compression_codec()) { + set_compression_codec(from.compression_codec()); + } + if (from.has_encryption_key()) { + set_encryption_key(from.encryption_key()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FileTrailerProto::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FileTrailerProto::CopyFrom(const FileTrailerProto& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FileTrailerProto::IsInitialized() const { + + return true; +} + +void FileTrailerProto::Swap(FileTrailerProto* other) { + if (other != this) { + std::swap(file_info_offset_, other->file_info_offset_); + std::swap(load_on_open_data_offset_, other->load_on_open_data_offset_); + std::swap(uncompressed_data_index_size_, other->uncompressed_data_index_size_); + std::swap(total_uncompressed_bytes_, other->total_uncompressed_bytes_); + std::swap(data_index_count_, other->data_index_count_); + std::swap(meta_index_count_, other->meta_index_count_); + std::swap(entry_count_, other->entry_count_); + std::swap(num_data_index_levels_, other->num_data_index_levels_); + std::swap(first_data_block_offset_, other->first_data_block_offset_); + std::swap(last_data_block_offset_, other->last_data_block_offset_); + std::swap(comparator_class_name_, other->comparator_class_name_); + std::swap(compression_codec_, other->compression_codec_); + std::swap(encryption_key_, other->encryption_key_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FileTrailerProto::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FileTrailerProto_descriptor_; + metadata.reflection = FileTrailerProto_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/HFile.pb.h b/hbase-native-client/src/rpc/generated/HFile.pb.h new file mode 100644 index 0000000..7b9cbd9 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/HFile.pb.h @@ -0,0 +1,773 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HFile.proto + +#ifndef PROTOBUF_HFile_2eproto__INCLUDED +#define PROTOBUF_HFile_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "HBase.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_HFile_2eproto(); +void protobuf_AssignDesc_HFile_2eproto(); +void protobuf_ShutdownFile_HFile_2eproto(); + +class FileInfoProto; +class FileTrailerProto; + +// =================================================================== + +class FileInfoProto : public ::google::protobuf::Message { + public: + FileInfoProto(); + virtual ~FileInfoProto(); + + FileInfoProto(const FileInfoProto& from); + + inline FileInfoProto& operator=(const FileInfoProto& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FileInfoProto& default_instance(); + + void Swap(FileInfoProto* other); + + // implements Message ---------------------------------------------- + + FileInfoProto* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FileInfoProto& from); + void MergeFrom(const FileInfoProto& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.BytesBytesPair map_entry = 1; + inline int map_entry_size() const; + inline void clear_map_entry(); + static const int kMapEntryFieldNumber = 1; + inline const ::hbase::pb::BytesBytesPair& map_entry(int index) const; + inline ::hbase::pb::BytesBytesPair* mutable_map_entry(int index); + inline ::hbase::pb::BytesBytesPair* add_map_entry(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& + map_entry() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* + mutable_map_entry(); + + // @@protoc_insertion_point(class_scope:hbase.pb.FileInfoProto) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair > map_entry_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_HFile_2eproto(); + friend void protobuf_AssignDesc_HFile_2eproto(); + friend void protobuf_ShutdownFile_HFile_2eproto(); + + void InitAsDefaultInstance(); + static FileInfoProto* default_instance_; +}; +// ------------------------------------------------------------------- + +class FileTrailerProto : public ::google::protobuf::Message { + public: + FileTrailerProto(); + virtual ~FileTrailerProto(); + + FileTrailerProto(const FileTrailerProto& from); + + inline FileTrailerProto& operator=(const FileTrailerProto& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FileTrailerProto& default_instance(); + + void Swap(FileTrailerProto* other); + + // implements Message ---------------------------------------------- + + FileTrailerProto* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FileTrailerProto& from); + void MergeFrom(const FileTrailerProto& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 file_info_offset = 1; + inline bool has_file_info_offset() const; + inline void clear_file_info_offset(); + static const int kFileInfoOffsetFieldNumber = 1; + inline ::google::protobuf::uint64 file_info_offset() const; + inline void set_file_info_offset(::google::protobuf::uint64 value); + + // optional uint64 load_on_open_data_offset = 2; + inline bool has_load_on_open_data_offset() const; + inline void clear_load_on_open_data_offset(); + static const int kLoadOnOpenDataOffsetFieldNumber = 2; + inline ::google::protobuf::uint64 load_on_open_data_offset() const; + inline void set_load_on_open_data_offset(::google::protobuf::uint64 value); + + // optional uint64 uncompressed_data_index_size = 3; + inline bool has_uncompressed_data_index_size() const; + inline void clear_uncompressed_data_index_size(); + static const int kUncompressedDataIndexSizeFieldNumber = 3; + inline ::google::protobuf::uint64 uncompressed_data_index_size() const; + inline void set_uncompressed_data_index_size(::google::protobuf::uint64 value); + + // optional uint64 total_uncompressed_bytes = 4; + inline bool has_total_uncompressed_bytes() const; + inline void clear_total_uncompressed_bytes(); + static const int kTotalUncompressedBytesFieldNumber = 4; + inline ::google::protobuf::uint64 total_uncompressed_bytes() const; + inline void set_total_uncompressed_bytes(::google::protobuf::uint64 value); + + // optional uint32 data_index_count = 5; + inline bool has_data_index_count() const; + inline void clear_data_index_count(); + static const int kDataIndexCountFieldNumber = 5; + inline ::google::protobuf::uint32 data_index_count() const; + inline void set_data_index_count(::google::protobuf::uint32 value); + + // optional uint32 meta_index_count = 6; + inline bool has_meta_index_count() const; + inline void clear_meta_index_count(); + static const int kMetaIndexCountFieldNumber = 6; + inline ::google::protobuf::uint32 meta_index_count() const; + inline void set_meta_index_count(::google::protobuf::uint32 value); + + // optional uint64 entry_count = 7; + inline bool has_entry_count() const; + inline void clear_entry_count(); + static const int kEntryCountFieldNumber = 7; + inline ::google::protobuf::uint64 entry_count() const; + inline void set_entry_count(::google::protobuf::uint64 value); + + // optional uint32 num_data_index_levels = 8; + inline bool has_num_data_index_levels() const; + inline void clear_num_data_index_levels(); + static const int kNumDataIndexLevelsFieldNumber = 8; + inline ::google::protobuf::uint32 num_data_index_levels() const; + inline void set_num_data_index_levels(::google::protobuf::uint32 value); + + // optional uint64 first_data_block_offset = 9; + inline bool has_first_data_block_offset() const; + inline void clear_first_data_block_offset(); + static const int kFirstDataBlockOffsetFieldNumber = 9; + inline ::google::protobuf::uint64 first_data_block_offset() const; + inline void set_first_data_block_offset(::google::protobuf::uint64 value); + + // optional uint64 last_data_block_offset = 10; + inline bool has_last_data_block_offset() const; + inline void clear_last_data_block_offset(); + static const int kLastDataBlockOffsetFieldNumber = 10; + inline ::google::protobuf::uint64 last_data_block_offset() const; + inline void set_last_data_block_offset(::google::protobuf::uint64 value); + + // optional string comparator_class_name = 11; + inline bool has_comparator_class_name() const; + inline void clear_comparator_class_name(); + static const int kComparatorClassNameFieldNumber = 11; + inline const ::std::string& comparator_class_name() const; + inline void set_comparator_class_name(const ::std::string& value); + inline void set_comparator_class_name(const char* value); + inline void set_comparator_class_name(const char* value, size_t size); + inline ::std::string* mutable_comparator_class_name(); + inline ::std::string* release_comparator_class_name(); + inline void set_allocated_comparator_class_name(::std::string* comparator_class_name); + + // optional uint32 compression_codec = 12; + inline bool has_compression_codec() const; + inline void clear_compression_codec(); + static const int kCompressionCodecFieldNumber = 12; + inline ::google::protobuf::uint32 compression_codec() const; + inline void set_compression_codec(::google::protobuf::uint32 value); + + // optional bytes encryption_key = 13; + inline bool has_encryption_key() const; + inline void clear_encryption_key(); + static const int kEncryptionKeyFieldNumber = 13; + inline const ::std::string& encryption_key() const; + inline void set_encryption_key(const ::std::string& value); + inline void set_encryption_key(const char* value); + inline void set_encryption_key(const void* value, size_t size); + inline ::std::string* mutable_encryption_key(); + inline ::std::string* release_encryption_key(); + inline void set_allocated_encryption_key(::std::string* encryption_key); + + // @@protoc_insertion_point(class_scope:hbase.pb.FileTrailerProto) + private: + inline void set_has_file_info_offset(); + inline void clear_has_file_info_offset(); + inline void set_has_load_on_open_data_offset(); + inline void clear_has_load_on_open_data_offset(); + inline void set_has_uncompressed_data_index_size(); + inline void clear_has_uncompressed_data_index_size(); + inline void set_has_total_uncompressed_bytes(); + inline void clear_has_total_uncompressed_bytes(); + inline void set_has_data_index_count(); + inline void clear_has_data_index_count(); + inline void set_has_meta_index_count(); + inline void clear_has_meta_index_count(); + inline void set_has_entry_count(); + inline void clear_has_entry_count(); + inline void set_has_num_data_index_levels(); + inline void clear_has_num_data_index_levels(); + inline void set_has_first_data_block_offset(); + inline void clear_has_first_data_block_offset(); + inline void set_has_last_data_block_offset(); + inline void clear_has_last_data_block_offset(); + inline void set_has_comparator_class_name(); + inline void clear_has_comparator_class_name(); + inline void set_has_compression_codec(); + inline void clear_has_compression_codec(); + inline void set_has_encryption_key(); + inline void clear_has_encryption_key(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 file_info_offset_; + ::google::protobuf::uint64 load_on_open_data_offset_; + ::google::protobuf::uint64 uncompressed_data_index_size_; + ::google::protobuf::uint64 total_uncompressed_bytes_; + ::google::protobuf::uint32 data_index_count_; + ::google::protobuf::uint32 meta_index_count_; + ::google::protobuf::uint64 entry_count_; + ::google::protobuf::uint64 first_data_block_offset_; + ::google::protobuf::uint64 last_data_block_offset_; + ::google::protobuf::uint32 num_data_index_levels_; + ::google::protobuf::uint32 compression_codec_; + ::std::string* comparator_class_name_; + ::std::string* encryption_key_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(13 + 31) / 32]; + + friend void protobuf_AddDesc_HFile_2eproto(); + friend void protobuf_AssignDesc_HFile_2eproto(); + friend void protobuf_ShutdownFile_HFile_2eproto(); + + void InitAsDefaultInstance(); + static FileTrailerProto* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// FileInfoProto + +// repeated .hbase.pb.BytesBytesPair map_entry = 1; +inline int FileInfoProto::map_entry_size() const { + return map_entry_.size(); +} +inline void FileInfoProto::clear_map_entry() { + map_entry_.Clear(); +} +inline const ::hbase::pb::BytesBytesPair& FileInfoProto::map_entry(int index) const { + return map_entry_.Get(index); +} +inline ::hbase::pb::BytesBytesPair* FileInfoProto::mutable_map_entry(int index) { + return map_entry_.Mutable(index); +} +inline ::hbase::pb::BytesBytesPair* FileInfoProto::add_map_entry() { + return map_entry_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& +FileInfoProto::map_entry() const { + return map_entry_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* +FileInfoProto::mutable_map_entry() { + return &map_entry_; +} + +// ------------------------------------------------------------------- + +// FileTrailerProto + +// optional uint64 file_info_offset = 1; +inline bool FileTrailerProto::has_file_info_offset() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FileTrailerProto::set_has_file_info_offset() { + _has_bits_[0] |= 0x00000001u; +} +inline void FileTrailerProto::clear_has_file_info_offset() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FileTrailerProto::clear_file_info_offset() { + file_info_offset_ = GOOGLE_ULONGLONG(0); + clear_has_file_info_offset(); +} +inline ::google::protobuf::uint64 FileTrailerProto::file_info_offset() const { + return file_info_offset_; +} +inline void FileTrailerProto::set_file_info_offset(::google::protobuf::uint64 value) { + set_has_file_info_offset(); + file_info_offset_ = value; +} + +// optional uint64 load_on_open_data_offset = 2; +inline bool FileTrailerProto::has_load_on_open_data_offset() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void FileTrailerProto::set_has_load_on_open_data_offset() { + _has_bits_[0] |= 0x00000002u; +} +inline void FileTrailerProto::clear_has_load_on_open_data_offset() { + _has_bits_[0] &= ~0x00000002u; +} +inline void FileTrailerProto::clear_load_on_open_data_offset() { + load_on_open_data_offset_ = GOOGLE_ULONGLONG(0); + clear_has_load_on_open_data_offset(); +} +inline ::google::protobuf::uint64 FileTrailerProto::load_on_open_data_offset() const { + return load_on_open_data_offset_; +} +inline void FileTrailerProto::set_load_on_open_data_offset(::google::protobuf::uint64 value) { + set_has_load_on_open_data_offset(); + load_on_open_data_offset_ = value; +} + +// optional uint64 uncompressed_data_index_size = 3; +inline bool FileTrailerProto::has_uncompressed_data_index_size() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void FileTrailerProto::set_has_uncompressed_data_index_size() { + _has_bits_[0] |= 0x00000004u; +} +inline void FileTrailerProto::clear_has_uncompressed_data_index_size() { + _has_bits_[0] &= ~0x00000004u; +} +inline void FileTrailerProto::clear_uncompressed_data_index_size() { + uncompressed_data_index_size_ = GOOGLE_ULONGLONG(0); + clear_has_uncompressed_data_index_size(); +} +inline ::google::protobuf::uint64 FileTrailerProto::uncompressed_data_index_size() const { + return uncompressed_data_index_size_; +} +inline void FileTrailerProto::set_uncompressed_data_index_size(::google::protobuf::uint64 value) { + set_has_uncompressed_data_index_size(); + uncompressed_data_index_size_ = value; +} + +// optional uint64 total_uncompressed_bytes = 4; +inline bool FileTrailerProto::has_total_uncompressed_bytes() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void FileTrailerProto::set_has_total_uncompressed_bytes() { + _has_bits_[0] |= 0x00000008u; +} +inline void FileTrailerProto::clear_has_total_uncompressed_bytes() { + _has_bits_[0] &= ~0x00000008u; +} +inline void FileTrailerProto::clear_total_uncompressed_bytes() { + total_uncompressed_bytes_ = GOOGLE_ULONGLONG(0); + clear_has_total_uncompressed_bytes(); +} +inline ::google::protobuf::uint64 FileTrailerProto::total_uncompressed_bytes() const { + return total_uncompressed_bytes_; +} +inline void FileTrailerProto::set_total_uncompressed_bytes(::google::protobuf::uint64 value) { + set_has_total_uncompressed_bytes(); + total_uncompressed_bytes_ = value; +} + +// optional uint32 data_index_count = 5; +inline bool FileTrailerProto::has_data_index_count() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void FileTrailerProto::set_has_data_index_count() { + _has_bits_[0] |= 0x00000010u; +} +inline void FileTrailerProto::clear_has_data_index_count() { + _has_bits_[0] &= ~0x00000010u; +} +inline void FileTrailerProto::clear_data_index_count() { + data_index_count_ = 0u; + clear_has_data_index_count(); +} +inline ::google::protobuf::uint32 FileTrailerProto::data_index_count() const { + return data_index_count_; +} +inline void FileTrailerProto::set_data_index_count(::google::protobuf::uint32 value) { + set_has_data_index_count(); + data_index_count_ = value; +} + +// optional uint32 meta_index_count = 6; +inline bool FileTrailerProto::has_meta_index_count() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void FileTrailerProto::set_has_meta_index_count() { + _has_bits_[0] |= 0x00000020u; +} +inline void FileTrailerProto::clear_has_meta_index_count() { + _has_bits_[0] &= ~0x00000020u; +} +inline void FileTrailerProto::clear_meta_index_count() { + meta_index_count_ = 0u; + clear_has_meta_index_count(); +} +inline ::google::protobuf::uint32 FileTrailerProto::meta_index_count() const { + return meta_index_count_; +} +inline void FileTrailerProto::set_meta_index_count(::google::protobuf::uint32 value) { + set_has_meta_index_count(); + meta_index_count_ = value; +} + +// optional uint64 entry_count = 7; +inline bool FileTrailerProto::has_entry_count() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void FileTrailerProto::set_has_entry_count() { + _has_bits_[0] |= 0x00000040u; +} +inline void FileTrailerProto::clear_has_entry_count() { + _has_bits_[0] &= ~0x00000040u; +} +inline void FileTrailerProto::clear_entry_count() { + entry_count_ = GOOGLE_ULONGLONG(0); + clear_has_entry_count(); +} +inline ::google::protobuf::uint64 FileTrailerProto::entry_count() const { + return entry_count_; +} +inline void FileTrailerProto::set_entry_count(::google::protobuf::uint64 value) { + set_has_entry_count(); + entry_count_ = value; +} + +// optional uint32 num_data_index_levels = 8; +inline bool FileTrailerProto::has_num_data_index_levels() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void FileTrailerProto::set_has_num_data_index_levels() { + _has_bits_[0] |= 0x00000080u; +} +inline void FileTrailerProto::clear_has_num_data_index_levels() { + _has_bits_[0] &= ~0x00000080u; +} +inline void FileTrailerProto::clear_num_data_index_levels() { + num_data_index_levels_ = 0u; + clear_has_num_data_index_levels(); +} +inline ::google::protobuf::uint32 FileTrailerProto::num_data_index_levels() const { + return num_data_index_levels_; +} +inline void FileTrailerProto::set_num_data_index_levels(::google::protobuf::uint32 value) { + set_has_num_data_index_levels(); + num_data_index_levels_ = value; +} + +// optional uint64 first_data_block_offset = 9; +inline bool FileTrailerProto::has_first_data_block_offset() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void FileTrailerProto::set_has_first_data_block_offset() { + _has_bits_[0] |= 0x00000100u; +} +inline void FileTrailerProto::clear_has_first_data_block_offset() { + _has_bits_[0] &= ~0x00000100u; +} +inline void FileTrailerProto::clear_first_data_block_offset() { + first_data_block_offset_ = GOOGLE_ULONGLONG(0); + clear_has_first_data_block_offset(); +} +inline ::google::protobuf::uint64 FileTrailerProto::first_data_block_offset() const { + return first_data_block_offset_; +} +inline void FileTrailerProto::set_first_data_block_offset(::google::protobuf::uint64 value) { + set_has_first_data_block_offset(); + first_data_block_offset_ = value; +} + +// optional uint64 last_data_block_offset = 10; +inline bool FileTrailerProto::has_last_data_block_offset() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void FileTrailerProto::set_has_last_data_block_offset() { + _has_bits_[0] |= 0x00000200u; +} +inline void FileTrailerProto::clear_has_last_data_block_offset() { + _has_bits_[0] &= ~0x00000200u; +} +inline void FileTrailerProto::clear_last_data_block_offset() { + last_data_block_offset_ = GOOGLE_ULONGLONG(0); + clear_has_last_data_block_offset(); +} +inline ::google::protobuf::uint64 FileTrailerProto::last_data_block_offset() const { + return last_data_block_offset_; +} +inline void FileTrailerProto::set_last_data_block_offset(::google::protobuf::uint64 value) { + set_has_last_data_block_offset(); + last_data_block_offset_ = value; +} + +// optional string comparator_class_name = 11; +inline bool FileTrailerProto::has_comparator_class_name() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void FileTrailerProto::set_has_comparator_class_name() { + _has_bits_[0] |= 0x00000400u; +} +inline void FileTrailerProto::clear_has_comparator_class_name() { + _has_bits_[0] &= ~0x00000400u; +} +inline void FileTrailerProto::clear_comparator_class_name() { + if (comparator_class_name_ != &::google::protobuf::internal::kEmptyString) { + comparator_class_name_->clear(); + } + clear_has_comparator_class_name(); +} +inline const ::std::string& FileTrailerProto::comparator_class_name() const { + return *comparator_class_name_; +} +inline void FileTrailerProto::set_comparator_class_name(const ::std::string& value) { + set_has_comparator_class_name(); + if (comparator_class_name_ == &::google::protobuf::internal::kEmptyString) { + comparator_class_name_ = new ::std::string; + } + comparator_class_name_->assign(value); +} +inline void FileTrailerProto::set_comparator_class_name(const char* value) { + set_has_comparator_class_name(); + if (comparator_class_name_ == &::google::protobuf::internal::kEmptyString) { + comparator_class_name_ = new ::std::string; + } + comparator_class_name_->assign(value); +} +inline void FileTrailerProto::set_comparator_class_name(const char* value, size_t size) { + set_has_comparator_class_name(); + if (comparator_class_name_ == &::google::protobuf::internal::kEmptyString) { + comparator_class_name_ = new ::std::string; + } + comparator_class_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* FileTrailerProto::mutable_comparator_class_name() { + set_has_comparator_class_name(); + if (comparator_class_name_ == &::google::protobuf::internal::kEmptyString) { + comparator_class_name_ = new ::std::string; + } + return comparator_class_name_; +} +inline ::std::string* FileTrailerProto::release_comparator_class_name() { + clear_has_comparator_class_name(); + if (comparator_class_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = comparator_class_name_; + comparator_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void FileTrailerProto::set_allocated_comparator_class_name(::std::string* comparator_class_name) { + if (comparator_class_name_ != &::google::protobuf::internal::kEmptyString) { + delete comparator_class_name_; + } + if (comparator_class_name) { + set_has_comparator_class_name(); + comparator_class_name_ = comparator_class_name; + } else { + clear_has_comparator_class_name(); + comparator_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint32 compression_codec = 12; +inline bool FileTrailerProto::has_compression_codec() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void FileTrailerProto::set_has_compression_codec() { + _has_bits_[0] |= 0x00000800u; +} +inline void FileTrailerProto::clear_has_compression_codec() { + _has_bits_[0] &= ~0x00000800u; +} +inline void FileTrailerProto::clear_compression_codec() { + compression_codec_ = 0u; + clear_has_compression_codec(); +} +inline ::google::protobuf::uint32 FileTrailerProto::compression_codec() const { + return compression_codec_; +} +inline void FileTrailerProto::set_compression_codec(::google::protobuf::uint32 value) { + set_has_compression_codec(); + compression_codec_ = value; +} + +// optional bytes encryption_key = 13; +inline bool FileTrailerProto::has_encryption_key() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void FileTrailerProto::set_has_encryption_key() { + _has_bits_[0] |= 0x00001000u; +} +inline void FileTrailerProto::clear_has_encryption_key() { + _has_bits_[0] &= ~0x00001000u; +} +inline void FileTrailerProto::clear_encryption_key() { + if (encryption_key_ != &::google::protobuf::internal::kEmptyString) { + encryption_key_->clear(); + } + clear_has_encryption_key(); +} +inline const ::std::string& FileTrailerProto::encryption_key() const { + return *encryption_key_; +} +inline void FileTrailerProto::set_encryption_key(const ::std::string& value) { + set_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + encryption_key_ = new ::std::string; + } + encryption_key_->assign(value); +} +inline void FileTrailerProto::set_encryption_key(const char* value) { + set_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + encryption_key_ = new ::std::string; + } + encryption_key_->assign(value); +} +inline void FileTrailerProto::set_encryption_key(const void* value, size_t size) { + set_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + encryption_key_ = new ::std::string; + } + encryption_key_->assign(reinterpret_cast(value), size); +} +inline ::std::string* FileTrailerProto::mutable_encryption_key() { + set_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + encryption_key_ = new ::std::string; + } + return encryption_key_; +} +inline ::std::string* FileTrailerProto::release_encryption_key() { + clear_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = encryption_key_; + encryption_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void FileTrailerProto::set_allocated_encryption_key(::std::string* encryption_key) { + if (encryption_key_ != &::google::protobuf::internal::kEmptyString) { + delete encryption_key_; + } + if (encryption_key) { + set_has_encryption_key(); + encryption_key_ = encryption_key; + } else { + clear_has_encryption_key(); + encryption_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_HFile_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/LoadBalancer.pb.cc b/hbase-native-client/src/rpc/generated/LoadBalancer.pb.cc new file mode 100644 index 0000000..ceff467 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/LoadBalancer.pb.cc @@ -0,0 +1,311 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LoadBalancer.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "LoadBalancer.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* LoadBalancerState_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + LoadBalancerState_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_LoadBalancer_2eproto() { + protobuf_AddDesc_LoadBalancer_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "LoadBalancer.proto"); + GOOGLE_CHECK(file != NULL); + LoadBalancerState_descriptor_ = file->message_type(0); + static const int LoadBalancerState_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadBalancerState, balancer_on_), + }; + LoadBalancerState_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + LoadBalancerState_descriptor_, + LoadBalancerState::default_instance_, + LoadBalancerState_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadBalancerState, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadBalancerState, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(LoadBalancerState)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_LoadBalancer_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + LoadBalancerState_descriptor_, &LoadBalancerState::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_LoadBalancer_2eproto() { + delete LoadBalancerState::default_instance_; + delete LoadBalancerState_reflection_; +} + +void protobuf_AddDesc_LoadBalancer_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\022LoadBalancer.proto\022\010hbase.pb\"(\n\021LoadBa" + "lancerState\022\023\n\013balancer_on\030\001 \001(\010BE\n*org." + "apache.hadoop.hbase.protobuf.generatedB\022" + "LoadBalancerProtosH\001\240\001\001", 143); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "LoadBalancer.proto", &protobuf_RegisterTypes); + LoadBalancerState::default_instance_ = new LoadBalancerState(); + LoadBalancerState::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_LoadBalancer_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_LoadBalancer_2eproto { + StaticDescriptorInitializer_LoadBalancer_2eproto() { + protobuf_AddDesc_LoadBalancer_2eproto(); + } +} static_descriptor_initializer_LoadBalancer_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int LoadBalancerState::kBalancerOnFieldNumber; +#endif // !_MSC_VER + +LoadBalancerState::LoadBalancerState() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void LoadBalancerState::InitAsDefaultInstance() { +} + +LoadBalancerState::LoadBalancerState(const LoadBalancerState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void LoadBalancerState::SharedCtor() { + _cached_size_ = 0; + balancer_on_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +LoadBalancerState::~LoadBalancerState() { + SharedDtor(); +} + +void LoadBalancerState::SharedDtor() { + if (this != default_instance_) { + } +} + +void LoadBalancerState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LoadBalancerState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return LoadBalancerState_descriptor_; +} + +const LoadBalancerState& LoadBalancerState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_LoadBalancer_2eproto(); + return *default_instance_; +} + +LoadBalancerState* LoadBalancerState::default_instance_ = NULL; + +LoadBalancerState* LoadBalancerState::New() const { + return new LoadBalancerState; +} + +void LoadBalancerState::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + balancer_on_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool LoadBalancerState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool balancer_on = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &balancer_on_))); + set_has_balancer_on(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void LoadBalancerState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool balancer_on = 1; + if (has_balancer_on()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->balancer_on(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* LoadBalancerState::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool balancer_on = 1; + if (has_balancer_on()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->balancer_on(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int LoadBalancerState::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool balancer_on = 1; + if (has_balancer_on()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LoadBalancerState::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const LoadBalancerState* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void LoadBalancerState::MergeFrom(const LoadBalancerState& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_balancer_on()) { + set_balancer_on(from.balancer_on()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void LoadBalancerState::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LoadBalancerState::CopyFrom(const LoadBalancerState& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LoadBalancerState::IsInitialized() const { + + return true; +} + +void LoadBalancerState::Swap(LoadBalancerState* other) { + if (other != this) { + std::swap(balancer_on_, other->balancer_on_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata LoadBalancerState::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = LoadBalancerState_descriptor_; + metadata.reflection = LoadBalancerState_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/LoadBalancer.pb.h b/hbase-native-client/src/rpc/generated/LoadBalancer.pb.h new file mode 100644 index 0000000..ad52db3 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/LoadBalancer.pb.h @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LoadBalancer.proto + +#ifndef PROTOBUF_LoadBalancer_2eproto__INCLUDED +#define PROTOBUF_LoadBalancer_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_LoadBalancer_2eproto(); +void protobuf_AssignDesc_LoadBalancer_2eproto(); +void protobuf_ShutdownFile_LoadBalancer_2eproto(); + +class LoadBalancerState; + +// =================================================================== + +class LoadBalancerState : public ::google::protobuf::Message { + public: + LoadBalancerState(); + virtual ~LoadBalancerState(); + + LoadBalancerState(const LoadBalancerState& from); + + inline LoadBalancerState& operator=(const LoadBalancerState& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LoadBalancerState& default_instance(); + + void Swap(LoadBalancerState* other); + + // implements Message ---------------------------------------------- + + LoadBalancerState* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const LoadBalancerState& from); + void MergeFrom(const LoadBalancerState& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool balancer_on = 1; + inline bool has_balancer_on() const; + inline void clear_balancer_on(); + static const int kBalancerOnFieldNumber = 1; + inline bool balancer_on() const; + inline void set_balancer_on(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.LoadBalancerState) + private: + inline void set_has_balancer_on(); + inline void clear_has_balancer_on(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool balancer_on_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_LoadBalancer_2eproto(); + friend void protobuf_AssignDesc_LoadBalancer_2eproto(); + friend void protobuf_ShutdownFile_LoadBalancer_2eproto(); + + void InitAsDefaultInstance(); + static LoadBalancerState* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// LoadBalancerState + +// optional bool balancer_on = 1; +inline bool LoadBalancerState::has_balancer_on() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LoadBalancerState::set_has_balancer_on() { + _has_bits_[0] |= 0x00000001u; +} +inline void LoadBalancerState::clear_has_balancer_on() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LoadBalancerState::clear_balancer_on() { + balancer_on_ = false; + clear_has_balancer_on(); +} +inline bool LoadBalancerState::balancer_on() const { + return balancer_on_; +} +inline void LoadBalancerState::set_balancer_on(bool value) { + set_has_balancer_on(); + balancer_on_ = value; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_LoadBalancer_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/MapReduce.pb.cc b/hbase-native-client/src/rpc/generated/MapReduce.pb.cc new file mode 100644 index 0000000..671e921 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/MapReduce.pb.cc @@ -0,0 +1,652 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MapReduce.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "MapReduce.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* ScanMetrics_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ScanMetrics_reflection_ = NULL; +const ::google::protobuf::Descriptor* TableSnapshotRegionSplit_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TableSnapshotRegionSplit_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_MapReduce_2eproto() { + protobuf_AddDesc_MapReduce_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "MapReduce.proto"); + GOOGLE_CHECK(file != NULL); + ScanMetrics_descriptor_ = file->message_type(0); + static const int ScanMetrics_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanMetrics, metrics_), + }; + ScanMetrics_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ScanMetrics_descriptor_, + ScanMetrics::default_instance_, + ScanMetrics_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanMetrics, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScanMetrics, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ScanMetrics)); + TableSnapshotRegionSplit_descriptor_ = file->message_type(1); + static const int TableSnapshotRegionSplit_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSnapshotRegionSplit, locations_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSnapshotRegionSplit, table_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSnapshotRegionSplit, region_), + }; + TableSnapshotRegionSplit_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TableSnapshotRegionSplit_descriptor_, + TableSnapshotRegionSplit::default_instance_, + TableSnapshotRegionSplit_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSnapshotRegionSplit, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSnapshotRegionSplit, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TableSnapshotRegionSplit)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_MapReduce_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ScanMetrics_descriptor_, &ScanMetrics::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TableSnapshotRegionSplit_descriptor_, &TableSnapshotRegionSplit::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_MapReduce_2eproto() { + delete ScanMetrics::default_instance_; + delete ScanMetrics_reflection_; + delete TableSnapshotRegionSplit::default_instance_; + delete TableSnapshotRegionSplit_reflection_; +} + +void protobuf_AddDesc_MapReduce_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\017MapReduce.proto\022\010hbase.pb\032\013HBase.proto" + "\"7\n\013ScanMetrics\022(\n\007metrics\030\001 \003(\0132\027.hbase" + ".pb.NameInt64Pair\"y\n\030TableSnapshotRegion" + "Split\022\021\n\tlocations\030\002 \003(\t\022$\n\005table\030\003 \001(\0132" + "\025.hbase.pb.TableSchema\022$\n\006region\030\004 \001(\0132\024" + ".hbase.pb.RegionInfoBB\n*org.apache.hadoo" + "p.hbase.protobuf.generatedB\017MapReducePro" + "tosH\001\240\001\001", 288); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "MapReduce.proto", &protobuf_RegisterTypes); + ScanMetrics::default_instance_ = new ScanMetrics(); + TableSnapshotRegionSplit::default_instance_ = new TableSnapshotRegionSplit(); + ScanMetrics::default_instance_->InitAsDefaultInstance(); + TableSnapshotRegionSplit::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_MapReduce_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_MapReduce_2eproto { + StaticDescriptorInitializer_MapReduce_2eproto() { + protobuf_AddDesc_MapReduce_2eproto(); + } +} static_descriptor_initializer_MapReduce_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int ScanMetrics::kMetricsFieldNumber; +#endif // !_MSC_VER + +ScanMetrics::ScanMetrics() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ScanMetrics::InitAsDefaultInstance() { +} + +ScanMetrics::ScanMetrics(const ScanMetrics& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ScanMetrics::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ScanMetrics::~ScanMetrics() { + SharedDtor(); +} + +void ScanMetrics::SharedDtor() { + if (this != default_instance_) { + } +} + +void ScanMetrics::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ScanMetrics::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ScanMetrics_descriptor_; +} + +const ScanMetrics& ScanMetrics::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MapReduce_2eproto(); + return *default_instance_; +} + +ScanMetrics* ScanMetrics::default_instance_ = NULL; + +ScanMetrics* ScanMetrics::New() const { + return new ScanMetrics; +} + +void ScanMetrics::Clear() { + metrics_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ScanMetrics::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.NameInt64Pair metrics = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_metrics: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_metrics())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_metrics; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ScanMetrics::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.NameInt64Pair metrics = 1; + for (int i = 0; i < this->metrics_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->metrics(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ScanMetrics::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.NameInt64Pair metrics = 1; + for (int i = 0; i < this->metrics_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->metrics(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ScanMetrics::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.NameInt64Pair metrics = 1; + total_size += 1 * this->metrics_size(); + for (int i = 0; i < this->metrics_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->metrics(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ScanMetrics::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ScanMetrics* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ScanMetrics::MergeFrom(const ScanMetrics& from) { + GOOGLE_CHECK_NE(&from, this); + metrics_.MergeFrom(from.metrics_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ScanMetrics::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ScanMetrics::CopyFrom(const ScanMetrics& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ScanMetrics::IsInitialized() const { + + return true; +} + +void ScanMetrics::Swap(ScanMetrics* other) { + if (other != this) { + metrics_.Swap(&other->metrics_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ScanMetrics::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ScanMetrics_descriptor_; + metadata.reflection = ScanMetrics_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TableSnapshotRegionSplit::kLocationsFieldNumber; +const int TableSnapshotRegionSplit::kTableFieldNumber; +const int TableSnapshotRegionSplit::kRegionFieldNumber; +#endif // !_MSC_VER + +TableSnapshotRegionSplit::TableSnapshotRegionSplit() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TableSnapshotRegionSplit::InitAsDefaultInstance() { + table_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); + region_ = const_cast< ::hbase::pb::RegionInfo*>(&::hbase::pb::RegionInfo::default_instance()); +} + +TableSnapshotRegionSplit::TableSnapshotRegionSplit(const TableSnapshotRegionSplit& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TableSnapshotRegionSplit::SharedCtor() { + _cached_size_ = 0; + table_ = NULL; + region_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TableSnapshotRegionSplit::~TableSnapshotRegionSplit() { + SharedDtor(); +} + +void TableSnapshotRegionSplit::SharedDtor() { + if (this != default_instance_) { + delete table_; + delete region_; + } +} + +void TableSnapshotRegionSplit::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TableSnapshotRegionSplit::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TableSnapshotRegionSplit_descriptor_; +} + +const TableSnapshotRegionSplit& TableSnapshotRegionSplit::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MapReduce_2eproto(); + return *default_instance_; +} + +TableSnapshotRegionSplit* TableSnapshotRegionSplit::default_instance_ = NULL; + +TableSnapshotRegionSplit* TableSnapshotRegionSplit::New() const { + return new TableSnapshotRegionSplit; +} + +void TableSnapshotRegionSplit::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (has_table()) { + if (table_ != NULL) table_->::hbase::pb::TableSchema::Clear(); + } + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionInfo::Clear(); + } + } + locations_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TableSnapshotRegionSplit::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string locations = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_locations: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_locations())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->locations(this->locations_size() - 1).data(), + this->locations(this->locations_size() - 1).length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_locations; + if (input->ExpectTag(26)) goto parse_table; + break; + } + + // optional .hbase.pb.TableSchema table = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_region; + break; + } + + // optional .hbase.pb.RegionInfo region = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TableSnapshotRegionSplit::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated string locations = 2; + for (int i = 0; i < this->locations_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->locations(i).data(), this->locations(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->locations(i), output); + } + + // optional .hbase.pb.TableSchema table = 3; + if (has_table()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->table(), output); + } + + // optional .hbase.pb.RegionInfo region = 4; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->region(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TableSnapshotRegionSplit::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated string locations = 2; + for (int i = 0; i < this->locations_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->locations(i).data(), this->locations(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->locations(i), target); + } + + // optional .hbase.pb.TableSchema table = 3; + if (has_table()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->table(), target); + } + + // optional .hbase.pb.RegionInfo region = 4; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->region(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TableSnapshotRegionSplit::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional .hbase.pb.TableSchema table = 3; + if (has_table()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table()); + } + + // optional .hbase.pb.RegionInfo region = 4; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + } + // repeated string locations = 2; + total_size += 1 * this->locations_size(); + for (int i = 0; i < this->locations_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->locations(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TableSnapshotRegionSplit::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TableSnapshotRegionSplit* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TableSnapshotRegionSplit::MergeFrom(const TableSnapshotRegionSplit& from) { + GOOGLE_CHECK_NE(&from, this); + locations_.MergeFrom(from.locations_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_table()) { + mutable_table()->::hbase::pb::TableSchema::MergeFrom(from.table()); + } + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionInfo::MergeFrom(from.region()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TableSnapshotRegionSplit::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TableSnapshotRegionSplit::CopyFrom(const TableSnapshotRegionSplit& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TableSnapshotRegionSplit::IsInitialized() const { + + if (has_table()) { + if (!this->table().IsInitialized()) return false; + } + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void TableSnapshotRegionSplit::Swap(TableSnapshotRegionSplit* other) { + if (other != this) { + locations_.Swap(&other->locations_); + std::swap(table_, other->table_); + std::swap(region_, other->region_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TableSnapshotRegionSplit::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TableSnapshotRegionSplit_descriptor_; + metadata.reflection = TableSnapshotRegionSplit_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/MapReduce.pb.h b/hbase-native-client/src/rpc/generated/MapReduce.pb.h new file mode 100644 index 0000000..778220a --- /dev/null +++ b/hbase-native-client/src/rpc/generated/MapReduce.pb.h @@ -0,0 +1,412 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MapReduce.proto + +#ifndef PROTOBUF_MapReduce_2eproto__INCLUDED +#define PROTOBUF_MapReduce_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "HBase.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_MapReduce_2eproto(); +void protobuf_AssignDesc_MapReduce_2eproto(); +void protobuf_ShutdownFile_MapReduce_2eproto(); + +class ScanMetrics; +class TableSnapshotRegionSplit; + +// =================================================================== + +class ScanMetrics : public ::google::protobuf::Message { + public: + ScanMetrics(); + virtual ~ScanMetrics(); + + ScanMetrics(const ScanMetrics& from); + + inline ScanMetrics& operator=(const ScanMetrics& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ScanMetrics& default_instance(); + + void Swap(ScanMetrics* other); + + // implements Message ---------------------------------------------- + + ScanMetrics* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ScanMetrics& from); + void MergeFrom(const ScanMetrics& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.NameInt64Pair metrics = 1; + inline int metrics_size() const; + inline void clear_metrics(); + static const int kMetricsFieldNumber = 1; + inline const ::hbase::pb::NameInt64Pair& metrics(int index) const; + inline ::hbase::pb::NameInt64Pair* mutable_metrics(int index); + inline ::hbase::pb::NameInt64Pair* add_metrics(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameInt64Pair >& + metrics() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameInt64Pair >* + mutable_metrics(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ScanMetrics) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameInt64Pair > metrics_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_MapReduce_2eproto(); + friend void protobuf_AssignDesc_MapReduce_2eproto(); + friend void protobuf_ShutdownFile_MapReduce_2eproto(); + + void InitAsDefaultInstance(); + static ScanMetrics* default_instance_; +}; +// ------------------------------------------------------------------- + +class TableSnapshotRegionSplit : public ::google::protobuf::Message { + public: + TableSnapshotRegionSplit(); + virtual ~TableSnapshotRegionSplit(); + + TableSnapshotRegionSplit(const TableSnapshotRegionSplit& from); + + inline TableSnapshotRegionSplit& operator=(const TableSnapshotRegionSplit& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TableSnapshotRegionSplit& default_instance(); + + void Swap(TableSnapshotRegionSplit* other); + + // implements Message ---------------------------------------------- + + TableSnapshotRegionSplit* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TableSnapshotRegionSplit& from); + void MergeFrom(const TableSnapshotRegionSplit& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string locations = 2; + inline int locations_size() const; + inline void clear_locations(); + static const int kLocationsFieldNumber = 2; + inline const ::std::string& locations(int index) const; + inline ::std::string* mutable_locations(int index); + inline void set_locations(int index, const ::std::string& value); + inline void set_locations(int index, const char* value); + inline void set_locations(int index, const char* value, size_t size); + inline ::std::string* add_locations(); + inline void add_locations(const ::std::string& value); + inline void add_locations(const char* value); + inline void add_locations(const char* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& locations() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_locations(); + + // optional .hbase.pb.TableSchema table = 3; + inline bool has_table() const; + inline void clear_table(); + static const int kTableFieldNumber = 3; + inline const ::hbase::pb::TableSchema& table() const; + inline ::hbase::pb::TableSchema* mutable_table(); + inline ::hbase::pb::TableSchema* release_table(); + inline void set_allocated_table(::hbase::pb::TableSchema* table); + + // optional .hbase.pb.RegionInfo region = 4; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 4; + inline const ::hbase::pb::RegionInfo& region() const; + inline ::hbase::pb::RegionInfo* mutable_region(); + inline ::hbase::pb::RegionInfo* release_region(); + inline void set_allocated_region(::hbase::pb::RegionInfo* region); + + // @@protoc_insertion_point(class_scope:hbase.pb.TableSnapshotRegionSplit) + private: + inline void set_has_table(); + inline void clear_has_table(); + inline void set_has_region(); + inline void clear_has_region(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> locations_; + ::hbase::pb::TableSchema* table_; + ::hbase::pb::RegionInfo* region_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_MapReduce_2eproto(); + friend void protobuf_AssignDesc_MapReduce_2eproto(); + friend void protobuf_ShutdownFile_MapReduce_2eproto(); + + void InitAsDefaultInstance(); + static TableSnapshotRegionSplit* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// ScanMetrics + +// repeated .hbase.pb.NameInt64Pair metrics = 1; +inline int ScanMetrics::metrics_size() const { + return metrics_.size(); +} +inline void ScanMetrics::clear_metrics() { + metrics_.Clear(); +} +inline const ::hbase::pb::NameInt64Pair& ScanMetrics::metrics(int index) const { + return metrics_.Get(index); +} +inline ::hbase::pb::NameInt64Pair* ScanMetrics::mutable_metrics(int index) { + return metrics_.Mutable(index); +} +inline ::hbase::pb::NameInt64Pair* ScanMetrics::add_metrics() { + return metrics_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameInt64Pair >& +ScanMetrics::metrics() const { + return metrics_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameInt64Pair >* +ScanMetrics::mutable_metrics() { + return &metrics_; +} + +// ------------------------------------------------------------------- + +// TableSnapshotRegionSplit + +// repeated string locations = 2; +inline int TableSnapshotRegionSplit::locations_size() const { + return locations_.size(); +} +inline void TableSnapshotRegionSplit::clear_locations() { + locations_.Clear(); +} +inline const ::std::string& TableSnapshotRegionSplit::locations(int index) const { + return locations_.Get(index); +} +inline ::std::string* TableSnapshotRegionSplit::mutable_locations(int index) { + return locations_.Mutable(index); +} +inline void TableSnapshotRegionSplit::set_locations(int index, const ::std::string& value) { + locations_.Mutable(index)->assign(value); +} +inline void TableSnapshotRegionSplit::set_locations(int index, const char* value) { + locations_.Mutable(index)->assign(value); +} +inline void TableSnapshotRegionSplit::set_locations(int index, const char* value, size_t size) { + locations_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* TableSnapshotRegionSplit::add_locations() { + return locations_.Add(); +} +inline void TableSnapshotRegionSplit::add_locations(const ::std::string& value) { + locations_.Add()->assign(value); +} +inline void TableSnapshotRegionSplit::add_locations(const char* value) { + locations_.Add()->assign(value); +} +inline void TableSnapshotRegionSplit::add_locations(const char* value, size_t size) { + locations_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +TableSnapshotRegionSplit::locations() const { + return locations_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +TableSnapshotRegionSplit::mutable_locations() { + return &locations_; +} + +// optional .hbase.pb.TableSchema table = 3; +inline bool TableSnapshotRegionSplit::has_table() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TableSnapshotRegionSplit::set_has_table() { + _has_bits_[0] |= 0x00000002u; +} +inline void TableSnapshotRegionSplit::clear_has_table() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TableSnapshotRegionSplit::clear_table() { + if (table_ != NULL) table_->::hbase::pb::TableSchema::Clear(); + clear_has_table(); +} +inline const ::hbase::pb::TableSchema& TableSnapshotRegionSplit::table() const { + return table_ != NULL ? *table_ : *default_instance_->table_; +} +inline ::hbase::pb::TableSchema* TableSnapshotRegionSplit::mutable_table() { + set_has_table(); + if (table_ == NULL) table_ = new ::hbase::pb::TableSchema; + return table_; +} +inline ::hbase::pb::TableSchema* TableSnapshotRegionSplit::release_table() { + clear_has_table(); + ::hbase::pb::TableSchema* temp = table_; + table_ = NULL; + return temp; +} +inline void TableSnapshotRegionSplit::set_allocated_table(::hbase::pb::TableSchema* table) { + delete table_; + table_ = table; + if (table) { + set_has_table(); + } else { + clear_has_table(); + } +} + +// optional .hbase.pb.RegionInfo region = 4; +inline bool TableSnapshotRegionSplit::has_region() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TableSnapshotRegionSplit::set_has_region() { + _has_bits_[0] |= 0x00000004u; +} +inline void TableSnapshotRegionSplit::clear_has_region() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TableSnapshotRegionSplit::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionInfo::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionInfo& TableSnapshotRegionSplit::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionInfo* TableSnapshotRegionSplit::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionInfo; + return region_; +} +inline ::hbase::pb::RegionInfo* TableSnapshotRegionSplit::release_region() { + clear_has_region(); + ::hbase::pb::RegionInfo* temp = region_; + region_ = NULL; + return temp; +} +inline void TableSnapshotRegionSplit::set_allocated_region(::hbase::pb::RegionInfo* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_MapReduce_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Master.pb.cc b/hbase-native-client/src/rpc/generated/Master.pb.cc new file mode 100644 index 0000000..7ea2c1d --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Master.pb.cc @@ -0,0 +1,27428 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Master.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Master.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* AddColumnRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AddColumnRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* AddColumnResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AddColumnResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteColumnRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteColumnRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteColumnResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteColumnResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyColumnRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyColumnRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyColumnResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyColumnResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* MoveRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MoveRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MoveRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MoveRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* DispatchMergingRegionsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DispatchMergingRegionsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* DispatchMergingRegionsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DispatchMergingRegionsResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* AssignRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AssignRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* AssignRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AssignRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* UnassignRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UnassignRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* UnassignRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UnassignRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* OfflineRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + OfflineRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* OfflineRegionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + OfflineRegionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* CreateTableRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CreateTableRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* CreateTableResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CreateTableResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteTableRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteTableRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteTableResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteTableResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* TruncateTableRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TruncateTableRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* TruncateTableResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TruncateTableResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* EnableTableRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EnableTableRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* EnableTableResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EnableTableResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* DisableTableRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DisableTableRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* DisableTableResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DisableTableResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyTableRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyTableRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyTableResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyTableResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* CreateNamespaceRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CreateNamespaceRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* CreateNamespaceResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CreateNamespaceResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteNamespaceRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteNamespaceRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteNamespaceResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteNamespaceResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyNamespaceRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyNamespaceRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyNamespaceResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyNamespaceResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetNamespaceDescriptorRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetNamespaceDescriptorRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetNamespaceDescriptorResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetNamespaceDescriptorResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListNamespaceDescriptorsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListNamespaceDescriptorsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListNamespaceDescriptorsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListNamespaceDescriptorsResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListTableDescriptorsByNamespaceRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListTableDescriptorsByNamespaceRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListTableDescriptorsByNamespaceResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListTableDescriptorsByNamespaceResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListTableNamesByNamespaceRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListTableNamesByNamespaceRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListTableNamesByNamespaceResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListTableNamesByNamespaceResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ShutdownRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ShutdownRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ShutdownResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ShutdownResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* StopMasterRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StopMasterRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* StopMasterResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StopMasterResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* BalanceRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BalanceRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* BalanceResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BalanceResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetBalancerRunningRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetBalancerRunningRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetBalancerRunningResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetBalancerRunningResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsBalancerEnabledRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsBalancerEnabledRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsBalancerEnabledResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsBalancerEnabledResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetSplitOrMergeEnabledRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetSplitOrMergeEnabledRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetSplitOrMergeEnabledResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetSplitOrMergeEnabledResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsSplitOrMergeEnabledRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsSplitOrMergeEnabledRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsSplitOrMergeEnabledResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsSplitOrMergeEnabledResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* NormalizeRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NormalizeRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* NormalizeResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NormalizeResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetNormalizerRunningRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetNormalizerRunningRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetNormalizerRunningResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetNormalizerRunningResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsNormalizerEnabledRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsNormalizerEnabledRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsNormalizerEnabledResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsNormalizerEnabledResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* RunCatalogScanRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RunCatalogScanRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* RunCatalogScanResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RunCatalogScanResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* EnableCatalogJanitorRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EnableCatalogJanitorRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* EnableCatalogJanitorResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EnableCatalogJanitorResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsCatalogJanitorEnabledRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsCatalogJanitorEnabledRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsCatalogJanitorEnabledResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsCatalogJanitorEnabledResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* SnapshotRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SnapshotRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SnapshotResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SnapshotResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetCompletedSnapshotsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetCompletedSnapshotsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetCompletedSnapshotsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetCompletedSnapshotsResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteSnapshotRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteSnapshotRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteSnapshotResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteSnapshotResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* RestoreSnapshotRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RestoreSnapshotRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* RestoreSnapshotResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RestoreSnapshotResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsSnapshotDoneRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsSnapshotDoneRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsSnapshotDoneResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsSnapshotDoneResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsRestoreSnapshotDoneRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsRestoreSnapshotDoneRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsRestoreSnapshotDoneResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsRestoreSnapshotDoneResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetSchemaAlterStatusRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetSchemaAlterStatusRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetSchemaAlterStatusResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetSchemaAlterStatusResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetTableDescriptorsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetTableDescriptorsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetTableDescriptorsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetTableDescriptorsResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetTableNamesRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetTableNamesRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetTableNamesResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetTableNamesResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetTableStateRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetTableStateRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetTableStateResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetTableStateResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetClusterStatusRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetClusterStatusRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetClusterStatusResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetClusterStatusResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsMasterRunningRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsMasterRunningRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsMasterRunningResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsMasterRunningResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ExecProcedureRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ExecProcedureRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ExecProcedureResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ExecProcedureResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsProcedureDoneRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsProcedureDoneRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* IsProcedureDoneResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + IsProcedureDoneResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetProcedureResultRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetProcedureResultRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetProcedureResultResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetProcedureResultResponse_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* GetProcedureResultResponse_State_descriptor_ = NULL; +const ::google::protobuf::Descriptor* AbortProcedureRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AbortProcedureRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* AbortProcedureResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AbortProcedureResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListProceduresRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListProceduresRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListProceduresResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListProceduresResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetQuotaRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetQuotaRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetQuotaResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetQuotaResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* MajorCompactionTimestampRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MajorCompactionTimestampRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MajorCompactionTimestampForRegionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MajorCompactionTimestampForRegionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MajorCompactionTimestampResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MajorCompactionTimestampResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* SecurityCapabilitiesRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SecurityCapabilitiesRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SecurityCapabilitiesResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SecurityCapabilitiesResponse_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* SecurityCapabilitiesResponse_Capability_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* MasterSwitchType_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Master_2eproto() { + protobuf_AddDesc_Master_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Master.proto"); + GOOGLE_CHECK(file != NULL); + AddColumnRequest_descriptor_ = file->message_type(0); + static const int AddColumnRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnRequest, column_families_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnRequest, nonce_), + }; + AddColumnRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AddColumnRequest_descriptor_, + AddColumnRequest::default_instance_, + AddColumnRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AddColumnRequest)); + AddColumnResponse_descriptor_ = file->message_type(1); + static const int AddColumnResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnResponse, proc_id_), + }; + AddColumnResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AddColumnResponse_descriptor_, + AddColumnResponse::default_instance_, + AddColumnResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AddColumnResponse)); + DeleteColumnRequest_descriptor_ = file->message_type(2); + static const int DeleteColumnRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnRequest, column_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnRequest, nonce_), + }; + DeleteColumnRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteColumnRequest_descriptor_, + DeleteColumnRequest::default_instance_, + DeleteColumnRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteColumnRequest)); + DeleteColumnResponse_descriptor_ = file->message_type(3); + static const int DeleteColumnResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnResponse, proc_id_), + }; + DeleteColumnResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteColumnResponse_descriptor_, + DeleteColumnResponse::default_instance_, + DeleteColumnResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteColumnResponse)); + ModifyColumnRequest_descriptor_ = file->message_type(4); + static const int ModifyColumnRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnRequest, column_families_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnRequest, nonce_), + }; + ModifyColumnRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyColumnRequest_descriptor_, + ModifyColumnRequest::default_instance_, + ModifyColumnRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyColumnRequest)); + ModifyColumnResponse_descriptor_ = file->message_type(5); + static const int ModifyColumnResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnResponse, proc_id_), + }; + ModifyColumnResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyColumnResponse_descriptor_, + ModifyColumnResponse::default_instance_, + ModifyColumnResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyColumnResponse)); + MoveRegionRequest_descriptor_ = file->message_type(6); + static const int MoveRegionRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveRegionRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveRegionRequest, dest_server_name_), + }; + MoveRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MoveRegionRequest_descriptor_, + MoveRegionRequest::default_instance_, + MoveRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MoveRegionRequest)); + MoveRegionResponse_descriptor_ = file->message_type(7); + static const int MoveRegionResponse_offsets_[1] = { + }; + MoveRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MoveRegionResponse_descriptor_, + MoveRegionResponse::default_instance_, + MoveRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MoveRegionResponse)); + DispatchMergingRegionsRequest_descriptor_ = file->message_type(8); + static const int DispatchMergingRegionsRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DispatchMergingRegionsRequest, region_a_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DispatchMergingRegionsRequest, region_b_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DispatchMergingRegionsRequest, forcible_), + }; + DispatchMergingRegionsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DispatchMergingRegionsRequest_descriptor_, + DispatchMergingRegionsRequest::default_instance_, + DispatchMergingRegionsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DispatchMergingRegionsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DispatchMergingRegionsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DispatchMergingRegionsRequest)); + DispatchMergingRegionsResponse_descriptor_ = file->message_type(9); + static const int DispatchMergingRegionsResponse_offsets_[1] = { + }; + DispatchMergingRegionsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DispatchMergingRegionsResponse_descriptor_, + DispatchMergingRegionsResponse::default_instance_, + DispatchMergingRegionsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DispatchMergingRegionsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DispatchMergingRegionsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DispatchMergingRegionsResponse)); + AssignRegionRequest_descriptor_ = file->message_type(10); + static const int AssignRegionRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssignRegionRequest, region_), + }; + AssignRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AssignRegionRequest_descriptor_, + AssignRegionRequest::default_instance_, + AssignRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssignRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssignRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AssignRegionRequest)); + AssignRegionResponse_descriptor_ = file->message_type(11); + static const int AssignRegionResponse_offsets_[1] = { + }; + AssignRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AssignRegionResponse_descriptor_, + AssignRegionResponse::default_instance_, + AssignRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssignRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AssignRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AssignRegionResponse)); + UnassignRegionRequest_descriptor_ = file->message_type(12); + static const int UnassignRegionRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnassignRegionRequest, region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnassignRegionRequest, force_), + }; + UnassignRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UnassignRegionRequest_descriptor_, + UnassignRegionRequest::default_instance_, + UnassignRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnassignRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnassignRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UnassignRegionRequest)); + UnassignRegionResponse_descriptor_ = file->message_type(13); + static const int UnassignRegionResponse_offsets_[1] = { + }; + UnassignRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UnassignRegionResponse_descriptor_, + UnassignRegionResponse::default_instance_, + UnassignRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnassignRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnassignRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UnassignRegionResponse)); + OfflineRegionRequest_descriptor_ = file->message_type(14); + static const int OfflineRegionRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OfflineRegionRequest, region_), + }; + OfflineRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + OfflineRegionRequest_descriptor_, + OfflineRegionRequest::default_instance_, + OfflineRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OfflineRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OfflineRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(OfflineRegionRequest)); + OfflineRegionResponse_descriptor_ = file->message_type(15); + static const int OfflineRegionResponse_offsets_[1] = { + }; + OfflineRegionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + OfflineRegionResponse_descriptor_, + OfflineRegionResponse::default_instance_, + OfflineRegionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OfflineRegionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OfflineRegionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(OfflineRegionResponse)); + CreateTableRequest_descriptor_ = file->message_type(16); + static const int CreateTableRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableRequest, table_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableRequest, split_keys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableRequest, nonce_), + }; + CreateTableRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CreateTableRequest_descriptor_, + CreateTableRequest::default_instance_, + CreateTableRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CreateTableRequest)); + CreateTableResponse_descriptor_ = file->message_type(17); + static const int CreateTableResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableResponse, proc_id_), + }; + CreateTableResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CreateTableResponse_descriptor_, + CreateTableResponse::default_instance_, + CreateTableResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CreateTableResponse)); + DeleteTableRequest_descriptor_ = file->message_type(18); + static const int DeleteTableRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableRequest, nonce_), + }; + DeleteTableRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteTableRequest_descriptor_, + DeleteTableRequest::default_instance_, + DeleteTableRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteTableRequest)); + DeleteTableResponse_descriptor_ = file->message_type(19); + static const int DeleteTableResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableResponse, proc_id_), + }; + DeleteTableResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteTableResponse_descriptor_, + DeleteTableResponse::default_instance_, + DeleteTableResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteTableResponse)); + TruncateTableRequest_descriptor_ = file->message_type(20); + static const int TruncateTableRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableRequest, tablename_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableRequest, preservesplits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableRequest, nonce_), + }; + TruncateTableRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TruncateTableRequest_descriptor_, + TruncateTableRequest::default_instance_, + TruncateTableRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TruncateTableRequest)); + TruncateTableResponse_descriptor_ = file->message_type(21); + static const int TruncateTableResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableResponse, proc_id_), + }; + TruncateTableResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TruncateTableResponse_descriptor_, + TruncateTableResponse::default_instance_, + TruncateTableResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TruncateTableResponse)); + EnableTableRequest_descriptor_ = file->message_type(22); + static const int EnableTableRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableRequest, nonce_), + }; + EnableTableRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EnableTableRequest_descriptor_, + EnableTableRequest::default_instance_, + EnableTableRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EnableTableRequest)); + EnableTableResponse_descriptor_ = file->message_type(23); + static const int EnableTableResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableResponse, proc_id_), + }; + EnableTableResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EnableTableResponse_descriptor_, + EnableTableResponse::default_instance_, + EnableTableResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EnableTableResponse)); + DisableTableRequest_descriptor_ = file->message_type(24); + static const int DisableTableRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableRequest, nonce_), + }; + DisableTableRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DisableTableRequest_descriptor_, + DisableTableRequest::default_instance_, + DisableTableRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DisableTableRequest)); + DisableTableResponse_descriptor_ = file->message_type(25); + static const int DisableTableResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableResponse, proc_id_), + }; + DisableTableResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DisableTableResponse_descriptor_, + DisableTableResponse::default_instance_, + DisableTableResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DisableTableResponse)); + ModifyTableRequest_descriptor_ = file->message_type(26); + static const int ModifyTableRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableRequest, table_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableRequest, nonce_), + }; + ModifyTableRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyTableRequest_descriptor_, + ModifyTableRequest::default_instance_, + ModifyTableRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyTableRequest)); + ModifyTableResponse_descriptor_ = file->message_type(27); + static const int ModifyTableResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableResponse, proc_id_), + }; + ModifyTableResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyTableResponse_descriptor_, + ModifyTableResponse::default_instance_, + ModifyTableResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyTableResponse)); + CreateNamespaceRequest_descriptor_ = file->message_type(28); + static const int CreateNamespaceRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceRequest, namespacedescriptor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceRequest, nonce_), + }; + CreateNamespaceRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CreateNamespaceRequest_descriptor_, + CreateNamespaceRequest::default_instance_, + CreateNamespaceRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CreateNamespaceRequest)); + CreateNamespaceResponse_descriptor_ = file->message_type(29); + static const int CreateNamespaceResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceResponse, proc_id_), + }; + CreateNamespaceResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CreateNamespaceResponse_descriptor_, + CreateNamespaceResponse::default_instance_, + CreateNamespaceResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CreateNamespaceResponse)); + DeleteNamespaceRequest_descriptor_ = file->message_type(30); + static const int DeleteNamespaceRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceRequest, namespacename_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceRequest, nonce_), + }; + DeleteNamespaceRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteNamespaceRequest_descriptor_, + DeleteNamespaceRequest::default_instance_, + DeleteNamespaceRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteNamespaceRequest)); + DeleteNamespaceResponse_descriptor_ = file->message_type(31); + static const int DeleteNamespaceResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceResponse, proc_id_), + }; + DeleteNamespaceResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteNamespaceResponse_descriptor_, + DeleteNamespaceResponse::default_instance_, + DeleteNamespaceResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteNamespaceResponse)); + ModifyNamespaceRequest_descriptor_ = file->message_type(32); + static const int ModifyNamespaceRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceRequest, namespacedescriptor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceRequest, nonce_), + }; + ModifyNamespaceRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyNamespaceRequest_descriptor_, + ModifyNamespaceRequest::default_instance_, + ModifyNamespaceRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyNamespaceRequest)); + ModifyNamespaceResponse_descriptor_ = file->message_type(33); + static const int ModifyNamespaceResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceResponse, proc_id_), + }; + ModifyNamespaceResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyNamespaceResponse_descriptor_, + ModifyNamespaceResponse::default_instance_, + ModifyNamespaceResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyNamespaceResponse)); + GetNamespaceDescriptorRequest_descriptor_ = file->message_type(34); + static const int GetNamespaceDescriptorRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetNamespaceDescriptorRequest, namespacename_), + }; + GetNamespaceDescriptorRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetNamespaceDescriptorRequest_descriptor_, + GetNamespaceDescriptorRequest::default_instance_, + GetNamespaceDescriptorRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetNamespaceDescriptorRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetNamespaceDescriptorRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetNamespaceDescriptorRequest)); + GetNamespaceDescriptorResponse_descriptor_ = file->message_type(35); + static const int GetNamespaceDescriptorResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetNamespaceDescriptorResponse, namespacedescriptor_), + }; + GetNamespaceDescriptorResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetNamespaceDescriptorResponse_descriptor_, + GetNamespaceDescriptorResponse::default_instance_, + GetNamespaceDescriptorResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetNamespaceDescriptorResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetNamespaceDescriptorResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetNamespaceDescriptorResponse)); + ListNamespaceDescriptorsRequest_descriptor_ = file->message_type(36); + static const int ListNamespaceDescriptorsRequest_offsets_[1] = { + }; + ListNamespaceDescriptorsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListNamespaceDescriptorsRequest_descriptor_, + ListNamespaceDescriptorsRequest::default_instance_, + ListNamespaceDescriptorsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListNamespaceDescriptorsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListNamespaceDescriptorsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListNamespaceDescriptorsRequest)); + ListNamespaceDescriptorsResponse_descriptor_ = file->message_type(37); + static const int ListNamespaceDescriptorsResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListNamespaceDescriptorsResponse, namespacedescriptor_), + }; + ListNamespaceDescriptorsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListNamespaceDescriptorsResponse_descriptor_, + ListNamespaceDescriptorsResponse::default_instance_, + ListNamespaceDescriptorsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListNamespaceDescriptorsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListNamespaceDescriptorsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListNamespaceDescriptorsResponse)); + ListTableDescriptorsByNamespaceRequest_descriptor_ = file->message_type(38); + static const int ListTableDescriptorsByNamespaceRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableDescriptorsByNamespaceRequest, namespacename_), + }; + ListTableDescriptorsByNamespaceRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListTableDescriptorsByNamespaceRequest_descriptor_, + ListTableDescriptorsByNamespaceRequest::default_instance_, + ListTableDescriptorsByNamespaceRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableDescriptorsByNamespaceRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableDescriptorsByNamespaceRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListTableDescriptorsByNamespaceRequest)); + ListTableDescriptorsByNamespaceResponse_descriptor_ = file->message_type(39); + static const int ListTableDescriptorsByNamespaceResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableDescriptorsByNamespaceResponse, tableschema_), + }; + ListTableDescriptorsByNamespaceResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListTableDescriptorsByNamespaceResponse_descriptor_, + ListTableDescriptorsByNamespaceResponse::default_instance_, + ListTableDescriptorsByNamespaceResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableDescriptorsByNamespaceResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableDescriptorsByNamespaceResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListTableDescriptorsByNamespaceResponse)); + ListTableNamesByNamespaceRequest_descriptor_ = file->message_type(40); + static const int ListTableNamesByNamespaceRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableNamesByNamespaceRequest, namespacename_), + }; + ListTableNamesByNamespaceRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListTableNamesByNamespaceRequest_descriptor_, + ListTableNamesByNamespaceRequest::default_instance_, + ListTableNamesByNamespaceRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableNamesByNamespaceRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableNamesByNamespaceRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListTableNamesByNamespaceRequest)); + ListTableNamesByNamespaceResponse_descriptor_ = file->message_type(41); + static const int ListTableNamesByNamespaceResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableNamesByNamespaceResponse, tablename_), + }; + ListTableNamesByNamespaceResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListTableNamesByNamespaceResponse_descriptor_, + ListTableNamesByNamespaceResponse::default_instance_, + ListTableNamesByNamespaceResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableNamesByNamespaceResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTableNamesByNamespaceResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListTableNamesByNamespaceResponse)); + ShutdownRequest_descriptor_ = file->message_type(42); + static const int ShutdownRequest_offsets_[1] = { + }; + ShutdownRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ShutdownRequest_descriptor_, + ShutdownRequest::default_instance_, + ShutdownRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ShutdownRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ShutdownRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ShutdownRequest)); + ShutdownResponse_descriptor_ = file->message_type(43); + static const int ShutdownResponse_offsets_[1] = { + }; + ShutdownResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ShutdownResponse_descriptor_, + ShutdownResponse::default_instance_, + ShutdownResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ShutdownResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ShutdownResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ShutdownResponse)); + StopMasterRequest_descriptor_ = file->message_type(44); + static const int StopMasterRequest_offsets_[1] = { + }; + StopMasterRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StopMasterRequest_descriptor_, + StopMasterRequest::default_instance_, + StopMasterRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopMasterRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopMasterRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StopMasterRequest)); + StopMasterResponse_descriptor_ = file->message_type(45); + static const int StopMasterResponse_offsets_[1] = { + }; + StopMasterResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StopMasterResponse_descriptor_, + StopMasterResponse::default_instance_, + StopMasterResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopMasterResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StopMasterResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StopMasterResponse)); + BalanceRequest_descriptor_ = file->message_type(46); + static const int BalanceRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRequest, force_), + }; + BalanceRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BalanceRequest_descriptor_, + BalanceRequest::default_instance_, + BalanceRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BalanceRequest)); + BalanceResponse_descriptor_ = file->message_type(47); + static const int BalanceResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceResponse, balancer_ran_), + }; + BalanceResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BalanceResponse_descriptor_, + BalanceResponse::default_instance_, + BalanceResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BalanceResponse)); + SetBalancerRunningRequest_descriptor_ = file->message_type(48); + static const int SetBalancerRunningRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetBalancerRunningRequest, on_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetBalancerRunningRequest, synchronous_), + }; + SetBalancerRunningRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetBalancerRunningRequest_descriptor_, + SetBalancerRunningRequest::default_instance_, + SetBalancerRunningRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetBalancerRunningRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetBalancerRunningRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetBalancerRunningRequest)); + SetBalancerRunningResponse_descriptor_ = file->message_type(49); + static const int SetBalancerRunningResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetBalancerRunningResponse, prev_balance_value_), + }; + SetBalancerRunningResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetBalancerRunningResponse_descriptor_, + SetBalancerRunningResponse::default_instance_, + SetBalancerRunningResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetBalancerRunningResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetBalancerRunningResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetBalancerRunningResponse)); + IsBalancerEnabledRequest_descriptor_ = file->message_type(50); + static const int IsBalancerEnabledRequest_offsets_[1] = { + }; + IsBalancerEnabledRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsBalancerEnabledRequest_descriptor_, + IsBalancerEnabledRequest::default_instance_, + IsBalancerEnabledRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsBalancerEnabledRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsBalancerEnabledRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsBalancerEnabledRequest)); + IsBalancerEnabledResponse_descriptor_ = file->message_type(51); + static const int IsBalancerEnabledResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsBalancerEnabledResponse, enabled_), + }; + IsBalancerEnabledResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsBalancerEnabledResponse_descriptor_, + IsBalancerEnabledResponse::default_instance_, + IsBalancerEnabledResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsBalancerEnabledResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsBalancerEnabledResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsBalancerEnabledResponse)); + SetSplitOrMergeEnabledRequest_descriptor_ = file->message_type(52); + static const int SetSplitOrMergeEnabledRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetSplitOrMergeEnabledRequest, enabled_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetSplitOrMergeEnabledRequest, synchronous_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetSplitOrMergeEnabledRequest, switch_types_), + }; + SetSplitOrMergeEnabledRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetSplitOrMergeEnabledRequest_descriptor_, + SetSplitOrMergeEnabledRequest::default_instance_, + SetSplitOrMergeEnabledRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetSplitOrMergeEnabledRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetSplitOrMergeEnabledRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetSplitOrMergeEnabledRequest)); + SetSplitOrMergeEnabledResponse_descriptor_ = file->message_type(53); + static const int SetSplitOrMergeEnabledResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetSplitOrMergeEnabledResponse, prev_value_), + }; + SetSplitOrMergeEnabledResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetSplitOrMergeEnabledResponse_descriptor_, + SetSplitOrMergeEnabledResponse::default_instance_, + SetSplitOrMergeEnabledResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetSplitOrMergeEnabledResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetSplitOrMergeEnabledResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetSplitOrMergeEnabledResponse)); + IsSplitOrMergeEnabledRequest_descriptor_ = file->message_type(54); + static const int IsSplitOrMergeEnabledRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSplitOrMergeEnabledRequest, switch_type_), + }; + IsSplitOrMergeEnabledRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsSplitOrMergeEnabledRequest_descriptor_, + IsSplitOrMergeEnabledRequest::default_instance_, + IsSplitOrMergeEnabledRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSplitOrMergeEnabledRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSplitOrMergeEnabledRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsSplitOrMergeEnabledRequest)); + IsSplitOrMergeEnabledResponse_descriptor_ = file->message_type(55); + static const int IsSplitOrMergeEnabledResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSplitOrMergeEnabledResponse, enabled_), + }; + IsSplitOrMergeEnabledResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsSplitOrMergeEnabledResponse_descriptor_, + IsSplitOrMergeEnabledResponse::default_instance_, + IsSplitOrMergeEnabledResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSplitOrMergeEnabledResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSplitOrMergeEnabledResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsSplitOrMergeEnabledResponse)); + NormalizeRequest_descriptor_ = file->message_type(56); + static const int NormalizeRequest_offsets_[1] = { + }; + NormalizeRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NormalizeRequest_descriptor_, + NormalizeRequest::default_instance_, + NormalizeRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NormalizeRequest)); + NormalizeResponse_descriptor_ = file->message_type(57); + static const int NormalizeResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeResponse, normalizer_ran_), + }; + NormalizeResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NormalizeResponse_descriptor_, + NormalizeResponse::default_instance_, + NormalizeResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NormalizeResponse)); + SetNormalizerRunningRequest_descriptor_ = file->message_type(58); + static const int SetNormalizerRunningRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetNormalizerRunningRequest, on_), + }; + SetNormalizerRunningRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetNormalizerRunningRequest_descriptor_, + SetNormalizerRunningRequest::default_instance_, + SetNormalizerRunningRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetNormalizerRunningRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetNormalizerRunningRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetNormalizerRunningRequest)); + SetNormalizerRunningResponse_descriptor_ = file->message_type(59); + static const int SetNormalizerRunningResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetNormalizerRunningResponse, prev_normalizer_value_), + }; + SetNormalizerRunningResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetNormalizerRunningResponse_descriptor_, + SetNormalizerRunningResponse::default_instance_, + SetNormalizerRunningResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetNormalizerRunningResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetNormalizerRunningResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetNormalizerRunningResponse)); + IsNormalizerEnabledRequest_descriptor_ = file->message_type(60); + static const int IsNormalizerEnabledRequest_offsets_[1] = { + }; + IsNormalizerEnabledRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsNormalizerEnabledRequest_descriptor_, + IsNormalizerEnabledRequest::default_instance_, + IsNormalizerEnabledRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsNormalizerEnabledRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsNormalizerEnabledRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsNormalizerEnabledRequest)); + IsNormalizerEnabledResponse_descriptor_ = file->message_type(61); + static const int IsNormalizerEnabledResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsNormalizerEnabledResponse, enabled_), + }; + IsNormalizerEnabledResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsNormalizerEnabledResponse_descriptor_, + IsNormalizerEnabledResponse::default_instance_, + IsNormalizerEnabledResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsNormalizerEnabledResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsNormalizerEnabledResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsNormalizerEnabledResponse)); + RunCatalogScanRequest_descriptor_ = file->message_type(62); + static const int RunCatalogScanRequest_offsets_[1] = { + }; + RunCatalogScanRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RunCatalogScanRequest_descriptor_, + RunCatalogScanRequest::default_instance_, + RunCatalogScanRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunCatalogScanRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunCatalogScanRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RunCatalogScanRequest)); + RunCatalogScanResponse_descriptor_ = file->message_type(63); + static const int RunCatalogScanResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunCatalogScanResponse, scan_result_), + }; + RunCatalogScanResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RunCatalogScanResponse_descriptor_, + RunCatalogScanResponse::default_instance_, + RunCatalogScanResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunCatalogScanResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunCatalogScanResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RunCatalogScanResponse)); + EnableCatalogJanitorRequest_descriptor_ = file->message_type(64); + static const int EnableCatalogJanitorRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableCatalogJanitorRequest, enable_), + }; + EnableCatalogJanitorRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EnableCatalogJanitorRequest_descriptor_, + EnableCatalogJanitorRequest::default_instance_, + EnableCatalogJanitorRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableCatalogJanitorRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableCatalogJanitorRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EnableCatalogJanitorRequest)); + EnableCatalogJanitorResponse_descriptor_ = file->message_type(65); + static const int EnableCatalogJanitorResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableCatalogJanitorResponse, prev_value_), + }; + EnableCatalogJanitorResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EnableCatalogJanitorResponse_descriptor_, + EnableCatalogJanitorResponse::default_instance_, + EnableCatalogJanitorResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableCatalogJanitorResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableCatalogJanitorResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EnableCatalogJanitorResponse)); + IsCatalogJanitorEnabledRequest_descriptor_ = file->message_type(66); + static const int IsCatalogJanitorEnabledRequest_offsets_[1] = { + }; + IsCatalogJanitorEnabledRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsCatalogJanitorEnabledRequest_descriptor_, + IsCatalogJanitorEnabledRequest::default_instance_, + IsCatalogJanitorEnabledRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsCatalogJanitorEnabledRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsCatalogJanitorEnabledRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsCatalogJanitorEnabledRequest)); + IsCatalogJanitorEnabledResponse_descriptor_ = file->message_type(67); + static const int IsCatalogJanitorEnabledResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsCatalogJanitorEnabledResponse, value_), + }; + IsCatalogJanitorEnabledResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsCatalogJanitorEnabledResponse_descriptor_, + IsCatalogJanitorEnabledResponse::default_instance_, + IsCatalogJanitorEnabledResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsCatalogJanitorEnabledResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsCatalogJanitorEnabledResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsCatalogJanitorEnabledResponse)); + SnapshotRequest_descriptor_ = file->message_type(68); + static const int SnapshotRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRequest, snapshot_), + }; + SnapshotRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SnapshotRequest_descriptor_, + SnapshotRequest::default_instance_, + SnapshotRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SnapshotRequest)); + SnapshotResponse_descriptor_ = file->message_type(69); + static const int SnapshotResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotResponse, expected_timeout_), + }; + SnapshotResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SnapshotResponse_descriptor_, + SnapshotResponse::default_instance_, + SnapshotResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SnapshotResponse)); + GetCompletedSnapshotsRequest_descriptor_ = file->message_type(70); + static const int GetCompletedSnapshotsRequest_offsets_[1] = { + }; + GetCompletedSnapshotsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetCompletedSnapshotsRequest_descriptor_, + GetCompletedSnapshotsRequest::default_instance_, + GetCompletedSnapshotsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCompletedSnapshotsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCompletedSnapshotsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetCompletedSnapshotsRequest)); + GetCompletedSnapshotsResponse_descriptor_ = file->message_type(71); + static const int GetCompletedSnapshotsResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCompletedSnapshotsResponse, snapshots_), + }; + GetCompletedSnapshotsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetCompletedSnapshotsResponse_descriptor_, + GetCompletedSnapshotsResponse::default_instance_, + GetCompletedSnapshotsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCompletedSnapshotsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCompletedSnapshotsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetCompletedSnapshotsResponse)); + DeleteSnapshotRequest_descriptor_ = file->message_type(72); + static const int DeleteSnapshotRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteSnapshotRequest, snapshot_), + }; + DeleteSnapshotRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteSnapshotRequest_descriptor_, + DeleteSnapshotRequest::default_instance_, + DeleteSnapshotRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteSnapshotRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteSnapshotRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteSnapshotRequest)); + DeleteSnapshotResponse_descriptor_ = file->message_type(73); + static const int DeleteSnapshotResponse_offsets_[1] = { + }; + DeleteSnapshotResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteSnapshotResponse_descriptor_, + DeleteSnapshotResponse::default_instance_, + DeleteSnapshotResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteSnapshotResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteSnapshotResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteSnapshotResponse)); + RestoreSnapshotRequest_descriptor_ = file->message_type(74); + static const int RestoreSnapshotRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RestoreSnapshotRequest, snapshot_), + }; + RestoreSnapshotRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RestoreSnapshotRequest_descriptor_, + RestoreSnapshotRequest::default_instance_, + RestoreSnapshotRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RestoreSnapshotRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RestoreSnapshotRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RestoreSnapshotRequest)); + RestoreSnapshotResponse_descriptor_ = file->message_type(75); + static const int RestoreSnapshotResponse_offsets_[1] = { + }; + RestoreSnapshotResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RestoreSnapshotResponse_descriptor_, + RestoreSnapshotResponse::default_instance_, + RestoreSnapshotResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RestoreSnapshotResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RestoreSnapshotResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RestoreSnapshotResponse)); + IsSnapshotDoneRequest_descriptor_ = file->message_type(76); + static const int IsSnapshotDoneRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSnapshotDoneRequest, snapshot_), + }; + IsSnapshotDoneRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsSnapshotDoneRequest_descriptor_, + IsSnapshotDoneRequest::default_instance_, + IsSnapshotDoneRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSnapshotDoneRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSnapshotDoneRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsSnapshotDoneRequest)); + IsSnapshotDoneResponse_descriptor_ = file->message_type(77); + static const int IsSnapshotDoneResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSnapshotDoneResponse, done_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSnapshotDoneResponse, snapshot_), + }; + IsSnapshotDoneResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsSnapshotDoneResponse_descriptor_, + IsSnapshotDoneResponse::default_instance_, + IsSnapshotDoneResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSnapshotDoneResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsSnapshotDoneResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsSnapshotDoneResponse)); + IsRestoreSnapshotDoneRequest_descriptor_ = file->message_type(78); + static const int IsRestoreSnapshotDoneRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsRestoreSnapshotDoneRequest, snapshot_), + }; + IsRestoreSnapshotDoneRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsRestoreSnapshotDoneRequest_descriptor_, + IsRestoreSnapshotDoneRequest::default_instance_, + IsRestoreSnapshotDoneRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsRestoreSnapshotDoneRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsRestoreSnapshotDoneRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsRestoreSnapshotDoneRequest)); + IsRestoreSnapshotDoneResponse_descriptor_ = file->message_type(79); + static const int IsRestoreSnapshotDoneResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsRestoreSnapshotDoneResponse, done_), + }; + IsRestoreSnapshotDoneResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsRestoreSnapshotDoneResponse_descriptor_, + IsRestoreSnapshotDoneResponse::default_instance_, + IsRestoreSnapshotDoneResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsRestoreSnapshotDoneResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsRestoreSnapshotDoneResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsRestoreSnapshotDoneResponse)); + GetSchemaAlterStatusRequest_descriptor_ = file->message_type(80); + static const int GetSchemaAlterStatusRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemaAlterStatusRequest, table_name_), + }; + GetSchemaAlterStatusRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetSchemaAlterStatusRequest_descriptor_, + GetSchemaAlterStatusRequest::default_instance_, + GetSchemaAlterStatusRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemaAlterStatusRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemaAlterStatusRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetSchemaAlterStatusRequest)); + GetSchemaAlterStatusResponse_descriptor_ = file->message_type(81); + static const int GetSchemaAlterStatusResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemaAlterStatusResponse, yet_to_update_regions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemaAlterStatusResponse, total_regions_), + }; + GetSchemaAlterStatusResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetSchemaAlterStatusResponse_descriptor_, + GetSchemaAlterStatusResponse::default_instance_, + GetSchemaAlterStatusResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemaAlterStatusResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemaAlterStatusResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetSchemaAlterStatusResponse)); + GetTableDescriptorsRequest_descriptor_ = file->message_type(82); + static const int GetTableDescriptorsRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsRequest, table_names_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsRequest, regex_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsRequest, include_sys_tables_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsRequest, namespace__), + }; + GetTableDescriptorsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetTableDescriptorsRequest_descriptor_, + GetTableDescriptorsRequest::default_instance_, + GetTableDescriptorsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetTableDescriptorsRequest)); + GetTableDescriptorsResponse_descriptor_ = file->message_type(83); + static const int GetTableDescriptorsResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsResponse, table_schema_), + }; + GetTableDescriptorsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetTableDescriptorsResponse_descriptor_, + GetTableDescriptorsResponse::default_instance_, + GetTableDescriptorsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableDescriptorsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetTableDescriptorsResponse)); + GetTableNamesRequest_descriptor_ = file->message_type(84); + static const int GetTableNamesRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableNamesRequest, regex_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableNamesRequest, include_sys_tables_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableNamesRequest, namespace__), + }; + GetTableNamesRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetTableNamesRequest_descriptor_, + GetTableNamesRequest::default_instance_, + GetTableNamesRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableNamesRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableNamesRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetTableNamesRequest)); + GetTableNamesResponse_descriptor_ = file->message_type(85); + static const int GetTableNamesResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableNamesResponse, table_names_), + }; + GetTableNamesResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetTableNamesResponse_descriptor_, + GetTableNamesResponse::default_instance_, + GetTableNamesResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableNamesResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableNamesResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetTableNamesResponse)); + GetTableStateRequest_descriptor_ = file->message_type(86); + static const int GetTableStateRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableStateRequest, table_name_), + }; + GetTableStateRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetTableStateRequest_descriptor_, + GetTableStateRequest::default_instance_, + GetTableStateRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableStateRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableStateRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetTableStateRequest)); + GetTableStateResponse_descriptor_ = file->message_type(87); + static const int GetTableStateResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableStateResponse, table_state_), + }; + GetTableStateResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetTableStateResponse_descriptor_, + GetTableStateResponse::default_instance_, + GetTableStateResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableStateResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTableStateResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetTableStateResponse)); + GetClusterStatusRequest_descriptor_ = file->message_type(88); + static const int GetClusterStatusRequest_offsets_[1] = { + }; + GetClusterStatusRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetClusterStatusRequest_descriptor_, + GetClusterStatusRequest::default_instance_, + GetClusterStatusRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetClusterStatusRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetClusterStatusRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetClusterStatusRequest)); + GetClusterStatusResponse_descriptor_ = file->message_type(89); + static const int GetClusterStatusResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetClusterStatusResponse, cluster_status_), + }; + GetClusterStatusResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetClusterStatusResponse_descriptor_, + GetClusterStatusResponse::default_instance_, + GetClusterStatusResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetClusterStatusResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetClusterStatusResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetClusterStatusResponse)); + IsMasterRunningRequest_descriptor_ = file->message_type(90); + static const int IsMasterRunningRequest_offsets_[1] = { + }; + IsMasterRunningRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsMasterRunningRequest_descriptor_, + IsMasterRunningRequest::default_instance_, + IsMasterRunningRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsMasterRunningRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsMasterRunningRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsMasterRunningRequest)); + IsMasterRunningResponse_descriptor_ = file->message_type(91); + static const int IsMasterRunningResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsMasterRunningResponse, is_master_running_), + }; + IsMasterRunningResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsMasterRunningResponse_descriptor_, + IsMasterRunningResponse::default_instance_, + IsMasterRunningResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsMasterRunningResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsMasterRunningResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsMasterRunningResponse)); + ExecProcedureRequest_descriptor_ = file->message_type(92); + static const int ExecProcedureRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExecProcedureRequest, procedure_), + }; + ExecProcedureRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ExecProcedureRequest_descriptor_, + ExecProcedureRequest::default_instance_, + ExecProcedureRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExecProcedureRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExecProcedureRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ExecProcedureRequest)); + ExecProcedureResponse_descriptor_ = file->message_type(93); + static const int ExecProcedureResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExecProcedureResponse, expected_timeout_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExecProcedureResponse, return_data_), + }; + ExecProcedureResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ExecProcedureResponse_descriptor_, + ExecProcedureResponse::default_instance_, + ExecProcedureResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExecProcedureResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExecProcedureResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ExecProcedureResponse)); + IsProcedureDoneRequest_descriptor_ = file->message_type(94); + static const int IsProcedureDoneRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsProcedureDoneRequest, procedure_), + }; + IsProcedureDoneRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsProcedureDoneRequest_descriptor_, + IsProcedureDoneRequest::default_instance_, + IsProcedureDoneRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsProcedureDoneRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsProcedureDoneRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsProcedureDoneRequest)); + IsProcedureDoneResponse_descriptor_ = file->message_type(95); + static const int IsProcedureDoneResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsProcedureDoneResponse, done_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsProcedureDoneResponse, snapshot_), + }; + IsProcedureDoneResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + IsProcedureDoneResponse_descriptor_, + IsProcedureDoneResponse::default_instance_, + IsProcedureDoneResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsProcedureDoneResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IsProcedureDoneResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(IsProcedureDoneResponse)); + GetProcedureResultRequest_descriptor_ = file->message_type(96); + static const int GetProcedureResultRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultRequest, proc_id_), + }; + GetProcedureResultRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetProcedureResultRequest_descriptor_, + GetProcedureResultRequest::default_instance_, + GetProcedureResultRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetProcedureResultRequest)); + GetProcedureResultResponse_descriptor_ = file->message_type(97); + static const int GetProcedureResultResponse_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultResponse, state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultResponse, start_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultResponse, last_update_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultResponse, result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultResponse, exception_), + }; + GetProcedureResultResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetProcedureResultResponse_descriptor_, + GetProcedureResultResponse::default_instance_, + GetProcedureResultResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetProcedureResultResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetProcedureResultResponse)); + GetProcedureResultResponse_State_descriptor_ = GetProcedureResultResponse_descriptor_->enum_type(0); + AbortProcedureRequest_descriptor_ = file->message_type(98); + static const int AbortProcedureRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AbortProcedureRequest, proc_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AbortProcedureRequest, mayinterruptifrunning_), + }; + AbortProcedureRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AbortProcedureRequest_descriptor_, + AbortProcedureRequest::default_instance_, + AbortProcedureRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AbortProcedureRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AbortProcedureRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AbortProcedureRequest)); + AbortProcedureResponse_descriptor_ = file->message_type(99); + static const int AbortProcedureResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AbortProcedureResponse, is_procedure_aborted_), + }; + AbortProcedureResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AbortProcedureResponse_descriptor_, + AbortProcedureResponse::default_instance_, + AbortProcedureResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AbortProcedureResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AbortProcedureResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AbortProcedureResponse)); + ListProceduresRequest_descriptor_ = file->message_type(100); + static const int ListProceduresRequest_offsets_[1] = { + }; + ListProceduresRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListProceduresRequest_descriptor_, + ListProceduresRequest::default_instance_, + ListProceduresRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListProceduresRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListProceduresRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListProceduresRequest)); + ListProceduresResponse_descriptor_ = file->message_type(101); + static const int ListProceduresResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListProceduresResponse, procedure_), + }; + ListProceduresResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListProceduresResponse_descriptor_, + ListProceduresResponse::default_instance_, + ListProceduresResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListProceduresResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListProceduresResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListProceduresResponse)); + SetQuotaRequest_descriptor_ = file->message_type(102); + static const int SetQuotaRequest_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, user_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, user_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, namespace__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, remove_all_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, bypass_globals_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, throttle_), + }; + SetQuotaRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetQuotaRequest_descriptor_, + SetQuotaRequest::default_instance_, + SetQuotaRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetQuotaRequest)); + SetQuotaResponse_descriptor_ = file->message_type(103); + static const int SetQuotaResponse_offsets_[1] = { + }; + SetQuotaResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetQuotaResponse_descriptor_, + SetQuotaResponse::default_instance_, + SetQuotaResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetQuotaResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetQuotaResponse)); + MajorCompactionTimestampRequest_descriptor_ = file->message_type(104); + static const int MajorCompactionTimestampRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampRequest, table_name_), + }; + MajorCompactionTimestampRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MajorCompactionTimestampRequest_descriptor_, + MajorCompactionTimestampRequest::default_instance_, + MajorCompactionTimestampRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MajorCompactionTimestampRequest)); + MajorCompactionTimestampForRegionRequest_descriptor_ = file->message_type(105); + static const int MajorCompactionTimestampForRegionRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampForRegionRequest, region_), + }; + MajorCompactionTimestampForRegionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MajorCompactionTimestampForRegionRequest_descriptor_, + MajorCompactionTimestampForRegionRequest::default_instance_, + MajorCompactionTimestampForRegionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampForRegionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampForRegionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MajorCompactionTimestampForRegionRequest)); + MajorCompactionTimestampResponse_descriptor_ = file->message_type(106); + static const int MajorCompactionTimestampResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampResponse, compaction_timestamp_), + }; + MajorCompactionTimestampResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MajorCompactionTimestampResponse_descriptor_, + MajorCompactionTimestampResponse::default_instance_, + MajorCompactionTimestampResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorCompactionTimestampResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MajorCompactionTimestampResponse)); + SecurityCapabilitiesRequest_descriptor_ = file->message_type(107); + static const int SecurityCapabilitiesRequest_offsets_[1] = { + }; + SecurityCapabilitiesRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SecurityCapabilitiesRequest_descriptor_, + SecurityCapabilitiesRequest::default_instance_, + SecurityCapabilitiesRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecurityCapabilitiesRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecurityCapabilitiesRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SecurityCapabilitiesRequest)); + SecurityCapabilitiesResponse_descriptor_ = file->message_type(108); + static const int SecurityCapabilitiesResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecurityCapabilitiesResponse, capabilities_), + }; + SecurityCapabilitiesResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SecurityCapabilitiesResponse_descriptor_, + SecurityCapabilitiesResponse::default_instance_, + SecurityCapabilitiesResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecurityCapabilitiesResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecurityCapabilitiesResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SecurityCapabilitiesResponse)); + SecurityCapabilitiesResponse_Capability_descriptor_ = SecurityCapabilitiesResponse_descriptor_->enum_type(0); + MasterSwitchType_descriptor_ = file->enum_type(0); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Master_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AddColumnRequest_descriptor_, &AddColumnRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AddColumnResponse_descriptor_, &AddColumnResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteColumnRequest_descriptor_, &DeleteColumnRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteColumnResponse_descriptor_, &DeleteColumnResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyColumnRequest_descriptor_, &ModifyColumnRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyColumnResponse_descriptor_, &ModifyColumnResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MoveRegionRequest_descriptor_, &MoveRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MoveRegionResponse_descriptor_, &MoveRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DispatchMergingRegionsRequest_descriptor_, &DispatchMergingRegionsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DispatchMergingRegionsResponse_descriptor_, &DispatchMergingRegionsResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AssignRegionRequest_descriptor_, &AssignRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AssignRegionResponse_descriptor_, &AssignRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UnassignRegionRequest_descriptor_, &UnassignRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UnassignRegionResponse_descriptor_, &UnassignRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + OfflineRegionRequest_descriptor_, &OfflineRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + OfflineRegionResponse_descriptor_, &OfflineRegionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CreateTableRequest_descriptor_, &CreateTableRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CreateTableResponse_descriptor_, &CreateTableResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteTableRequest_descriptor_, &DeleteTableRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteTableResponse_descriptor_, &DeleteTableResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TruncateTableRequest_descriptor_, &TruncateTableRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TruncateTableResponse_descriptor_, &TruncateTableResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EnableTableRequest_descriptor_, &EnableTableRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EnableTableResponse_descriptor_, &EnableTableResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DisableTableRequest_descriptor_, &DisableTableRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DisableTableResponse_descriptor_, &DisableTableResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyTableRequest_descriptor_, &ModifyTableRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyTableResponse_descriptor_, &ModifyTableResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CreateNamespaceRequest_descriptor_, &CreateNamespaceRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CreateNamespaceResponse_descriptor_, &CreateNamespaceResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteNamespaceRequest_descriptor_, &DeleteNamespaceRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteNamespaceResponse_descriptor_, &DeleteNamespaceResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyNamespaceRequest_descriptor_, &ModifyNamespaceRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyNamespaceResponse_descriptor_, &ModifyNamespaceResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetNamespaceDescriptorRequest_descriptor_, &GetNamespaceDescriptorRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetNamespaceDescriptorResponse_descriptor_, &GetNamespaceDescriptorResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListNamespaceDescriptorsRequest_descriptor_, &ListNamespaceDescriptorsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListNamespaceDescriptorsResponse_descriptor_, &ListNamespaceDescriptorsResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListTableDescriptorsByNamespaceRequest_descriptor_, &ListTableDescriptorsByNamespaceRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListTableDescriptorsByNamespaceResponse_descriptor_, &ListTableDescriptorsByNamespaceResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListTableNamesByNamespaceRequest_descriptor_, &ListTableNamesByNamespaceRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListTableNamesByNamespaceResponse_descriptor_, &ListTableNamesByNamespaceResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ShutdownRequest_descriptor_, &ShutdownRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ShutdownResponse_descriptor_, &ShutdownResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StopMasterRequest_descriptor_, &StopMasterRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StopMasterResponse_descriptor_, &StopMasterResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BalanceRequest_descriptor_, &BalanceRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BalanceResponse_descriptor_, &BalanceResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetBalancerRunningRequest_descriptor_, &SetBalancerRunningRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetBalancerRunningResponse_descriptor_, &SetBalancerRunningResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsBalancerEnabledRequest_descriptor_, &IsBalancerEnabledRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsBalancerEnabledResponse_descriptor_, &IsBalancerEnabledResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetSplitOrMergeEnabledRequest_descriptor_, &SetSplitOrMergeEnabledRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetSplitOrMergeEnabledResponse_descriptor_, &SetSplitOrMergeEnabledResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsSplitOrMergeEnabledRequest_descriptor_, &IsSplitOrMergeEnabledRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsSplitOrMergeEnabledResponse_descriptor_, &IsSplitOrMergeEnabledResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NormalizeRequest_descriptor_, &NormalizeRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NormalizeResponse_descriptor_, &NormalizeResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetNormalizerRunningRequest_descriptor_, &SetNormalizerRunningRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetNormalizerRunningResponse_descriptor_, &SetNormalizerRunningResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsNormalizerEnabledRequest_descriptor_, &IsNormalizerEnabledRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsNormalizerEnabledResponse_descriptor_, &IsNormalizerEnabledResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RunCatalogScanRequest_descriptor_, &RunCatalogScanRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RunCatalogScanResponse_descriptor_, &RunCatalogScanResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EnableCatalogJanitorRequest_descriptor_, &EnableCatalogJanitorRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EnableCatalogJanitorResponse_descriptor_, &EnableCatalogJanitorResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsCatalogJanitorEnabledRequest_descriptor_, &IsCatalogJanitorEnabledRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsCatalogJanitorEnabledResponse_descriptor_, &IsCatalogJanitorEnabledResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SnapshotRequest_descriptor_, &SnapshotRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SnapshotResponse_descriptor_, &SnapshotResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetCompletedSnapshotsRequest_descriptor_, &GetCompletedSnapshotsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetCompletedSnapshotsResponse_descriptor_, &GetCompletedSnapshotsResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteSnapshotRequest_descriptor_, &DeleteSnapshotRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteSnapshotResponse_descriptor_, &DeleteSnapshotResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RestoreSnapshotRequest_descriptor_, &RestoreSnapshotRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RestoreSnapshotResponse_descriptor_, &RestoreSnapshotResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsSnapshotDoneRequest_descriptor_, &IsSnapshotDoneRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsSnapshotDoneResponse_descriptor_, &IsSnapshotDoneResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsRestoreSnapshotDoneRequest_descriptor_, &IsRestoreSnapshotDoneRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsRestoreSnapshotDoneResponse_descriptor_, &IsRestoreSnapshotDoneResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetSchemaAlterStatusRequest_descriptor_, &GetSchemaAlterStatusRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetSchemaAlterStatusResponse_descriptor_, &GetSchemaAlterStatusResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetTableDescriptorsRequest_descriptor_, &GetTableDescriptorsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetTableDescriptorsResponse_descriptor_, &GetTableDescriptorsResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetTableNamesRequest_descriptor_, &GetTableNamesRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetTableNamesResponse_descriptor_, &GetTableNamesResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetTableStateRequest_descriptor_, &GetTableStateRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetTableStateResponse_descriptor_, &GetTableStateResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetClusterStatusRequest_descriptor_, &GetClusterStatusRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetClusterStatusResponse_descriptor_, &GetClusterStatusResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsMasterRunningRequest_descriptor_, &IsMasterRunningRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsMasterRunningResponse_descriptor_, &IsMasterRunningResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ExecProcedureRequest_descriptor_, &ExecProcedureRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ExecProcedureResponse_descriptor_, &ExecProcedureResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsProcedureDoneRequest_descriptor_, &IsProcedureDoneRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + IsProcedureDoneResponse_descriptor_, &IsProcedureDoneResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetProcedureResultRequest_descriptor_, &GetProcedureResultRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetProcedureResultResponse_descriptor_, &GetProcedureResultResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AbortProcedureRequest_descriptor_, &AbortProcedureRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AbortProcedureResponse_descriptor_, &AbortProcedureResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListProceduresRequest_descriptor_, &ListProceduresRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListProceduresResponse_descriptor_, &ListProceduresResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetQuotaRequest_descriptor_, &SetQuotaRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetQuotaResponse_descriptor_, &SetQuotaResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MajorCompactionTimestampRequest_descriptor_, &MajorCompactionTimestampRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MajorCompactionTimestampForRegionRequest_descriptor_, &MajorCompactionTimestampForRegionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MajorCompactionTimestampResponse_descriptor_, &MajorCompactionTimestampResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SecurityCapabilitiesRequest_descriptor_, &SecurityCapabilitiesRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SecurityCapabilitiesResponse_descriptor_, &SecurityCapabilitiesResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Master_2eproto() { + delete AddColumnRequest::default_instance_; + delete AddColumnRequest_reflection_; + delete AddColumnResponse::default_instance_; + delete AddColumnResponse_reflection_; + delete DeleteColumnRequest::default_instance_; + delete DeleteColumnRequest_reflection_; + delete DeleteColumnResponse::default_instance_; + delete DeleteColumnResponse_reflection_; + delete ModifyColumnRequest::default_instance_; + delete ModifyColumnRequest_reflection_; + delete ModifyColumnResponse::default_instance_; + delete ModifyColumnResponse_reflection_; + delete MoveRegionRequest::default_instance_; + delete MoveRegionRequest_reflection_; + delete MoveRegionResponse::default_instance_; + delete MoveRegionResponse_reflection_; + delete DispatchMergingRegionsRequest::default_instance_; + delete DispatchMergingRegionsRequest_reflection_; + delete DispatchMergingRegionsResponse::default_instance_; + delete DispatchMergingRegionsResponse_reflection_; + delete AssignRegionRequest::default_instance_; + delete AssignRegionRequest_reflection_; + delete AssignRegionResponse::default_instance_; + delete AssignRegionResponse_reflection_; + delete UnassignRegionRequest::default_instance_; + delete UnassignRegionRequest_reflection_; + delete UnassignRegionResponse::default_instance_; + delete UnassignRegionResponse_reflection_; + delete OfflineRegionRequest::default_instance_; + delete OfflineRegionRequest_reflection_; + delete OfflineRegionResponse::default_instance_; + delete OfflineRegionResponse_reflection_; + delete CreateTableRequest::default_instance_; + delete CreateTableRequest_reflection_; + delete CreateTableResponse::default_instance_; + delete CreateTableResponse_reflection_; + delete DeleteTableRequest::default_instance_; + delete DeleteTableRequest_reflection_; + delete DeleteTableResponse::default_instance_; + delete DeleteTableResponse_reflection_; + delete TruncateTableRequest::default_instance_; + delete TruncateTableRequest_reflection_; + delete TruncateTableResponse::default_instance_; + delete TruncateTableResponse_reflection_; + delete EnableTableRequest::default_instance_; + delete EnableTableRequest_reflection_; + delete EnableTableResponse::default_instance_; + delete EnableTableResponse_reflection_; + delete DisableTableRequest::default_instance_; + delete DisableTableRequest_reflection_; + delete DisableTableResponse::default_instance_; + delete DisableTableResponse_reflection_; + delete ModifyTableRequest::default_instance_; + delete ModifyTableRequest_reflection_; + delete ModifyTableResponse::default_instance_; + delete ModifyTableResponse_reflection_; + delete CreateNamespaceRequest::default_instance_; + delete CreateNamespaceRequest_reflection_; + delete CreateNamespaceResponse::default_instance_; + delete CreateNamespaceResponse_reflection_; + delete DeleteNamespaceRequest::default_instance_; + delete DeleteNamespaceRequest_reflection_; + delete DeleteNamespaceResponse::default_instance_; + delete DeleteNamespaceResponse_reflection_; + delete ModifyNamespaceRequest::default_instance_; + delete ModifyNamespaceRequest_reflection_; + delete ModifyNamespaceResponse::default_instance_; + delete ModifyNamespaceResponse_reflection_; + delete GetNamespaceDescriptorRequest::default_instance_; + delete GetNamespaceDescriptorRequest_reflection_; + delete GetNamespaceDescriptorResponse::default_instance_; + delete GetNamespaceDescriptorResponse_reflection_; + delete ListNamespaceDescriptorsRequest::default_instance_; + delete ListNamespaceDescriptorsRequest_reflection_; + delete ListNamespaceDescriptorsResponse::default_instance_; + delete ListNamespaceDescriptorsResponse_reflection_; + delete ListTableDescriptorsByNamespaceRequest::default_instance_; + delete ListTableDescriptorsByNamespaceRequest_reflection_; + delete ListTableDescriptorsByNamespaceResponse::default_instance_; + delete ListTableDescriptorsByNamespaceResponse_reflection_; + delete ListTableNamesByNamespaceRequest::default_instance_; + delete ListTableNamesByNamespaceRequest_reflection_; + delete ListTableNamesByNamespaceResponse::default_instance_; + delete ListTableNamesByNamespaceResponse_reflection_; + delete ShutdownRequest::default_instance_; + delete ShutdownRequest_reflection_; + delete ShutdownResponse::default_instance_; + delete ShutdownResponse_reflection_; + delete StopMasterRequest::default_instance_; + delete StopMasterRequest_reflection_; + delete StopMasterResponse::default_instance_; + delete StopMasterResponse_reflection_; + delete BalanceRequest::default_instance_; + delete BalanceRequest_reflection_; + delete BalanceResponse::default_instance_; + delete BalanceResponse_reflection_; + delete SetBalancerRunningRequest::default_instance_; + delete SetBalancerRunningRequest_reflection_; + delete SetBalancerRunningResponse::default_instance_; + delete SetBalancerRunningResponse_reflection_; + delete IsBalancerEnabledRequest::default_instance_; + delete IsBalancerEnabledRequest_reflection_; + delete IsBalancerEnabledResponse::default_instance_; + delete IsBalancerEnabledResponse_reflection_; + delete SetSplitOrMergeEnabledRequest::default_instance_; + delete SetSplitOrMergeEnabledRequest_reflection_; + delete SetSplitOrMergeEnabledResponse::default_instance_; + delete SetSplitOrMergeEnabledResponse_reflection_; + delete IsSplitOrMergeEnabledRequest::default_instance_; + delete IsSplitOrMergeEnabledRequest_reflection_; + delete IsSplitOrMergeEnabledResponse::default_instance_; + delete IsSplitOrMergeEnabledResponse_reflection_; + delete NormalizeRequest::default_instance_; + delete NormalizeRequest_reflection_; + delete NormalizeResponse::default_instance_; + delete NormalizeResponse_reflection_; + delete SetNormalizerRunningRequest::default_instance_; + delete SetNormalizerRunningRequest_reflection_; + delete SetNormalizerRunningResponse::default_instance_; + delete SetNormalizerRunningResponse_reflection_; + delete IsNormalizerEnabledRequest::default_instance_; + delete IsNormalizerEnabledRequest_reflection_; + delete IsNormalizerEnabledResponse::default_instance_; + delete IsNormalizerEnabledResponse_reflection_; + delete RunCatalogScanRequest::default_instance_; + delete RunCatalogScanRequest_reflection_; + delete RunCatalogScanResponse::default_instance_; + delete RunCatalogScanResponse_reflection_; + delete EnableCatalogJanitorRequest::default_instance_; + delete EnableCatalogJanitorRequest_reflection_; + delete EnableCatalogJanitorResponse::default_instance_; + delete EnableCatalogJanitorResponse_reflection_; + delete IsCatalogJanitorEnabledRequest::default_instance_; + delete IsCatalogJanitorEnabledRequest_reflection_; + delete IsCatalogJanitorEnabledResponse::default_instance_; + delete IsCatalogJanitorEnabledResponse_reflection_; + delete SnapshotRequest::default_instance_; + delete SnapshotRequest_reflection_; + delete SnapshotResponse::default_instance_; + delete SnapshotResponse_reflection_; + delete GetCompletedSnapshotsRequest::default_instance_; + delete GetCompletedSnapshotsRequest_reflection_; + delete GetCompletedSnapshotsResponse::default_instance_; + delete GetCompletedSnapshotsResponse_reflection_; + delete DeleteSnapshotRequest::default_instance_; + delete DeleteSnapshotRequest_reflection_; + delete DeleteSnapshotResponse::default_instance_; + delete DeleteSnapshotResponse_reflection_; + delete RestoreSnapshotRequest::default_instance_; + delete RestoreSnapshotRequest_reflection_; + delete RestoreSnapshotResponse::default_instance_; + delete RestoreSnapshotResponse_reflection_; + delete IsSnapshotDoneRequest::default_instance_; + delete IsSnapshotDoneRequest_reflection_; + delete IsSnapshotDoneResponse::default_instance_; + delete IsSnapshotDoneResponse_reflection_; + delete IsRestoreSnapshotDoneRequest::default_instance_; + delete IsRestoreSnapshotDoneRequest_reflection_; + delete IsRestoreSnapshotDoneResponse::default_instance_; + delete IsRestoreSnapshotDoneResponse_reflection_; + delete GetSchemaAlterStatusRequest::default_instance_; + delete GetSchemaAlterStatusRequest_reflection_; + delete GetSchemaAlterStatusResponse::default_instance_; + delete GetSchemaAlterStatusResponse_reflection_; + delete GetTableDescriptorsRequest::default_instance_; + delete GetTableDescriptorsRequest_reflection_; + delete GetTableDescriptorsResponse::default_instance_; + delete GetTableDescriptorsResponse_reflection_; + delete GetTableNamesRequest::default_instance_; + delete GetTableNamesRequest_reflection_; + delete GetTableNamesResponse::default_instance_; + delete GetTableNamesResponse_reflection_; + delete GetTableStateRequest::default_instance_; + delete GetTableStateRequest_reflection_; + delete GetTableStateResponse::default_instance_; + delete GetTableStateResponse_reflection_; + delete GetClusterStatusRequest::default_instance_; + delete GetClusterStatusRequest_reflection_; + delete GetClusterStatusResponse::default_instance_; + delete GetClusterStatusResponse_reflection_; + delete IsMasterRunningRequest::default_instance_; + delete IsMasterRunningRequest_reflection_; + delete IsMasterRunningResponse::default_instance_; + delete IsMasterRunningResponse_reflection_; + delete ExecProcedureRequest::default_instance_; + delete ExecProcedureRequest_reflection_; + delete ExecProcedureResponse::default_instance_; + delete ExecProcedureResponse_reflection_; + delete IsProcedureDoneRequest::default_instance_; + delete IsProcedureDoneRequest_reflection_; + delete IsProcedureDoneResponse::default_instance_; + delete IsProcedureDoneResponse_reflection_; + delete GetProcedureResultRequest::default_instance_; + delete GetProcedureResultRequest_reflection_; + delete GetProcedureResultResponse::default_instance_; + delete GetProcedureResultResponse_reflection_; + delete AbortProcedureRequest::default_instance_; + delete AbortProcedureRequest_reflection_; + delete AbortProcedureResponse::default_instance_; + delete AbortProcedureResponse_reflection_; + delete ListProceduresRequest::default_instance_; + delete ListProceduresRequest_reflection_; + delete ListProceduresResponse::default_instance_; + delete ListProceduresResponse_reflection_; + delete SetQuotaRequest::default_instance_; + delete SetQuotaRequest_reflection_; + delete SetQuotaResponse::default_instance_; + delete SetQuotaResponse_reflection_; + delete MajorCompactionTimestampRequest::default_instance_; + delete MajorCompactionTimestampRequest_reflection_; + delete MajorCompactionTimestampForRegionRequest::default_instance_; + delete MajorCompactionTimestampForRegionRequest_reflection_; + delete MajorCompactionTimestampResponse::default_instance_; + delete MajorCompactionTimestampResponse_reflection_; + delete SecurityCapabilitiesRequest::default_instance_; + delete SecurityCapabilitiesRequest_reflection_; + delete SecurityCapabilitiesResponse::default_instance_; + delete SecurityCapabilitiesResponse_reflection_; +} + +void protobuf_AddDesc_Master_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_Client_2eproto(); + ::hbase::pb::protobuf_AddDesc_ClusterStatus_2eproto(); + ::hbase::pb::protobuf_AddDesc_ErrorHandling_2eproto(); + ::hbase::pb::protobuf_AddDesc_Procedure_2eproto(); + ::hbase::pb::protobuf_AddDesc_Quota_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\014Master.proto\022\010hbase.pb\032\013HBase.proto\032\014C" + "lient.proto\032\023ClusterStatus.proto\032\023ErrorH" + "andling.proto\032\017Procedure.proto\032\013Quota.pr" + "oto\"\234\001\n\020AddColumnRequest\022\'\n\ntable_name\030\001" + " \002(\0132\023.hbase.pb.TableName\0225\n\017column_fami" + "lies\030\002 \002(\0132\034.hbase.pb.ColumnFamilySchema" + "\022\026\n\013nonce_group\030\003 \001(\004:\0010\022\020\n\005nonce\030\004 \001(\004:" + "\0010\"$\n\021AddColumnResponse\022\017\n\007proc_id\030\001 \001(\004" + "\"}\n\023DeleteColumnRequest\022\'\n\ntable_name\030\001 " + "\002(\0132\023.hbase.pb.TableName\022\023\n\013column_name\030" + "\002 \002(\014\022\026\n\013nonce_group\030\003 \001(\004:\0010\022\020\n\005nonce\030\004" + " \001(\004:\0010\"\'\n\024DeleteColumnResponse\022\017\n\007proc_" + "id\030\001 \001(\004\"\237\001\n\023ModifyColumnRequest\022\'\n\ntabl" + "e_name\030\001 \002(\0132\023.hbase.pb.TableName\0225\n\017col" + "umn_families\030\002 \002(\0132\034.hbase.pb.ColumnFami" + "lySchema\022\026\n\013nonce_group\030\003 \001(\004:\0010\022\020\n\005nonc" + "e\030\004 \001(\004:\0010\"\'\n\024ModifyColumnResponse\022\017\n\007pr" + "oc_id\030\001 \001(\004\"n\n\021MoveRegionRequest\022)\n\006regi" + "on\030\001 \002(\0132\031.hbase.pb.RegionSpecifier\022.\n\020d" + "est_server_name\030\002 \001(\0132\024.hbase.pb.ServerN" + "ame\"\024\n\022MoveRegionResponse\"\222\001\n\035DispatchMe" + "rgingRegionsRequest\022+\n\010region_a\030\001 \002(\0132\031." + "hbase.pb.RegionSpecifier\022+\n\010region_b\030\002 \002" + "(\0132\031.hbase.pb.RegionSpecifier\022\027\n\010forcibl" + "e\030\003 \001(\010:\005false\" \n\036DispatchMergingRegions" + "Response\"@\n\023AssignRegionRequest\022)\n\006regio" + "n\030\001 \002(\0132\031.hbase.pb.RegionSpecifier\"\026\n\024As" + "signRegionResponse\"X\n\025UnassignRegionRequ" + "est\022)\n\006region\030\001 \002(\0132\031.hbase.pb.RegionSpe" + "cifier\022\024\n\005force\030\002 \001(\010:\005false\"\030\n\026Unassign" + "RegionResponse\"A\n\024OfflineRegionRequest\022)" + "\n\006region\030\001 \002(\0132\031.hbase.pb.RegionSpecifie" + "r\"\027\n\025OfflineRegionResponse\"\177\n\022CreateTabl" + "eRequest\022+\n\014table_schema\030\001 \002(\0132\025.hbase.p" + "b.TableSchema\022\022\n\nsplit_keys\030\002 \003(\014\022\026\n\013non" + "ce_group\030\003 \001(\004:\0010\022\020\n\005nonce\030\004 \001(\004:\0010\"&\n\023C" + "reateTableResponse\022\017\n\007proc_id\030\001 \001(\004\"g\n\022D" + "eleteTableRequest\022\'\n\ntable_name\030\001 \002(\0132\023." + "hbase.pb.TableName\022\026\n\013nonce_group\030\002 \001(\004:" + "\0010\022\020\n\005nonce\030\003 \001(\004:\0010\"&\n\023DeleteTableRespo" + "nse\022\017\n\007proc_id\030\001 \001(\004\"\207\001\n\024TruncateTableRe" + "quest\022&\n\ttableName\030\001 \002(\0132\023.hbase.pb.Tabl" + "eName\022\035\n\016preserveSplits\030\002 \001(\010:\005false\022\026\n\013" + "nonce_group\030\003 \001(\004:\0010\022\020\n\005nonce\030\004 \001(\004:\0010\"(" + "\n\025TruncateTableResponse\022\017\n\007proc_id\030\001 \001(\004" + "\"g\n\022EnableTableRequest\022\'\n\ntable_name\030\001 \002" + "(\0132\023.hbase.pb.TableName\022\026\n\013nonce_group\030\002" + " \001(\004:\0010\022\020\n\005nonce\030\003 \001(\004:\0010\"&\n\023EnableTable" + "Response\022\017\n\007proc_id\030\001 \001(\004\"h\n\023DisableTabl" + "eRequest\022\'\n\ntable_name\030\001 \002(\0132\023.hbase.pb." + "TableName\022\026\n\013nonce_group\030\002 \001(\004:\0010\022\020\n\005non" + "ce\030\003 \001(\004:\0010\"\'\n\024DisableTableResponse\022\017\n\007p" + "roc_id\030\001 \001(\004\"\224\001\n\022ModifyTableRequest\022\'\n\nt" + "able_name\030\001 \002(\0132\023.hbase.pb.TableName\022+\n\014" + "table_schema\030\002 \002(\0132\025.hbase.pb.TableSchem" + "a\022\026\n\013nonce_group\030\003 \001(\004:\0010\022\020\n\005nonce\030\004 \001(\004" + ":\0010\"&\n\023ModifyTableResponse\022\017\n\007proc_id\030\001 " + "\001(\004\"~\n\026CreateNamespaceRequest\022:\n\023namespa" + "ceDescriptor\030\001 \002(\0132\035.hbase.pb.NamespaceD" + "escriptor\022\026\n\013nonce_group\030\002 \001(\004:\0010\022\020\n\005non" + "ce\030\003 \001(\004:\0010\"*\n\027CreateNamespaceResponse\022\017" + "\n\007proc_id\030\001 \001(\004\"Y\n\026DeleteNamespaceReques" + "t\022\025\n\rnamespaceName\030\001 \002(\t\022\026\n\013nonce_group\030" + "\002 \001(\004:\0010\022\020\n\005nonce\030\003 \001(\004:\0010\"*\n\027DeleteName" + "spaceResponse\022\017\n\007proc_id\030\001 \001(\004\"~\n\026Modify" + "NamespaceRequest\022:\n\023namespaceDescriptor\030" + "\001 \002(\0132\035.hbase.pb.NamespaceDescriptor\022\026\n\013" + "nonce_group\030\002 \001(\004:\0010\022\020\n\005nonce\030\003 \001(\004:\0010\"*" + "\n\027ModifyNamespaceResponse\022\017\n\007proc_id\030\001 \001" + "(\004\"6\n\035GetNamespaceDescriptorRequest\022\025\n\rn" + "amespaceName\030\001 \002(\t\"\\\n\036GetNamespaceDescri" + "ptorResponse\022:\n\023namespaceDescriptor\030\001 \002(" + "\0132\035.hbase.pb.NamespaceDescriptor\"!\n\037List" + "NamespaceDescriptorsRequest\"^\n ListNames" + "paceDescriptorsResponse\022:\n\023namespaceDesc" + "riptor\030\001 \003(\0132\035.hbase.pb.NamespaceDescrip" + "tor\"\?\n&ListTableDescriptorsByNamespaceRe" + "quest\022\025\n\rnamespaceName\030\001 \002(\t\"U\n\'ListTabl" + "eDescriptorsByNamespaceResponse\022*\n\013table" + "Schema\030\001 \003(\0132\025.hbase.pb.TableSchema\"9\n L" + "istTableNamesByNamespaceRequest\022\025\n\rnames" + "paceName\030\001 \002(\t\"K\n!ListTableNamesByNamesp" + "aceResponse\022&\n\ttableName\030\001 \003(\0132\023.hbase.p" + "b.TableName\"\021\n\017ShutdownRequest\"\022\n\020Shutdo" + "wnResponse\"\023\n\021StopMasterRequest\"\024\n\022StopM" + "asterResponse\"\037\n\016BalanceRequest\022\r\n\005force" + "\030\001 \001(\010\"\'\n\017BalanceResponse\022\024\n\014balancer_ra" + "n\030\001 \002(\010\"<\n\031SetBalancerRunningRequest\022\n\n\002" + "on\030\001 \002(\010\022\023\n\013synchronous\030\002 \001(\010\"8\n\032SetBala" + "ncerRunningResponse\022\032\n\022prev_balance_valu" + "e\030\001 \001(\010\"\032\n\030IsBalancerEnabledRequest\",\n\031I" + "sBalancerEnabledResponse\022\017\n\007enabled\030\001 \002(" + "\010\"w\n\035SetSplitOrMergeEnabledRequest\022\017\n\007en" + "abled\030\001 \002(\010\022\023\n\013synchronous\030\002 \001(\010\0220\n\014swit" + "ch_types\030\003 \003(\0162\032.hbase.pb.MasterSwitchTy" + "pe\"4\n\036SetSplitOrMergeEnabledResponse\022\022\n\n" + "prev_value\030\001 \003(\010\"O\n\034IsSplitOrMergeEnable" + "dRequest\022/\n\013switch_type\030\001 \002(\0162\032.hbase.pb" + ".MasterSwitchType\"0\n\035IsSplitOrMergeEnabl" + "edResponse\022\017\n\007enabled\030\001 \002(\010\"\022\n\020Normalize" + "Request\"+\n\021NormalizeResponse\022\026\n\016normaliz" + "er_ran\030\001 \002(\010\")\n\033SetNormalizerRunningRequ" + "est\022\n\n\002on\030\001 \002(\010\"=\n\034SetNormalizerRunningR" + "esponse\022\035\n\025prev_normalizer_value\030\001 \001(\010\"\034" + "\n\032IsNormalizerEnabledRequest\".\n\033IsNormal" + "izerEnabledResponse\022\017\n\007enabled\030\001 \002(\010\"\027\n\025" + "RunCatalogScanRequest\"-\n\026RunCatalogScanR" + "esponse\022\023\n\013scan_result\030\001 \001(\005\"-\n\033EnableCa" + "talogJanitorRequest\022\016\n\006enable\030\001 \002(\010\"2\n\034E" + "nableCatalogJanitorResponse\022\022\n\nprev_valu" + "e\030\001 \001(\010\" \n\036IsCatalogJanitorEnabledReques" + "t\"0\n\037IsCatalogJanitorEnabledResponse\022\r\n\005" + "value\030\001 \002(\010\"B\n\017SnapshotRequest\022/\n\010snapsh" + "ot\030\001 \002(\0132\035.hbase.pb.SnapshotDescription\"" + ",\n\020SnapshotResponse\022\030\n\020expected_timeout\030" + "\001 \002(\003\"\036\n\034GetCompletedSnapshotsRequest\"Q\n" + "\035GetCompletedSnapshotsResponse\0220\n\tsnapsh" + "ots\030\001 \003(\0132\035.hbase.pb.SnapshotDescription" + "\"H\n\025DeleteSnapshotRequest\022/\n\010snapshot\030\001 " + "\002(\0132\035.hbase.pb.SnapshotDescription\"\030\n\026De" + "leteSnapshotResponse\"I\n\026RestoreSnapshotR" + "equest\022/\n\010snapshot\030\001 \002(\0132\035.hbase.pb.Snap" + "shotDescription\"\031\n\027RestoreSnapshotRespon" + "se\"H\n\025IsSnapshotDoneRequest\022/\n\010snapshot\030" + "\001 \001(\0132\035.hbase.pb.SnapshotDescription\"^\n\026" + "IsSnapshotDoneResponse\022\023\n\004done\030\001 \001(\010:\005fa" + "lse\022/\n\010snapshot\030\002 \001(\0132\035.hbase.pb.Snapsho" + "tDescription\"O\n\034IsRestoreSnapshotDoneReq" + "uest\022/\n\010snapshot\030\001 \001(\0132\035.hbase.pb.Snapsh" + "otDescription\"4\n\035IsRestoreSnapshotDoneRe" + "sponse\022\023\n\004done\030\001 \001(\010:\005false\"F\n\033GetSchema" + "AlterStatusRequest\022\'\n\ntable_name\030\001 \002(\0132\023" + ".hbase.pb.TableName\"T\n\034GetSchemaAlterSta" + "tusResponse\022\035\n\025yet_to_update_regions\030\001 \001" + "(\r\022\025\n\rtotal_regions\030\002 \001(\r\"\213\001\n\032GetTableDe" + "scriptorsRequest\022(\n\013table_names\030\001 \003(\0132\023." + "hbase.pb.TableName\022\r\n\005regex\030\002 \001(\t\022!\n\022inc" + "lude_sys_tables\030\003 \001(\010:\005false\022\021\n\tnamespac" + "e\030\004 \001(\t\"J\n\033GetTableDescriptorsResponse\022+" + "\n\014table_schema\030\001 \003(\0132\025.hbase.pb.TableSch" + "ema\"[\n\024GetTableNamesRequest\022\r\n\005regex\030\001 \001" + "(\t\022!\n\022include_sys_tables\030\002 \001(\010:\005false\022\021\n" + "\tnamespace\030\003 \001(\t\"A\n\025GetTableNamesRespons" + "e\022(\n\013table_names\030\001 \003(\0132\023.hbase.pb.TableN" + "ame\"\?\n\024GetTableStateRequest\022\'\n\ntable_nam" + "e\030\001 \002(\0132\023.hbase.pb.TableName\"B\n\025GetTable" + "StateResponse\022)\n\013table_state\030\001 \002(\0132\024.hba" + "se.pb.TableState\"\031\n\027GetClusterStatusRequ" + "est\"K\n\030GetClusterStatusResponse\022/\n\016clust" + "er_status\030\001 \002(\0132\027.hbase.pb.ClusterStatus" + "\"\030\n\026IsMasterRunningRequest\"4\n\027IsMasterRu" + "nningResponse\022\031\n\021is_master_running\030\001 \002(\010" + "\"I\n\024ExecProcedureRequest\0221\n\tprocedure\030\001 " + "\002(\0132\036.hbase.pb.ProcedureDescription\"F\n\025E" + "xecProcedureResponse\022\030\n\020expected_timeout" + "\030\001 \001(\003\022\023\n\013return_data\030\002 \001(\014\"K\n\026IsProcedu" + "reDoneRequest\0221\n\tprocedure\030\001 \001(\0132\036.hbase" + ".pb.ProcedureDescription\"`\n\027IsProcedureD" + "oneResponse\022\023\n\004done\030\001 \001(\010:\005false\0220\n\010snap" + "shot\030\002 \001(\0132\036.hbase.pb.ProcedureDescripti" + "on\",\n\031GetProcedureResultRequest\022\017\n\007proc_" + "id\030\001 \002(\004\"\371\001\n\032GetProcedureResultResponse\022" + "9\n\005state\030\001 \002(\0162*.hbase.pb.GetProcedureRe" + "sultResponse.State\022\022\n\nstart_time\030\002 \001(\004\022\023" + "\n\013last_update\030\003 \001(\004\022\016\n\006result\030\004 \001(\014\0224\n\te" + "xception\030\005 \001(\0132!.hbase.pb.ForeignExcepti" + "onMessage\"1\n\005State\022\r\n\tNOT_FOUND\020\000\022\013\n\007RUN" + "NING\020\001\022\014\n\010FINISHED\020\002\"M\n\025AbortProcedureRe" + "quest\022\017\n\007proc_id\030\001 \002(\004\022#\n\025mayInterruptIf" + "Running\030\002 \001(\010:\004true\"6\n\026AbortProcedureRes" + "ponse\022\034\n\024is_procedure_aborted\030\001 \002(\010\"\027\n\025L" + "istProceduresRequest\"@\n\026ListProceduresRe" + "sponse\022&\n\tprocedure\030\001 \003(\0132\023.hbase.pb.Pro" + "cedure\"\315\001\n\017SetQuotaRequest\022\021\n\tuser_name\030" + "\001 \001(\t\022\022\n\nuser_group\030\002 \001(\t\022\021\n\tnamespace\030\003" + " \001(\t\022\'\n\ntable_name\030\004 \001(\0132\023.hbase.pb.Tabl" + "eName\022\022\n\nremove_all\030\005 \001(\010\022\026\n\016bypass_glob" + "als\030\006 \001(\010\022+\n\010throttle\030\007 \001(\0132\031.hbase.pb.T" + "hrottleRequest\"\022\n\020SetQuotaResponse\"J\n\037Ma" + "jorCompactionTimestampRequest\022\'\n\ntable_n" + "ame\030\001 \002(\0132\023.hbase.pb.TableName\"U\n(MajorC" + "ompactionTimestampForRegionRequest\022)\n\006re" + "gion\030\001 \002(\0132\031.hbase.pb.RegionSpecifier\"@\n" + " MajorCompactionTimestampResponse\022\034\n\024com" + "paction_timestamp\030\001 \002(\003\"\035\n\033SecurityCapab" + "ilitiesRequest\"\354\001\n\034SecurityCapabilitiesR" + "esponse\022G\n\014capabilities\030\001 \003(\01621.hbase.pb" + ".SecurityCapabilitiesResponse.Capability" + "\"\202\001\n\nCapability\022\031\n\025SIMPLE_AUTHENTICATION" + "\020\000\022\031\n\025SECURE_AUTHENTICATION\020\001\022\021\n\rAUTHORI" + "ZATION\020\002\022\026\n\022CELL_AUTHORIZATION\020\003\022\023\n\017CELL" + "_VISIBILITY\020\004*(\n\020MasterSwitchType\022\t\n\005SPL" + "IT\020\000\022\t\n\005MERGE\020\0012\323(\n\rMasterService\022e\n\024Get" + "SchemaAlterStatus\022%.hbase.pb.GetSchemaAl" + "terStatusRequest\032&.hbase.pb.GetSchemaAlt" + "erStatusResponse\022b\n\023GetTableDescriptors\022" + "$.hbase.pb.GetTableDescriptorsRequest\032%." + "hbase.pb.GetTableDescriptorsResponse\022P\n\r" + "GetTableNames\022\036.hbase.pb.GetTableNamesRe" + "quest\032\037.hbase.pb.GetTableNamesResponse\022Y" + "\n\020GetClusterStatus\022!.hbase.pb.GetCluster" + "StatusRequest\032\".hbase.pb.GetClusterStatu" + "sResponse\022V\n\017IsMasterRunning\022 .hbase.pb." + "IsMasterRunningRequest\032!.hbase.pb.IsMast" + "erRunningResponse\022D\n\tAddColumn\022\032.hbase.p" + "b.AddColumnRequest\032\033.hbase.pb.AddColumnR" + "esponse\022M\n\014DeleteColumn\022\035.hbase.pb.Delet" + "eColumnRequest\032\036.hbase.pb.DeleteColumnRe" + "sponse\022M\n\014ModifyColumn\022\035.hbase.pb.Modify" + "ColumnRequest\032\036.hbase.pb.ModifyColumnRes" + "ponse\022G\n\nMoveRegion\022\033.hbase.pb.MoveRegio" + "nRequest\032\034.hbase.pb.MoveRegionResponse\022k" + "\n\026DispatchMergingRegions\022\'.hbase.pb.Disp" + "atchMergingRegionsRequest\032(.hbase.pb.Dis" + "patchMergingRegionsResponse\022M\n\014AssignReg" + "ion\022\035.hbase.pb.AssignRegionRequest\032\036.hba" + "se.pb.AssignRegionResponse\022S\n\016UnassignRe" + "gion\022\037.hbase.pb.UnassignRegionRequest\032 ." + "hbase.pb.UnassignRegionResponse\022P\n\rOffli" + "neRegion\022\036.hbase.pb.OfflineRegionRequest" + "\032\037.hbase.pb.OfflineRegionResponse\022J\n\013Del" + "eteTable\022\034.hbase.pb.DeleteTableRequest\032\035" + ".hbase.pb.DeleteTableResponse\022P\n\rtruncat" + "eTable\022\036.hbase.pb.TruncateTableRequest\032\037" + ".hbase.pb.TruncateTableResponse\022J\n\013Enabl" + "eTable\022\034.hbase.pb.EnableTableRequest\032\035.h" + "base.pb.EnableTableResponse\022M\n\014DisableTa" + "ble\022\035.hbase.pb.DisableTableRequest\032\036.hba" + "se.pb.DisableTableResponse\022J\n\013ModifyTabl" + "e\022\034.hbase.pb.ModifyTableRequest\032\035.hbase." + "pb.ModifyTableResponse\022J\n\013CreateTable\022\034." + "hbase.pb.CreateTableRequest\032\035.hbase.pb.C" + "reateTableResponse\022A\n\010Shutdown\022\031.hbase.p" + "b.ShutdownRequest\032\032.hbase.pb.ShutdownRes" + "ponse\022G\n\nStopMaster\022\033.hbase.pb.StopMaste" + "rRequest\032\034.hbase.pb.StopMasterResponse\022>" + "\n\007Balance\022\030.hbase.pb.BalanceRequest\032\031.hb" + "ase.pb.BalanceResponse\022_\n\022SetBalancerRun" + "ning\022#.hbase.pb.SetBalancerRunningReques" + "t\032$.hbase.pb.SetBalancerRunningResponse\022" + "\\\n\021IsBalancerEnabled\022\".hbase.pb.IsBalanc" + "erEnabledRequest\032#.hbase.pb.IsBalancerEn" + "abledResponse\022k\n\026SetSplitOrMergeEnabled\022" + "\'.hbase.pb.SetSplitOrMergeEnabledRequest" + "\032(.hbase.pb.SetSplitOrMergeEnabledRespon" + "se\022h\n\025IsSplitOrMergeEnabled\022&.hbase.pb.I" + "sSplitOrMergeEnabledRequest\032\'.hbase.pb.I" + "sSplitOrMergeEnabledResponse\022D\n\tNormaliz" + "e\022\032.hbase.pb.NormalizeRequest\032\033.hbase.pb" + ".NormalizeResponse\022e\n\024SetNormalizerRunni" + "ng\022%.hbase.pb.SetNormalizerRunningReques" + "t\032&.hbase.pb.SetNormalizerRunningRespons" + "e\022b\n\023IsNormalizerEnabled\022$.hbase.pb.IsNo" + "rmalizerEnabledRequest\032%.hbase.pb.IsNorm" + "alizerEnabledResponse\022S\n\016RunCatalogScan\022" + "\037.hbase.pb.RunCatalogScanRequest\032 .hbase" + ".pb.RunCatalogScanResponse\022e\n\024EnableCata" + "logJanitor\022%.hbase.pb.EnableCatalogJanit" + "orRequest\032&.hbase.pb.EnableCatalogJanito" + "rResponse\022n\n\027IsCatalogJanitorEnabled\022(.h" + "base.pb.IsCatalogJanitorEnabledRequest\032)" + ".hbase.pb.IsCatalogJanitorEnabledRespons" + "e\022^\n\021ExecMasterService\022#.hbase.pb.Coproc" + "essorServiceRequest\032$.hbase.pb.Coprocess" + "orServiceResponse\022A\n\010Snapshot\022\031.hbase.pb" + ".SnapshotRequest\032\032.hbase.pb.SnapshotResp" + "onse\022h\n\025GetCompletedSnapshots\022&.hbase.pb" + ".GetCompletedSnapshotsRequest\032\'.hbase.pb" + ".GetCompletedSnapshotsResponse\022S\n\016Delete" + "Snapshot\022\037.hbase.pb.DeleteSnapshotReques" + "t\032 .hbase.pb.DeleteSnapshotResponse\022S\n\016I" + "sSnapshotDone\022\037.hbase.pb.IsSnapshotDoneR" + "equest\032 .hbase.pb.IsSnapshotDoneResponse" + "\022V\n\017RestoreSnapshot\022 .hbase.pb.RestoreSn" + "apshotRequest\032!.hbase.pb.RestoreSnapshot" + "Response\022h\n\025IsRestoreSnapshotDone\022&.hbas" + "e.pb.IsRestoreSnapshotDoneRequest\032\'.hbas" + "e.pb.IsRestoreSnapshotDoneResponse\022P\n\rEx" + "ecProcedure\022\036.hbase.pb.ExecProcedureRequ" + "est\032\037.hbase.pb.ExecProcedureResponse\022W\n\024" + "ExecProcedureWithRet\022\036.hbase.pb.ExecProc" + "edureRequest\032\037.hbase.pb.ExecProcedureRes" + "ponse\022V\n\017IsProcedureDone\022 .hbase.pb.IsPr" + "ocedureDoneRequest\032!.hbase.pb.IsProcedur" + "eDoneResponse\022V\n\017ModifyNamespace\022 .hbase" + ".pb.ModifyNamespaceRequest\032!.hbase.pb.Mo" + "difyNamespaceResponse\022V\n\017CreateNamespace" + "\022 .hbase.pb.CreateNamespaceRequest\032!.hba" + "se.pb.CreateNamespaceResponse\022V\n\017DeleteN" + "amespace\022 .hbase.pb.DeleteNamespaceReque" + "st\032!.hbase.pb.DeleteNamespaceResponse\022k\n" + "\026GetNamespaceDescriptor\022\'.hbase.pb.GetNa" + "mespaceDescriptorRequest\032(.hbase.pb.GetN" + "amespaceDescriptorResponse\022q\n\030ListNamesp" + "aceDescriptors\022).hbase.pb.ListNamespaceD" + "escriptorsRequest\032*.hbase.pb.ListNamespa" + "ceDescriptorsResponse\022\206\001\n\037ListTableDescr" + "iptorsByNamespace\0220.hbase.pb.ListTableDe" + "scriptorsByNamespaceRequest\0321.hbase.pb.L" + "istTableDescriptorsByNamespaceResponse\022t" + "\n\031ListTableNamesByNamespace\022*.hbase.pb.L" + "istTableNamesByNamespaceRequest\032+.hbase." + "pb.ListTableNamesByNamespaceResponse\022P\n\r" + "GetTableState\022\036.hbase.pb.GetTableStateRe" + "quest\032\037.hbase.pb.GetTableStateResponse\022A" + "\n\010SetQuota\022\031.hbase.pb.SetQuotaRequest\032\032." + "hbase.pb.SetQuotaResponse\022x\n\037getLastMajo" + "rCompactionTimestamp\022).hbase.pb.MajorCom" + "pactionTimestampRequest\032*.hbase.pb.Major" + "CompactionTimestampResponse\022\212\001\n(getLastM" + "ajorCompactionTimestampForRegion\0222.hbase" + ".pb.MajorCompactionTimestampForRegionReq" + "uest\032*.hbase.pb.MajorCompactionTimestamp" + "Response\022_\n\022getProcedureResult\022#.hbase.p" + "b.GetProcedureResultRequest\032$.hbase.pb.G" + "etProcedureResultResponse\022h\n\027getSecurity" + "Capabilities\022%.hbase.pb.SecurityCapabili" + "tiesRequest\032&.hbase.pb.SecurityCapabilit" + "iesResponse\022S\n\016AbortProcedure\022\037.hbase.pb" + ".AbortProcedureRequest\032 .hbase.pb.AbortP" + "rocedureResponse\022S\n\016ListProcedures\022\037.hba" + "se.pb.ListProceduresRequest\032 .hbase.pb.L" + "istProceduresResponseBB\n*org.apache.hado" + "op.hbase.protobuf.generatedB\014MasterProto" + "sH\001\210\001\001\240\001\001", 12969); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Master.proto", &protobuf_RegisterTypes); + AddColumnRequest::default_instance_ = new AddColumnRequest(); + AddColumnResponse::default_instance_ = new AddColumnResponse(); + DeleteColumnRequest::default_instance_ = new DeleteColumnRequest(); + DeleteColumnResponse::default_instance_ = new DeleteColumnResponse(); + ModifyColumnRequest::default_instance_ = new ModifyColumnRequest(); + ModifyColumnResponse::default_instance_ = new ModifyColumnResponse(); + MoveRegionRequest::default_instance_ = new MoveRegionRequest(); + MoveRegionResponse::default_instance_ = new MoveRegionResponse(); + DispatchMergingRegionsRequest::default_instance_ = new DispatchMergingRegionsRequest(); + DispatchMergingRegionsResponse::default_instance_ = new DispatchMergingRegionsResponse(); + AssignRegionRequest::default_instance_ = new AssignRegionRequest(); + AssignRegionResponse::default_instance_ = new AssignRegionResponse(); + UnassignRegionRequest::default_instance_ = new UnassignRegionRequest(); + UnassignRegionResponse::default_instance_ = new UnassignRegionResponse(); + OfflineRegionRequest::default_instance_ = new OfflineRegionRequest(); + OfflineRegionResponse::default_instance_ = new OfflineRegionResponse(); + CreateTableRequest::default_instance_ = new CreateTableRequest(); + CreateTableResponse::default_instance_ = new CreateTableResponse(); + DeleteTableRequest::default_instance_ = new DeleteTableRequest(); + DeleteTableResponse::default_instance_ = new DeleteTableResponse(); + TruncateTableRequest::default_instance_ = new TruncateTableRequest(); + TruncateTableResponse::default_instance_ = new TruncateTableResponse(); + EnableTableRequest::default_instance_ = new EnableTableRequest(); + EnableTableResponse::default_instance_ = new EnableTableResponse(); + DisableTableRequest::default_instance_ = new DisableTableRequest(); + DisableTableResponse::default_instance_ = new DisableTableResponse(); + ModifyTableRequest::default_instance_ = new ModifyTableRequest(); + ModifyTableResponse::default_instance_ = new ModifyTableResponse(); + CreateNamespaceRequest::default_instance_ = new CreateNamespaceRequest(); + CreateNamespaceResponse::default_instance_ = new CreateNamespaceResponse(); + DeleteNamespaceRequest::default_instance_ = new DeleteNamespaceRequest(); + DeleteNamespaceResponse::default_instance_ = new DeleteNamespaceResponse(); + ModifyNamespaceRequest::default_instance_ = new ModifyNamespaceRequest(); + ModifyNamespaceResponse::default_instance_ = new ModifyNamespaceResponse(); + GetNamespaceDescriptorRequest::default_instance_ = new GetNamespaceDescriptorRequest(); + GetNamespaceDescriptorResponse::default_instance_ = new GetNamespaceDescriptorResponse(); + ListNamespaceDescriptorsRequest::default_instance_ = new ListNamespaceDescriptorsRequest(); + ListNamespaceDescriptorsResponse::default_instance_ = new ListNamespaceDescriptorsResponse(); + ListTableDescriptorsByNamespaceRequest::default_instance_ = new ListTableDescriptorsByNamespaceRequest(); + ListTableDescriptorsByNamespaceResponse::default_instance_ = new ListTableDescriptorsByNamespaceResponse(); + ListTableNamesByNamespaceRequest::default_instance_ = new ListTableNamesByNamespaceRequest(); + ListTableNamesByNamespaceResponse::default_instance_ = new ListTableNamesByNamespaceResponse(); + ShutdownRequest::default_instance_ = new ShutdownRequest(); + ShutdownResponse::default_instance_ = new ShutdownResponse(); + StopMasterRequest::default_instance_ = new StopMasterRequest(); + StopMasterResponse::default_instance_ = new StopMasterResponse(); + BalanceRequest::default_instance_ = new BalanceRequest(); + BalanceResponse::default_instance_ = new BalanceResponse(); + SetBalancerRunningRequest::default_instance_ = new SetBalancerRunningRequest(); + SetBalancerRunningResponse::default_instance_ = new SetBalancerRunningResponse(); + IsBalancerEnabledRequest::default_instance_ = new IsBalancerEnabledRequest(); + IsBalancerEnabledResponse::default_instance_ = new IsBalancerEnabledResponse(); + SetSplitOrMergeEnabledRequest::default_instance_ = new SetSplitOrMergeEnabledRequest(); + SetSplitOrMergeEnabledResponse::default_instance_ = new SetSplitOrMergeEnabledResponse(); + IsSplitOrMergeEnabledRequest::default_instance_ = new IsSplitOrMergeEnabledRequest(); + IsSplitOrMergeEnabledResponse::default_instance_ = new IsSplitOrMergeEnabledResponse(); + NormalizeRequest::default_instance_ = new NormalizeRequest(); + NormalizeResponse::default_instance_ = new NormalizeResponse(); + SetNormalizerRunningRequest::default_instance_ = new SetNormalizerRunningRequest(); + SetNormalizerRunningResponse::default_instance_ = new SetNormalizerRunningResponse(); + IsNormalizerEnabledRequest::default_instance_ = new IsNormalizerEnabledRequest(); + IsNormalizerEnabledResponse::default_instance_ = new IsNormalizerEnabledResponse(); + RunCatalogScanRequest::default_instance_ = new RunCatalogScanRequest(); + RunCatalogScanResponse::default_instance_ = new RunCatalogScanResponse(); + EnableCatalogJanitorRequest::default_instance_ = new EnableCatalogJanitorRequest(); + EnableCatalogJanitorResponse::default_instance_ = new EnableCatalogJanitorResponse(); + IsCatalogJanitorEnabledRequest::default_instance_ = new IsCatalogJanitorEnabledRequest(); + IsCatalogJanitorEnabledResponse::default_instance_ = new IsCatalogJanitorEnabledResponse(); + SnapshotRequest::default_instance_ = new SnapshotRequest(); + SnapshotResponse::default_instance_ = new SnapshotResponse(); + GetCompletedSnapshotsRequest::default_instance_ = new GetCompletedSnapshotsRequest(); + GetCompletedSnapshotsResponse::default_instance_ = new GetCompletedSnapshotsResponse(); + DeleteSnapshotRequest::default_instance_ = new DeleteSnapshotRequest(); + DeleteSnapshotResponse::default_instance_ = new DeleteSnapshotResponse(); + RestoreSnapshotRequest::default_instance_ = new RestoreSnapshotRequest(); + RestoreSnapshotResponse::default_instance_ = new RestoreSnapshotResponse(); + IsSnapshotDoneRequest::default_instance_ = new IsSnapshotDoneRequest(); + IsSnapshotDoneResponse::default_instance_ = new IsSnapshotDoneResponse(); + IsRestoreSnapshotDoneRequest::default_instance_ = new IsRestoreSnapshotDoneRequest(); + IsRestoreSnapshotDoneResponse::default_instance_ = new IsRestoreSnapshotDoneResponse(); + GetSchemaAlterStatusRequest::default_instance_ = new GetSchemaAlterStatusRequest(); + GetSchemaAlterStatusResponse::default_instance_ = new GetSchemaAlterStatusResponse(); + GetTableDescriptorsRequest::default_instance_ = new GetTableDescriptorsRequest(); + GetTableDescriptorsResponse::default_instance_ = new GetTableDescriptorsResponse(); + GetTableNamesRequest::default_instance_ = new GetTableNamesRequest(); + GetTableNamesResponse::default_instance_ = new GetTableNamesResponse(); + GetTableStateRequest::default_instance_ = new GetTableStateRequest(); + GetTableStateResponse::default_instance_ = new GetTableStateResponse(); + GetClusterStatusRequest::default_instance_ = new GetClusterStatusRequest(); + GetClusterStatusResponse::default_instance_ = new GetClusterStatusResponse(); + IsMasterRunningRequest::default_instance_ = new IsMasterRunningRequest(); + IsMasterRunningResponse::default_instance_ = new IsMasterRunningResponse(); + ExecProcedureRequest::default_instance_ = new ExecProcedureRequest(); + ExecProcedureResponse::default_instance_ = new ExecProcedureResponse(); + IsProcedureDoneRequest::default_instance_ = new IsProcedureDoneRequest(); + IsProcedureDoneResponse::default_instance_ = new IsProcedureDoneResponse(); + GetProcedureResultRequest::default_instance_ = new GetProcedureResultRequest(); + GetProcedureResultResponse::default_instance_ = new GetProcedureResultResponse(); + AbortProcedureRequest::default_instance_ = new AbortProcedureRequest(); + AbortProcedureResponse::default_instance_ = new AbortProcedureResponse(); + ListProceduresRequest::default_instance_ = new ListProceduresRequest(); + ListProceduresResponse::default_instance_ = new ListProceduresResponse(); + SetQuotaRequest::default_instance_ = new SetQuotaRequest(); + SetQuotaResponse::default_instance_ = new SetQuotaResponse(); + MajorCompactionTimestampRequest::default_instance_ = new MajorCompactionTimestampRequest(); + MajorCompactionTimestampForRegionRequest::default_instance_ = new MajorCompactionTimestampForRegionRequest(); + MajorCompactionTimestampResponse::default_instance_ = new MajorCompactionTimestampResponse(); + SecurityCapabilitiesRequest::default_instance_ = new SecurityCapabilitiesRequest(); + SecurityCapabilitiesResponse::default_instance_ = new SecurityCapabilitiesResponse(); + AddColumnRequest::default_instance_->InitAsDefaultInstance(); + AddColumnResponse::default_instance_->InitAsDefaultInstance(); + DeleteColumnRequest::default_instance_->InitAsDefaultInstance(); + DeleteColumnResponse::default_instance_->InitAsDefaultInstance(); + ModifyColumnRequest::default_instance_->InitAsDefaultInstance(); + ModifyColumnResponse::default_instance_->InitAsDefaultInstance(); + MoveRegionRequest::default_instance_->InitAsDefaultInstance(); + MoveRegionResponse::default_instance_->InitAsDefaultInstance(); + DispatchMergingRegionsRequest::default_instance_->InitAsDefaultInstance(); + DispatchMergingRegionsResponse::default_instance_->InitAsDefaultInstance(); + AssignRegionRequest::default_instance_->InitAsDefaultInstance(); + AssignRegionResponse::default_instance_->InitAsDefaultInstance(); + UnassignRegionRequest::default_instance_->InitAsDefaultInstance(); + UnassignRegionResponse::default_instance_->InitAsDefaultInstance(); + OfflineRegionRequest::default_instance_->InitAsDefaultInstance(); + OfflineRegionResponse::default_instance_->InitAsDefaultInstance(); + CreateTableRequest::default_instance_->InitAsDefaultInstance(); + CreateTableResponse::default_instance_->InitAsDefaultInstance(); + DeleteTableRequest::default_instance_->InitAsDefaultInstance(); + DeleteTableResponse::default_instance_->InitAsDefaultInstance(); + TruncateTableRequest::default_instance_->InitAsDefaultInstance(); + TruncateTableResponse::default_instance_->InitAsDefaultInstance(); + EnableTableRequest::default_instance_->InitAsDefaultInstance(); + EnableTableResponse::default_instance_->InitAsDefaultInstance(); + DisableTableRequest::default_instance_->InitAsDefaultInstance(); + DisableTableResponse::default_instance_->InitAsDefaultInstance(); + ModifyTableRequest::default_instance_->InitAsDefaultInstance(); + ModifyTableResponse::default_instance_->InitAsDefaultInstance(); + CreateNamespaceRequest::default_instance_->InitAsDefaultInstance(); + CreateNamespaceResponse::default_instance_->InitAsDefaultInstance(); + DeleteNamespaceRequest::default_instance_->InitAsDefaultInstance(); + DeleteNamespaceResponse::default_instance_->InitAsDefaultInstance(); + ModifyNamespaceRequest::default_instance_->InitAsDefaultInstance(); + ModifyNamespaceResponse::default_instance_->InitAsDefaultInstance(); + GetNamespaceDescriptorRequest::default_instance_->InitAsDefaultInstance(); + GetNamespaceDescriptorResponse::default_instance_->InitAsDefaultInstance(); + ListNamespaceDescriptorsRequest::default_instance_->InitAsDefaultInstance(); + ListNamespaceDescriptorsResponse::default_instance_->InitAsDefaultInstance(); + ListTableDescriptorsByNamespaceRequest::default_instance_->InitAsDefaultInstance(); + ListTableDescriptorsByNamespaceResponse::default_instance_->InitAsDefaultInstance(); + ListTableNamesByNamespaceRequest::default_instance_->InitAsDefaultInstance(); + ListTableNamesByNamespaceResponse::default_instance_->InitAsDefaultInstance(); + ShutdownRequest::default_instance_->InitAsDefaultInstance(); + ShutdownResponse::default_instance_->InitAsDefaultInstance(); + StopMasterRequest::default_instance_->InitAsDefaultInstance(); + StopMasterResponse::default_instance_->InitAsDefaultInstance(); + BalanceRequest::default_instance_->InitAsDefaultInstance(); + BalanceResponse::default_instance_->InitAsDefaultInstance(); + SetBalancerRunningRequest::default_instance_->InitAsDefaultInstance(); + SetBalancerRunningResponse::default_instance_->InitAsDefaultInstance(); + IsBalancerEnabledRequest::default_instance_->InitAsDefaultInstance(); + IsBalancerEnabledResponse::default_instance_->InitAsDefaultInstance(); + SetSplitOrMergeEnabledRequest::default_instance_->InitAsDefaultInstance(); + SetSplitOrMergeEnabledResponse::default_instance_->InitAsDefaultInstance(); + IsSplitOrMergeEnabledRequest::default_instance_->InitAsDefaultInstance(); + IsSplitOrMergeEnabledResponse::default_instance_->InitAsDefaultInstance(); + NormalizeRequest::default_instance_->InitAsDefaultInstance(); + NormalizeResponse::default_instance_->InitAsDefaultInstance(); + SetNormalizerRunningRequest::default_instance_->InitAsDefaultInstance(); + SetNormalizerRunningResponse::default_instance_->InitAsDefaultInstance(); + IsNormalizerEnabledRequest::default_instance_->InitAsDefaultInstance(); + IsNormalizerEnabledResponse::default_instance_->InitAsDefaultInstance(); + RunCatalogScanRequest::default_instance_->InitAsDefaultInstance(); + RunCatalogScanResponse::default_instance_->InitAsDefaultInstance(); + EnableCatalogJanitorRequest::default_instance_->InitAsDefaultInstance(); + EnableCatalogJanitorResponse::default_instance_->InitAsDefaultInstance(); + IsCatalogJanitorEnabledRequest::default_instance_->InitAsDefaultInstance(); + IsCatalogJanitorEnabledResponse::default_instance_->InitAsDefaultInstance(); + SnapshotRequest::default_instance_->InitAsDefaultInstance(); + SnapshotResponse::default_instance_->InitAsDefaultInstance(); + GetCompletedSnapshotsRequest::default_instance_->InitAsDefaultInstance(); + GetCompletedSnapshotsResponse::default_instance_->InitAsDefaultInstance(); + DeleteSnapshotRequest::default_instance_->InitAsDefaultInstance(); + DeleteSnapshotResponse::default_instance_->InitAsDefaultInstance(); + RestoreSnapshotRequest::default_instance_->InitAsDefaultInstance(); + RestoreSnapshotResponse::default_instance_->InitAsDefaultInstance(); + IsSnapshotDoneRequest::default_instance_->InitAsDefaultInstance(); + IsSnapshotDoneResponse::default_instance_->InitAsDefaultInstance(); + IsRestoreSnapshotDoneRequest::default_instance_->InitAsDefaultInstance(); + IsRestoreSnapshotDoneResponse::default_instance_->InitAsDefaultInstance(); + GetSchemaAlterStatusRequest::default_instance_->InitAsDefaultInstance(); + GetSchemaAlterStatusResponse::default_instance_->InitAsDefaultInstance(); + GetTableDescriptorsRequest::default_instance_->InitAsDefaultInstance(); + GetTableDescriptorsResponse::default_instance_->InitAsDefaultInstance(); + GetTableNamesRequest::default_instance_->InitAsDefaultInstance(); + GetTableNamesResponse::default_instance_->InitAsDefaultInstance(); + GetTableStateRequest::default_instance_->InitAsDefaultInstance(); + GetTableStateResponse::default_instance_->InitAsDefaultInstance(); + GetClusterStatusRequest::default_instance_->InitAsDefaultInstance(); + GetClusterStatusResponse::default_instance_->InitAsDefaultInstance(); + IsMasterRunningRequest::default_instance_->InitAsDefaultInstance(); + IsMasterRunningResponse::default_instance_->InitAsDefaultInstance(); + ExecProcedureRequest::default_instance_->InitAsDefaultInstance(); + ExecProcedureResponse::default_instance_->InitAsDefaultInstance(); + IsProcedureDoneRequest::default_instance_->InitAsDefaultInstance(); + IsProcedureDoneResponse::default_instance_->InitAsDefaultInstance(); + GetProcedureResultRequest::default_instance_->InitAsDefaultInstance(); + GetProcedureResultResponse::default_instance_->InitAsDefaultInstance(); + AbortProcedureRequest::default_instance_->InitAsDefaultInstance(); + AbortProcedureResponse::default_instance_->InitAsDefaultInstance(); + ListProceduresRequest::default_instance_->InitAsDefaultInstance(); + ListProceduresResponse::default_instance_->InitAsDefaultInstance(); + SetQuotaRequest::default_instance_->InitAsDefaultInstance(); + SetQuotaResponse::default_instance_->InitAsDefaultInstance(); + MajorCompactionTimestampRequest::default_instance_->InitAsDefaultInstance(); + MajorCompactionTimestampForRegionRequest::default_instance_->InitAsDefaultInstance(); + MajorCompactionTimestampResponse::default_instance_->InitAsDefaultInstance(); + SecurityCapabilitiesRequest::default_instance_->InitAsDefaultInstance(); + SecurityCapabilitiesResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Master_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Master_2eproto { + StaticDescriptorInitializer_Master_2eproto() { + protobuf_AddDesc_Master_2eproto(); + } +} static_descriptor_initializer_Master_2eproto_; +const ::google::protobuf::EnumDescriptor* MasterSwitchType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return MasterSwitchType_descriptor_; +} +bool MasterSwitchType_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AddColumnRequest::kTableNameFieldNumber; +const int AddColumnRequest::kColumnFamiliesFieldNumber; +const int AddColumnRequest::kNonceGroupFieldNumber; +const int AddColumnRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +AddColumnRequest::AddColumnRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AddColumnRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + column_families_ = const_cast< ::hbase::pb::ColumnFamilySchema*>(&::hbase::pb::ColumnFamilySchema::default_instance()); +} + +AddColumnRequest::AddColumnRequest(const AddColumnRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AddColumnRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + column_families_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AddColumnRequest::~AddColumnRequest() { + SharedDtor(); +} + +void AddColumnRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + delete column_families_; + } +} + +void AddColumnRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AddColumnRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AddColumnRequest_descriptor_; +} + +const AddColumnRequest& AddColumnRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +AddColumnRequest* AddColumnRequest::default_instance_ = NULL; + +AddColumnRequest* AddColumnRequest::New() const { + return new AddColumnRequest; +} + +void AddColumnRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_column_families()) { + if (column_families_ != NULL) column_families_->::hbase::pb::ColumnFamilySchema::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AddColumnRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_column_families; + break; + } + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_families: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_column_families())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 4 [default = 0]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AddColumnRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + if (has_column_families()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->column_families(), output); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce_group(), output); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AddColumnRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + if (has_column_families()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->column_families(), target); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce_group(), target); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AddColumnRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + if (has_column_families()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->column_families()); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AddColumnRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AddColumnRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AddColumnRequest::MergeFrom(const AddColumnRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_column_families()) { + mutable_column_families()->::hbase::pb::ColumnFamilySchema::MergeFrom(from.column_families()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AddColumnRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddColumnRequest::CopyFrom(const AddColumnRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddColumnRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_column_families()) { + if (!this->column_families().IsInitialized()) return false; + } + return true; +} + +void AddColumnRequest::Swap(AddColumnRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(column_families_, other->column_families_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AddColumnRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AddColumnRequest_descriptor_; + metadata.reflection = AddColumnRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AddColumnResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +AddColumnResponse::AddColumnResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AddColumnResponse::InitAsDefaultInstance() { +} + +AddColumnResponse::AddColumnResponse(const AddColumnResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AddColumnResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AddColumnResponse::~AddColumnResponse() { + SharedDtor(); +} + +void AddColumnResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void AddColumnResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AddColumnResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AddColumnResponse_descriptor_; +} + +const AddColumnResponse& AddColumnResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +AddColumnResponse* AddColumnResponse::default_instance_ = NULL; + +AddColumnResponse* AddColumnResponse::New() const { + return new AddColumnResponse; +} + +void AddColumnResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AddColumnResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AddColumnResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AddColumnResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AddColumnResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AddColumnResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AddColumnResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AddColumnResponse::MergeFrom(const AddColumnResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AddColumnResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddColumnResponse::CopyFrom(const AddColumnResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddColumnResponse::IsInitialized() const { + + return true; +} + +void AddColumnResponse::Swap(AddColumnResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AddColumnResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AddColumnResponse_descriptor_; + metadata.reflection = AddColumnResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteColumnRequest::kTableNameFieldNumber; +const int DeleteColumnRequest::kColumnNameFieldNumber; +const int DeleteColumnRequest::kNonceGroupFieldNumber; +const int DeleteColumnRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +DeleteColumnRequest::DeleteColumnRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteColumnRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +DeleteColumnRequest::DeleteColumnRequest(const DeleteColumnRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteColumnRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteColumnRequest::~DeleteColumnRequest() { + SharedDtor(); +} + +void DeleteColumnRequest::SharedDtor() { + if (column_name_ != &::google::protobuf::internal::kEmptyString) { + delete column_name_; + } + if (this != default_instance_) { + delete table_name_; + } +} + +void DeleteColumnRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteColumnRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteColumnRequest_descriptor_; +} + +const DeleteColumnRequest& DeleteColumnRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DeleteColumnRequest* DeleteColumnRequest::default_instance_ = NULL; + +DeleteColumnRequest* DeleteColumnRequest::New() const { + return new DeleteColumnRequest; +} + +void DeleteColumnRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_column_name()) { + if (column_name_ != &::google::protobuf::internal::kEmptyString) { + column_name_->clear(); + } + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteColumnRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_column_name; + break; + } + + // required bytes column_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_column_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 4 [default = 0]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteColumnRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // required bytes column_name = 2; + if (has_column_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->column_name(), output); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce_group(), output); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteColumnRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // required bytes column_name = 2; + if (has_column_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->column_name(), target); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce_group(), target); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteColumnRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required bytes column_name = 2; + if (has_column_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->column_name()); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteColumnRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteColumnRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteColumnRequest::MergeFrom(const DeleteColumnRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_column_name()) { + set_column_name(from.column_name()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteColumnRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteColumnRequest::CopyFrom(const DeleteColumnRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteColumnRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void DeleteColumnRequest::Swap(DeleteColumnRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(column_name_, other->column_name_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteColumnRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteColumnRequest_descriptor_; + metadata.reflection = DeleteColumnRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteColumnResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +DeleteColumnResponse::DeleteColumnResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteColumnResponse::InitAsDefaultInstance() { +} + +DeleteColumnResponse::DeleteColumnResponse(const DeleteColumnResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteColumnResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteColumnResponse::~DeleteColumnResponse() { + SharedDtor(); +} + +void DeleteColumnResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void DeleteColumnResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteColumnResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteColumnResponse_descriptor_; +} + +const DeleteColumnResponse& DeleteColumnResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DeleteColumnResponse* DeleteColumnResponse::default_instance_ = NULL; + +DeleteColumnResponse* DeleteColumnResponse::New() const { + return new DeleteColumnResponse; +} + +void DeleteColumnResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteColumnResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteColumnResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteColumnResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteColumnResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteColumnResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteColumnResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteColumnResponse::MergeFrom(const DeleteColumnResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteColumnResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteColumnResponse::CopyFrom(const DeleteColumnResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteColumnResponse::IsInitialized() const { + + return true; +} + +void DeleteColumnResponse::Swap(DeleteColumnResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteColumnResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteColumnResponse_descriptor_; + metadata.reflection = DeleteColumnResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyColumnRequest::kTableNameFieldNumber; +const int ModifyColumnRequest::kColumnFamiliesFieldNumber; +const int ModifyColumnRequest::kNonceGroupFieldNumber; +const int ModifyColumnRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +ModifyColumnRequest::ModifyColumnRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyColumnRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + column_families_ = const_cast< ::hbase::pb::ColumnFamilySchema*>(&::hbase::pb::ColumnFamilySchema::default_instance()); +} + +ModifyColumnRequest::ModifyColumnRequest(const ModifyColumnRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyColumnRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + column_families_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyColumnRequest::~ModifyColumnRequest() { + SharedDtor(); +} + +void ModifyColumnRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + delete column_families_; + } +} + +void ModifyColumnRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyColumnRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyColumnRequest_descriptor_; +} + +const ModifyColumnRequest& ModifyColumnRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ModifyColumnRequest* ModifyColumnRequest::default_instance_ = NULL; + +ModifyColumnRequest* ModifyColumnRequest::New() const { + return new ModifyColumnRequest; +} + +void ModifyColumnRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_column_families()) { + if (column_families_ != NULL) column_families_->::hbase::pb::ColumnFamilySchema::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyColumnRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_column_families; + break; + } + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_column_families: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_column_families())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 4 [default = 0]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyColumnRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + if (has_column_families()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->column_families(), output); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce_group(), output); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyColumnRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + if (has_column_families()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->column_families(), target); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce_group(), target); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyColumnRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + if (has_column_families()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->column_families()); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyColumnRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyColumnRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyColumnRequest::MergeFrom(const ModifyColumnRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_column_families()) { + mutable_column_families()->::hbase::pb::ColumnFamilySchema::MergeFrom(from.column_families()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyColumnRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyColumnRequest::CopyFrom(const ModifyColumnRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyColumnRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_column_families()) { + if (!this->column_families().IsInitialized()) return false; + } + return true; +} + +void ModifyColumnRequest::Swap(ModifyColumnRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(column_families_, other->column_families_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyColumnRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyColumnRequest_descriptor_; + metadata.reflection = ModifyColumnRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyColumnResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +ModifyColumnResponse::ModifyColumnResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyColumnResponse::InitAsDefaultInstance() { +} + +ModifyColumnResponse::ModifyColumnResponse(const ModifyColumnResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyColumnResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyColumnResponse::~ModifyColumnResponse() { + SharedDtor(); +} + +void ModifyColumnResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ModifyColumnResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyColumnResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyColumnResponse_descriptor_; +} + +const ModifyColumnResponse& ModifyColumnResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ModifyColumnResponse* ModifyColumnResponse::default_instance_ = NULL; + +ModifyColumnResponse* ModifyColumnResponse::New() const { + return new ModifyColumnResponse; +} + +void ModifyColumnResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyColumnResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyColumnResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyColumnResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyColumnResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyColumnResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyColumnResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyColumnResponse::MergeFrom(const ModifyColumnResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyColumnResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyColumnResponse::CopyFrom(const ModifyColumnResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyColumnResponse::IsInitialized() const { + + return true; +} + +void ModifyColumnResponse::Swap(ModifyColumnResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyColumnResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyColumnResponse_descriptor_; + metadata.reflection = ModifyColumnResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MoveRegionRequest::kRegionFieldNumber; +const int MoveRegionRequest::kDestServerNameFieldNumber; +#endif // !_MSC_VER + +MoveRegionRequest::MoveRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MoveRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + dest_server_name_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +MoveRegionRequest::MoveRegionRequest(const MoveRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MoveRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + dest_server_name_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MoveRegionRequest::~MoveRegionRequest() { + SharedDtor(); +} + +void MoveRegionRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + delete dest_server_name_; + } +} + +void MoveRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MoveRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MoveRegionRequest_descriptor_; +} + +const MoveRegionRequest& MoveRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +MoveRegionRequest* MoveRegionRequest::default_instance_ = NULL; + +MoveRegionRequest* MoveRegionRequest::New() const { + return new MoveRegionRequest; +} + +void MoveRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_dest_server_name()) { + if (dest_server_name_ != NULL) dest_server_name_->::hbase::pb::ServerName::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MoveRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_dest_server_name; + break; + } + + // optional .hbase.pb.ServerName dest_server_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_dest_server_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_dest_server_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MoveRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional .hbase.pb.ServerName dest_server_name = 2; + if (has_dest_server_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->dest_server_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MoveRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional .hbase.pb.ServerName dest_server_name = 2; + if (has_dest_server_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->dest_server_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MoveRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional .hbase.pb.ServerName dest_server_name = 2; + if (has_dest_server_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dest_server_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MoveRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MoveRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MoveRegionRequest::MergeFrom(const MoveRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_dest_server_name()) { + mutable_dest_server_name()->::hbase::pb::ServerName::MergeFrom(from.dest_server_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MoveRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoveRegionRequest::CopyFrom(const MoveRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + if (has_dest_server_name()) { + if (!this->dest_server_name().IsInitialized()) return false; + } + return true; +} + +void MoveRegionRequest::Swap(MoveRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(dest_server_name_, other->dest_server_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MoveRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MoveRegionRequest_descriptor_; + metadata.reflection = MoveRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +MoveRegionResponse::MoveRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MoveRegionResponse::InitAsDefaultInstance() { +} + +MoveRegionResponse::MoveRegionResponse(const MoveRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MoveRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MoveRegionResponse::~MoveRegionResponse() { + SharedDtor(); +} + +void MoveRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void MoveRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MoveRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MoveRegionResponse_descriptor_; +} + +const MoveRegionResponse& MoveRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +MoveRegionResponse* MoveRegionResponse::default_instance_ = NULL; + +MoveRegionResponse* MoveRegionResponse::New() const { + return new MoveRegionResponse; +} + +void MoveRegionResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MoveRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void MoveRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MoveRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MoveRegionResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MoveRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MoveRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MoveRegionResponse::MergeFrom(const MoveRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MoveRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoveRegionResponse::CopyFrom(const MoveRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveRegionResponse::IsInitialized() const { + + return true; +} + +void MoveRegionResponse::Swap(MoveRegionResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MoveRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MoveRegionResponse_descriptor_; + metadata.reflection = MoveRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DispatchMergingRegionsRequest::kRegionAFieldNumber; +const int DispatchMergingRegionsRequest::kRegionBFieldNumber; +const int DispatchMergingRegionsRequest::kForcibleFieldNumber; +#endif // !_MSC_VER + +DispatchMergingRegionsRequest::DispatchMergingRegionsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DispatchMergingRegionsRequest::InitAsDefaultInstance() { + region_a_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); + region_b_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +DispatchMergingRegionsRequest::DispatchMergingRegionsRequest(const DispatchMergingRegionsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DispatchMergingRegionsRequest::SharedCtor() { + _cached_size_ = 0; + region_a_ = NULL; + region_b_ = NULL; + forcible_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DispatchMergingRegionsRequest::~DispatchMergingRegionsRequest() { + SharedDtor(); +} + +void DispatchMergingRegionsRequest::SharedDtor() { + if (this != default_instance_) { + delete region_a_; + delete region_b_; + } +} + +void DispatchMergingRegionsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DispatchMergingRegionsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DispatchMergingRegionsRequest_descriptor_; +} + +const DispatchMergingRegionsRequest& DispatchMergingRegionsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DispatchMergingRegionsRequest* DispatchMergingRegionsRequest::default_instance_ = NULL; + +DispatchMergingRegionsRequest* DispatchMergingRegionsRequest::New() const { + return new DispatchMergingRegionsRequest; +} + +void DispatchMergingRegionsRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region_a()) { + if (region_a_ != NULL) region_a_->::hbase::pb::RegionSpecifier::Clear(); + } + if (has_region_b()) { + if (region_b_ != NULL) region_b_->::hbase::pb::RegionSpecifier::Clear(); + } + forcible_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DispatchMergingRegionsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region_a = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_a())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_region_b; + break; + } + + // required .hbase.pb.RegionSpecifier region_b = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_b: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_b())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_forcible; + break; + } + + // optional bool forcible = 3 [default = false]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_forcible: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &forcible_))); + set_has_forcible(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DispatchMergingRegionsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region_a = 1; + if (has_region_a()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region_a(), output); + } + + // required .hbase.pb.RegionSpecifier region_b = 2; + if (has_region_b()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->region_b(), output); + } + + // optional bool forcible = 3 [default = false]; + if (has_forcible()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->forcible(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DispatchMergingRegionsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region_a = 1; + if (has_region_a()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region_a(), target); + } + + // required .hbase.pb.RegionSpecifier region_b = 2; + if (has_region_b()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->region_b(), target); + } + + // optional bool forcible = 3 [default = false]; + if (has_forcible()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->forcible(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DispatchMergingRegionsRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region_a = 1; + if (has_region_a()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_a()); + } + + // required .hbase.pb.RegionSpecifier region_b = 2; + if (has_region_b()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_b()); + } + + // optional bool forcible = 3 [default = false]; + if (has_forcible()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DispatchMergingRegionsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DispatchMergingRegionsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DispatchMergingRegionsRequest::MergeFrom(const DispatchMergingRegionsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region_a()) { + mutable_region_a()->::hbase::pb::RegionSpecifier::MergeFrom(from.region_a()); + } + if (from.has_region_b()) { + mutable_region_b()->::hbase::pb::RegionSpecifier::MergeFrom(from.region_b()); + } + if (from.has_forcible()) { + set_forcible(from.forcible()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DispatchMergingRegionsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DispatchMergingRegionsRequest::CopyFrom(const DispatchMergingRegionsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DispatchMergingRegionsRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_region_a()) { + if (!this->region_a().IsInitialized()) return false; + } + if (has_region_b()) { + if (!this->region_b().IsInitialized()) return false; + } + return true; +} + +void DispatchMergingRegionsRequest::Swap(DispatchMergingRegionsRequest* other) { + if (other != this) { + std::swap(region_a_, other->region_a_); + std::swap(region_b_, other->region_b_); + std::swap(forcible_, other->forcible_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DispatchMergingRegionsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DispatchMergingRegionsRequest_descriptor_; + metadata.reflection = DispatchMergingRegionsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +DispatchMergingRegionsResponse::DispatchMergingRegionsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DispatchMergingRegionsResponse::InitAsDefaultInstance() { +} + +DispatchMergingRegionsResponse::DispatchMergingRegionsResponse(const DispatchMergingRegionsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DispatchMergingRegionsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DispatchMergingRegionsResponse::~DispatchMergingRegionsResponse() { + SharedDtor(); +} + +void DispatchMergingRegionsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void DispatchMergingRegionsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DispatchMergingRegionsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DispatchMergingRegionsResponse_descriptor_; +} + +const DispatchMergingRegionsResponse& DispatchMergingRegionsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DispatchMergingRegionsResponse* DispatchMergingRegionsResponse::default_instance_ = NULL; + +DispatchMergingRegionsResponse* DispatchMergingRegionsResponse::New() const { + return new DispatchMergingRegionsResponse; +} + +void DispatchMergingRegionsResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DispatchMergingRegionsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void DispatchMergingRegionsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DispatchMergingRegionsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DispatchMergingRegionsResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DispatchMergingRegionsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DispatchMergingRegionsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DispatchMergingRegionsResponse::MergeFrom(const DispatchMergingRegionsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DispatchMergingRegionsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DispatchMergingRegionsResponse::CopyFrom(const DispatchMergingRegionsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DispatchMergingRegionsResponse::IsInitialized() const { + + return true; +} + +void DispatchMergingRegionsResponse::Swap(DispatchMergingRegionsResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DispatchMergingRegionsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DispatchMergingRegionsResponse_descriptor_; + metadata.reflection = DispatchMergingRegionsResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AssignRegionRequest::kRegionFieldNumber; +#endif // !_MSC_VER + +AssignRegionRequest::AssignRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AssignRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +AssignRegionRequest::AssignRegionRequest(const AssignRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AssignRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AssignRegionRequest::~AssignRegionRequest() { + SharedDtor(); +} + +void AssignRegionRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void AssignRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AssignRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AssignRegionRequest_descriptor_; +} + +const AssignRegionRequest& AssignRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +AssignRegionRequest* AssignRegionRequest::default_instance_ = NULL; + +AssignRegionRequest* AssignRegionRequest::New() const { + return new AssignRegionRequest; +} + +void AssignRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AssignRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AssignRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AssignRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AssignRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AssignRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AssignRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AssignRegionRequest::MergeFrom(const AssignRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AssignRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AssignRegionRequest::CopyFrom(const AssignRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AssignRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void AssignRegionRequest::Swap(AssignRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AssignRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AssignRegionRequest_descriptor_; + metadata.reflection = AssignRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +AssignRegionResponse::AssignRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AssignRegionResponse::InitAsDefaultInstance() { +} + +AssignRegionResponse::AssignRegionResponse(const AssignRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AssignRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AssignRegionResponse::~AssignRegionResponse() { + SharedDtor(); +} + +void AssignRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void AssignRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AssignRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AssignRegionResponse_descriptor_; +} + +const AssignRegionResponse& AssignRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +AssignRegionResponse* AssignRegionResponse::default_instance_ = NULL; + +AssignRegionResponse* AssignRegionResponse::New() const { + return new AssignRegionResponse; +} + +void AssignRegionResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AssignRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void AssignRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AssignRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AssignRegionResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AssignRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AssignRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AssignRegionResponse::MergeFrom(const AssignRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AssignRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AssignRegionResponse::CopyFrom(const AssignRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AssignRegionResponse::IsInitialized() const { + + return true; +} + +void AssignRegionResponse::Swap(AssignRegionResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AssignRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AssignRegionResponse_descriptor_; + metadata.reflection = AssignRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int UnassignRegionRequest::kRegionFieldNumber; +const int UnassignRegionRequest::kForceFieldNumber; +#endif // !_MSC_VER + +UnassignRegionRequest::UnassignRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UnassignRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +UnassignRegionRequest::UnassignRegionRequest(const UnassignRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UnassignRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + force_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UnassignRegionRequest::~UnassignRegionRequest() { + SharedDtor(); +} + +void UnassignRegionRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void UnassignRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UnassignRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UnassignRegionRequest_descriptor_; +} + +const UnassignRegionRequest& UnassignRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +UnassignRegionRequest* UnassignRegionRequest::default_instance_ = NULL; + +UnassignRegionRequest* UnassignRegionRequest::New() const { + return new UnassignRegionRequest; +} + +void UnassignRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + force_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UnassignRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_force; + break; + } + + // optional bool force = 2 [default = false]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_force: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &force_))); + set_has_force(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UnassignRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + // optional bool force = 2 [default = false]; + if (has_force()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->force(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UnassignRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + // optional bool force = 2 [default = false]; + if (has_force()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->force(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UnassignRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + // optional bool force = 2 [default = false]; + if (has_force()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UnassignRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UnassignRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UnassignRegionRequest::MergeFrom(const UnassignRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + if (from.has_force()) { + set_force(from.force()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UnassignRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UnassignRegionRequest::CopyFrom(const UnassignRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnassignRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void UnassignRegionRequest::Swap(UnassignRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(force_, other->force_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UnassignRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UnassignRegionRequest_descriptor_; + metadata.reflection = UnassignRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +UnassignRegionResponse::UnassignRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UnassignRegionResponse::InitAsDefaultInstance() { +} + +UnassignRegionResponse::UnassignRegionResponse(const UnassignRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UnassignRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UnassignRegionResponse::~UnassignRegionResponse() { + SharedDtor(); +} + +void UnassignRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void UnassignRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UnassignRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UnassignRegionResponse_descriptor_; +} + +const UnassignRegionResponse& UnassignRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +UnassignRegionResponse* UnassignRegionResponse::default_instance_ = NULL; + +UnassignRegionResponse* UnassignRegionResponse::New() const { + return new UnassignRegionResponse; +} + +void UnassignRegionResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UnassignRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void UnassignRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UnassignRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UnassignRegionResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UnassignRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UnassignRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UnassignRegionResponse::MergeFrom(const UnassignRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UnassignRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UnassignRegionResponse::CopyFrom(const UnassignRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnassignRegionResponse::IsInitialized() const { + + return true; +} + +void UnassignRegionResponse::Swap(UnassignRegionResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UnassignRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UnassignRegionResponse_descriptor_; + metadata.reflection = UnassignRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int OfflineRegionRequest::kRegionFieldNumber; +#endif // !_MSC_VER + +OfflineRegionRequest::OfflineRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void OfflineRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +OfflineRegionRequest::OfflineRegionRequest(const OfflineRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void OfflineRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +OfflineRegionRequest::~OfflineRegionRequest() { + SharedDtor(); +} + +void OfflineRegionRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void OfflineRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* OfflineRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return OfflineRegionRequest_descriptor_; +} + +const OfflineRegionRequest& OfflineRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +OfflineRegionRequest* OfflineRegionRequest::default_instance_ = NULL; + +OfflineRegionRequest* OfflineRegionRequest::New() const { + return new OfflineRegionRequest; +} + +void OfflineRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool OfflineRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void OfflineRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* OfflineRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int OfflineRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void OfflineRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const OfflineRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void OfflineRegionRequest::MergeFrom(const OfflineRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void OfflineRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OfflineRegionRequest::CopyFrom(const OfflineRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OfflineRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void OfflineRegionRequest::Swap(OfflineRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata OfflineRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = OfflineRegionRequest_descriptor_; + metadata.reflection = OfflineRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +OfflineRegionResponse::OfflineRegionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void OfflineRegionResponse::InitAsDefaultInstance() { +} + +OfflineRegionResponse::OfflineRegionResponse(const OfflineRegionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void OfflineRegionResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +OfflineRegionResponse::~OfflineRegionResponse() { + SharedDtor(); +} + +void OfflineRegionResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void OfflineRegionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* OfflineRegionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return OfflineRegionResponse_descriptor_; +} + +const OfflineRegionResponse& OfflineRegionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +OfflineRegionResponse* OfflineRegionResponse::default_instance_ = NULL; + +OfflineRegionResponse* OfflineRegionResponse::New() const { + return new OfflineRegionResponse; +} + +void OfflineRegionResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool OfflineRegionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void OfflineRegionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* OfflineRegionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int OfflineRegionResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void OfflineRegionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const OfflineRegionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void OfflineRegionResponse::MergeFrom(const OfflineRegionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void OfflineRegionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OfflineRegionResponse::CopyFrom(const OfflineRegionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OfflineRegionResponse::IsInitialized() const { + + return true; +} + +void OfflineRegionResponse::Swap(OfflineRegionResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata OfflineRegionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = OfflineRegionResponse_descriptor_; + metadata.reflection = OfflineRegionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CreateTableRequest::kTableSchemaFieldNumber; +const int CreateTableRequest::kSplitKeysFieldNumber; +const int CreateTableRequest::kNonceGroupFieldNumber; +const int CreateTableRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +CreateTableRequest::CreateTableRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CreateTableRequest::InitAsDefaultInstance() { + table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +CreateTableRequest::CreateTableRequest(const CreateTableRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CreateTableRequest::SharedCtor() { + _cached_size_ = 0; + table_schema_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CreateTableRequest::~CreateTableRequest() { + SharedDtor(); +} + +void CreateTableRequest::SharedDtor() { + if (this != default_instance_) { + delete table_schema_; + } +} + +void CreateTableRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateTableRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateTableRequest_descriptor_; +} + +const CreateTableRequest& CreateTableRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +CreateTableRequest* CreateTableRequest::default_instance_ = NULL; + +CreateTableRequest* CreateTableRequest::New() const { + return new CreateTableRequest; +} + +void CreateTableRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_schema()) { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + split_keys_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CreateTableRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableSchema table_schema = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_split_keys; + break; + } + + // repeated bytes split_keys = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_split_keys: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_split_keys())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_split_keys; + if (input->ExpectTag(24)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 4 [default = 0]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CreateTableRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableSchema table_schema = 1; + if (has_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_schema(), output); + } + + // repeated bytes split_keys = 2; + for (int i = 0; i < this->split_keys_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->split_keys(i), output); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce_group(), output); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CreateTableRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableSchema table_schema = 1; + if (has_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_schema(), target); + } + + // repeated bytes split_keys = 2; + for (int i = 0; i < this->split_keys_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(2, this->split_keys(i), target); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce_group(), target); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CreateTableRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableSchema table_schema = 1; + if (has_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_schema()); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + // repeated bytes split_keys = 2; + total_size += 1 * this->split_keys_size(); + for (int i = 0; i < this->split_keys_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->split_keys(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CreateTableRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CreateTableRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CreateTableRequest::MergeFrom(const CreateTableRequest& from) { + GOOGLE_CHECK_NE(&from, this); + split_keys_.MergeFrom(from.split_keys_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_schema()) { + mutable_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.table_schema()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CreateTableRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateTableRequest::CopyFrom(const CreateTableRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateTableRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_schema()) { + if (!this->table_schema().IsInitialized()) return false; + } + return true; +} + +void CreateTableRequest::Swap(CreateTableRequest* other) { + if (other != this) { + std::swap(table_schema_, other->table_schema_); + split_keys_.Swap(&other->split_keys_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CreateTableRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CreateTableRequest_descriptor_; + metadata.reflection = CreateTableRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CreateTableResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +CreateTableResponse::CreateTableResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CreateTableResponse::InitAsDefaultInstance() { +} + +CreateTableResponse::CreateTableResponse(const CreateTableResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CreateTableResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CreateTableResponse::~CreateTableResponse() { + SharedDtor(); +} + +void CreateTableResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void CreateTableResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateTableResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateTableResponse_descriptor_; +} + +const CreateTableResponse& CreateTableResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +CreateTableResponse* CreateTableResponse::default_instance_ = NULL; + +CreateTableResponse* CreateTableResponse::New() const { + return new CreateTableResponse; +} + +void CreateTableResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CreateTableResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CreateTableResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CreateTableResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CreateTableResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CreateTableResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CreateTableResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CreateTableResponse::MergeFrom(const CreateTableResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CreateTableResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateTableResponse::CopyFrom(const CreateTableResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateTableResponse::IsInitialized() const { + + return true; +} + +void CreateTableResponse::Swap(CreateTableResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CreateTableResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CreateTableResponse_descriptor_; + metadata.reflection = CreateTableResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteTableRequest::kTableNameFieldNumber; +const int DeleteTableRequest::kNonceGroupFieldNumber; +const int DeleteTableRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +DeleteTableRequest::DeleteTableRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteTableRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +DeleteTableRequest::DeleteTableRequest(const DeleteTableRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteTableRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteTableRequest::~DeleteTableRequest() { + SharedDtor(); +} + +void DeleteTableRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void DeleteTableRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteTableRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteTableRequest_descriptor_; +} + +const DeleteTableRequest& DeleteTableRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DeleteTableRequest* DeleteTableRequest::default_instance_ = NULL; + +DeleteTableRequest* DeleteTableRequest::New() const { + return new DeleteTableRequest; +} + +void DeleteTableRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteTableRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 2 [default = 0]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteTableRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->nonce_group(), output); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteTableRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->nonce_group(), target); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteTableRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteTableRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteTableRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteTableRequest::MergeFrom(const DeleteTableRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteTableRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteTableRequest::CopyFrom(const DeleteTableRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteTableRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void DeleteTableRequest::Swap(DeleteTableRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteTableRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteTableRequest_descriptor_; + metadata.reflection = DeleteTableRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteTableResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +DeleteTableResponse::DeleteTableResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteTableResponse::InitAsDefaultInstance() { +} + +DeleteTableResponse::DeleteTableResponse(const DeleteTableResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteTableResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteTableResponse::~DeleteTableResponse() { + SharedDtor(); +} + +void DeleteTableResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void DeleteTableResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteTableResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteTableResponse_descriptor_; +} + +const DeleteTableResponse& DeleteTableResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DeleteTableResponse* DeleteTableResponse::default_instance_ = NULL; + +DeleteTableResponse* DeleteTableResponse::New() const { + return new DeleteTableResponse; +} + +void DeleteTableResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteTableResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteTableResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteTableResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteTableResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteTableResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteTableResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteTableResponse::MergeFrom(const DeleteTableResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteTableResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteTableResponse::CopyFrom(const DeleteTableResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteTableResponse::IsInitialized() const { + + return true; +} + +void DeleteTableResponse::Swap(DeleteTableResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteTableResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteTableResponse_descriptor_; + metadata.reflection = DeleteTableResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TruncateTableRequest::kTableNameFieldNumber; +const int TruncateTableRequest::kPreserveSplitsFieldNumber; +const int TruncateTableRequest::kNonceGroupFieldNumber; +const int TruncateTableRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +TruncateTableRequest::TruncateTableRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TruncateTableRequest::InitAsDefaultInstance() { + tablename_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +TruncateTableRequest::TruncateTableRequest(const TruncateTableRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TruncateTableRequest::SharedCtor() { + _cached_size_ = 0; + tablename_ = NULL; + preservesplits_ = false; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TruncateTableRequest::~TruncateTableRequest() { + SharedDtor(); +} + +void TruncateTableRequest::SharedDtor() { + if (this != default_instance_) { + delete tablename_; + } +} + +void TruncateTableRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TruncateTableRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TruncateTableRequest_descriptor_; +} + +const TruncateTableRequest& TruncateTableRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +TruncateTableRequest* TruncateTableRequest::default_instance_ = NULL; + +TruncateTableRequest* TruncateTableRequest::New() const { + return new TruncateTableRequest; +} + +void TruncateTableRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_tablename()) { + if (tablename_ != NULL) tablename_->::hbase::pb::TableName::Clear(); + } + preservesplits_ = false; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TruncateTableRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName tableName = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_tablename())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_preserveSplits; + break; + } + + // optional bool preserveSplits = 2 [default = false]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_preserveSplits: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &preservesplits_))); + set_has_preservesplits(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 4 [default = 0]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TruncateTableRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName tableName = 1; + if (has_tablename()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->tablename(), output); + } + + // optional bool preserveSplits = 2 [default = false]; + if (has_preservesplits()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->preservesplits(), output); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce_group(), output); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TruncateTableRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName tableName = 1; + if (has_tablename()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->tablename(), target); + } + + // optional bool preserveSplits = 2 [default = false]; + if (has_preservesplits()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->preservesplits(), target); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce_group(), target); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TruncateTableRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName tableName = 1; + if (has_tablename()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->tablename()); + } + + // optional bool preserveSplits = 2 [default = false]; + if (has_preservesplits()) { + total_size += 1 + 1; + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TruncateTableRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TruncateTableRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TruncateTableRequest::MergeFrom(const TruncateTableRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_tablename()) { + mutable_tablename()->::hbase::pb::TableName::MergeFrom(from.tablename()); + } + if (from.has_preservesplits()) { + set_preservesplits(from.preservesplits()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TruncateTableRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TruncateTableRequest::CopyFrom(const TruncateTableRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TruncateTableRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_tablename()) { + if (!this->tablename().IsInitialized()) return false; + } + return true; +} + +void TruncateTableRequest::Swap(TruncateTableRequest* other) { + if (other != this) { + std::swap(tablename_, other->tablename_); + std::swap(preservesplits_, other->preservesplits_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TruncateTableRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TruncateTableRequest_descriptor_; + metadata.reflection = TruncateTableRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TruncateTableResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +TruncateTableResponse::TruncateTableResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TruncateTableResponse::InitAsDefaultInstance() { +} + +TruncateTableResponse::TruncateTableResponse(const TruncateTableResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TruncateTableResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TruncateTableResponse::~TruncateTableResponse() { + SharedDtor(); +} + +void TruncateTableResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void TruncateTableResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TruncateTableResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TruncateTableResponse_descriptor_; +} + +const TruncateTableResponse& TruncateTableResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +TruncateTableResponse* TruncateTableResponse::default_instance_ = NULL; + +TruncateTableResponse* TruncateTableResponse::New() const { + return new TruncateTableResponse; +} + +void TruncateTableResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TruncateTableResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TruncateTableResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TruncateTableResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TruncateTableResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TruncateTableResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TruncateTableResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TruncateTableResponse::MergeFrom(const TruncateTableResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TruncateTableResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TruncateTableResponse::CopyFrom(const TruncateTableResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TruncateTableResponse::IsInitialized() const { + + return true; +} + +void TruncateTableResponse::Swap(TruncateTableResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TruncateTableResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TruncateTableResponse_descriptor_; + metadata.reflection = TruncateTableResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int EnableTableRequest::kTableNameFieldNumber; +const int EnableTableRequest::kNonceGroupFieldNumber; +const int EnableTableRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +EnableTableRequest::EnableTableRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EnableTableRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +EnableTableRequest::EnableTableRequest(const EnableTableRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EnableTableRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EnableTableRequest::~EnableTableRequest() { + SharedDtor(); +} + +void EnableTableRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void EnableTableRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EnableTableRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EnableTableRequest_descriptor_; +} + +const EnableTableRequest& EnableTableRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +EnableTableRequest* EnableTableRequest::default_instance_ = NULL; + +EnableTableRequest* EnableTableRequest::New() const { + return new EnableTableRequest; +} + +void EnableTableRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EnableTableRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 2 [default = 0]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EnableTableRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->nonce_group(), output); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EnableTableRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->nonce_group(), target); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EnableTableRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EnableTableRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EnableTableRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EnableTableRequest::MergeFrom(const EnableTableRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EnableTableRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EnableTableRequest::CopyFrom(const EnableTableRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnableTableRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void EnableTableRequest::Swap(EnableTableRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EnableTableRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EnableTableRequest_descriptor_; + metadata.reflection = EnableTableRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int EnableTableResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +EnableTableResponse::EnableTableResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EnableTableResponse::InitAsDefaultInstance() { +} + +EnableTableResponse::EnableTableResponse(const EnableTableResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EnableTableResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EnableTableResponse::~EnableTableResponse() { + SharedDtor(); +} + +void EnableTableResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void EnableTableResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EnableTableResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EnableTableResponse_descriptor_; +} + +const EnableTableResponse& EnableTableResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +EnableTableResponse* EnableTableResponse::default_instance_ = NULL; + +EnableTableResponse* EnableTableResponse::New() const { + return new EnableTableResponse; +} + +void EnableTableResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EnableTableResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EnableTableResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EnableTableResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EnableTableResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EnableTableResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EnableTableResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EnableTableResponse::MergeFrom(const EnableTableResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EnableTableResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EnableTableResponse::CopyFrom(const EnableTableResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnableTableResponse::IsInitialized() const { + + return true; +} + +void EnableTableResponse::Swap(EnableTableResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EnableTableResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EnableTableResponse_descriptor_; + metadata.reflection = EnableTableResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DisableTableRequest::kTableNameFieldNumber; +const int DisableTableRequest::kNonceGroupFieldNumber; +const int DisableTableRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +DisableTableRequest::DisableTableRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DisableTableRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +DisableTableRequest::DisableTableRequest(const DisableTableRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DisableTableRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DisableTableRequest::~DisableTableRequest() { + SharedDtor(); +} + +void DisableTableRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void DisableTableRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DisableTableRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DisableTableRequest_descriptor_; +} + +const DisableTableRequest& DisableTableRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DisableTableRequest* DisableTableRequest::default_instance_ = NULL; + +DisableTableRequest* DisableTableRequest::New() const { + return new DisableTableRequest; +} + +void DisableTableRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DisableTableRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 2 [default = 0]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DisableTableRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->nonce_group(), output); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DisableTableRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->nonce_group(), target); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DisableTableRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DisableTableRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DisableTableRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DisableTableRequest::MergeFrom(const DisableTableRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DisableTableRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DisableTableRequest::CopyFrom(const DisableTableRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DisableTableRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void DisableTableRequest::Swap(DisableTableRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DisableTableRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DisableTableRequest_descriptor_; + metadata.reflection = DisableTableRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DisableTableResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +DisableTableResponse::DisableTableResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DisableTableResponse::InitAsDefaultInstance() { +} + +DisableTableResponse::DisableTableResponse(const DisableTableResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DisableTableResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DisableTableResponse::~DisableTableResponse() { + SharedDtor(); +} + +void DisableTableResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void DisableTableResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DisableTableResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DisableTableResponse_descriptor_; +} + +const DisableTableResponse& DisableTableResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DisableTableResponse* DisableTableResponse::default_instance_ = NULL; + +DisableTableResponse* DisableTableResponse::New() const { + return new DisableTableResponse; +} + +void DisableTableResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DisableTableResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DisableTableResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DisableTableResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DisableTableResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DisableTableResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DisableTableResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DisableTableResponse::MergeFrom(const DisableTableResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DisableTableResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DisableTableResponse::CopyFrom(const DisableTableResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DisableTableResponse::IsInitialized() const { + + return true; +} + +void DisableTableResponse::Swap(DisableTableResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DisableTableResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DisableTableResponse_descriptor_; + metadata.reflection = DisableTableResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyTableRequest::kTableNameFieldNumber; +const int ModifyTableRequest::kTableSchemaFieldNumber; +const int ModifyTableRequest::kNonceGroupFieldNumber; +const int ModifyTableRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +ModifyTableRequest::ModifyTableRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyTableRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +ModifyTableRequest::ModifyTableRequest(const ModifyTableRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyTableRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + table_schema_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyTableRequest::~ModifyTableRequest() { + SharedDtor(); +} + +void ModifyTableRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + delete table_schema_; + } +} + +void ModifyTableRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyTableRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyTableRequest_descriptor_; +} + +const ModifyTableRequest& ModifyTableRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ModifyTableRequest* ModifyTableRequest::default_instance_ = NULL; + +ModifyTableRequest* ModifyTableRequest::New() const { + return new ModifyTableRequest; +} + +void ModifyTableRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_table_schema()) { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyTableRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_schema; + break; + } + + // required .hbase.pb.TableSchema table_schema = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 4 [default = 0]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyTableRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // required .hbase.pb.TableSchema table_schema = 2; + if (has_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_schema(), output); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce_group(), output); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyTableRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // required .hbase.pb.TableSchema table_schema = 2; + if (has_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_schema(), target); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce_group(), target); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyTableRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required .hbase.pb.TableSchema table_schema = 2; + if (has_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_schema()); + } + + // optional uint64 nonce_group = 3 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 4 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyTableRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyTableRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyTableRequest::MergeFrom(const ModifyTableRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_table_schema()) { + mutable_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.table_schema()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyTableRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyTableRequest::CopyFrom(const ModifyTableRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyTableRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_table_schema()) { + if (!this->table_schema().IsInitialized()) return false; + } + return true; +} + +void ModifyTableRequest::Swap(ModifyTableRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(table_schema_, other->table_schema_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyTableRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyTableRequest_descriptor_; + metadata.reflection = ModifyTableRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyTableResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +ModifyTableResponse::ModifyTableResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyTableResponse::InitAsDefaultInstance() { +} + +ModifyTableResponse::ModifyTableResponse(const ModifyTableResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyTableResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyTableResponse::~ModifyTableResponse() { + SharedDtor(); +} + +void ModifyTableResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ModifyTableResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyTableResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyTableResponse_descriptor_; +} + +const ModifyTableResponse& ModifyTableResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ModifyTableResponse* ModifyTableResponse::default_instance_ = NULL; + +ModifyTableResponse* ModifyTableResponse::New() const { + return new ModifyTableResponse; +} + +void ModifyTableResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyTableResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyTableResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyTableResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyTableResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyTableResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyTableResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyTableResponse::MergeFrom(const ModifyTableResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyTableResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyTableResponse::CopyFrom(const ModifyTableResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyTableResponse::IsInitialized() const { + + return true; +} + +void ModifyTableResponse::Swap(ModifyTableResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyTableResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyTableResponse_descriptor_; + metadata.reflection = ModifyTableResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CreateNamespaceRequest::kNamespaceDescriptorFieldNumber; +const int CreateNamespaceRequest::kNonceGroupFieldNumber; +const int CreateNamespaceRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +CreateNamespaceRequest::CreateNamespaceRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CreateNamespaceRequest::InitAsDefaultInstance() { + namespacedescriptor_ = const_cast< ::hbase::pb::NamespaceDescriptor*>(&::hbase::pb::NamespaceDescriptor::default_instance()); +} + +CreateNamespaceRequest::CreateNamespaceRequest(const CreateNamespaceRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CreateNamespaceRequest::SharedCtor() { + _cached_size_ = 0; + namespacedescriptor_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CreateNamespaceRequest::~CreateNamespaceRequest() { + SharedDtor(); +} + +void CreateNamespaceRequest::SharedDtor() { + if (this != default_instance_) { + delete namespacedescriptor_; + } +} + +void CreateNamespaceRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateNamespaceRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateNamespaceRequest_descriptor_; +} + +const CreateNamespaceRequest& CreateNamespaceRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +CreateNamespaceRequest* CreateNamespaceRequest::default_instance_ = NULL; + +CreateNamespaceRequest* CreateNamespaceRequest::New() const { + return new CreateNamespaceRequest; +} + +void CreateNamespaceRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespacedescriptor()) { + if (namespacedescriptor_ != NULL) namespacedescriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CreateNamespaceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_namespacedescriptor())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 2 [default = 0]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CreateNamespaceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->namespacedescriptor(), output); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->nonce_group(), output); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CreateNamespaceRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->namespacedescriptor(), target); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->nonce_group(), target); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CreateNamespaceRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->namespacedescriptor()); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CreateNamespaceRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CreateNamespaceRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CreateNamespaceRequest::MergeFrom(const CreateNamespaceRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespacedescriptor()) { + mutable_namespacedescriptor()->::hbase::pb::NamespaceDescriptor::MergeFrom(from.namespacedescriptor()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CreateNamespaceRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateNamespaceRequest::CopyFrom(const CreateNamespaceRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateNamespaceRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_namespacedescriptor()) { + if (!this->namespacedescriptor().IsInitialized()) return false; + } + return true; +} + +void CreateNamespaceRequest::Swap(CreateNamespaceRequest* other) { + if (other != this) { + std::swap(namespacedescriptor_, other->namespacedescriptor_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CreateNamespaceRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CreateNamespaceRequest_descriptor_; + metadata.reflection = CreateNamespaceRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CreateNamespaceResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +CreateNamespaceResponse::CreateNamespaceResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CreateNamespaceResponse::InitAsDefaultInstance() { +} + +CreateNamespaceResponse::CreateNamespaceResponse(const CreateNamespaceResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CreateNamespaceResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CreateNamespaceResponse::~CreateNamespaceResponse() { + SharedDtor(); +} + +void CreateNamespaceResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void CreateNamespaceResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateNamespaceResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateNamespaceResponse_descriptor_; +} + +const CreateNamespaceResponse& CreateNamespaceResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +CreateNamespaceResponse* CreateNamespaceResponse::default_instance_ = NULL; + +CreateNamespaceResponse* CreateNamespaceResponse::New() const { + return new CreateNamespaceResponse; +} + +void CreateNamespaceResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CreateNamespaceResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CreateNamespaceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CreateNamespaceResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CreateNamespaceResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CreateNamespaceResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CreateNamespaceResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CreateNamespaceResponse::MergeFrom(const CreateNamespaceResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CreateNamespaceResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateNamespaceResponse::CopyFrom(const CreateNamespaceResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateNamespaceResponse::IsInitialized() const { + + return true; +} + +void CreateNamespaceResponse::Swap(CreateNamespaceResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CreateNamespaceResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CreateNamespaceResponse_descriptor_; + metadata.reflection = CreateNamespaceResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteNamespaceRequest::kNamespaceNameFieldNumber; +const int DeleteNamespaceRequest::kNonceGroupFieldNumber; +const int DeleteNamespaceRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +DeleteNamespaceRequest::DeleteNamespaceRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteNamespaceRequest::InitAsDefaultInstance() { +} + +DeleteNamespaceRequest::DeleteNamespaceRequest(const DeleteNamespaceRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteNamespaceRequest::SharedCtor() { + _cached_size_ = 0; + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteNamespaceRequest::~DeleteNamespaceRequest() { + SharedDtor(); +} + +void DeleteNamespaceRequest::SharedDtor() { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + delete namespacename_; + } + if (this != default_instance_) { + } +} + +void DeleteNamespaceRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteNamespaceRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteNamespaceRequest_descriptor_; +} + +const DeleteNamespaceRequest& DeleteNamespaceRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DeleteNamespaceRequest* DeleteNamespaceRequest::default_instance_ = NULL; + +DeleteNamespaceRequest* DeleteNamespaceRequest::New() const { + return new DeleteNamespaceRequest; +} + +void DeleteNamespaceRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespacename()) { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + namespacename_->clear(); + } + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteNamespaceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string namespaceName = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespacename())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 2 [default = 0]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteNamespaceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string namespaceName = 1; + if (has_namespacename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->namespacename(), output); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->nonce_group(), output); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteNamespaceRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string namespaceName = 1; + if (has_namespacename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->namespacename(), target); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->nonce_group(), target); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteNamespaceRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string namespaceName = 1; + if (has_namespacename()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespacename()); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteNamespaceRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteNamespaceRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteNamespaceRequest::MergeFrom(const DeleteNamespaceRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespacename()) { + set_namespacename(from.namespacename()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteNamespaceRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteNamespaceRequest::CopyFrom(const DeleteNamespaceRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteNamespaceRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void DeleteNamespaceRequest::Swap(DeleteNamespaceRequest* other) { + if (other != this) { + std::swap(namespacename_, other->namespacename_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteNamespaceRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteNamespaceRequest_descriptor_; + metadata.reflection = DeleteNamespaceRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteNamespaceResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +DeleteNamespaceResponse::DeleteNamespaceResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteNamespaceResponse::InitAsDefaultInstance() { +} + +DeleteNamespaceResponse::DeleteNamespaceResponse(const DeleteNamespaceResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteNamespaceResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteNamespaceResponse::~DeleteNamespaceResponse() { + SharedDtor(); +} + +void DeleteNamespaceResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void DeleteNamespaceResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteNamespaceResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteNamespaceResponse_descriptor_; +} + +const DeleteNamespaceResponse& DeleteNamespaceResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DeleteNamespaceResponse* DeleteNamespaceResponse::default_instance_ = NULL; + +DeleteNamespaceResponse* DeleteNamespaceResponse::New() const { + return new DeleteNamespaceResponse; +} + +void DeleteNamespaceResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteNamespaceResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteNamespaceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteNamespaceResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteNamespaceResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteNamespaceResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteNamespaceResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteNamespaceResponse::MergeFrom(const DeleteNamespaceResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteNamespaceResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteNamespaceResponse::CopyFrom(const DeleteNamespaceResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteNamespaceResponse::IsInitialized() const { + + return true; +} + +void DeleteNamespaceResponse::Swap(DeleteNamespaceResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteNamespaceResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteNamespaceResponse_descriptor_; + metadata.reflection = DeleteNamespaceResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyNamespaceRequest::kNamespaceDescriptorFieldNumber; +const int ModifyNamespaceRequest::kNonceGroupFieldNumber; +const int ModifyNamespaceRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +ModifyNamespaceRequest::ModifyNamespaceRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyNamespaceRequest::InitAsDefaultInstance() { + namespacedescriptor_ = const_cast< ::hbase::pb::NamespaceDescriptor*>(&::hbase::pb::NamespaceDescriptor::default_instance()); +} + +ModifyNamespaceRequest::ModifyNamespaceRequest(const ModifyNamespaceRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyNamespaceRequest::SharedCtor() { + _cached_size_ = 0; + namespacedescriptor_ = NULL; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyNamespaceRequest::~ModifyNamespaceRequest() { + SharedDtor(); +} + +void ModifyNamespaceRequest::SharedDtor() { + if (this != default_instance_) { + delete namespacedescriptor_; + } +} + +void ModifyNamespaceRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyNamespaceRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyNamespaceRequest_descriptor_; +} + +const ModifyNamespaceRequest& ModifyNamespaceRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ModifyNamespaceRequest* ModifyNamespaceRequest::default_instance_ = NULL; + +ModifyNamespaceRequest* ModifyNamespaceRequest::New() const { + return new ModifyNamespaceRequest; +} + +void ModifyNamespaceRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespacedescriptor()) { + if (namespacedescriptor_ != NULL) namespacedescriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyNamespaceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_namespacedescriptor())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 2 [default = 0]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 3 [default = 0]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyNamespaceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->namespacedescriptor(), output); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->nonce_group(), output); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyNamespaceRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->namespacedescriptor(), target); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->nonce_group(), target); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyNamespaceRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->namespacedescriptor()); + } + + // optional uint64 nonce_group = 2 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 3 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyNamespaceRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyNamespaceRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyNamespaceRequest::MergeFrom(const ModifyNamespaceRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespacedescriptor()) { + mutable_namespacedescriptor()->::hbase::pb::NamespaceDescriptor::MergeFrom(from.namespacedescriptor()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyNamespaceRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyNamespaceRequest::CopyFrom(const ModifyNamespaceRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyNamespaceRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_namespacedescriptor()) { + if (!this->namespacedescriptor().IsInitialized()) return false; + } + return true; +} + +void ModifyNamespaceRequest::Swap(ModifyNamespaceRequest* other) { + if (other != this) { + std::swap(namespacedescriptor_, other->namespacedescriptor_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyNamespaceRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyNamespaceRequest_descriptor_; + metadata.reflection = ModifyNamespaceRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyNamespaceResponse::kProcIdFieldNumber; +#endif // !_MSC_VER + +ModifyNamespaceResponse::ModifyNamespaceResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyNamespaceResponse::InitAsDefaultInstance() { +} + +ModifyNamespaceResponse::ModifyNamespaceResponse(const ModifyNamespaceResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyNamespaceResponse::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyNamespaceResponse::~ModifyNamespaceResponse() { + SharedDtor(); +} + +void ModifyNamespaceResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ModifyNamespaceResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyNamespaceResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyNamespaceResponse_descriptor_; +} + +const ModifyNamespaceResponse& ModifyNamespaceResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ModifyNamespaceResponse* ModifyNamespaceResponse::default_instance_ = NULL; + +ModifyNamespaceResponse* ModifyNamespaceResponse::New() const { + return new ModifyNamespaceResponse; +} + +void ModifyNamespaceResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyNamespaceResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyNamespaceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyNamespaceResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyNamespaceResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyNamespaceResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyNamespaceResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyNamespaceResponse::MergeFrom(const ModifyNamespaceResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyNamespaceResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyNamespaceResponse::CopyFrom(const ModifyNamespaceResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyNamespaceResponse::IsInitialized() const { + + return true; +} + +void ModifyNamespaceResponse::Swap(ModifyNamespaceResponse* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyNamespaceResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyNamespaceResponse_descriptor_; + metadata.reflection = ModifyNamespaceResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetNamespaceDescriptorRequest::kNamespaceNameFieldNumber; +#endif // !_MSC_VER + +GetNamespaceDescriptorRequest::GetNamespaceDescriptorRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetNamespaceDescriptorRequest::InitAsDefaultInstance() { +} + +GetNamespaceDescriptorRequest::GetNamespaceDescriptorRequest(const GetNamespaceDescriptorRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetNamespaceDescriptorRequest::SharedCtor() { + _cached_size_ = 0; + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetNamespaceDescriptorRequest::~GetNamespaceDescriptorRequest() { + SharedDtor(); +} + +void GetNamespaceDescriptorRequest::SharedDtor() { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + delete namespacename_; + } + if (this != default_instance_) { + } +} + +void GetNamespaceDescriptorRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetNamespaceDescriptorRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetNamespaceDescriptorRequest_descriptor_; +} + +const GetNamespaceDescriptorRequest& GetNamespaceDescriptorRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetNamespaceDescriptorRequest* GetNamespaceDescriptorRequest::default_instance_ = NULL; + +GetNamespaceDescriptorRequest* GetNamespaceDescriptorRequest::New() const { + return new GetNamespaceDescriptorRequest; +} + +void GetNamespaceDescriptorRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespacename()) { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + namespacename_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetNamespaceDescriptorRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string namespaceName = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespacename())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetNamespaceDescriptorRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string namespaceName = 1; + if (has_namespacename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->namespacename(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetNamespaceDescriptorRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string namespaceName = 1; + if (has_namespacename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->namespacename(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetNamespaceDescriptorRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string namespaceName = 1; + if (has_namespacename()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespacename()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetNamespaceDescriptorRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetNamespaceDescriptorRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetNamespaceDescriptorRequest::MergeFrom(const GetNamespaceDescriptorRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespacename()) { + set_namespacename(from.namespacename()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetNamespaceDescriptorRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetNamespaceDescriptorRequest::CopyFrom(const GetNamespaceDescriptorRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetNamespaceDescriptorRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void GetNamespaceDescriptorRequest::Swap(GetNamespaceDescriptorRequest* other) { + if (other != this) { + std::swap(namespacename_, other->namespacename_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetNamespaceDescriptorRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetNamespaceDescriptorRequest_descriptor_; + metadata.reflection = GetNamespaceDescriptorRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetNamespaceDescriptorResponse::kNamespaceDescriptorFieldNumber; +#endif // !_MSC_VER + +GetNamespaceDescriptorResponse::GetNamespaceDescriptorResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetNamespaceDescriptorResponse::InitAsDefaultInstance() { + namespacedescriptor_ = const_cast< ::hbase::pb::NamespaceDescriptor*>(&::hbase::pb::NamespaceDescriptor::default_instance()); +} + +GetNamespaceDescriptorResponse::GetNamespaceDescriptorResponse(const GetNamespaceDescriptorResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetNamespaceDescriptorResponse::SharedCtor() { + _cached_size_ = 0; + namespacedescriptor_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetNamespaceDescriptorResponse::~GetNamespaceDescriptorResponse() { + SharedDtor(); +} + +void GetNamespaceDescriptorResponse::SharedDtor() { + if (this != default_instance_) { + delete namespacedescriptor_; + } +} + +void GetNamespaceDescriptorResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetNamespaceDescriptorResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetNamespaceDescriptorResponse_descriptor_; +} + +const GetNamespaceDescriptorResponse& GetNamespaceDescriptorResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetNamespaceDescriptorResponse* GetNamespaceDescriptorResponse::default_instance_ = NULL; + +GetNamespaceDescriptorResponse* GetNamespaceDescriptorResponse::New() const { + return new GetNamespaceDescriptorResponse; +} + +void GetNamespaceDescriptorResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespacedescriptor()) { + if (namespacedescriptor_ != NULL) namespacedescriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetNamespaceDescriptorResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_namespacedescriptor())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetNamespaceDescriptorResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->namespacedescriptor(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetNamespaceDescriptorResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->namespacedescriptor(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetNamespaceDescriptorResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + if (has_namespacedescriptor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->namespacedescriptor()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetNamespaceDescriptorResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetNamespaceDescriptorResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetNamespaceDescriptorResponse::MergeFrom(const GetNamespaceDescriptorResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespacedescriptor()) { + mutable_namespacedescriptor()->::hbase::pb::NamespaceDescriptor::MergeFrom(from.namespacedescriptor()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetNamespaceDescriptorResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetNamespaceDescriptorResponse::CopyFrom(const GetNamespaceDescriptorResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetNamespaceDescriptorResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_namespacedescriptor()) { + if (!this->namespacedescriptor().IsInitialized()) return false; + } + return true; +} + +void GetNamespaceDescriptorResponse::Swap(GetNamespaceDescriptorResponse* other) { + if (other != this) { + std::swap(namespacedescriptor_, other->namespacedescriptor_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetNamespaceDescriptorResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetNamespaceDescriptorResponse_descriptor_; + metadata.reflection = GetNamespaceDescriptorResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ListNamespaceDescriptorsRequest::ListNamespaceDescriptorsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListNamespaceDescriptorsRequest::InitAsDefaultInstance() { +} + +ListNamespaceDescriptorsRequest::ListNamespaceDescriptorsRequest(const ListNamespaceDescriptorsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListNamespaceDescriptorsRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListNamespaceDescriptorsRequest::~ListNamespaceDescriptorsRequest() { + SharedDtor(); +} + +void ListNamespaceDescriptorsRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListNamespaceDescriptorsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListNamespaceDescriptorsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListNamespaceDescriptorsRequest_descriptor_; +} + +const ListNamespaceDescriptorsRequest& ListNamespaceDescriptorsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ListNamespaceDescriptorsRequest* ListNamespaceDescriptorsRequest::default_instance_ = NULL; + +ListNamespaceDescriptorsRequest* ListNamespaceDescriptorsRequest::New() const { + return new ListNamespaceDescriptorsRequest; +} + +void ListNamespaceDescriptorsRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListNamespaceDescriptorsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ListNamespaceDescriptorsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListNamespaceDescriptorsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListNamespaceDescriptorsRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListNamespaceDescriptorsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListNamespaceDescriptorsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListNamespaceDescriptorsRequest::MergeFrom(const ListNamespaceDescriptorsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListNamespaceDescriptorsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListNamespaceDescriptorsRequest::CopyFrom(const ListNamespaceDescriptorsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListNamespaceDescriptorsRequest::IsInitialized() const { + + return true; +} + +void ListNamespaceDescriptorsRequest::Swap(ListNamespaceDescriptorsRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListNamespaceDescriptorsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListNamespaceDescriptorsRequest_descriptor_; + metadata.reflection = ListNamespaceDescriptorsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListNamespaceDescriptorsResponse::kNamespaceDescriptorFieldNumber; +#endif // !_MSC_VER + +ListNamespaceDescriptorsResponse::ListNamespaceDescriptorsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListNamespaceDescriptorsResponse::InitAsDefaultInstance() { +} + +ListNamespaceDescriptorsResponse::ListNamespaceDescriptorsResponse(const ListNamespaceDescriptorsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListNamespaceDescriptorsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListNamespaceDescriptorsResponse::~ListNamespaceDescriptorsResponse() { + SharedDtor(); +} + +void ListNamespaceDescriptorsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListNamespaceDescriptorsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListNamespaceDescriptorsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListNamespaceDescriptorsResponse_descriptor_; +} + +const ListNamespaceDescriptorsResponse& ListNamespaceDescriptorsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ListNamespaceDescriptorsResponse* ListNamespaceDescriptorsResponse::default_instance_ = NULL; + +ListNamespaceDescriptorsResponse* ListNamespaceDescriptorsResponse::New() const { + return new ListNamespaceDescriptorsResponse; +} + +void ListNamespaceDescriptorsResponse::Clear() { + namespacedescriptor_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListNamespaceDescriptorsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_namespaceDescriptor: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_namespacedescriptor())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_namespaceDescriptor; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListNamespaceDescriptorsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + for (int i = 0; i < this->namespacedescriptor_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->namespacedescriptor(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListNamespaceDescriptorsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + for (int i = 0; i < this->namespacedescriptor_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->namespacedescriptor(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListNamespaceDescriptorsResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + total_size += 1 * this->namespacedescriptor_size(); + for (int i = 0; i < this->namespacedescriptor_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->namespacedescriptor(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListNamespaceDescriptorsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListNamespaceDescriptorsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListNamespaceDescriptorsResponse::MergeFrom(const ListNamespaceDescriptorsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + namespacedescriptor_.MergeFrom(from.namespacedescriptor_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListNamespaceDescriptorsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListNamespaceDescriptorsResponse::CopyFrom(const ListNamespaceDescriptorsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListNamespaceDescriptorsResponse::IsInitialized() const { + + for (int i = 0; i < namespacedescriptor_size(); i++) { + if (!this->namespacedescriptor(i).IsInitialized()) return false; + } + return true; +} + +void ListNamespaceDescriptorsResponse::Swap(ListNamespaceDescriptorsResponse* other) { + if (other != this) { + namespacedescriptor_.Swap(&other->namespacedescriptor_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListNamespaceDescriptorsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListNamespaceDescriptorsResponse_descriptor_; + metadata.reflection = ListNamespaceDescriptorsResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListTableDescriptorsByNamespaceRequest::kNamespaceNameFieldNumber; +#endif // !_MSC_VER + +ListTableDescriptorsByNamespaceRequest::ListTableDescriptorsByNamespaceRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListTableDescriptorsByNamespaceRequest::InitAsDefaultInstance() { +} + +ListTableDescriptorsByNamespaceRequest::ListTableDescriptorsByNamespaceRequest(const ListTableDescriptorsByNamespaceRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListTableDescriptorsByNamespaceRequest::SharedCtor() { + _cached_size_ = 0; + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListTableDescriptorsByNamespaceRequest::~ListTableDescriptorsByNamespaceRequest() { + SharedDtor(); +} + +void ListTableDescriptorsByNamespaceRequest::SharedDtor() { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + delete namespacename_; + } + if (this != default_instance_) { + } +} + +void ListTableDescriptorsByNamespaceRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListTableDescriptorsByNamespaceRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListTableDescriptorsByNamespaceRequest_descriptor_; +} + +const ListTableDescriptorsByNamespaceRequest& ListTableDescriptorsByNamespaceRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ListTableDescriptorsByNamespaceRequest* ListTableDescriptorsByNamespaceRequest::default_instance_ = NULL; + +ListTableDescriptorsByNamespaceRequest* ListTableDescriptorsByNamespaceRequest::New() const { + return new ListTableDescriptorsByNamespaceRequest; +} + +void ListTableDescriptorsByNamespaceRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespacename()) { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + namespacename_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListTableDescriptorsByNamespaceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string namespaceName = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespacename())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListTableDescriptorsByNamespaceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string namespaceName = 1; + if (has_namespacename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->namespacename(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListTableDescriptorsByNamespaceRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string namespaceName = 1; + if (has_namespacename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->namespacename(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListTableDescriptorsByNamespaceRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string namespaceName = 1; + if (has_namespacename()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespacename()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListTableDescriptorsByNamespaceRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListTableDescriptorsByNamespaceRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListTableDescriptorsByNamespaceRequest::MergeFrom(const ListTableDescriptorsByNamespaceRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespacename()) { + set_namespacename(from.namespacename()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListTableDescriptorsByNamespaceRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListTableDescriptorsByNamespaceRequest::CopyFrom(const ListTableDescriptorsByNamespaceRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListTableDescriptorsByNamespaceRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ListTableDescriptorsByNamespaceRequest::Swap(ListTableDescriptorsByNamespaceRequest* other) { + if (other != this) { + std::swap(namespacename_, other->namespacename_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListTableDescriptorsByNamespaceRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListTableDescriptorsByNamespaceRequest_descriptor_; + metadata.reflection = ListTableDescriptorsByNamespaceRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListTableDescriptorsByNamespaceResponse::kTableSchemaFieldNumber; +#endif // !_MSC_VER + +ListTableDescriptorsByNamespaceResponse::ListTableDescriptorsByNamespaceResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListTableDescriptorsByNamespaceResponse::InitAsDefaultInstance() { +} + +ListTableDescriptorsByNamespaceResponse::ListTableDescriptorsByNamespaceResponse(const ListTableDescriptorsByNamespaceResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListTableDescriptorsByNamespaceResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListTableDescriptorsByNamespaceResponse::~ListTableDescriptorsByNamespaceResponse() { + SharedDtor(); +} + +void ListTableDescriptorsByNamespaceResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListTableDescriptorsByNamespaceResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListTableDescriptorsByNamespaceResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListTableDescriptorsByNamespaceResponse_descriptor_; +} + +const ListTableDescriptorsByNamespaceResponse& ListTableDescriptorsByNamespaceResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ListTableDescriptorsByNamespaceResponse* ListTableDescriptorsByNamespaceResponse::default_instance_ = NULL; + +ListTableDescriptorsByNamespaceResponse* ListTableDescriptorsByNamespaceResponse::New() const { + return new ListTableDescriptorsByNamespaceResponse; +} + +void ListTableDescriptorsByNamespaceResponse::Clear() { + tableschema_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListTableDescriptorsByNamespaceResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.TableSchema tableSchema = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_tableSchema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_tableschema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_tableSchema; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListTableDescriptorsByNamespaceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.TableSchema tableSchema = 1; + for (int i = 0; i < this->tableschema_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->tableschema(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListTableDescriptorsByNamespaceResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.TableSchema tableSchema = 1; + for (int i = 0; i < this->tableschema_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->tableschema(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListTableDescriptorsByNamespaceResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.TableSchema tableSchema = 1; + total_size += 1 * this->tableschema_size(); + for (int i = 0; i < this->tableschema_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->tableschema(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListTableDescriptorsByNamespaceResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListTableDescriptorsByNamespaceResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListTableDescriptorsByNamespaceResponse::MergeFrom(const ListTableDescriptorsByNamespaceResponse& from) { + GOOGLE_CHECK_NE(&from, this); + tableschema_.MergeFrom(from.tableschema_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListTableDescriptorsByNamespaceResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListTableDescriptorsByNamespaceResponse::CopyFrom(const ListTableDescriptorsByNamespaceResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListTableDescriptorsByNamespaceResponse::IsInitialized() const { + + for (int i = 0; i < tableschema_size(); i++) { + if (!this->tableschema(i).IsInitialized()) return false; + } + return true; +} + +void ListTableDescriptorsByNamespaceResponse::Swap(ListTableDescriptorsByNamespaceResponse* other) { + if (other != this) { + tableschema_.Swap(&other->tableschema_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListTableDescriptorsByNamespaceResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListTableDescriptorsByNamespaceResponse_descriptor_; + metadata.reflection = ListTableDescriptorsByNamespaceResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListTableNamesByNamespaceRequest::kNamespaceNameFieldNumber; +#endif // !_MSC_VER + +ListTableNamesByNamespaceRequest::ListTableNamesByNamespaceRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListTableNamesByNamespaceRequest::InitAsDefaultInstance() { +} + +ListTableNamesByNamespaceRequest::ListTableNamesByNamespaceRequest(const ListTableNamesByNamespaceRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListTableNamesByNamespaceRequest::SharedCtor() { + _cached_size_ = 0; + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListTableNamesByNamespaceRequest::~ListTableNamesByNamespaceRequest() { + SharedDtor(); +} + +void ListTableNamesByNamespaceRequest::SharedDtor() { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + delete namespacename_; + } + if (this != default_instance_) { + } +} + +void ListTableNamesByNamespaceRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListTableNamesByNamespaceRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListTableNamesByNamespaceRequest_descriptor_; +} + +const ListTableNamesByNamespaceRequest& ListTableNamesByNamespaceRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ListTableNamesByNamespaceRequest* ListTableNamesByNamespaceRequest::default_instance_ = NULL; + +ListTableNamesByNamespaceRequest* ListTableNamesByNamespaceRequest::New() const { + return new ListTableNamesByNamespaceRequest; +} + +void ListTableNamesByNamespaceRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespacename()) { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + namespacename_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListTableNamesByNamespaceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string namespaceName = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespacename())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListTableNamesByNamespaceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string namespaceName = 1; + if (has_namespacename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->namespacename(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListTableNamesByNamespaceRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string namespaceName = 1; + if (has_namespacename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespacename().data(), this->namespacename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->namespacename(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListTableNamesByNamespaceRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string namespaceName = 1; + if (has_namespacename()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespacename()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListTableNamesByNamespaceRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListTableNamesByNamespaceRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListTableNamesByNamespaceRequest::MergeFrom(const ListTableNamesByNamespaceRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespacename()) { + set_namespacename(from.namespacename()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListTableNamesByNamespaceRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListTableNamesByNamespaceRequest::CopyFrom(const ListTableNamesByNamespaceRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListTableNamesByNamespaceRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ListTableNamesByNamespaceRequest::Swap(ListTableNamesByNamespaceRequest* other) { + if (other != this) { + std::swap(namespacename_, other->namespacename_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListTableNamesByNamespaceRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListTableNamesByNamespaceRequest_descriptor_; + metadata.reflection = ListTableNamesByNamespaceRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListTableNamesByNamespaceResponse::kTableNameFieldNumber; +#endif // !_MSC_VER + +ListTableNamesByNamespaceResponse::ListTableNamesByNamespaceResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListTableNamesByNamespaceResponse::InitAsDefaultInstance() { +} + +ListTableNamesByNamespaceResponse::ListTableNamesByNamespaceResponse(const ListTableNamesByNamespaceResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListTableNamesByNamespaceResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListTableNamesByNamespaceResponse::~ListTableNamesByNamespaceResponse() { + SharedDtor(); +} + +void ListTableNamesByNamespaceResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListTableNamesByNamespaceResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListTableNamesByNamespaceResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListTableNamesByNamespaceResponse_descriptor_; +} + +const ListTableNamesByNamespaceResponse& ListTableNamesByNamespaceResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ListTableNamesByNamespaceResponse* ListTableNamesByNamespaceResponse::default_instance_ = NULL; + +ListTableNamesByNamespaceResponse* ListTableNamesByNamespaceResponse::New() const { + return new ListTableNamesByNamespaceResponse; +} + +void ListTableNamesByNamespaceResponse::Clear() { + tablename_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListTableNamesByNamespaceResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.TableName tableName = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_tableName: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_tablename())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_tableName; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListTableNamesByNamespaceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.TableName tableName = 1; + for (int i = 0; i < this->tablename_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->tablename(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListTableNamesByNamespaceResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.TableName tableName = 1; + for (int i = 0; i < this->tablename_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->tablename(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListTableNamesByNamespaceResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.TableName tableName = 1; + total_size += 1 * this->tablename_size(); + for (int i = 0; i < this->tablename_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->tablename(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListTableNamesByNamespaceResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListTableNamesByNamespaceResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListTableNamesByNamespaceResponse::MergeFrom(const ListTableNamesByNamespaceResponse& from) { + GOOGLE_CHECK_NE(&from, this); + tablename_.MergeFrom(from.tablename_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListTableNamesByNamespaceResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListTableNamesByNamespaceResponse::CopyFrom(const ListTableNamesByNamespaceResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListTableNamesByNamespaceResponse::IsInitialized() const { + + for (int i = 0; i < tablename_size(); i++) { + if (!this->tablename(i).IsInitialized()) return false; + } + return true; +} + +void ListTableNamesByNamespaceResponse::Swap(ListTableNamesByNamespaceResponse* other) { + if (other != this) { + tablename_.Swap(&other->tablename_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListTableNamesByNamespaceResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListTableNamesByNamespaceResponse_descriptor_; + metadata.reflection = ListTableNamesByNamespaceResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ShutdownRequest::ShutdownRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ShutdownRequest::InitAsDefaultInstance() { +} + +ShutdownRequest::ShutdownRequest(const ShutdownRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ShutdownRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ShutdownRequest::~ShutdownRequest() { + SharedDtor(); +} + +void ShutdownRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void ShutdownRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ShutdownRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ShutdownRequest_descriptor_; +} + +const ShutdownRequest& ShutdownRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ShutdownRequest* ShutdownRequest::default_instance_ = NULL; + +ShutdownRequest* ShutdownRequest::New() const { + return new ShutdownRequest; +} + +void ShutdownRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ShutdownRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ShutdownRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ShutdownRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ShutdownRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ShutdownRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ShutdownRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ShutdownRequest::MergeFrom(const ShutdownRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ShutdownRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShutdownRequest::CopyFrom(const ShutdownRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShutdownRequest::IsInitialized() const { + + return true; +} + +void ShutdownRequest::Swap(ShutdownRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ShutdownRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ShutdownRequest_descriptor_; + metadata.reflection = ShutdownRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ShutdownResponse::ShutdownResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ShutdownResponse::InitAsDefaultInstance() { +} + +ShutdownResponse::ShutdownResponse(const ShutdownResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ShutdownResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ShutdownResponse::~ShutdownResponse() { + SharedDtor(); +} + +void ShutdownResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ShutdownResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ShutdownResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ShutdownResponse_descriptor_; +} + +const ShutdownResponse& ShutdownResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ShutdownResponse* ShutdownResponse::default_instance_ = NULL; + +ShutdownResponse* ShutdownResponse::New() const { + return new ShutdownResponse; +} + +void ShutdownResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ShutdownResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ShutdownResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ShutdownResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ShutdownResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ShutdownResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ShutdownResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ShutdownResponse::MergeFrom(const ShutdownResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ShutdownResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShutdownResponse::IsInitialized() const { + + return true; +} + +void ShutdownResponse::Swap(ShutdownResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ShutdownResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ShutdownResponse_descriptor_; + metadata.reflection = ShutdownResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +StopMasterRequest::StopMasterRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StopMasterRequest::InitAsDefaultInstance() { +} + +StopMasterRequest::StopMasterRequest(const StopMasterRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StopMasterRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StopMasterRequest::~StopMasterRequest() { + SharedDtor(); +} + +void StopMasterRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void StopMasterRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StopMasterRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StopMasterRequest_descriptor_; +} + +const StopMasterRequest& StopMasterRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +StopMasterRequest* StopMasterRequest::default_instance_ = NULL; + +StopMasterRequest* StopMasterRequest::New() const { + return new StopMasterRequest; +} + +void StopMasterRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StopMasterRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void StopMasterRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StopMasterRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StopMasterRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StopMasterRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StopMasterRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StopMasterRequest::MergeFrom(const StopMasterRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StopMasterRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StopMasterRequest::CopyFrom(const StopMasterRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopMasterRequest::IsInitialized() const { + + return true; +} + +void StopMasterRequest::Swap(StopMasterRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StopMasterRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StopMasterRequest_descriptor_; + metadata.reflection = StopMasterRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +StopMasterResponse::StopMasterResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StopMasterResponse::InitAsDefaultInstance() { +} + +StopMasterResponse::StopMasterResponse(const StopMasterResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StopMasterResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StopMasterResponse::~StopMasterResponse() { + SharedDtor(); +} + +void StopMasterResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void StopMasterResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StopMasterResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StopMasterResponse_descriptor_; +} + +const StopMasterResponse& StopMasterResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +StopMasterResponse* StopMasterResponse::default_instance_ = NULL; + +StopMasterResponse* StopMasterResponse::New() const { + return new StopMasterResponse; +} + +void StopMasterResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StopMasterResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void StopMasterResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StopMasterResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StopMasterResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StopMasterResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StopMasterResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StopMasterResponse::MergeFrom(const StopMasterResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StopMasterResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StopMasterResponse::CopyFrom(const StopMasterResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StopMasterResponse::IsInitialized() const { + + return true; +} + +void StopMasterResponse::Swap(StopMasterResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StopMasterResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StopMasterResponse_descriptor_; + metadata.reflection = StopMasterResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BalanceRequest::kForceFieldNumber; +#endif // !_MSC_VER + +BalanceRequest::BalanceRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BalanceRequest::InitAsDefaultInstance() { +} + +BalanceRequest::BalanceRequest(const BalanceRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BalanceRequest::SharedCtor() { + _cached_size_ = 0; + force_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BalanceRequest::~BalanceRequest() { + SharedDtor(); +} + +void BalanceRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void BalanceRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BalanceRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BalanceRequest_descriptor_; +} + +const BalanceRequest& BalanceRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +BalanceRequest* BalanceRequest::default_instance_ = NULL; + +BalanceRequest* BalanceRequest::New() const { + return new BalanceRequest; +} + +void BalanceRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + force_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BalanceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool force = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &force_))); + set_has_force(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BalanceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool force = 1; + if (has_force()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->force(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BalanceRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool force = 1; + if (has_force()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->force(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BalanceRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool force = 1; + if (has_force()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BalanceRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BalanceRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BalanceRequest::MergeFrom(const BalanceRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_force()) { + set_force(from.force()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BalanceRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BalanceRequest::CopyFrom(const BalanceRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BalanceRequest::IsInitialized() const { + + return true; +} + +void BalanceRequest::Swap(BalanceRequest* other) { + if (other != this) { + std::swap(force_, other->force_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BalanceRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BalanceRequest_descriptor_; + metadata.reflection = BalanceRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BalanceResponse::kBalancerRanFieldNumber; +#endif // !_MSC_VER + +BalanceResponse::BalanceResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BalanceResponse::InitAsDefaultInstance() { +} + +BalanceResponse::BalanceResponse(const BalanceResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BalanceResponse::SharedCtor() { + _cached_size_ = 0; + balancer_ran_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BalanceResponse::~BalanceResponse() { + SharedDtor(); +} + +void BalanceResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void BalanceResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BalanceResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BalanceResponse_descriptor_; +} + +const BalanceResponse& BalanceResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +BalanceResponse* BalanceResponse::default_instance_ = NULL; + +BalanceResponse* BalanceResponse::New() const { + return new BalanceResponse; +} + +void BalanceResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + balancer_ran_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BalanceResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool balancer_ran = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &balancer_ran_))); + set_has_balancer_ran(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BalanceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool balancer_ran = 1; + if (has_balancer_ran()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->balancer_ran(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BalanceResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool balancer_ran = 1; + if (has_balancer_ran()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->balancer_ran(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BalanceResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool balancer_ran = 1; + if (has_balancer_ran()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BalanceResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BalanceResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BalanceResponse::MergeFrom(const BalanceResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_balancer_ran()) { + set_balancer_ran(from.balancer_ran()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BalanceResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BalanceResponse::CopyFrom(const BalanceResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BalanceResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void BalanceResponse::Swap(BalanceResponse* other) { + if (other != this) { + std::swap(balancer_ran_, other->balancer_ran_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BalanceResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BalanceResponse_descriptor_; + metadata.reflection = BalanceResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SetBalancerRunningRequest::kOnFieldNumber; +const int SetBalancerRunningRequest::kSynchronousFieldNumber; +#endif // !_MSC_VER + +SetBalancerRunningRequest::SetBalancerRunningRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetBalancerRunningRequest::InitAsDefaultInstance() { +} + +SetBalancerRunningRequest::SetBalancerRunningRequest(const SetBalancerRunningRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetBalancerRunningRequest::SharedCtor() { + _cached_size_ = 0; + on_ = false; + synchronous_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetBalancerRunningRequest::~SetBalancerRunningRequest() { + SharedDtor(); +} + +void SetBalancerRunningRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void SetBalancerRunningRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetBalancerRunningRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetBalancerRunningRequest_descriptor_; +} + +const SetBalancerRunningRequest& SetBalancerRunningRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SetBalancerRunningRequest* SetBalancerRunningRequest::default_instance_ = NULL; + +SetBalancerRunningRequest* SetBalancerRunningRequest::New() const { + return new SetBalancerRunningRequest; +} + +void SetBalancerRunningRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + on_ = false; + synchronous_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetBalancerRunningRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool on = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &on_))); + set_has_on(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_synchronous; + break; + } + + // optional bool synchronous = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_synchronous: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &synchronous_))); + set_has_synchronous(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SetBalancerRunningRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool on = 1; + if (has_on()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->on(), output); + } + + // optional bool synchronous = 2; + if (has_synchronous()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->synchronous(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetBalancerRunningRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool on = 1; + if (has_on()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->on(), target); + } + + // optional bool synchronous = 2; + if (has_synchronous()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->synchronous(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetBalancerRunningRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool on = 1; + if (has_on()) { + total_size += 1 + 1; + } + + // optional bool synchronous = 2; + if (has_synchronous()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetBalancerRunningRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetBalancerRunningRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetBalancerRunningRequest::MergeFrom(const SetBalancerRunningRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_on()) { + set_on(from.on()); + } + if (from.has_synchronous()) { + set_synchronous(from.synchronous()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetBalancerRunningRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetBalancerRunningRequest::CopyFrom(const SetBalancerRunningRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetBalancerRunningRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SetBalancerRunningRequest::Swap(SetBalancerRunningRequest* other) { + if (other != this) { + std::swap(on_, other->on_); + std::swap(synchronous_, other->synchronous_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetBalancerRunningRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetBalancerRunningRequest_descriptor_; + metadata.reflection = SetBalancerRunningRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SetBalancerRunningResponse::kPrevBalanceValueFieldNumber; +#endif // !_MSC_VER + +SetBalancerRunningResponse::SetBalancerRunningResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetBalancerRunningResponse::InitAsDefaultInstance() { +} + +SetBalancerRunningResponse::SetBalancerRunningResponse(const SetBalancerRunningResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetBalancerRunningResponse::SharedCtor() { + _cached_size_ = 0; + prev_balance_value_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetBalancerRunningResponse::~SetBalancerRunningResponse() { + SharedDtor(); +} + +void SetBalancerRunningResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SetBalancerRunningResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetBalancerRunningResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetBalancerRunningResponse_descriptor_; +} + +const SetBalancerRunningResponse& SetBalancerRunningResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SetBalancerRunningResponse* SetBalancerRunningResponse::default_instance_ = NULL; + +SetBalancerRunningResponse* SetBalancerRunningResponse::New() const { + return new SetBalancerRunningResponse; +} + +void SetBalancerRunningResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + prev_balance_value_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetBalancerRunningResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool prev_balance_value = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &prev_balance_value_))); + set_has_prev_balance_value(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SetBalancerRunningResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool prev_balance_value = 1; + if (has_prev_balance_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->prev_balance_value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetBalancerRunningResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool prev_balance_value = 1; + if (has_prev_balance_value()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->prev_balance_value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetBalancerRunningResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool prev_balance_value = 1; + if (has_prev_balance_value()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetBalancerRunningResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetBalancerRunningResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetBalancerRunningResponse::MergeFrom(const SetBalancerRunningResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_prev_balance_value()) { + set_prev_balance_value(from.prev_balance_value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetBalancerRunningResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetBalancerRunningResponse::CopyFrom(const SetBalancerRunningResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetBalancerRunningResponse::IsInitialized() const { + + return true; +} + +void SetBalancerRunningResponse::Swap(SetBalancerRunningResponse* other) { + if (other != this) { + std::swap(prev_balance_value_, other->prev_balance_value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetBalancerRunningResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetBalancerRunningResponse_descriptor_; + metadata.reflection = SetBalancerRunningResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +IsBalancerEnabledRequest::IsBalancerEnabledRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsBalancerEnabledRequest::InitAsDefaultInstance() { +} + +IsBalancerEnabledRequest::IsBalancerEnabledRequest(const IsBalancerEnabledRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsBalancerEnabledRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsBalancerEnabledRequest::~IsBalancerEnabledRequest() { + SharedDtor(); +} + +void IsBalancerEnabledRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsBalancerEnabledRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsBalancerEnabledRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsBalancerEnabledRequest_descriptor_; +} + +const IsBalancerEnabledRequest& IsBalancerEnabledRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsBalancerEnabledRequest* IsBalancerEnabledRequest::default_instance_ = NULL; + +IsBalancerEnabledRequest* IsBalancerEnabledRequest::New() const { + return new IsBalancerEnabledRequest; +} + +void IsBalancerEnabledRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsBalancerEnabledRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void IsBalancerEnabledRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsBalancerEnabledRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsBalancerEnabledRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsBalancerEnabledRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsBalancerEnabledRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsBalancerEnabledRequest::MergeFrom(const IsBalancerEnabledRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsBalancerEnabledRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsBalancerEnabledRequest::CopyFrom(const IsBalancerEnabledRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsBalancerEnabledRequest::IsInitialized() const { + + return true; +} + +void IsBalancerEnabledRequest::Swap(IsBalancerEnabledRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsBalancerEnabledRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsBalancerEnabledRequest_descriptor_; + metadata.reflection = IsBalancerEnabledRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsBalancerEnabledResponse::kEnabledFieldNumber; +#endif // !_MSC_VER + +IsBalancerEnabledResponse::IsBalancerEnabledResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsBalancerEnabledResponse::InitAsDefaultInstance() { +} + +IsBalancerEnabledResponse::IsBalancerEnabledResponse(const IsBalancerEnabledResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsBalancerEnabledResponse::SharedCtor() { + _cached_size_ = 0; + enabled_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsBalancerEnabledResponse::~IsBalancerEnabledResponse() { + SharedDtor(); +} + +void IsBalancerEnabledResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsBalancerEnabledResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsBalancerEnabledResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsBalancerEnabledResponse_descriptor_; +} + +const IsBalancerEnabledResponse& IsBalancerEnabledResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsBalancerEnabledResponse* IsBalancerEnabledResponse::default_instance_ = NULL; + +IsBalancerEnabledResponse* IsBalancerEnabledResponse::New() const { + return new IsBalancerEnabledResponse; +} + +void IsBalancerEnabledResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + enabled_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsBalancerEnabledResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool enabled = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enabled_))); + set_has_enabled(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsBalancerEnabledResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool enabled = 1; + if (has_enabled()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enabled(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsBalancerEnabledResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool enabled = 1; + if (has_enabled()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enabled(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsBalancerEnabledResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool enabled = 1; + if (has_enabled()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsBalancerEnabledResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsBalancerEnabledResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsBalancerEnabledResponse::MergeFrom(const IsBalancerEnabledResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_enabled()) { + set_enabled(from.enabled()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsBalancerEnabledResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsBalancerEnabledResponse::CopyFrom(const IsBalancerEnabledResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsBalancerEnabledResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void IsBalancerEnabledResponse::Swap(IsBalancerEnabledResponse* other) { + if (other != this) { + std::swap(enabled_, other->enabled_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsBalancerEnabledResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsBalancerEnabledResponse_descriptor_; + metadata.reflection = IsBalancerEnabledResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SetSplitOrMergeEnabledRequest::kEnabledFieldNumber; +const int SetSplitOrMergeEnabledRequest::kSynchronousFieldNumber; +const int SetSplitOrMergeEnabledRequest::kSwitchTypesFieldNumber; +#endif // !_MSC_VER + +SetSplitOrMergeEnabledRequest::SetSplitOrMergeEnabledRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetSplitOrMergeEnabledRequest::InitAsDefaultInstance() { +} + +SetSplitOrMergeEnabledRequest::SetSplitOrMergeEnabledRequest(const SetSplitOrMergeEnabledRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetSplitOrMergeEnabledRequest::SharedCtor() { + _cached_size_ = 0; + enabled_ = false; + synchronous_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetSplitOrMergeEnabledRequest::~SetSplitOrMergeEnabledRequest() { + SharedDtor(); +} + +void SetSplitOrMergeEnabledRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void SetSplitOrMergeEnabledRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetSplitOrMergeEnabledRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetSplitOrMergeEnabledRequest_descriptor_; +} + +const SetSplitOrMergeEnabledRequest& SetSplitOrMergeEnabledRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SetSplitOrMergeEnabledRequest* SetSplitOrMergeEnabledRequest::default_instance_ = NULL; + +SetSplitOrMergeEnabledRequest* SetSplitOrMergeEnabledRequest::New() const { + return new SetSplitOrMergeEnabledRequest; +} + +void SetSplitOrMergeEnabledRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + enabled_ = false; + synchronous_ = false; + } + switch_types_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetSplitOrMergeEnabledRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool enabled = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enabled_))); + set_has_enabled(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_synchronous; + break; + } + + // optional bool synchronous = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_synchronous: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &synchronous_))); + set_has_synchronous(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_switch_types; + break; + } + + // repeated .hbase.pb.MasterSwitchType switch_types = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_switch_types: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::MasterSwitchType_IsValid(value)) { + add_switch_types(static_cast< ::hbase::pb::MasterSwitchType >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( + input, + &::hbase::pb::MasterSwitchType_IsValid, + this->mutable_switch_types()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_switch_types; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SetSplitOrMergeEnabledRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool enabled = 1; + if (has_enabled()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enabled(), output); + } + + // optional bool synchronous = 2; + if (has_synchronous()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->synchronous(), output); + } + + // repeated .hbase.pb.MasterSwitchType switch_types = 3; + for (int i = 0; i < this->switch_types_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->switch_types(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetSplitOrMergeEnabledRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool enabled = 1; + if (has_enabled()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enabled(), target); + } + + // optional bool synchronous = 2; + if (has_synchronous()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->synchronous(), target); + } + + // repeated .hbase.pb.MasterSwitchType switch_types = 3; + for (int i = 0; i < this->switch_types_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->switch_types(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetSplitOrMergeEnabledRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool enabled = 1; + if (has_enabled()) { + total_size += 1 + 1; + } + + // optional bool synchronous = 2; + if (has_synchronous()) { + total_size += 1 + 1; + } + + } + // repeated .hbase.pb.MasterSwitchType switch_types = 3; + { + int data_size = 0; + for (int i = 0; i < this->switch_types_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->switch_types(i)); + } + total_size += 1 * this->switch_types_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetSplitOrMergeEnabledRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetSplitOrMergeEnabledRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetSplitOrMergeEnabledRequest::MergeFrom(const SetSplitOrMergeEnabledRequest& from) { + GOOGLE_CHECK_NE(&from, this); + switch_types_.MergeFrom(from.switch_types_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_enabled()) { + set_enabled(from.enabled()); + } + if (from.has_synchronous()) { + set_synchronous(from.synchronous()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetSplitOrMergeEnabledRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetSplitOrMergeEnabledRequest::CopyFrom(const SetSplitOrMergeEnabledRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetSplitOrMergeEnabledRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SetSplitOrMergeEnabledRequest::Swap(SetSplitOrMergeEnabledRequest* other) { + if (other != this) { + std::swap(enabled_, other->enabled_); + std::swap(synchronous_, other->synchronous_); + switch_types_.Swap(&other->switch_types_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetSplitOrMergeEnabledRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetSplitOrMergeEnabledRequest_descriptor_; + metadata.reflection = SetSplitOrMergeEnabledRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SetSplitOrMergeEnabledResponse::kPrevValueFieldNumber; +#endif // !_MSC_VER + +SetSplitOrMergeEnabledResponse::SetSplitOrMergeEnabledResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetSplitOrMergeEnabledResponse::InitAsDefaultInstance() { +} + +SetSplitOrMergeEnabledResponse::SetSplitOrMergeEnabledResponse(const SetSplitOrMergeEnabledResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetSplitOrMergeEnabledResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetSplitOrMergeEnabledResponse::~SetSplitOrMergeEnabledResponse() { + SharedDtor(); +} + +void SetSplitOrMergeEnabledResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SetSplitOrMergeEnabledResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetSplitOrMergeEnabledResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetSplitOrMergeEnabledResponse_descriptor_; +} + +const SetSplitOrMergeEnabledResponse& SetSplitOrMergeEnabledResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SetSplitOrMergeEnabledResponse* SetSplitOrMergeEnabledResponse::default_instance_ = NULL; + +SetSplitOrMergeEnabledResponse* SetSplitOrMergeEnabledResponse::New() const { + return new SetSplitOrMergeEnabledResponse; +} + +void SetSplitOrMergeEnabledResponse::Clear() { + prev_value_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetSplitOrMergeEnabledResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bool prev_value = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_prev_value: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + 1, 8, input, this->mutable_prev_value()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, this->mutable_prev_value()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(8)) goto parse_prev_value; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SetSplitOrMergeEnabledResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated bool prev_value = 1; + for (int i = 0; i < this->prev_value_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBool( + 1, this->prev_value(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetSplitOrMergeEnabledResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated bool prev_value = 1; + for (int i = 0; i < this->prev_value_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBoolToArray(1, this->prev_value(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetSplitOrMergeEnabledResponse::ByteSize() const { + int total_size = 0; + + // repeated bool prev_value = 1; + { + int data_size = 0; + data_size = 1 * this->prev_value_size(); + total_size += 1 * this->prev_value_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetSplitOrMergeEnabledResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetSplitOrMergeEnabledResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetSplitOrMergeEnabledResponse::MergeFrom(const SetSplitOrMergeEnabledResponse& from) { + GOOGLE_CHECK_NE(&from, this); + prev_value_.MergeFrom(from.prev_value_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetSplitOrMergeEnabledResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetSplitOrMergeEnabledResponse::CopyFrom(const SetSplitOrMergeEnabledResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetSplitOrMergeEnabledResponse::IsInitialized() const { + + return true; +} + +void SetSplitOrMergeEnabledResponse::Swap(SetSplitOrMergeEnabledResponse* other) { + if (other != this) { + prev_value_.Swap(&other->prev_value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetSplitOrMergeEnabledResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetSplitOrMergeEnabledResponse_descriptor_; + metadata.reflection = SetSplitOrMergeEnabledResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsSplitOrMergeEnabledRequest::kSwitchTypeFieldNumber; +#endif // !_MSC_VER + +IsSplitOrMergeEnabledRequest::IsSplitOrMergeEnabledRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsSplitOrMergeEnabledRequest::InitAsDefaultInstance() { +} + +IsSplitOrMergeEnabledRequest::IsSplitOrMergeEnabledRequest(const IsSplitOrMergeEnabledRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsSplitOrMergeEnabledRequest::SharedCtor() { + _cached_size_ = 0; + switch_type_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsSplitOrMergeEnabledRequest::~IsSplitOrMergeEnabledRequest() { + SharedDtor(); +} + +void IsSplitOrMergeEnabledRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsSplitOrMergeEnabledRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsSplitOrMergeEnabledRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsSplitOrMergeEnabledRequest_descriptor_; +} + +const IsSplitOrMergeEnabledRequest& IsSplitOrMergeEnabledRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsSplitOrMergeEnabledRequest* IsSplitOrMergeEnabledRequest::default_instance_ = NULL; + +IsSplitOrMergeEnabledRequest* IsSplitOrMergeEnabledRequest::New() const { + return new IsSplitOrMergeEnabledRequest; +} + +void IsSplitOrMergeEnabledRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + switch_type_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsSplitOrMergeEnabledRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.MasterSwitchType switch_type = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::MasterSwitchType_IsValid(value)) { + set_switch_type(static_cast< ::hbase::pb::MasterSwitchType >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsSplitOrMergeEnabledRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.MasterSwitchType switch_type = 1; + if (has_switch_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->switch_type(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsSplitOrMergeEnabledRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.MasterSwitchType switch_type = 1; + if (has_switch_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->switch_type(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsSplitOrMergeEnabledRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.MasterSwitchType switch_type = 1; + if (has_switch_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->switch_type()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsSplitOrMergeEnabledRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsSplitOrMergeEnabledRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsSplitOrMergeEnabledRequest::MergeFrom(const IsSplitOrMergeEnabledRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_switch_type()) { + set_switch_type(from.switch_type()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsSplitOrMergeEnabledRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsSplitOrMergeEnabledRequest::CopyFrom(const IsSplitOrMergeEnabledRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsSplitOrMergeEnabledRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void IsSplitOrMergeEnabledRequest::Swap(IsSplitOrMergeEnabledRequest* other) { + if (other != this) { + std::swap(switch_type_, other->switch_type_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsSplitOrMergeEnabledRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsSplitOrMergeEnabledRequest_descriptor_; + metadata.reflection = IsSplitOrMergeEnabledRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsSplitOrMergeEnabledResponse::kEnabledFieldNumber; +#endif // !_MSC_VER + +IsSplitOrMergeEnabledResponse::IsSplitOrMergeEnabledResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsSplitOrMergeEnabledResponse::InitAsDefaultInstance() { +} + +IsSplitOrMergeEnabledResponse::IsSplitOrMergeEnabledResponse(const IsSplitOrMergeEnabledResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsSplitOrMergeEnabledResponse::SharedCtor() { + _cached_size_ = 0; + enabled_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsSplitOrMergeEnabledResponse::~IsSplitOrMergeEnabledResponse() { + SharedDtor(); +} + +void IsSplitOrMergeEnabledResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsSplitOrMergeEnabledResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsSplitOrMergeEnabledResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsSplitOrMergeEnabledResponse_descriptor_; +} + +const IsSplitOrMergeEnabledResponse& IsSplitOrMergeEnabledResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsSplitOrMergeEnabledResponse* IsSplitOrMergeEnabledResponse::default_instance_ = NULL; + +IsSplitOrMergeEnabledResponse* IsSplitOrMergeEnabledResponse::New() const { + return new IsSplitOrMergeEnabledResponse; +} + +void IsSplitOrMergeEnabledResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + enabled_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsSplitOrMergeEnabledResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool enabled = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enabled_))); + set_has_enabled(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsSplitOrMergeEnabledResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool enabled = 1; + if (has_enabled()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enabled(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsSplitOrMergeEnabledResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool enabled = 1; + if (has_enabled()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enabled(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsSplitOrMergeEnabledResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool enabled = 1; + if (has_enabled()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsSplitOrMergeEnabledResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsSplitOrMergeEnabledResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsSplitOrMergeEnabledResponse::MergeFrom(const IsSplitOrMergeEnabledResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_enabled()) { + set_enabled(from.enabled()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsSplitOrMergeEnabledResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsSplitOrMergeEnabledResponse::CopyFrom(const IsSplitOrMergeEnabledResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsSplitOrMergeEnabledResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void IsSplitOrMergeEnabledResponse::Swap(IsSplitOrMergeEnabledResponse* other) { + if (other != this) { + std::swap(enabled_, other->enabled_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsSplitOrMergeEnabledResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsSplitOrMergeEnabledResponse_descriptor_; + metadata.reflection = IsSplitOrMergeEnabledResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +NormalizeRequest::NormalizeRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NormalizeRequest::InitAsDefaultInstance() { +} + +NormalizeRequest::NormalizeRequest(const NormalizeRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NormalizeRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NormalizeRequest::~NormalizeRequest() { + SharedDtor(); +} + +void NormalizeRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void NormalizeRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NormalizeRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NormalizeRequest_descriptor_; +} + +const NormalizeRequest& NormalizeRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +NormalizeRequest* NormalizeRequest::default_instance_ = NULL; + +NormalizeRequest* NormalizeRequest::New() const { + return new NormalizeRequest; +} + +void NormalizeRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NormalizeRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void NormalizeRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NormalizeRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NormalizeRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NormalizeRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NormalizeRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NormalizeRequest::MergeFrom(const NormalizeRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NormalizeRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NormalizeRequest::CopyFrom(const NormalizeRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NormalizeRequest::IsInitialized() const { + + return true; +} + +void NormalizeRequest::Swap(NormalizeRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NormalizeRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NormalizeRequest_descriptor_; + metadata.reflection = NormalizeRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int NormalizeResponse::kNormalizerRanFieldNumber; +#endif // !_MSC_VER + +NormalizeResponse::NormalizeResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NormalizeResponse::InitAsDefaultInstance() { +} + +NormalizeResponse::NormalizeResponse(const NormalizeResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NormalizeResponse::SharedCtor() { + _cached_size_ = 0; + normalizer_ran_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NormalizeResponse::~NormalizeResponse() { + SharedDtor(); +} + +void NormalizeResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void NormalizeResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NormalizeResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NormalizeResponse_descriptor_; +} + +const NormalizeResponse& NormalizeResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +NormalizeResponse* NormalizeResponse::default_instance_ = NULL; + +NormalizeResponse* NormalizeResponse::New() const { + return new NormalizeResponse; +} + +void NormalizeResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + normalizer_ran_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NormalizeResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool normalizer_ran = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &normalizer_ran_))); + set_has_normalizer_ran(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void NormalizeResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool normalizer_ran = 1; + if (has_normalizer_ran()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->normalizer_ran(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NormalizeResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool normalizer_ran = 1; + if (has_normalizer_ran()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->normalizer_ran(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NormalizeResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool normalizer_ran = 1; + if (has_normalizer_ran()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NormalizeResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NormalizeResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NormalizeResponse::MergeFrom(const NormalizeResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_normalizer_ran()) { + set_normalizer_ran(from.normalizer_ran()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NormalizeResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NormalizeResponse::CopyFrom(const NormalizeResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NormalizeResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void NormalizeResponse::Swap(NormalizeResponse* other) { + if (other != this) { + std::swap(normalizer_ran_, other->normalizer_ran_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NormalizeResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NormalizeResponse_descriptor_; + metadata.reflection = NormalizeResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SetNormalizerRunningRequest::kOnFieldNumber; +#endif // !_MSC_VER + +SetNormalizerRunningRequest::SetNormalizerRunningRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetNormalizerRunningRequest::InitAsDefaultInstance() { +} + +SetNormalizerRunningRequest::SetNormalizerRunningRequest(const SetNormalizerRunningRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetNormalizerRunningRequest::SharedCtor() { + _cached_size_ = 0; + on_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetNormalizerRunningRequest::~SetNormalizerRunningRequest() { + SharedDtor(); +} + +void SetNormalizerRunningRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void SetNormalizerRunningRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetNormalizerRunningRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetNormalizerRunningRequest_descriptor_; +} + +const SetNormalizerRunningRequest& SetNormalizerRunningRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SetNormalizerRunningRequest* SetNormalizerRunningRequest::default_instance_ = NULL; + +SetNormalizerRunningRequest* SetNormalizerRunningRequest::New() const { + return new SetNormalizerRunningRequest; +} + +void SetNormalizerRunningRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + on_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetNormalizerRunningRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool on = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &on_))); + set_has_on(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SetNormalizerRunningRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool on = 1; + if (has_on()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->on(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetNormalizerRunningRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool on = 1; + if (has_on()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->on(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetNormalizerRunningRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool on = 1; + if (has_on()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetNormalizerRunningRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetNormalizerRunningRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetNormalizerRunningRequest::MergeFrom(const SetNormalizerRunningRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_on()) { + set_on(from.on()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetNormalizerRunningRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetNormalizerRunningRequest::CopyFrom(const SetNormalizerRunningRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetNormalizerRunningRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SetNormalizerRunningRequest::Swap(SetNormalizerRunningRequest* other) { + if (other != this) { + std::swap(on_, other->on_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetNormalizerRunningRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetNormalizerRunningRequest_descriptor_; + metadata.reflection = SetNormalizerRunningRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SetNormalizerRunningResponse::kPrevNormalizerValueFieldNumber; +#endif // !_MSC_VER + +SetNormalizerRunningResponse::SetNormalizerRunningResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetNormalizerRunningResponse::InitAsDefaultInstance() { +} + +SetNormalizerRunningResponse::SetNormalizerRunningResponse(const SetNormalizerRunningResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetNormalizerRunningResponse::SharedCtor() { + _cached_size_ = 0; + prev_normalizer_value_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetNormalizerRunningResponse::~SetNormalizerRunningResponse() { + SharedDtor(); +} + +void SetNormalizerRunningResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SetNormalizerRunningResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetNormalizerRunningResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetNormalizerRunningResponse_descriptor_; +} + +const SetNormalizerRunningResponse& SetNormalizerRunningResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SetNormalizerRunningResponse* SetNormalizerRunningResponse::default_instance_ = NULL; + +SetNormalizerRunningResponse* SetNormalizerRunningResponse::New() const { + return new SetNormalizerRunningResponse; +} + +void SetNormalizerRunningResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + prev_normalizer_value_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetNormalizerRunningResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool prev_normalizer_value = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &prev_normalizer_value_))); + set_has_prev_normalizer_value(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SetNormalizerRunningResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool prev_normalizer_value = 1; + if (has_prev_normalizer_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->prev_normalizer_value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetNormalizerRunningResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool prev_normalizer_value = 1; + if (has_prev_normalizer_value()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->prev_normalizer_value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetNormalizerRunningResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool prev_normalizer_value = 1; + if (has_prev_normalizer_value()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetNormalizerRunningResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetNormalizerRunningResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetNormalizerRunningResponse::MergeFrom(const SetNormalizerRunningResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_prev_normalizer_value()) { + set_prev_normalizer_value(from.prev_normalizer_value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetNormalizerRunningResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetNormalizerRunningResponse::CopyFrom(const SetNormalizerRunningResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetNormalizerRunningResponse::IsInitialized() const { + + return true; +} + +void SetNormalizerRunningResponse::Swap(SetNormalizerRunningResponse* other) { + if (other != this) { + std::swap(prev_normalizer_value_, other->prev_normalizer_value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetNormalizerRunningResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetNormalizerRunningResponse_descriptor_; + metadata.reflection = SetNormalizerRunningResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +IsNormalizerEnabledRequest::IsNormalizerEnabledRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsNormalizerEnabledRequest::InitAsDefaultInstance() { +} + +IsNormalizerEnabledRequest::IsNormalizerEnabledRequest(const IsNormalizerEnabledRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsNormalizerEnabledRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsNormalizerEnabledRequest::~IsNormalizerEnabledRequest() { + SharedDtor(); +} + +void IsNormalizerEnabledRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsNormalizerEnabledRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsNormalizerEnabledRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsNormalizerEnabledRequest_descriptor_; +} + +const IsNormalizerEnabledRequest& IsNormalizerEnabledRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsNormalizerEnabledRequest* IsNormalizerEnabledRequest::default_instance_ = NULL; + +IsNormalizerEnabledRequest* IsNormalizerEnabledRequest::New() const { + return new IsNormalizerEnabledRequest; +} + +void IsNormalizerEnabledRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsNormalizerEnabledRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void IsNormalizerEnabledRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsNormalizerEnabledRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsNormalizerEnabledRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsNormalizerEnabledRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsNormalizerEnabledRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsNormalizerEnabledRequest::MergeFrom(const IsNormalizerEnabledRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsNormalizerEnabledRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsNormalizerEnabledRequest::CopyFrom(const IsNormalizerEnabledRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsNormalizerEnabledRequest::IsInitialized() const { + + return true; +} + +void IsNormalizerEnabledRequest::Swap(IsNormalizerEnabledRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsNormalizerEnabledRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsNormalizerEnabledRequest_descriptor_; + metadata.reflection = IsNormalizerEnabledRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsNormalizerEnabledResponse::kEnabledFieldNumber; +#endif // !_MSC_VER + +IsNormalizerEnabledResponse::IsNormalizerEnabledResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsNormalizerEnabledResponse::InitAsDefaultInstance() { +} + +IsNormalizerEnabledResponse::IsNormalizerEnabledResponse(const IsNormalizerEnabledResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsNormalizerEnabledResponse::SharedCtor() { + _cached_size_ = 0; + enabled_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsNormalizerEnabledResponse::~IsNormalizerEnabledResponse() { + SharedDtor(); +} + +void IsNormalizerEnabledResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsNormalizerEnabledResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsNormalizerEnabledResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsNormalizerEnabledResponse_descriptor_; +} + +const IsNormalizerEnabledResponse& IsNormalizerEnabledResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsNormalizerEnabledResponse* IsNormalizerEnabledResponse::default_instance_ = NULL; + +IsNormalizerEnabledResponse* IsNormalizerEnabledResponse::New() const { + return new IsNormalizerEnabledResponse; +} + +void IsNormalizerEnabledResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + enabled_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsNormalizerEnabledResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool enabled = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enabled_))); + set_has_enabled(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsNormalizerEnabledResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool enabled = 1; + if (has_enabled()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enabled(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsNormalizerEnabledResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool enabled = 1; + if (has_enabled()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enabled(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsNormalizerEnabledResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool enabled = 1; + if (has_enabled()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsNormalizerEnabledResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsNormalizerEnabledResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsNormalizerEnabledResponse::MergeFrom(const IsNormalizerEnabledResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_enabled()) { + set_enabled(from.enabled()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsNormalizerEnabledResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsNormalizerEnabledResponse::CopyFrom(const IsNormalizerEnabledResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsNormalizerEnabledResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void IsNormalizerEnabledResponse::Swap(IsNormalizerEnabledResponse* other) { + if (other != this) { + std::swap(enabled_, other->enabled_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsNormalizerEnabledResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsNormalizerEnabledResponse_descriptor_; + metadata.reflection = IsNormalizerEnabledResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +RunCatalogScanRequest::RunCatalogScanRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RunCatalogScanRequest::InitAsDefaultInstance() { +} + +RunCatalogScanRequest::RunCatalogScanRequest(const RunCatalogScanRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RunCatalogScanRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RunCatalogScanRequest::~RunCatalogScanRequest() { + SharedDtor(); +} + +void RunCatalogScanRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void RunCatalogScanRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RunCatalogScanRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RunCatalogScanRequest_descriptor_; +} + +const RunCatalogScanRequest& RunCatalogScanRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +RunCatalogScanRequest* RunCatalogScanRequest::default_instance_ = NULL; + +RunCatalogScanRequest* RunCatalogScanRequest::New() const { + return new RunCatalogScanRequest; +} + +void RunCatalogScanRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RunCatalogScanRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void RunCatalogScanRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RunCatalogScanRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RunCatalogScanRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RunCatalogScanRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RunCatalogScanRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RunCatalogScanRequest::MergeFrom(const RunCatalogScanRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RunCatalogScanRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RunCatalogScanRequest::CopyFrom(const RunCatalogScanRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RunCatalogScanRequest::IsInitialized() const { + + return true; +} + +void RunCatalogScanRequest::Swap(RunCatalogScanRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RunCatalogScanRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RunCatalogScanRequest_descriptor_; + metadata.reflection = RunCatalogScanRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RunCatalogScanResponse::kScanResultFieldNumber; +#endif // !_MSC_VER + +RunCatalogScanResponse::RunCatalogScanResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RunCatalogScanResponse::InitAsDefaultInstance() { +} + +RunCatalogScanResponse::RunCatalogScanResponse(const RunCatalogScanResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RunCatalogScanResponse::SharedCtor() { + _cached_size_ = 0; + scan_result_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RunCatalogScanResponse::~RunCatalogScanResponse() { + SharedDtor(); +} + +void RunCatalogScanResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void RunCatalogScanResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RunCatalogScanResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RunCatalogScanResponse_descriptor_; +} + +const RunCatalogScanResponse& RunCatalogScanResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +RunCatalogScanResponse* RunCatalogScanResponse::default_instance_ = NULL; + +RunCatalogScanResponse* RunCatalogScanResponse::New() const { + return new RunCatalogScanResponse; +} + +void RunCatalogScanResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + scan_result_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RunCatalogScanResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 scan_result = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &scan_result_))); + set_has_scan_result(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RunCatalogScanResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional int32 scan_result = 1; + if (has_scan_result()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->scan_result(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RunCatalogScanResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional int32 scan_result = 1; + if (has_scan_result()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->scan_result(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RunCatalogScanResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional int32 scan_result = 1; + if (has_scan_result()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->scan_result()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RunCatalogScanResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RunCatalogScanResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RunCatalogScanResponse::MergeFrom(const RunCatalogScanResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_scan_result()) { + set_scan_result(from.scan_result()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RunCatalogScanResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RunCatalogScanResponse::CopyFrom(const RunCatalogScanResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RunCatalogScanResponse::IsInitialized() const { + + return true; +} + +void RunCatalogScanResponse::Swap(RunCatalogScanResponse* other) { + if (other != this) { + std::swap(scan_result_, other->scan_result_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RunCatalogScanResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RunCatalogScanResponse_descriptor_; + metadata.reflection = RunCatalogScanResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int EnableCatalogJanitorRequest::kEnableFieldNumber; +#endif // !_MSC_VER + +EnableCatalogJanitorRequest::EnableCatalogJanitorRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EnableCatalogJanitorRequest::InitAsDefaultInstance() { +} + +EnableCatalogJanitorRequest::EnableCatalogJanitorRequest(const EnableCatalogJanitorRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EnableCatalogJanitorRequest::SharedCtor() { + _cached_size_ = 0; + enable_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EnableCatalogJanitorRequest::~EnableCatalogJanitorRequest() { + SharedDtor(); +} + +void EnableCatalogJanitorRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void EnableCatalogJanitorRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EnableCatalogJanitorRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EnableCatalogJanitorRequest_descriptor_; +} + +const EnableCatalogJanitorRequest& EnableCatalogJanitorRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +EnableCatalogJanitorRequest* EnableCatalogJanitorRequest::default_instance_ = NULL; + +EnableCatalogJanitorRequest* EnableCatalogJanitorRequest::New() const { + return new EnableCatalogJanitorRequest; +} + +void EnableCatalogJanitorRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + enable_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EnableCatalogJanitorRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool enable = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enable_))); + set_has_enable(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EnableCatalogJanitorRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool enable = 1; + if (has_enable()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enable(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EnableCatalogJanitorRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool enable = 1; + if (has_enable()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enable(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EnableCatalogJanitorRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool enable = 1; + if (has_enable()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EnableCatalogJanitorRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EnableCatalogJanitorRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EnableCatalogJanitorRequest::MergeFrom(const EnableCatalogJanitorRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_enable()) { + set_enable(from.enable()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EnableCatalogJanitorRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EnableCatalogJanitorRequest::CopyFrom(const EnableCatalogJanitorRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnableCatalogJanitorRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void EnableCatalogJanitorRequest::Swap(EnableCatalogJanitorRequest* other) { + if (other != this) { + std::swap(enable_, other->enable_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EnableCatalogJanitorRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EnableCatalogJanitorRequest_descriptor_; + metadata.reflection = EnableCatalogJanitorRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int EnableCatalogJanitorResponse::kPrevValueFieldNumber; +#endif // !_MSC_VER + +EnableCatalogJanitorResponse::EnableCatalogJanitorResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EnableCatalogJanitorResponse::InitAsDefaultInstance() { +} + +EnableCatalogJanitorResponse::EnableCatalogJanitorResponse(const EnableCatalogJanitorResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EnableCatalogJanitorResponse::SharedCtor() { + _cached_size_ = 0; + prev_value_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EnableCatalogJanitorResponse::~EnableCatalogJanitorResponse() { + SharedDtor(); +} + +void EnableCatalogJanitorResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void EnableCatalogJanitorResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EnableCatalogJanitorResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EnableCatalogJanitorResponse_descriptor_; +} + +const EnableCatalogJanitorResponse& EnableCatalogJanitorResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +EnableCatalogJanitorResponse* EnableCatalogJanitorResponse::default_instance_ = NULL; + +EnableCatalogJanitorResponse* EnableCatalogJanitorResponse::New() const { + return new EnableCatalogJanitorResponse; +} + +void EnableCatalogJanitorResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + prev_value_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EnableCatalogJanitorResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool prev_value = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &prev_value_))); + set_has_prev_value(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EnableCatalogJanitorResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool prev_value = 1; + if (has_prev_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->prev_value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EnableCatalogJanitorResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool prev_value = 1; + if (has_prev_value()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->prev_value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EnableCatalogJanitorResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool prev_value = 1; + if (has_prev_value()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EnableCatalogJanitorResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EnableCatalogJanitorResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EnableCatalogJanitorResponse::MergeFrom(const EnableCatalogJanitorResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_prev_value()) { + set_prev_value(from.prev_value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EnableCatalogJanitorResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EnableCatalogJanitorResponse::CopyFrom(const EnableCatalogJanitorResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnableCatalogJanitorResponse::IsInitialized() const { + + return true; +} + +void EnableCatalogJanitorResponse::Swap(EnableCatalogJanitorResponse* other) { + if (other != this) { + std::swap(prev_value_, other->prev_value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EnableCatalogJanitorResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EnableCatalogJanitorResponse_descriptor_; + metadata.reflection = EnableCatalogJanitorResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +IsCatalogJanitorEnabledRequest::IsCatalogJanitorEnabledRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsCatalogJanitorEnabledRequest::InitAsDefaultInstance() { +} + +IsCatalogJanitorEnabledRequest::IsCatalogJanitorEnabledRequest(const IsCatalogJanitorEnabledRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsCatalogJanitorEnabledRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsCatalogJanitorEnabledRequest::~IsCatalogJanitorEnabledRequest() { + SharedDtor(); +} + +void IsCatalogJanitorEnabledRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsCatalogJanitorEnabledRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsCatalogJanitorEnabledRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsCatalogJanitorEnabledRequest_descriptor_; +} + +const IsCatalogJanitorEnabledRequest& IsCatalogJanitorEnabledRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsCatalogJanitorEnabledRequest* IsCatalogJanitorEnabledRequest::default_instance_ = NULL; + +IsCatalogJanitorEnabledRequest* IsCatalogJanitorEnabledRequest::New() const { + return new IsCatalogJanitorEnabledRequest; +} + +void IsCatalogJanitorEnabledRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsCatalogJanitorEnabledRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void IsCatalogJanitorEnabledRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsCatalogJanitorEnabledRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsCatalogJanitorEnabledRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsCatalogJanitorEnabledRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsCatalogJanitorEnabledRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsCatalogJanitorEnabledRequest::MergeFrom(const IsCatalogJanitorEnabledRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsCatalogJanitorEnabledRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsCatalogJanitorEnabledRequest::CopyFrom(const IsCatalogJanitorEnabledRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsCatalogJanitorEnabledRequest::IsInitialized() const { + + return true; +} + +void IsCatalogJanitorEnabledRequest::Swap(IsCatalogJanitorEnabledRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsCatalogJanitorEnabledRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsCatalogJanitorEnabledRequest_descriptor_; + metadata.reflection = IsCatalogJanitorEnabledRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsCatalogJanitorEnabledResponse::kValueFieldNumber; +#endif // !_MSC_VER + +IsCatalogJanitorEnabledResponse::IsCatalogJanitorEnabledResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsCatalogJanitorEnabledResponse::InitAsDefaultInstance() { +} + +IsCatalogJanitorEnabledResponse::IsCatalogJanitorEnabledResponse(const IsCatalogJanitorEnabledResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsCatalogJanitorEnabledResponse::SharedCtor() { + _cached_size_ = 0; + value_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsCatalogJanitorEnabledResponse::~IsCatalogJanitorEnabledResponse() { + SharedDtor(); +} + +void IsCatalogJanitorEnabledResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsCatalogJanitorEnabledResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsCatalogJanitorEnabledResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsCatalogJanitorEnabledResponse_descriptor_; +} + +const IsCatalogJanitorEnabledResponse& IsCatalogJanitorEnabledResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsCatalogJanitorEnabledResponse* IsCatalogJanitorEnabledResponse::default_instance_ = NULL; + +IsCatalogJanitorEnabledResponse* IsCatalogJanitorEnabledResponse::New() const { + return new IsCatalogJanitorEnabledResponse; +} + +void IsCatalogJanitorEnabledResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + value_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsCatalogJanitorEnabledResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool value = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &value_))); + set_has_value(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsCatalogJanitorEnabledResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool value = 1; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->value(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsCatalogJanitorEnabledResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool value = 1; + if (has_value()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->value(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsCatalogJanitorEnabledResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool value = 1; + if (has_value()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsCatalogJanitorEnabledResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsCatalogJanitorEnabledResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsCatalogJanitorEnabledResponse::MergeFrom(const IsCatalogJanitorEnabledResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_value()) { + set_value(from.value()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsCatalogJanitorEnabledResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsCatalogJanitorEnabledResponse::CopyFrom(const IsCatalogJanitorEnabledResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsCatalogJanitorEnabledResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void IsCatalogJanitorEnabledResponse::Swap(IsCatalogJanitorEnabledResponse* other) { + if (other != this) { + std::swap(value_, other->value_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsCatalogJanitorEnabledResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsCatalogJanitorEnabledResponse_descriptor_; + metadata.reflection = IsCatalogJanitorEnabledResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SnapshotRequest::kSnapshotFieldNumber; +#endif // !_MSC_VER + +SnapshotRequest::SnapshotRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SnapshotRequest::InitAsDefaultInstance() { + snapshot_ = const_cast< ::hbase::pb::SnapshotDescription*>(&::hbase::pb::SnapshotDescription::default_instance()); +} + +SnapshotRequest::SnapshotRequest(const SnapshotRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SnapshotRequest::SharedCtor() { + _cached_size_ = 0; + snapshot_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SnapshotRequest::~SnapshotRequest() { + SharedDtor(); +} + +void SnapshotRequest::SharedDtor() { + if (this != default_instance_) { + delete snapshot_; + } +} + +void SnapshotRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SnapshotRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotRequest_descriptor_; +} + +const SnapshotRequest& SnapshotRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SnapshotRequest* SnapshotRequest::default_instance_ = NULL; + +SnapshotRequest* SnapshotRequest::New() const { + return new SnapshotRequest; +} + +void SnapshotRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_snapshot()) { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SnapshotRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.SnapshotDescription snapshot = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_snapshot())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SnapshotRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->snapshot(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SnapshotRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->snapshot(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SnapshotRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->snapshot()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SnapshotRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SnapshotRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SnapshotRequest::MergeFrom(const SnapshotRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_snapshot()) { + mutable_snapshot()->::hbase::pb::SnapshotDescription::MergeFrom(from.snapshot()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SnapshotRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SnapshotRequest::CopyFrom(const SnapshotRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SnapshotRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_snapshot()) { + if (!this->snapshot().IsInitialized()) return false; + } + return true; +} + +void SnapshotRequest::Swap(SnapshotRequest* other) { + if (other != this) { + std::swap(snapshot_, other->snapshot_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SnapshotRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SnapshotRequest_descriptor_; + metadata.reflection = SnapshotRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SnapshotResponse::kExpectedTimeoutFieldNumber; +#endif // !_MSC_VER + +SnapshotResponse::SnapshotResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SnapshotResponse::InitAsDefaultInstance() { +} + +SnapshotResponse::SnapshotResponse(const SnapshotResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SnapshotResponse::SharedCtor() { + _cached_size_ = 0; + expected_timeout_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SnapshotResponse::~SnapshotResponse() { + SharedDtor(); +} + +void SnapshotResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SnapshotResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SnapshotResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotResponse_descriptor_; +} + +const SnapshotResponse& SnapshotResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SnapshotResponse* SnapshotResponse::default_instance_ = NULL; + +SnapshotResponse* SnapshotResponse::New() const { + return new SnapshotResponse; +} + +void SnapshotResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + expected_timeout_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SnapshotResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required int64 expected_timeout = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &expected_timeout_))); + set_has_expected_timeout(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SnapshotResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required int64 expected_timeout = 1; + if (has_expected_timeout()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->expected_timeout(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SnapshotResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required int64 expected_timeout = 1; + if (has_expected_timeout()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->expected_timeout(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SnapshotResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required int64 expected_timeout = 1; + if (has_expected_timeout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->expected_timeout()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SnapshotResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SnapshotResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SnapshotResponse::MergeFrom(const SnapshotResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_expected_timeout()) { + set_expected_timeout(from.expected_timeout()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SnapshotResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SnapshotResponse::CopyFrom(const SnapshotResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SnapshotResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SnapshotResponse::Swap(SnapshotResponse* other) { + if (other != this) { + std::swap(expected_timeout_, other->expected_timeout_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SnapshotResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SnapshotResponse_descriptor_; + metadata.reflection = SnapshotResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +GetCompletedSnapshotsRequest::GetCompletedSnapshotsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetCompletedSnapshotsRequest::InitAsDefaultInstance() { +} + +GetCompletedSnapshotsRequest::GetCompletedSnapshotsRequest(const GetCompletedSnapshotsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetCompletedSnapshotsRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetCompletedSnapshotsRequest::~GetCompletedSnapshotsRequest() { + SharedDtor(); +} + +void GetCompletedSnapshotsRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetCompletedSnapshotsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetCompletedSnapshotsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetCompletedSnapshotsRequest_descriptor_; +} + +const GetCompletedSnapshotsRequest& GetCompletedSnapshotsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetCompletedSnapshotsRequest* GetCompletedSnapshotsRequest::default_instance_ = NULL; + +GetCompletedSnapshotsRequest* GetCompletedSnapshotsRequest::New() const { + return new GetCompletedSnapshotsRequest; +} + +void GetCompletedSnapshotsRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetCompletedSnapshotsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void GetCompletedSnapshotsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetCompletedSnapshotsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetCompletedSnapshotsRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetCompletedSnapshotsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetCompletedSnapshotsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetCompletedSnapshotsRequest::MergeFrom(const GetCompletedSnapshotsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetCompletedSnapshotsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetCompletedSnapshotsRequest::CopyFrom(const GetCompletedSnapshotsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCompletedSnapshotsRequest::IsInitialized() const { + + return true; +} + +void GetCompletedSnapshotsRequest::Swap(GetCompletedSnapshotsRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetCompletedSnapshotsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetCompletedSnapshotsRequest_descriptor_; + metadata.reflection = GetCompletedSnapshotsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetCompletedSnapshotsResponse::kSnapshotsFieldNumber; +#endif // !_MSC_VER + +GetCompletedSnapshotsResponse::GetCompletedSnapshotsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetCompletedSnapshotsResponse::InitAsDefaultInstance() { +} + +GetCompletedSnapshotsResponse::GetCompletedSnapshotsResponse(const GetCompletedSnapshotsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetCompletedSnapshotsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetCompletedSnapshotsResponse::~GetCompletedSnapshotsResponse() { + SharedDtor(); +} + +void GetCompletedSnapshotsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetCompletedSnapshotsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetCompletedSnapshotsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetCompletedSnapshotsResponse_descriptor_; +} + +const GetCompletedSnapshotsResponse& GetCompletedSnapshotsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetCompletedSnapshotsResponse* GetCompletedSnapshotsResponse::default_instance_ = NULL; + +GetCompletedSnapshotsResponse* GetCompletedSnapshotsResponse::New() const { + return new GetCompletedSnapshotsResponse; +} + +void GetCompletedSnapshotsResponse::Clear() { + snapshots_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetCompletedSnapshotsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.SnapshotDescription snapshots = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_snapshots: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_snapshots())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_snapshots; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetCompletedSnapshotsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.SnapshotDescription snapshots = 1; + for (int i = 0; i < this->snapshots_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->snapshots(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetCompletedSnapshotsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.SnapshotDescription snapshots = 1; + for (int i = 0; i < this->snapshots_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->snapshots(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetCompletedSnapshotsResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.SnapshotDescription snapshots = 1; + total_size += 1 * this->snapshots_size(); + for (int i = 0; i < this->snapshots_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->snapshots(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetCompletedSnapshotsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetCompletedSnapshotsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetCompletedSnapshotsResponse::MergeFrom(const GetCompletedSnapshotsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + snapshots_.MergeFrom(from.snapshots_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetCompletedSnapshotsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetCompletedSnapshotsResponse::CopyFrom(const GetCompletedSnapshotsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetCompletedSnapshotsResponse::IsInitialized() const { + + for (int i = 0; i < snapshots_size(); i++) { + if (!this->snapshots(i).IsInitialized()) return false; + } + return true; +} + +void GetCompletedSnapshotsResponse::Swap(GetCompletedSnapshotsResponse* other) { + if (other != this) { + snapshots_.Swap(&other->snapshots_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetCompletedSnapshotsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetCompletedSnapshotsResponse_descriptor_; + metadata.reflection = GetCompletedSnapshotsResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteSnapshotRequest::kSnapshotFieldNumber; +#endif // !_MSC_VER + +DeleteSnapshotRequest::DeleteSnapshotRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteSnapshotRequest::InitAsDefaultInstance() { + snapshot_ = const_cast< ::hbase::pb::SnapshotDescription*>(&::hbase::pb::SnapshotDescription::default_instance()); +} + +DeleteSnapshotRequest::DeleteSnapshotRequest(const DeleteSnapshotRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteSnapshotRequest::SharedCtor() { + _cached_size_ = 0; + snapshot_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteSnapshotRequest::~DeleteSnapshotRequest() { + SharedDtor(); +} + +void DeleteSnapshotRequest::SharedDtor() { + if (this != default_instance_) { + delete snapshot_; + } +} + +void DeleteSnapshotRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteSnapshotRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteSnapshotRequest_descriptor_; +} + +const DeleteSnapshotRequest& DeleteSnapshotRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DeleteSnapshotRequest* DeleteSnapshotRequest::default_instance_ = NULL; + +DeleteSnapshotRequest* DeleteSnapshotRequest::New() const { + return new DeleteSnapshotRequest; +} + +void DeleteSnapshotRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_snapshot()) { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteSnapshotRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.SnapshotDescription snapshot = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_snapshot())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteSnapshotRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->snapshot(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteSnapshotRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->snapshot(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteSnapshotRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->snapshot()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteSnapshotRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteSnapshotRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteSnapshotRequest::MergeFrom(const DeleteSnapshotRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_snapshot()) { + mutable_snapshot()->::hbase::pb::SnapshotDescription::MergeFrom(from.snapshot()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteSnapshotRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteSnapshotRequest::CopyFrom(const DeleteSnapshotRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteSnapshotRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_snapshot()) { + if (!this->snapshot().IsInitialized()) return false; + } + return true; +} + +void DeleteSnapshotRequest::Swap(DeleteSnapshotRequest* other) { + if (other != this) { + std::swap(snapshot_, other->snapshot_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteSnapshotRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteSnapshotRequest_descriptor_; + metadata.reflection = DeleteSnapshotRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +DeleteSnapshotResponse::DeleteSnapshotResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteSnapshotResponse::InitAsDefaultInstance() { +} + +DeleteSnapshotResponse::DeleteSnapshotResponse(const DeleteSnapshotResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteSnapshotResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteSnapshotResponse::~DeleteSnapshotResponse() { + SharedDtor(); +} + +void DeleteSnapshotResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void DeleteSnapshotResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteSnapshotResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteSnapshotResponse_descriptor_; +} + +const DeleteSnapshotResponse& DeleteSnapshotResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +DeleteSnapshotResponse* DeleteSnapshotResponse::default_instance_ = NULL; + +DeleteSnapshotResponse* DeleteSnapshotResponse::New() const { + return new DeleteSnapshotResponse; +} + +void DeleteSnapshotResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteSnapshotResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void DeleteSnapshotResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteSnapshotResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteSnapshotResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteSnapshotResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteSnapshotResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteSnapshotResponse::MergeFrom(const DeleteSnapshotResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteSnapshotResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteSnapshotResponse::CopyFrom(const DeleteSnapshotResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteSnapshotResponse::IsInitialized() const { + + return true; +} + +void DeleteSnapshotResponse::Swap(DeleteSnapshotResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteSnapshotResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteSnapshotResponse_descriptor_; + metadata.reflection = DeleteSnapshotResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RestoreSnapshotRequest::kSnapshotFieldNumber; +#endif // !_MSC_VER + +RestoreSnapshotRequest::RestoreSnapshotRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RestoreSnapshotRequest::InitAsDefaultInstance() { + snapshot_ = const_cast< ::hbase::pb::SnapshotDescription*>(&::hbase::pb::SnapshotDescription::default_instance()); +} + +RestoreSnapshotRequest::RestoreSnapshotRequest(const RestoreSnapshotRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RestoreSnapshotRequest::SharedCtor() { + _cached_size_ = 0; + snapshot_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RestoreSnapshotRequest::~RestoreSnapshotRequest() { + SharedDtor(); +} + +void RestoreSnapshotRequest::SharedDtor() { + if (this != default_instance_) { + delete snapshot_; + } +} + +void RestoreSnapshotRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RestoreSnapshotRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RestoreSnapshotRequest_descriptor_; +} + +const RestoreSnapshotRequest& RestoreSnapshotRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +RestoreSnapshotRequest* RestoreSnapshotRequest::default_instance_ = NULL; + +RestoreSnapshotRequest* RestoreSnapshotRequest::New() const { + return new RestoreSnapshotRequest; +} + +void RestoreSnapshotRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_snapshot()) { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RestoreSnapshotRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.SnapshotDescription snapshot = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_snapshot())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RestoreSnapshotRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->snapshot(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RestoreSnapshotRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->snapshot(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RestoreSnapshotRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->snapshot()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RestoreSnapshotRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RestoreSnapshotRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RestoreSnapshotRequest::MergeFrom(const RestoreSnapshotRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_snapshot()) { + mutable_snapshot()->::hbase::pb::SnapshotDescription::MergeFrom(from.snapshot()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RestoreSnapshotRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RestoreSnapshotRequest::CopyFrom(const RestoreSnapshotRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RestoreSnapshotRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_snapshot()) { + if (!this->snapshot().IsInitialized()) return false; + } + return true; +} + +void RestoreSnapshotRequest::Swap(RestoreSnapshotRequest* other) { + if (other != this) { + std::swap(snapshot_, other->snapshot_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RestoreSnapshotRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RestoreSnapshotRequest_descriptor_; + metadata.reflection = RestoreSnapshotRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +RestoreSnapshotResponse::RestoreSnapshotResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RestoreSnapshotResponse::InitAsDefaultInstance() { +} + +RestoreSnapshotResponse::RestoreSnapshotResponse(const RestoreSnapshotResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RestoreSnapshotResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RestoreSnapshotResponse::~RestoreSnapshotResponse() { + SharedDtor(); +} + +void RestoreSnapshotResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void RestoreSnapshotResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RestoreSnapshotResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RestoreSnapshotResponse_descriptor_; +} + +const RestoreSnapshotResponse& RestoreSnapshotResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +RestoreSnapshotResponse* RestoreSnapshotResponse::default_instance_ = NULL; + +RestoreSnapshotResponse* RestoreSnapshotResponse::New() const { + return new RestoreSnapshotResponse; +} + +void RestoreSnapshotResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RestoreSnapshotResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void RestoreSnapshotResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RestoreSnapshotResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RestoreSnapshotResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RestoreSnapshotResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RestoreSnapshotResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RestoreSnapshotResponse::MergeFrom(const RestoreSnapshotResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RestoreSnapshotResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RestoreSnapshotResponse::CopyFrom(const RestoreSnapshotResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RestoreSnapshotResponse::IsInitialized() const { + + return true; +} + +void RestoreSnapshotResponse::Swap(RestoreSnapshotResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RestoreSnapshotResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RestoreSnapshotResponse_descriptor_; + metadata.reflection = RestoreSnapshotResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsSnapshotDoneRequest::kSnapshotFieldNumber; +#endif // !_MSC_VER + +IsSnapshotDoneRequest::IsSnapshotDoneRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsSnapshotDoneRequest::InitAsDefaultInstance() { + snapshot_ = const_cast< ::hbase::pb::SnapshotDescription*>(&::hbase::pb::SnapshotDescription::default_instance()); +} + +IsSnapshotDoneRequest::IsSnapshotDoneRequest(const IsSnapshotDoneRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsSnapshotDoneRequest::SharedCtor() { + _cached_size_ = 0; + snapshot_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsSnapshotDoneRequest::~IsSnapshotDoneRequest() { + SharedDtor(); +} + +void IsSnapshotDoneRequest::SharedDtor() { + if (this != default_instance_) { + delete snapshot_; + } +} + +void IsSnapshotDoneRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsSnapshotDoneRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsSnapshotDoneRequest_descriptor_; +} + +const IsSnapshotDoneRequest& IsSnapshotDoneRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsSnapshotDoneRequest* IsSnapshotDoneRequest::default_instance_ = NULL; + +IsSnapshotDoneRequest* IsSnapshotDoneRequest::New() const { + return new IsSnapshotDoneRequest; +} + +void IsSnapshotDoneRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_snapshot()) { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsSnapshotDoneRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.SnapshotDescription snapshot = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_snapshot())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsSnapshotDoneRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->snapshot(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsSnapshotDoneRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->snapshot(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsSnapshotDoneRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->snapshot()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsSnapshotDoneRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsSnapshotDoneRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsSnapshotDoneRequest::MergeFrom(const IsSnapshotDoneRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_snapshot()) { + mutable_snapshot()->::hbase::pb::SnapshotDescription::MergeFrom(from.snapshot()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsSnapshotDoneRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsSnapshotDoneRequest::CopyFrom(const IsSnapshotDoneRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsSnapshotDoneRequest::IsInitialized() const { + + if (has_snapshot()) { + if (!this->snapshot().IsInitialized()) return false; + } + return true; +} + +void IsSnapshotDoneRequest::Swap(IsSnapshotDoneRequest* other) { + if (other != this) { + std::swap(snapshot_, other->snapshot_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsSnapshotDoneRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsSnapshotDoneRequest_descriptor_; + metadata.reflection = IsSnapshotDoneRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsSnapshotDoneResponse::kDoneFieldNumber; +const int IsSnapshotDoneResponse::kSnapshotFieldNumber; +#endif // !_MSC_VER + +IsSnapshotDoneResponse::IsSnapshotDoneResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsSnapshotDoneResponse::InitAsDefaultInstance() { + snapshot_ = const_cast< ::hbase::pb::SnapshotDescription*>(&::hbase::pb::SnapshotDescription::default_instance()); +} + +IsSnapshotDoneResponse::IsSnapshotDoneResponse(const IsSnapshotDoneResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsSnapshotDoneResponse::SharedCtor() { + _cached_size_ = 0; + done_ = false; + snapshot_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsSnapshotDoneResponse::~IsSnapshotDoneResponse() { + SharedDtor(); +} + +void IsSnapshotDoneResponse::SharedDtor() { + if (this != default_instance_) { + delete snapshot_; + } +} + +void IsSnapshotDoneResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsSnapshotDoneResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsSnapshotDoneResponse_descriptor_; +} + +const IsSnapshotDoneResponse& IsSnapshotDoneResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsSnapshotDoneResponse* IsSnapshotDoneResponse::default_instance_ = NULL; + +IsSnapshotDoneResponse* IsSnapshotDoneResponse::New() const { + return new IsSnapshotDoneResponse; +} + +void IsSnapshotDoneResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + done_ = false; + if (has_snapshot()) { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsSnapshotDoneResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool done = 1 [default = false]; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &done_))); + set_has_done(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_snapshot; + break; + } + + // optional .hbase.pb.SnapshotDescription snapshot = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_snapshot: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_snapshot())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsSnapshotDoneResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool done = 1 [default = false]; + if (has_done()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->done(), output); + } + + // optional .hbase.pb.SnapshotDescription snapshot = 2; + if (has_snapshot()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->snapshot(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsSnapshotDoneResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool done = 1 [default = false]; + if (has_done()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->done(), target); + } + + // optional .hbase.pb.SnapshotDescription snapshot = 2; + if (has_snapshot()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->snapshot(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsSnapshotDoneResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool done = 1 [default = false]; + if (has_done()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.SnapshotDescription snapshot = 2; + if (has_snapshot()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->snapshot()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsSnapshotDoneResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsSnapshotDoneResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsSnapshotDoneResponse::MergeFrom(const IsSnapshotDoneResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_done()) { + set_done(from.done()); + } + if (from.has_snapshot()) { + mutable_snapshot()->::hbase::pb::SnapshotDescription::MergeFrom(from.snapshot()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsSnapshotDoneResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsSnapshotDoneResponse::CopyFrom(const IsSnapshotDoneResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsSnapshotDoneResponse::IsInitialized() const { + + if (has_snapshot()) { + if (!this->snapshot().IsInitialized()) return false; + } + return true; +} + +void IsSnapshotDoneResponse::Swap(IsSnapshotDoneResponse* other) { + if (other != this) { + std::swap(done_, other->done_); + std::swap(snapshot_, other->snapshot_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsSnapshotDoneResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsSnapshotDoneResponse_descriptor_; + metadata.reflection = IsSnapshotDoneResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsRestoreSnapshotDoneRequest::kSnapshotFieldNumber; +#endif // !_MSC_VER + +IsRestoreSnapshotDoneRequest::IsRestoreSnapshotDoneRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsRestoreSnapshotDoneRequest::InitAsDefaultInstance() { + snapshot_ = const_cast< ::hbase::pb::SnapshotDescription*>(&::hbase::pb::SnapshotDescription::default_instance()); +} + +IsRestoreSnapshotDoneRequest::IsRestoreSnapshotDoneRequest(const IsRestoreSnapshotDoneRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsRestoreSnapshotDoneRequest::SharedCtor() { + _cached_size_ = 0; + snapshot_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsRestoreSnapshotDoneRequest::~IsRestoreSnapshotDoneRequest() { + SharedDtor(); +} + +void IsRestoreSnapshotDoneRequest::SharedDtor() { + if (this != default_instance_) { + delete snapshot_; + } +} + +void IsRestoreSnapshotDoneRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsRestoreSnapshotDoneRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsRestoreSnapshotDoneRequest_descriptor_; +} + +const IsRestoreSnapshotDoneRequest& IsRestoreSnapshotDoneRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsRestoreSnapshotDoneRequest* IsRestoreSnapshotDoneRequest::default_instance_ = NULL; + +IsRestoreSnapshotDoneRequest* IsRestoreSnapshotDoneRequest::New() const { + return new IsRestoreSnapshotDoneRequest; +} + +void IsRestoreSnapshotDoneRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_snapshot()) { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsRestoreSnapshotDoneRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.SnapshotDescription snapshot = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_snapshot())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsRestoreSnapshotDoneRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->snapshot(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsRestoreSnapshotDoneRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->snapshot(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsRestoreSnapshotDoneRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.SnapshotDescription snapshot = 1; + if (has_snapshot()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->snapshot()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsRestoreSnapshotDoneRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsRestoreSnapshotDoneRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsRestoreSnapshotDoneRequest::MergeFrom(const IsRestoreSnapshotDoneRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_snapshot()) { + mutable_snapshot()->::hbase::pb::SnapshotDescription::MergeFrom(from.snapshot()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsRestoreSnapshotDoneRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsRestoreSnapshotDoneRequest::CopyFrom(const IsRestoreSnapshotDoneRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsRestoreSnapshotDoneRequest::IsInitialized() const { + + if (has_snapshot()) { + if (!this->snapshot().IsInitialized()) return false; + } + return true; +} + +void IsRestoreSnapshotDoneRequest::Swap(IsRestoreSnapshotDoneRequest* other) { + if (other != this) { + std::swap(snapshot_, other->snapshot_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsRestoreSnapshotDoneRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsRestoreSnapshotDoneRequest_descriptor_; + metadata.reflection = IsRestoreSnapshotDoneRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsRestoreSnapshotDoneResponse::kDoneFieldNumber; +#endif // !_MSC_VER + +IsRestoreSnapshotDoneResponse::IsRestoreSnapshotDoneResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsRestoreSnapshotDoneResponse::InitAsDefaultInstance() { +} + +IsRestoreSnapshotDoneResponse::IsRestoreSnapshotDoneResponse(const IsRestoreSnapshotDoneResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsRestoreSnapshotDoneResponse::SharedCtor() { + _cached_size_ = 0; + done_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsRestoreSnapshotDoneResponse::~IsRestoreSnapshotDoneResponse() { + SharedDtor(); +} + +void IsRestoreSnapshotDoneResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsRestoreSnapshotDoneResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsRestoreSnapshotDoneResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsRestoreSnapshotDoneResponse_descriptor_; +} + +const IsRestoreSnapshotDoneResponse& IsRestoreSnapshotDoneResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsRestoreSnapshotDoneResponse* IsRestoreSnapshotDoneResponse::default_instance_ = NULL; + +IsRestoreSnapshotDoneResponse* IsRestoreSnapshotDoneResponse::New() const { + return new IsRestoreSnapshotDoneResponse; +} + +void IsRestoreSnapshotDoneResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + done_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsRestoreSnapshotDoneResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool done = 1 [default = false]; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &done_))); + set_has_done(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsRestoreSnapshotDoneResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool done = 1 [default = false]; + if (has_done()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->done(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsRestoreSnapshotDoneResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool done = 1 [default = false]; + if (has_done()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->done(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsRestoreSnapshotDoneResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool done = 1 [default = false]; + if (has_done()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsRestoreSnapshotDoneResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsRestoreSnapshotDoneResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsRestoreSnapshotDoneResponse::MergeFrom(const IsRestoreSnapshotDoneResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_done()) { + set_done(from.done()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsRestoreSnapshotDoneResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsRestoreSnapshotDoneResponse::CopyFrom(const IsRestoreSnapshotDoneResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsRestoreSnapshotDoneResponse::IsInitialized() const { + + return true; +} + +void IsRestoreSnapshotDoneResponse::Swap(IsRestoreSnapshotDoneResponse* other) { + if (other != this) { + std::swap(done_, other->done_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsRestoreSnapshotDoneResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsRestoreSnapshotDoneResponse_descriptor_; + metadata.reflection = IsRestoreSnapshotDoneResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetSchemaAlterStatusRequest::kTableNameFieldNumber; +#endif // !_MSC_VER + +GetSchemaAlterStatusRequest::GetSchemaAlterStatusRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetSchemaAlterStatusRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +GetSchemaAlterStatusRequest::GetSchemaAlterStatusRequest(const GetSchemaAlterStatusRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetSchemaAlterStatusRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetSchemaAlterStatusRequest::~GetSchemaAlterStatusRequest() { + SharedDtor(); +} + +void GetSchemaAlterStatusRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void GetSchemaAlterStatusRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetSchemaAlterStatusRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetSchemaAlterStatusRequest_descriptor_; +} + +const GetSchemaAlterStatusRequest& GetSchemaAlterStatusRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetSchemaAlterStatusRequest* GetSchemaAlterStatusRequest::default_instance_ = NULL; + +GetSchemaAlterStatusRequest* GetSchemaAlterStatusRequest::New() const { + return new GetSchemaAlterStatusRequest; +} + +void GetSchemaAlterStatusRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetSchemaAlterStatusRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetSchemaAlterStatusRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetSchemaAlterStatusRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetSchemaAlterStatusRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetSchemaAlterStatusRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetSchemaAlterStatusRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetSchemaAlterStatusRequest::MergeFrom(const GetSchemaAlterStatusRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetSchemaAlterStatusRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetSchemaAlterStatusRequest::CopyFrom(const GetSchemaAlterStatusRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSchemaAlterStatusRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void GetSchemaAlterStatusRequest::Swap(GetSchemaAlterStatusRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetSchemaAlterStatusRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetSchemaAlterStatusRequest_descriptor_; + metadata.reflection = GetSchemaAlterStatusRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetSchemaAlterStatusResponse::kYetToUpdateRegionsFieldNumber; +const int GetSchemaAlterStatusResponse::kTotalRegionsFieldNumber; +#endif // !_MSC_VER + +GetSchemaAlterStatusResponse::GetSchemaAlterStatusResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetSchemaAlterStatusResponse::InitAsDefaultInstance() { +} + +GetSchemaAlterStatusResponse::GetSchemaAlterStatusResponse(const GetSchemaAlterStatusResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetSchemaAlterStatusResponse::SharedCtor() { + _cached_size_ = 0; + yet_to_update_regions_ = 0u; + total_regions_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetSchemaAlterStatusResponse::~GetSchemaAlterStatusResponse() { + SharedDtor(); +} + +void GetSchemaAlterStatusResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetSchemaAlterStatusResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetSchemaAlterStatusResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetSchemaAlterStatusResponse_descriptor_; +} + +const GetSchemaAlterStatusResponse& GetSchemaAlterStatusResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetSchemaAlterStatusResponse* GetSchemaAlterStatusResponse::default_instance_ = NULL; + +GetSchemaAlterStatusResponse* GetSchemaAlterStatusResponse::New() const { + return new GetSchemaAlterStatusResponse; +} + +void GetSchemaAlterStatusResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + yet_to_update_regions_ = 0u; + total_regions_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetSchemaAlterStatusResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 yet_to_update_regions = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &yet_to_update_regions_))); + set_has_yet_to_update_regions(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_total_regions; + break; + } + + // optional uint32 total_regions = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_total_regions: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &total_regions_))); + set_has_total_regions(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetSchemaAlterStatusResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 yet_to_update_regions = 1; + if (has_yet_to_update_regions()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->yet_to_update_regions(), output); + } + + // optional uint32 total_regions = 2; + if (has_total_regions()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->total_regions(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetSchemaAlterStatusResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 yet_to_update_regions = 1; + if (has_yet_to_update_regions()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->yet_to_update_regions(), target); + } + + // optional uint32 total_regions = 2; + if (has_total_regions()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->total_regions(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetSchemaAlterStatusResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 yet_to_update_regions = 1; + if (has_yet_to_update_regions()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->yet_to_update_regions()); + } + + // optional uint32 total_regions = 2; + if (has_total_regions()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->total_regions()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetSchemaAlterStatusResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetSchemaAlterStatusResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetSchemaAlterStatusResponse::MergeFrom(const GetSchemaAlterStatusResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_yet_to_update_regions()) { + set_yet_to_update_regions(from.yet_to_update_regions()); + } + if (from.has_total_regions()) { + set_total_regions(from.total_regions()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetSchemaAlterStatusResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetSchemaAlterStatusResponse::CopyFrom(const GetSchemaAlterStatusResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSchemaAlterStatusResponse::IsInitialized() const { + + return true; +} + +void GetSchemaAlterStatusResponse::Swap(GetSchemaAlterStatusResponse* other) { + if (other != this) { + std::swap(yet_to_update_regions_, other->yet_to_update_regions_); + std::swap(total_regions_, other->total_regions_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetSchemaAlterStatusResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetSchemaAlterStatusResponse_descriptor_; + metadata.reflection = GetSchemaAlterStatusResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetTableDescriptorsRequest::kTableNamesFieldNumber; +const int GetTableDescriptorsRequest::kRegexFieldNumber; +const int GetTableDescriptorsRequest::kIncludeSysTablesFieldNumber; +const int GetTableDescriptorsRequest::kNamespaceFieldNumber; +#endif // !_MSC_VER + +GetTableDescriptorsRequest::GetTableDescriptorsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetTableDescriptorsRequest::InitAsDefaultInstance() { +} + +GetTableDescriptorsRequest::GetTableDescriptorsRequest(const GetTableDescriptorsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetTableDescriptorsRequest::SharedCtor() { + _cached_size_ = 0; + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + include_sys_tables_ = false; + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetTableDescriptorsRequest::~GetTableDescriptorsRequest() { + SharedDtor(); +} + +void GetTableDescriptorsRequest::SharedDtor() { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + delete regex_; + } + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + delete namespace__; + } + if (this != default_instance_) { + } +} + +void GetTableDescriptorsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetTableDescriptorsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetTableDescriptorsRequest_descriptor_; +} + +const GetTableDescriptorsRequest& GetTableDescriptorsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetTableDescriptorsRequest* GetTableDescriptorsRequest::default_instance_ = NULL; + +GetTableDescriptorsRequest* GetTableDescriptorsRequest::New() const { + return new GetTableDescriptorsRequest; +} + +void GetTableDescriptorsRequest::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (has_regex()) { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + regex_->clear(); + } + } + include_sys_tables_ = false; + if (has_namespace_()) { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + namespace__->clear(); + } + } + } + table_names_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetTableDescriptorsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.TableName table_names = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_names: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_table_names())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_table_names; + if (input->ExpectTag(18)) goto parse_regex; + break; + } + + // optional string regex = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_regex: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regex())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_include_sys_tables; + break; + } + + // optional bool include_sys_tables = 3 [default = false]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_include_sys_tables: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &include_sys_tables_))); + set_has_include_sys_tables(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_namespace; + break; + } + + // optional string namespace = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_namespace: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetTableDescriptorsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.TableName table_names = 1; + for (int i = 0; i < this->table_names_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_names(i), output); + } + + // optional string regex = 2; + if (has_regex()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->regex(), output); + } + + // optional bool include_sys_tables = 3 [default = false]; + if (has_include_sys_tables()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->include_sys_tables(), output); + } + + // optional string namespace = 4; + if (has_namespace_()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->namespace_(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetTableDescriptorsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.TableName table_names = 1; + for (int i = 0; i < this->table_names_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_names(i), target); + } + + // optional string regex = 2; + if (has_regex()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->regex(), target); + } + + // optional bool include_sys_tables = 3 [default = false]; + if (has_include_sys_tables()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->include_sys_tables(), target); + } + + // optional string namespace = 4; + if (has_namespace_()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->namespace_(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetTableDescriptorsRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional string regex = 2; + if (has_regex()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regex()); + } + + // optional bool include_sys_tables = 3 [default = false]; + if (has_include_sys_tables()) { + total_size += 1 + 1; + } + + // optional string namespace = 4; + if (has_namespace_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + } + // repeated .hbase.pb.TableName table_names = 1; + total_size += 1 * this->table_names_size(); + for (int i = 0; i < this->table_names_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_names(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetTableDescriptorsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetTableDescriptorsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetTableDescriptorsRequest::MergeFrom(const GetTableDescriptorsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + table_names_.MergeFrom(from.table_names_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_regex()) { + set_regex(from.regex()); + } + if (from.has_include_sys_tables()) { + set_include_sys_tables(from.include_sys_tables()); + } + if (from.has_namespace_()) { + set_namespace_(from.namespace_()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetTableDescriptorsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTableDescriptorsRequest::CopyFrom(const GetTableDescriptorsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTableDescriptorsRequest::IsInitialized() const { + + for (int i = 0; i < table_names_size(); i++) { + if (!this->table_names(i).IsInitialized()) return false; + } + return true; +} + +void GetTableDescriptorsRequest::Swap(GetTableDescriptorsRequest* other) { + if (other != this) { + table_names_.Swap(&other->table_names_); + std::swap(regex_, other->regex_); + std::swap(include_sys_tables_, other->include_sys_tables_); + std::swap(namespace__, other->namespace__); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetTableDescriptorsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetTableDescriptorsRequest_descriptor_; + metadata.reflection = GetTableDescriptorsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetTableDescriptorsResponse::kTableSchemaFieldNumber; +#endif // !_MSC_VER + +GetTableDescriptorsResponse::GetTableDescriptorsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetTableDescriptorsResponse::InitAsDefaultInstance() { +} + +GetTableDescriptorsResponse::GetTableDescriptorsResponse(const GetTableDescriptorsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetTableDescriptorsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetTableDescriptorsResponse::~GetTableDescriptorsResponse() { + SharedDtor(); +} + +void GetTableDescriptorsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetTableDescriptorsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetTableDescriptorsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetTableDescriptorsResponse_descriptor_; +} + +const GetTableDescriptorsResponse& GetTableDescriptorsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetTableDescriptorsResponse* GetTableDescriptorsResponse::default_instance_ = NULL; + +GetTableDescriptorsResponse* GetTableDescriptorsResponse::New() const { + return new GetTableDescriptorsResponse; +} + +void GetTableDescriptorsResponse::Clear() { + table_schema_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetTableDescriptorsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.TableSchema table_schema = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_table_schema; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetTableDescriptorsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.TableSchema table_schema = 1; + for (int i = 0; i < this->table_schema_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_schema(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetTableDescriptorsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.TableSchema table_schema = 1; + for (int i = 0; i < this->table_schema_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_schema(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetTableDescriptorsResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.TableSchema table_schema = 1; + total_size += 1 * this->table_schema_size(); + for (int i = 0; i < this->table_schema_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_schema(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetTableDescriptorsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetTableDescriptorsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetTableDescriptorsResponse::MergeFrom(const GetTableDescriptorsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + table_schema_.MergeFrom(from.table_schema_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetTableDescriptorsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTableDescriptorsResponse::CopyFrom(const GetTableDescriptorsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTableDescriptorsResponse::IsInitialized() const { + + for (int i = 0; i < table_schema_size(); i++) { + if (!this->table_schema(i).IsInitialized()) return false; + } + return true; +} + +void GetTableDescriptorsResponse::Swap(GetTableDescriptorsResponse* other) { + if (other != this) { + table_schema_.Swap(&other->table_schema_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetTableDescriptorsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetTableDescriptorsResponse_descriptor_; + metadata.reflection = GetTableDescriptorsResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetTableNamesRequest::kRegexFieldNumber; +const int GetTableNamesRequest::kIncludeSysTablesFieldNumber; +const int GetTableNamesRequest::kNamespaceFieldNumber; +#endif // !_MSC_VER + +GetTableNamesRequest::GetTableNamesRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetTableNamesRequest::InitAsDefaultInstance() { +} + +GetTableNamesRequest::GetTableNamesRequest(const GetTableNamesRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetTableNamesRequest::SharedCtor() { + _cached_size_ = 0; + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + include_sys_tables_ = false; + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetTableNamesRequest::~GetTableNamesRequest() { + SharedDtor(); +} + +void GetTableNamesRequest::SharedDtor() { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + delete regex_; + } + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + delete namespace__; + } + if (this != default_instance_) { + } +} + +void GetTableNamesRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetTableNamesRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetTableNamesRequest_descriptor_; +} + +const GetTableNamesRequest& GetTableNamesRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetTableNamesRequest* GetTableNamesRequest::default_instance_ = NULL; + +GetTableNamesRequest* GetTableNamesRequest::New() const { + return new GetTableNamesRequest; +} + +void GetTableNamesRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_regex()) { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + regex_->clear(); + } + } + include_sys_tables_ = false; + if (has_namespace_()) { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + namespace__->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetTableNamesRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string regex = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regex())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_include_sys_tables; + break; + } + + // optional bool include_sys_tables = 2 [default = false]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_include_sys_tables: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &include_sys_tables_))); + set_has_include_sys_tables(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_namespace; + break; + } + + // optional string namespace = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_namespace: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetTableNamesRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string regex = 1; + if (has_regex()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->regex(), output); + } + + // optional bool include_sys_tables = 2 [default = false]; + if (has_include_sys_tables()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->include_sys_tables(), output); + } + + // optional string namespace = 3; + if (has_namespace_()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->namespace_(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetTableNamesRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string regex = 1; + if (has_regex()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->regex(), target); + } + + // optional bool include_sys_tables = 2 [default = false]; + if (has_include_sys_tables()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->include_sys_tables(), target); + } + + // optional string namespace = 3; + if (has_namespace_()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->namespace_(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetTableNamesRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string regex = 1; + if (has_regex()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regex()); + } + + // optional bool include_sys_tables = 2 [default = false]; + if (has_include_sys_tables()) { + total_size += 1 + 1; + } + + // optional string namespace = 3; + if (has_namespace_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetTableNamesRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetTableNamesRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetTableNamesRequest::MergeFrom(const GetTableNamesRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_regex()) { + set_regex(from.regex()); + } + if (from.has_include_sys_tables()) { + set_include_sys_tables(from.include_sys_tables()); + } + if (from.has_namespace_()) { + set_namespace_(from.namespace_()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetTableNamesRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTableNamesRequest::CopyFrom(const GetTableNamesRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTableNamesRequest::IsInitialized() const { + + return true; +} + +void GetTableNamesRequest::Swap(GetTableNamesRequest* other) { + if (other != this) { + std::swap(regex_, other->regex_); + std::swap(include_sys_tables_, other->include_sys_tables_); + std::swap(namespace__, other->namespace__); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetTableNamesRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetTableNamesRequest_descriptor_; + metadata.reflection = GetTableNamesRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetTableNamesResponse::kTableNamesFieldNumber; +#endif // !_MSC_VER + +GetTableNamesResponse::GetTableNamesResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetTableNamesResponse::InitAsDefaultInstance() { +} + +GetTableNamesResponse::GetTableNamesResponse(const GetTableNamesResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetTableNamesResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetTableNamesResponse::~GetTableNamesResponse() { + SharedDtor(); +} + +void GetTableNamesResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetTableNamesResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetTableNamesResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetTableNamesResponse_descriptor_; +} + +const GetTableNamesResponse& GetTableNamesResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetTableNamesResponse* GetTableNamesResponse::default_instance_ = NULL; + +GetTableNamesResponse* GetTableNamesResponse::New() const { + return new GetTableNamesResponse; +} + +void GetTableNamesResponse::Clear() { + table_names_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetTableNamesResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.TableName table_names = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_names: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_table_names())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_table_names; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetTableNamesResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.TableName table_names = 1; + for (int i = 0; i < this->table_names_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_names(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetTableNamesResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.TableName table_names = 1; + for (int i = 0; i < this->table_names_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_names(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetTableNamesResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.TableName table_names = 1; + total_size += 1 * this->table_names_size(); + for (int i = 0; i < this->table_names_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_names(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetTableNamesResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetTableNamesResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetTableNamesResponse::MergeFrom(const GetTableNamesResponse& from) { + GOOGLE_CHECK_NE(&from, this); + table_names_.MergeFrom(from.table_names_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetTableNamesResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTableNamesResponse::CopyFrom(const GetTableNamesResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTableNamesResponse::IsInitialized() const { + + for (int i = 0; i < table_names_size(); i++) { + if (!this->table_names(i).IsInitialized()) return false; + } + return true; +} + +void GetTableNamesResponse::Swap(GetTableNamesResponse* other) { + if (other != this) { + table_names_.Swap(&other->table_names_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetTableNamesResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetTableNamesResponse_descriptor_; + metadata.reflection = GetTableNamesResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetTableStateRequest::kTableNameFieldNumber; +#endif // !_MSC_VER + +GetTableStateRequest::GetTableStateRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetTableStateRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +GetTableStateRequest::GetTableStateRequest(const GetTableStateRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetTableStateRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetTableStateRequest::~GetTableStateRequest() { + SharedDtor(); +} + +void GetTableStateRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void GetTableStateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetTableStateRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetTableStateRequest_descriptor_; +} + +const GetTableStateRequest& GetTableStateRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetTableStateRequest* GetTableStateRequest::default_instance_ = NULL; + +GetTableStateRequest* GetTableStateRequest::New() const { + return new GetTableStateRequest; +} + +void GetTableStateRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetTableStateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetTableStateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetTableStateRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetTableStateRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetTableStateRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetTableStateRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetTableStateRequest::MergeFrom(const GetTableStateRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetTableStateRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTableStateRequest::CopyFrom(const GetTableStateRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTableStateRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void GetTableStateRequest::Swap(GetTableStateRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetTableStateRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetTableStateRequest_descriptor_; + metadata.reflection = GetTableStateRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetTableStateResponse::kTableStateFieldNumber; +#endif // !_MSC_VER + +GetTableStateResponse::GetTableStateResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetTableStateResponse::InitAsDefaultInstance() { + table_state_ = const_cast< ::hbase::pb::TableState*>(&::hbase::pb::TableState::default_instance()); +} + +GetTableStateResponse::GetTableStateResponse(const GetTableStateResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetTableStateResponse::SharedCtor() { + _cached_size_ = 0; + table_state_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetTableStateResponse::~GetTableStateResponse() { + SharedDtor(); +} + +void GetTableStateResponse::SharedDtor() { + if (this != default_instance_) { + delete table_state_; + } +} + +void GetTableStateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetTableStateResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetTableStateResponse_descriptor_; +} + +const GetTableStateResponse& GetTableStateResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetTableStateResponse* GetTableStateResponse::default_instance_ = NULL; + +GetTableStateResponse* GetTableStateResponse::New() const { + return new GetTableStateResponse; +} + +void GetTableStateResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_state()) { + if (table_state_ != NULL) table_state_->::hbase::pb::TableState::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetTableStateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableState table_state = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_state())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetTableStateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableState table_state = 1; + if (has_table_state()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_state(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetTableStateResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableState table_state = 1; + if (has_table_state()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_state(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetTableStateResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableState table_state = 1; + if (has_table_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_state()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetTableStateResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetTableStateResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetTableStateResponse::MergeFrom(const GetTableStateResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_state()) { + mutable_table_state()->::hbase::pb::TableState::MergeFrom(from.table_state()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetTableStateResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTableStateResponse::CopyFrom(const GetTableStateResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTableStateResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_state()) { + if (!this->table_state().IsInitialized()) return false; + } + return true; +} + +void GetTableStateResponse::Swap(GetTableStateResponse* other) { + if (other != this) { + std::swap(table_state_, other->table_state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetTableStateResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetTableStateResponse_descriptor_; + metadata.reflection = GetTableStateResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +GetClusterStatusRequest::GetClusterStatusRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetClusterStatusRequest::InitAsDefaultInstance() { +} + +GetClusterStatusRequest::GetClusterStatusRequest(const GetClusterStatusRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetClusterStatusRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetClusterStatusRequest::~GetClusterStatusRequest() { + SharedDtor(); +} + +void GetClusterStatusRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetClusterStatusRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetClusterStatusRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetClusterStatusRequest_descriptor_; +} + +const GetClusterStatusRequest& GetClusterStatusRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetClusterStatusRequest* GetClusterStatusRequest::default_instance_ = NULL; + +GetClusterStatusRequest* GetClusterStatusRequest::New() const { + return new GetClusterStatusRequest; +} + +void GetClusterStatusRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetClusterStatusRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void GetClusterStatusRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetClusterStatusRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetClusterStatusRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetClusterStatusRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetClusterStatusRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetClusterStatusRequest::MergeFrom(const GetClusterStatusRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetClusterStatusRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetClusterStatusRequest::CopyFrom(const GetClusterStatusRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetClusterStatusRequest::IsInitialized() const { + + return true; +} + +void GetClusterStatusRequest::Swap(GetClusterStatusRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetClusterStatusRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetClusterStatusRequest_descriptor_; + metadata.reflection = GetClusterStatusRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetClusterStatusResponse::kClusterStatusFieldNumber; +#endif // !_MSC_VER + +GetClusterStatusResponse::GetClusterStatusResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetClusterStatusResponse::InitAsDefaultInstance() { + cluster_status_ = const_cast< ::hbase::pb::ClusterStatus*>(&::hbase::pb::ClusterStatus::default_instance()); +} + +GetClusterStatusResponse::GetClusterStatusResponse(const GetClusterStatusResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetClusterStatusResponse::SharedCtor() { + _cached_size_ = 0; + cluster_status_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetClusterStatusResponse::~GetClusterStatusResponse() { + SharedDtor(); +} + +void GetClusterStatusResponse::SharedDtor() { + if (this != default_instance_) { + delete cluster_status_; + } +} + +void GetClusterStatusResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetClusterStatusResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetClusterStatusResponse_descriptor_; +} + +const GetClusterStatusResponse& GetClusterStatusResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetClusterStatusResponse* GetClusterStatusResponse::default_instance_ = NULL; + +GetClusterStatusResponse* GetClusterStatusResponse::New() const { + return new GetClusterStatusResponse; +} + +void GetClusterStatusResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_cluster_status()) { + if (cluster_status_ != NULL) cluster_status_->::hbase::pb::ClusterStatus::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetClusterStatusResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ClusterStatus cluster_status = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_cluster_status())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetClusterStatusResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ClusterStatus cluster_status = 1; + if (has_cluster_status()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->cluster_status(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetClusterStatusResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ClusterStatus cluster_status = 1; + if (has_cluster_status()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->cluster_status(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetClusterStatusResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ClusterStatus cluster_status = 1; + if (has_cluster_status()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cluster_status()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetClusterStatusResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetClusterStatusResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetClusterStatusResponse::MergeFrom(const GetClusterStatusResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_cluster_status()) { + mutable_cluster_status()->::hbase::pb::ClusterStatus::MergeFrom(from.cluster_status()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetClusterStatusResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetClusterStatusResponse::CopyFrom(const GetClusterStatusResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetClusterStatusResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_cluster_status()) { + if (!this->cluster_status().IsInitialized()) return false; + } + return true; +} + +void GetClusterStatusResponse::Swap(GetClusterStatusResponse* other) { + if (other != this) { + std::swap(cluster_status_, other->cluster_status_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetClusterStatusResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetClusterStatusResponse_descriptor_; + metadata.reflection = GetClusterStatusResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +IsMasterRunningRequest::IsMasterRunningRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsMasterRunningRequest::InitAsDefaultInstance() { +} + +IsMasterRunningRequest::IsMasterRunningRequest(const IsMasterRunningRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsMasterRunningRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsMasterRunningRequest::~IsMasterRunningRequest() { + SharedDtor(); +} + +void IsMasterRunningRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsMasterRunningRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsMasterRunningRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsMasterRunningRequest_descriptor_; +} + +const IsMasterRunningRequest& IsMasterRunningRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsMasterRunningRequest* IsMasterRunningRequest::default_instance_ = NULL; + +IsMasterRunningRequest* IsMasterRunningRequest::New() const { + return new IsMasterRunningRequest; +} + +void IsMasterRunningRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsMasterRunningRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void IsMasterRunningRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsMasterRunningRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsMasterRunningRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsMasterRunningRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsMasterRunningRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsMasterRunningRequest::MergeFrom(const IsMasterRunningRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsMasterRunningRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsMasterRunningRequest::CopyFrom(const IsMasterRunningRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsMasterRunningRequest::IsInitialized() const { + + return true; +} + +void IsMasterRunningRequest::Swap(IsMasterRunningRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsMasterRunningRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsMasterRunningRequest_descriptor_; + metadata.reflection = IsMasterRunningRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsMasterRunningResponse::kIsMasterRunningFieldNumber; +#endif // !_MSC_VER + +IsMasterRunningResponse::IsMasterRunningResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsMasterRunningResponse::InitAsDefaultInstance() { +} + +IsMasterRunningResponse::IsMasterRunningResponse(const IsMasterRunningResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsMasterRunningResponse::SharedCtor() { + _cached_size_ = 0; + is_master_running_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsMasterRunningResponse::~IsMasterRunningResponse() { + SharedDtor(); +} + +void IsMasterRunningResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void IsMasterRunningResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsMasterRunningResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsMasterRunningResponse_descriptor_; +} + +const IsMasterRunningResponse& IsMasterRunningResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsMasterRunningResponse* IsMasterRunningResponse::default_instance_ = NULL; + +IsMasterRunningResponse* IsMasterRunningResponse::New() const { + return new IsMasterRunningResponse; +} + +void IsMasterRunningResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + is_master_running_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsMasterRunningResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool is_master_running = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_master_running_))); + set_has_is_master_running(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsMasterRunningResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool is_master_running = 1; + if (has_is_master_running()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_master_running(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsMasterRunningResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool is_master_running = 1; + if (has_is_master_running()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_master_running(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsMasterRunningResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool is_master_running = 1; + if (has_is_master_running()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsMasterRunningResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsMasterRunningResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsMasterRunningResponse::MergeFrom(const IsMasterRunningResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_is_master_running()) { + set_is_master_running(from.is_master_running()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsMasterRunningResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsMasterRunningResponse::CopyFrom(const IsMasterRunningResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsMasterRunningResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void IsMasterRunningResponse::Swap(IsMasterRunningResponse* other) { + if (other != this) { + std::swap(is_master_running_, other->is_master_running_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsMasterRunningResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsMasterRunningResponse_descriptor_; + metadata.reflection = IsMasterRunningResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ExecProcedureRequest::kProcedureFieldNumber; +#endif // !_MSC_VER + +ExecProcedureRequest::ExecProcedureRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ExecProcedureRequest::InitAsDefaultInstance() { + procedure_ = const_cast< ::hbase::pb::ProcedureDescription*>(&::hbase::pb::ProcedureDescription::default_instance()); +} + +ExecProcedureRequest::ExecProcedureRequest(const ExecProcedureRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ExecProcedureRequest::SharedCtor() { + _cached_size_ = 0; + procedure_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ExecProcedureRequest::~ExecProcedureRequest() { + SharedDtor(); +} + +void ExecProcedureRequest::SharedDtor() { + if (this != default_instance_) { + delete procedure_; + } +} + +void ExecProcedureRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecProcedureRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ExecProcedureRequest_descriptor_; +} + +const ExecProcedureRequest& ExecProcedureRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ExecProcedureRequest* ExecProcedureRequest::default_instance_ = NULL; + +ExecProcedureRequest* ExecProcedureRequest::New() const { + return new ExecProcedureRequest; +} + +void ExecProcedureRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_procedure()) { + if (procedure_ != NULL) procedure_->::hbase::pb::ProcedureDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ExecProcedureRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ProcedureDescription procedure = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_procedure())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ExecProcedureRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ProcedureDescription procedure = 1; + if (has_procedure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->procedure(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ExecProcedureRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ProcedureDescription procedure = 1; + if (has_procedure()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->procedure(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ExecProcedureRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ProcedureDescription procedure = 1; + if (has_procedure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->procedure()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecProcedureRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ExecProcedureRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ExecProcedureRequest::MergeFrom(const ExecProcedureRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_procedure()) { + mutable_procedure()->::hbase::pb::ProcedureDescription::MergeFrom(from.procedure()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ExecProcedureRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecProcedureRequest::CopyFrom(const ExecProcedureRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecProcedureRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_procedure()) { + if (!this->procedure().IsInitialized()) return false; + } + return true; +} + +void ExecProcedureRequest::Swap(ExecProcedureRequest* other) { + if (other != this) { + std::swap(procedure_, other->procedure_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ExecProcedureRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ExecProcedureRequest_descriptor_; + metadata.reflection = ExecProcedureRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ExecProcedureResponse::kExpectedTimeoutFieldNumber; +const int ExecProcedureResponse::kReturnDataFieldNumber; +#endif // !_MSC_VER + +ExecProcedureResponse::ExecProcedureResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ExecProcedureResponse::InitAsDefaultInstance() { +} + +ExecProcedureResponse::ExecProcedureResponse(const ExecProcedureResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ExecProcedureResponse::SharedCtor() { + _cached_size_ = 0; + expected_timeout_ = GOOGLE_LONGLONG(0); + return_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ExecProcedureResponse::~ExecProcedureResponse() { + SharedDtor(); +} + +void ExecProcedureResponse::SharedDtor() { + if (return_data_ != &::google::protobuf::internal::kEmptyString) { + delete return_data_; + } + if (this != default_instance_) { + } +} + +void ExecProcedureResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecProcedureResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ExecProcedureResponse_descriptor_; +} + +const ExecProcedureResponse& ExecProcedureResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ExecProcedureResponse* ExecProcedureResponse::default_instance_ = NULL; + +ExecProcedureResponse* ExecProcedureResponse::New() const { + return new ExecProcedureResponse; +} + +void ExecProcedureResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + expected_timeout_ = GOOGLE_LONGLONG(0); + if (has_return_data()) { + if (return_data_ != &::google::protobuf::internal::kEmptyString) { + return_data_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ExecProcedureResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int64 expected_timeout = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &expected_timeout_))); + set_has_expected_timeout(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_return_data; + break; + } + + // optional bytes return_data = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_return_data: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_return_data())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ExecProcedureResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional int64 expected_timeout = 1; + if (has_expected_timeout()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->expected_timeout(), output); + } + + // optional bytes return_data = 2; + if (has_return_data()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->return_data(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ExecProcedureResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional int64 expected_timeout = 1; + if (has_expected_timeout()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->expected_timeout(), target); + } + + // optional bytes return_data = 2; + if (has_return_data()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->return_data(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ExecProcedureResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional int64 expected_timeout = 1; + if (has_expected_timeout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->expected_timeout()); + } + + // optional bytes return_data = 2; + if (has_return_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->return_data()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecProcedureResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ExecProcedureResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ExecProcedureResponse::MergeFrom(const ExecProcedureResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_expected_timeout()) { + set_expected_timeout(from.expected_timeout()); + } + if (from.has_return_data()) { + set_return_data(from.return_data()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ExecProcedureResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecProcedureResponse::CopyFrom(const ExecProcedureResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecProcedureResponse::IsInitialized() const { + + return true; +} + +void ExecProcedureResponse::Swap(ExecProcedureResponse* other) { + if (other != this) { + std::swap(expected_timeout_, other->expected_timeout_); + std::swap(return_data_, other->return_data_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ExecProcedureResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ExecProcedureResponse_descriptor_; + metadata.reflection = ExecProcedureResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsProcedureDoneRequest::kProcedureFieldNumber; +#endif // !_MSC_VER + +IsProcedureDoneRequest::IsProcedureDoneRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsProcedureDoneRequest::InitAsDefaultInstance() { + procedure_ = const_cast< ::hbase::pb::ProcedureDescription*>(&::hbase::pb::ProcedureDescription::default_instance()); +} + +IsProcedureDoneRequest::IsProcedureDoneRequest(const IsProcedureDoneRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsProcedureDoneRequest::SharedCtor() { + _cached_size_ = 0; + procedure_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsProcedureDoneRequest::~IsProcedureDoneRequest() { + SharedDtor(); +} + +void IsProcedureDoneRequest::SharedDtor() { + if (this != default_instance_) { + delete procedure_; + } +} + +void IsProcedureDoneRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsProcedureDoneRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsProcedureDoneRequest_descriptor_; +} + +const IsProcedureDoneRequest& IsProcedureDoneRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsProcedureDoneRequest* IsProcedureDoneRequest::default_instance_ = NULL; + +IsProcedureDoneRequest* IsProcedureDoneRequest::New() const { + return new IsProcedureDoneRequest; +} + +void IsProcedureDoneRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_procedure()) { + if (procedure_ != NULL) procedure_->::hbase::pb::ProcedureDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsProcedureDoneRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.ProcedureDescription procedure = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_procedure())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsProcedureDoneRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.ProcedureDescription procedure = 1; + if (has_procedure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->procedure(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsProcedureDoneRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.ProcedureDescription procedure = 1; + if (has_procedure()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->procedure(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsProcedureDoneRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.ProcedureDescription procedure = 1; + if (has_procedure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->procedure()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsProcedureDoneRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsProcedureDoneRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsProcedureDoneRequest::MergeFrom(const IsProcedureDoneRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_procedure()) { + mutable_procedure()->::hbase::pb::ProcedureDescription::MergeFrom(from.procedure()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsProcedureDoneRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsProcedureDoneRequest::CopyFrom(const IsProcedureDoneRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsProcedureDoneRequest::IsInitialized() const { + + if (has_procedure()) { + if (!this->procedure().IsInitialized()) return false; + } + return true; +} + +void IsProcedureDoneRequest::Swap(IsProcedureDoneRequest* other) { + if (other != this) { + std::swap(procedure_, other->procedure_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsProcedureDoneRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsProcedureDoneRequest_descriptor_; + metadata.reflection = IsProcedureDoneRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int IsProcedureDoneResponse::kDoneFieldNumber; +const int IsProcedureDoneResponse::kSnapshotFieldNumber; +#endif // !_MSC_VER + +IsProcedureDoneResponse::IsProcedureDoneResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void IsProcedureDoneResponse::InitAsDefaultInstance() { + snapshot_ = const_cast< ::hbase::pb::ProcedureDescription*>(&::hbase::pb::ProcedureDescription::default_instance()); +} + +IsProcedureDoneResponse::IsProcedureDoneResponse(const IsProcedureDoneResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void IsProcedureDoneResponse::SharedCtor() { + _cached_size_ = 0; + done_ = false; + snapshot_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +IsProcedureDoneResponse::~IsProcedureDoneResponse() { + SharedDtor(); +} + +void IsProcedureDoneResponse::SharedDtor() { + if (this != default_instance_) { + delete snapshot_; + } +} + +void IsProcedureDoneResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IsProcedureDoneResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return IsProcedureDoneResponse_descriptor_; +} + +const IsProcedureDoneResponse& IsProcedureDoneResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +IsProcedureDoneResponse* IsProcedureDoneResponse::default_instance_ = NULL; + +IsProcedureDoneResponse* IsProcedureDoneResponse::New() const { + return new IsProcedureDoneResponse; +} + +void IsProcedureDoneResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + done_ = false; + if (has_snapshot()) { + if (snapshot_ != NULL) snapshot_->::hbase::pb::ProcedureDescription::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool IsProcedureDoneResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool done = 1 [default = false]; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &done_))); + set_has_done(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_snapshot; + break; + } + + // optional .hbase.pb.ProcedureDescription snapshot = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_snapshot: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_snapshot())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void IsProcedureDoneResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool done = 1 [default = false]; + if (has_done()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->done(), output); + } + + // optional .hbase.pb.ProcedureDescription snapshot = 2; + if (has_snapshot()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->snapshot(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* IsProcedureDoneResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool done = 1 [default = false]; + if (has_done()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->done(), target); + } + + // optional .hbase.pb.ProcedureDescription snapshot = 2; + if (has_snapshot()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->snapshot(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int IsProcedureDoneResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool done = 1 [default = false]; + if (has_done()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.ProcedureDescription snapshot = 2; + if (has_snapshot()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->snapshot()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IsProcedureDoneResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const IsProcedureDoneResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void IsProcedureDoneResponse::MergeFrom(const IsProcedureDoneResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_done()) { + set_done(from.done()); + } + if (from.has_snapshot()) { + mutable_snapshot()->::hbase::pb::ProcedureDescription::MergeFrom(from.snapshot()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void IsProcedureDoneResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IsProcedureDoneResponse::CopyFrom(const IsProcedureDoneResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IsProcedureDoneResponse::IsInitialized() const { + + if (has_snapshot()) { + if (!this->snapshot().IsInitialized()) return false; + } + return true; +} + +void IsProcedureDoneResponse::Swap(IsProcedureDoneResponse* other) { + if (other != this) { + std::swap(done_, other->done_); + std::swap(snapshot_, other->snapshot_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata IsProcedureDoneResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = IsProcedureDoneResponse_descriptor_; + metadata.reflection = IsProcedureDoneResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetProcedureResultRequest::kProcIdFieldNumber; +#endif // !_MSC_VER + +GetProcedureResultRequest::GetProcedureResultRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetProcedureResultRequest::InitAsDefaultInstance() { +} + +GetProcedureResultRequest::GetProcedureResultRequest(const GetProcedureResultRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetProcedureResultRequest::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetProcedureResultRequest::~GetProcedureResultRequest() { + SharedDtor(); +} + +void GetProcedureResultRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetProcedureResultRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetProcedureResultRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetProcedureResultRequest_descriptor_; +} + +const GetProcedureResultRequest& GetProcedureResultRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetProcedureResultRequest* GetProcedureResultRequest::default_instance_ = NULL; + +GetProcedureResultRequest* GetProcedureResultRequest::New() const { + return new GetProcedureResultRequest; +} + +void GetProcedureResultRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetProcedureResultRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetProcedureResultRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetProcedureResultRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetProcedureResultRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetProcedureResultRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetProcedureResultRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetProcedureResultRequest::MergeFrom(const GetProcedureResultRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetProcedureResultRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetProcedureResultRequest::CopyFrom(const GetProcedureResultRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetProcedureResultRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void GetProcedureResultRequest::Swap(GetProcedureResultRequest* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetProcedureResultRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetProcedureResultRequest_descriptor_; + metadata.reflection = GetProcedureResultRequest_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* GetProcedureResultResponse_State_descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetProcedureResultResponse_State_descriptor_; +} +bool GetProcedureResultResponse_State_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const GetProcedureResultResponse_State GetProcedureResultResponse::NOT_FOUND; +const GetProcedureResultResponse_State GetProcedureResultResponse::RUNNING; +const GetProcedureResultResponse_State GetProcedureResultResponse::FINISHED; +const GetProcedureResultResponse_State GetProcedureResultResponse::State_MIN; +const GetProcedureResultResponse_State GetProcedureResultResponse::State_MAX; +const int GetProcedureResultResponse::State_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int GetProcedureResultResponse::kStateFieldNumber; +const int GetProcedureResultResponse::kStartTimeFieldNumber; +const int GetProcedureResultResponse::kLastUpdateFieldNumber; +const int GetProcedureResultResponse::kResultFieldNumber; +const int GetProcedureResultResponse::kExceptionFieldNumber; +#endif // !_MSC_VER + +GetProcedureResultResponse::GetProcedureResultResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetProcedureResultResponse::InitAsDefaultInstance() { + exception_ = const_cast< ::hbase::pb::ForeignExceptionMessage*>(&::hbase::pb::ForeignExceptionMessage::default_instance()); +} + +GetProcedureResultResponse::GetProcedureResultResponse(const GetProcedureResultResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetProcedureResultResponse::SharedCtor() { + _cached_size_ = 0; + state_ = 0; + start_time_ = GOOGLE_ULONGLONG(0); + last_update_ = GOOGLE_ULONGLONG(0); + result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + exception_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetProcedureResultResponse::~GetProcedureResultResponse() { + SharedDtor(); +} + +void GetProcedureResultResponse::SharedDtor() { + if (result_ != &::google::protobuf::internal::kEmptyString) { + delete result_; + } + if (this != default_instance_) { + delete exception_; + } +} + +void GetProcedureResultResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetProcedureResultResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetProcedureResultResponse_descriptor_; +} + +const GetProcedureResultResponse& GetProcedureResultResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +GetProcedureResultResponse* GetProcedureResultResponse::default_instance_ = NULL; + +GetProcedureResultResponse* GetProcedureResultResponse::New() const { + return new GetProcedureResultResponse; +} + +void GetProcedureResultResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + state_ = 0; + start_time_ = GOOGLE_ULONGLONG(0); + last_update_ = GOOGLE_ULONGLONG(0); + if (has_result()) { + if (result_ != &::google::protobuf::internal::kEmptyString) { + result_->clear(); + } + } + if (has_exception()) { + if (exception_ != NULL) exception_->::hbase::pb::ForeignExceptionMessage::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetProcedureResultResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.GetProcedureResultResponse.State state = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::GetProcedureResultResponse_State_IsValid(value)) { + set_state(static_cast< ::hbase::pb::GetProcedureResultResponse_State >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_start_time; + break; + } + + // optional uint64 start_time = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_start_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &start_time_))); + set_has_start_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_last_update; + break; + } + + // optional uint64 last_update = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_last_update: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &last_update_))); + set_has_last_update(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_result; + break; + } + + // optional bytes result = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_result: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_result())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_exception; + break; + } + + // optional .hbase.pb.ForeignExceptionMessage exception = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_exception: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_exception())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetProcedureResultResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.GetProcedureResultResponse.State state = 1; + if (has_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // optional uint64 start_time = 2; + if (has_start_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->start_time(), output); + } + + // optional uint64 last_update = 3; + if (has_last_update()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->last_update(), output); + } + + // optional bytes result = 4; + if (has_result()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 4, this->result(), output); + } + + // optional .hbase.pb.ForeignExceptionMessage exception = 5; + if (has_exception()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->exception(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetProcedureResultResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.GetProcedureResultResponse.State state = 1; + if (has_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // optional uint64 start_time = 2; + if (has_start_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->start_time(), target); + } + + // optional uint64 last_update = 3; + if (has_last_update()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->last_update(), target); + } + + // optional bytes result = 4; + if (has_result()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->result(), target); + } + + // optional .hbase.pb.ForeignExceptionMessage exception = 5; + if (has_exception()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->exception(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetProcedureResultResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.GetProcedureResultResponse.State state = 1; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + // optional uint64 start_time = 2; + if (has_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->start_time()); + } + + // optional uint64 last_update = 3; + if (has_last_update()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->last_update()); + } + + // optional bytes result = 4; + if (has_result()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->result()); + } + + // optional .hbase.pb.ForeignExceptionMessage exception = 5; + if (has_exception()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->exception()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetProcedureResultResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetProcedureResultResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetProcedureResultResponse::MergeFrom(const GetProcedureResultResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_state()) { + set_state(from.state()); + } + if (from.has_start_time()) { + set_start_time(from.start_time()); + } + if (from.has_last_update()) { + set_last_update(from.last_update()); + } + if (from.has_result()) { + set_result(from.result()); + } + if (from.has_exception()) { + mutable_exception()->::hbase::pb::ForeignExceptionMessage::MergeFrom(from.exception()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetProcedureResultResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetProcedureResultResponse::CopyFrom(const GetProcedureResultResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetProcedureResultResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void GetProcedureResultResponse::Swap(GetProcedureResultResponse* other) { + if (other != this) { + std::swap(state_, other->state_); + std::swap(start_time_, other->start_time_); + std::swap(last_update_, other->last_update_); + std::swap(result_, other->result_); + std::swap(exception_, other->exception_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetProcedureResultResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetProcedureResultResponse_descriptor_; + metadata.reflection = GetProcedureResultResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AbortProcedureRequest::kProcIdFieldNumber; +const int AbortProcedureRequest::kMayInterruptIfRunningFieldNumber; +#endif // !_MSC_VER + +AbortProcedureRequest::AbortProcedureRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AbortProcedureRequest::InitAsDefaultInstance() { +} + +AbortProcedureRequest::AbortProcedureRequest(const AbortProcedureRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AbortProcedureRequest::SharedCtor() { + _cached_size_ = 0; + proc_id_ = GOOGLE_ULONGLONG(0); + mayinterruptifrunning_ = true; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AbortProcedureRequest::~AbortProcedureRequest() { + SharedDtor(); +} + +void AbortProcedureRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void AbortProcedureRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AbortProcedureRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AbortProcedureRequest_descriptor_; +} + +const AbortProcedureRequest& AbortProcedureRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +AbortProcedureRequest* AbortProcedureRequest::default_instance_ = NULL; + +AbortProcedureRequest* AbortProcedureRequest::New() const { + return new AbortProcedureRequest; +} + +void AbortProcedureRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + proc_id_ = GOOGLE_ULONGLONG(0); + mayinterruptifrunning_ = true; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AbortProcedureRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 proc_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_mayInterruptIfRunning; + break; + } + + // optional bool mayInterruptIfRunning = 2 [default = true]; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_mayInterruptIfRunning: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &mayinterruptifrunning_))); + set_has_mayinterruptifrunning(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AbortProcedureRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 proc_id = 1; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->proc_id(), output); + } + + // optional bool mayInterruptIfRunning = 2 [default = true]; + if (has_mayinterruptifrunning()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->mayinterruptifrunning(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AbortProcedureRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 proc_id = 1; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->proc_id(), target); + } + + // optional bool mayInterruptIfRunning = 2 [default = true]; + if (has_mayinterruptifrunning()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->mayinterruptifrunning(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AbortProcedureRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 proc_id = 1; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + // optional bool mayInterruptIfRunning = 2 [default = true]; + if (has_mayinterruptifrunning()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AbortProcedureRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AbortProcedureRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AbortProcedureRequest::MergeFrom(const AbortProcedureRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + if (from.has_mayinterruptifrunning()) { + set_mayinterruptifrunning(from.mayinterruptifrunning()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AbortProcedureRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AbortProcedureRequest::CopyFrom(const AbortProcedureRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AbortProcedureRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void AbortProcedureRequest::Swap(AbortProcedureRequest* other) { + if (other != this) { + std::swap(proc_id_, other->proc_id_); + std::swap(mayinterruptifrunning_, other->mayinterruptifrunning_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AbortProcedureRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AbortProcedureRequest_descriptor_; + metadata.reflection = AbortProcedureRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AbortProcedureResponse::kIsProcedureAbortedFieldNumber; +#endif // !_MSC_VER + +AbortProcedureResponse::AbortProcedureResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AbortProcedureResponse::InitAsDefaultInstance() { +} + +AbortProcedureResponse::AbortProcedureResponse(const AbortProcedureResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AbortProcedureResponse::SharedCtor() { + _cached_size_ = 0; + is_procedure_aborted_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AbortProcedureResponse::~AbortProcedureResponse() { + SharedDtor(); +} + +void AbortProcedureResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void AbortProcedureResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AbortProcedureResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AbortProcedureResponse_descriptor_; +} + +const AbortProcedureResponse& AbortProcedureResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +AbortProcedureResponse* AbortProcedureResponse::default_instance_ = NULL; + +AbortProcedureResponse* AbortProcedureResponse::New() const { + return new AbortProcedureResponse; +} + +void AbortProcedureResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + is_procedure_aborted_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AbortProcedureResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool is_procedure_aborted = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_procedure_aborted_))); + set_has_is_procedure_aborted(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AbortProcedureResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool is_procedure_aborted = 1; + if (has_is_procedure_aborted()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_procedure_aborted(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AbortProcedureResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool is_procedure_aborted = 1; + if (has_is_procedure_aborted()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_procedure_aborted(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AbortProcedureResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool is_procedure_aborted = 1; + if (has_is_procedure_aborted()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AbortProcedureResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AbortProcedureResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AbortProcedureResponse::MergeFrom(const AbortProcedureResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_is_procedure_aborted()) { + set_is_procedure_aborted(from.is_procedure_aborted()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AbortProcedureResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AbortProcedureResponse::CopyFrom(const AbortProcedureResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AbortProcedureResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void AbortProcedureResponse::Swap(AbortProcedureResponse* other) { + if (other != this) { + std::swap(is_procedure_aborted_, other->is_procedure_aborted_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AbortProcedureResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AbortProcedureResponse_descriptor_; + metadata.reflection = AbortProcedureResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ListProceduresRequest::ListProceduresRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListProceduresRequest::InitAsDefaultInstance() { +} + +ListProceduresRequest::ListProceduresRequest(const ListProceduresRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListProceduresRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListProceduresRequest::~ListProceduresRequest() { + SharedDtor(); +} + +void ListProceduresRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListProceduresRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListProceduresRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListProceduresRequest_descriptor_; +} + +const ListProceduresRequest& ListProceduresRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ListProceduresRequest* ListProceduresRequest::default_instance_ = NULL; + +ListProceduresRequest* ListProceduresRequest::New() const { + return new ListProceduresRequest; +} + +void ListProceduresRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListProceduresRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ListProceduresRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListProceduresRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListProceduresRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListProceduresRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListProceduresRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListProceduresRequest::MergeFrom(const ListProceduresRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListProceduresRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListProceduresRequest::CopyFrom(const ListProceduresRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListProceduresRequest::IsInitialized() const { + + return true; +} + +void ListProceduresRequest::Swap(ListProceduresRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListProceduresRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListProceduresRequest_descriptor_; + metadata.reflection = ListProceduresRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListProceduresResponse::kProcedureFieldNumber; +#endif // !_MSC_VER + +ListProceduresResponse::ListProceduresResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListProceduresResponse::InitAsDefaultInstance() { +} + +ListProceduresResponse::ListProceduresResponse(const ListProceduresResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListProceduresResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListProceduresResponse::~ListProceduresResponse() { + SharedDtor(); +} + +void ListProceduresResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListProceduresResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListProceduresResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListProceduresResponse_descriptor_; +} + +const ListProceduresResponse& ListProceduresResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +ListProceduresResponse* ListProceduresResponse::default_instance_ = NULL; + +ListProceduresResponse* ListProceduresResponse::New() const { + return new ListProceduresResponse; +} + +void ListProceduresResponse::Clear() { + procedure_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListProceduresResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.Procedure procedure = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_procedure: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_procedure())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_procedure; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListProceduresResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.Procedure procedure = 1; + for (int i = 0; i < this->procedure_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->procedure(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListProceduresResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.Procedure procedure = 1; + for (int i = 0; i < this->procedure_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->procedure(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListProceduresResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.Procedure procedure = 1; + total_size += 1 * this->procedure_size(); + for (int i = 0; i < this->procedure_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->procedure(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListProceduresResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListProceduresResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListProceduresResponse::MergeFrom(const ListProceduresResponse& from) { + GOOGLE_CHECK_NE(&from, this); + procedure_.MergeFrom(from.procedure_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListProceduresResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListProceduresResponse::CopyFrom(const ListProceduresResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListProceduresResponse::IsInitialized() const { + + for (int i = 0; i < procedure_size(); i++) { + if (!this->procedure(i).IsInitialized()) return false; + } + return true; +} + +void ListProceduresResponse::Swap(ListProceduresResponse* other) { + if (other != this) { + procedure_.Swap(&other->procedure_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListProceduresResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListProceduresResponse_descriptor_; + metadata.reflection = ListProceduresResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SetQuotaRequest::kUserNameFieldNumber; +const int SetQuotaRequest::kUserGroupFieldNumber; +const int SetQuotaRequest::kNamespaceFieldNumber; +const int SetQuotaRequest::kTableNameFieldNumber; +const int SetQuotaRequest::kRemoveAllFieldNumber; +const int SetQuotaRequest::kBypassGlobalsFieldNumber; +const int SetQuotaRequest::kThrottleFieldNumber; +#endif // !_MSC_VER + +SetQuotaRequest::SetQuotaRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetQuotaRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + throttle_ = const_cast< ::hbase::pb::ThrottleRequest*>(&::hbase::pb::ThrottleRequest::default_instance()); +} + +SetQuotaRequest::SetQuotaRequest(const SetQuotaRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetQuotaRequest::SharedCtor() { + _cached_size_ = 0; + user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + user_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + table_name_ = NULL; + remove_all_ = false; + bypass_globals_ = false; + throttle_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetQuotaRequest::~SetQuotaRequest() { + SharedDtor(); +} + +void SetQuotaRequest::SharedDtor() { + if (user_name_ != &::google::protobuf::internal::kEmptyString) { + delete user_name_; + } + if (user_group_ != &::google::protobuf::internal::kEmptyString) { + delete user_group_; + } + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + delete namespace__; + } + if (this != default_instance_) { + delete table_name_; + delete throttle_; + } +} + +void SetQuotaRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetQuotaRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetQuotaRequest_descriptor_; +} + +const SetQuotaRequest& SetQuotaRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SetQuotaRequest* SetQuotaRequest::default_instance_ = NULL; + +SetQuotaRequest* SetQuotaRequest::New() const { + return new SetQuotaRequest; +} + +void SetQuotaRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_name()) { + if (user_name_ != &::google::protobuf::internal::kEmptyString) { + user_name_->clear(); + } + } + if (has_user_group()) { + if (user_group_ != &::google::protobuf::internal::kEmptyString) { + user_group_->clear(); + } + } + if (has_namespace_()) { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + namespace__->clear(); + } + } + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + remove_all_ = false; + bypass_globals_ = false; + if (has_throttle()) { + if (throttle_ != NULL) throttle_->::hbase::pb::ThrottleRequest::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetQuotaRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string user_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_user_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user_name().data(), this->user_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_user_group; + break; + } + + // optional string user_group = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_user_group: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_user_group())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user_group().data(), this->user_group().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_namespace; + break; + } + + // optional string namespace = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_namespace: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_table_name; + break; + } + + // optional .hbase.pb.TableName table_name = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_remove_all; + break; + } + + // optional bool remove_all = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_remove_all: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &remove_all_))); + set_has_remove_all(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_bypass_globals; + break; + } + + // optional bool bypass_globals = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_bypass_globals: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bypass_globals_))); + set_has_bypass_globals(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(58)) goto parse_throttle; + break; + } + + // optional .hbase.pb.ThrottleRequest throttle = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_throttle: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_throttle())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SetQuotaRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string user_name = 1; + if (has_user_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user_name().data(), this->user_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->user_name(), output); + } + + // optional string user_group = 2; + if (has_user_group()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user_group().data(), this->user_group().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->user_group(), output); + } + + // optional string namespace = 3; + if (has_namespace_()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->namespace_(), output); + } + + // optional .hbase.pb.TableName table_name = 4; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->table_name(), output); + } + + // optional bool remove_all = 5; + if (has_remove_all()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->remove_all(), output); + } + + // optional bool bypass_globals = 6; + if (has_bypass_globals()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->bypass_globals(), output); + } + + // optional .hbase.pb.ThrottleRequest throttle = 7; + if (has_throttle()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->throttle(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetQuotaRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string user_name = 1; + if (has_user_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user_name().data(), this->user_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->user_name(), target); + } + + // optional string user_group = 2; + if (has_user_group()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->user_group().data(), this->user_group().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->user_group(), target); + } + + // optional string namespace = 3; + if (has_namespace_()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_().data(), this->namespace_().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->namespace_(), target); + } + + // optional .hbase.pb.TableName table_name = 4; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->table_name(), target); + } + + // optional bool remove_all = 5; + if (has_remove_all()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->remove_all(), target); + } + + // optional bool bypass_globals = 6; + if (has_bypass_globals()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->bypass_globals(), target); + } + + // optional .hbase.pb.ThrottleRequest throttle = 7; + if (has_throttle()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 7, this->throttle(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetQuotaRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string user_name = 1; + if (has_user_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->user_name()); + } + + // optional string user_group = 2; + if (has_user_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->user_group()); + } + + // optional string namespace = 3; + if (has_namespace_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + // optional .hbase.pb.TableName table_name = 4; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional bool remove_all = 5; + if (has_remove_all()) { + total_size += 1 + 1; + } + + // optional bool bypass_globals = 6; + if (has_bypass_globals()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.ThrottleRequest throttle = 7; + if (has_throttle()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->throttle()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetQuotaRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetQuotaRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetQuotaRequest::MergeFrom(const SetQuotaRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_name()) { + set_user_name(from.user_name()); + } + if (from.has_user_group()) { + set_user_group(from.user_group()); + } + if (from.has_namespace_()) { + set_namespace_(from.namespace_()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_remove_all()) { + set_remove_all(from.remove_all()); + } + if (from.has_bypass_globals()) { + set_bypass_globals(from.bypass_globals()); + } + if (from.has_throttle()) { + mutable_throttle()->::hbase::pb::ThrottleRequest::MergeFrom(from.throttle()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetQuotaRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetQuotaRequest::CopyFrom(const SetQuotaRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetQuotaRequest::IsInitialized() const { + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_throttle()) { + if (!this->throttle().IsInitialized()) return false; + } + return true; +} + +void SetQuotaRequest::Swap(SetQuotaRequest* other) { + if (other != this) { + std::swap(user_name_, other->user_name_); + std::swap(user_group_, other->user_group_); + std::swap(namespace__, other->namespace__); + std::swap(table_name_, other->table_name_); + std::swap(remove_all_, other->remove_all_); + std::swap(bypass_globals_, other->bypass_globals_); + std::swap(throttle_, other->throttle_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetQuotaRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetQuotaRequest_descriptor_; + metadata.reflection = SetQuotaRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +SetQuotaResponse::SetQuotaResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetQuotaResponse::InitAsDefaultInstance() { +} + +SetQuotaResponse::SetQuotaResponse(const SetQuotaResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetQuotaResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetQuotaResponse::~SetQuotaResponse() { + SharedDtor(); +} + +void SetQuotaResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SetQuotaResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetQuotaResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetQuotaResponse_descriptor_; +} + +const SetQuotaResponse& SetQuotaResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SetQuotaResponse* SetQuotaResponse::default_instance_ = NULL; + +SetQuotaResponse* SetQuotaResponse::New() const { + return new SetQuotaResponse; +} + +void SetQuotaResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetQuotaResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void SetQuotaResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetQuotaResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetQuotaResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetQuotaResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetQuotaResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetQuotaResponse::MergeFrom(const SetQuotaResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetQuotaResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetQuotaResponse::CopyFrom(const SetQuotaResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetQuotaResponse::IsInitialized() const { + + return true; +} + +void SetQuotaResponse::Swap(SetQuotaResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetQuotaResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetQuotaResponse_descriptor_; + metadata.reflection = SetQuotaResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MajorCompactionTimestampRequest::kTableNameFieldNumber; +#endif // !_MSC_VER + +MajorCompactionTimestampRequest::MajorCompactionTimestampRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MajorCompactionTimestampRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +MajorCompactionTimestampRequest::MajorCompactionTimestampRequest(const MajorCompactionTimestampRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MajorCompactionTimestampRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MajorCompactionTimestampRequest::~MajorCompactionTimestampRequest() { + SharedDtor(); +} + +void MajorCompactionTimestampRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void MajorCompactionTimestampRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MajorCompactionTimestampRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MajorCompactionTimestampRequest_descriptor_; +} + +const MajorCompactionTimestampRequest& MajorCompactionTimestampRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +MajorCompactionTimestampRequest* MajorCompactionTimestampRequest::default_instance_ = NULL; + +MajorCompactionTimestampRequest* MajorCompactionTimestampRequest::New() const { + return new MajorCompactionTimestampRequest; +} + +void MajorCompactionTimestampRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MajorCompactionTimestampRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MajorCompactionTimestampRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MajorCompactionTimestampRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MajorCompactionTimestampRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MajorCompactionTimestampRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MajorCompactionTimestampRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MajorCompactionTimestampRequest::MergeFrom(const MajorCompactionTimestampRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MajorCompactionTimestampRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MajorCompactionTimestampRequest::CopyFrom(const MajorCompactionTimestampRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MajorCompactionTimestampRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void MajorCompactionTimestampRequest::Swap(MajorCompactionTimestampRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MajorCompactionTimestampRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MajorCompactionTimestampRequest_descriptor_; + metadata.reflection = MajorCompactionTimestampRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MajorCompactionTimestampForRegionRequest::kRegionFieldNumber; +#endif // !_MSC_VER + +MajorCompactionTimestampForRegionRequest::MajorCompactionTimestampForRegionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MajorCompactionTimestampForRegionRequest::InitAsDefaultInstance() { + region_ = const_cast< ::hbase::pb::RegionSpecifier*>(&::hbase::pb::RegionSpecifier::default_instance()); +} + +MajorCompactionTimestampForRegionRequest::MajorCompactionTimestampForRegionRequest(const MajorCompactionTimestampForRegionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MajorCompactionTimestampForRegionRequest::SharedCtor() { + _cached_size_ = 0; + region_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MajorCompactionTimestampForRegionRequest::~MajorCompactionTimestampForRegionRequest() { + SharedDtor(); +} + +void MajorCompactionTimestampForRegionRequest::SharedDtor() { + if (this != default_instance_) { + delete region_; + } +} + +void MajorCompactionTimestampForRegionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MajorCompactionTimestampForRegionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MajorCompactionTimestampForRegionRequest_descriptor_; +} + +const MajorCompactionTimestampForRegionRequest& MajorCompactionTimestampForRegionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +MajorCompactionTimestampForRegionRequest* MajorCompactionTimestampForRegionRequest::default_instance_ = NULL; + +MajorCompactionTimestampForRegionRequest* MajorCompactionTimestampForRegionRequest::New() const { + return new MajorCompactionTimestampForRegionRequest; +} + +void MajorCompactionTimestampForRegionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region()) { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MajorCompactionTimestampForRegionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionSpecifier region = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MajorCompactionTimestampForRegionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->region(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MajorCompactionTimestampForRegionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->region(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MajorCompactionTimestampForRegionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionSpecifier region = 1; + if (has_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MajorCompactionTimestampForRegionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MajorCompactionTimestampForRegionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MajorCompactionTimestampForRegionRequest::MergeFrom(const MajorCompactionTimestampForRegionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region()) { + mutable_region()->::hbase::pb::RegionSpecifier::MergeFrom(from.region()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MajorCompactionTimestampForRegionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MajorCompactionTimestampForRegionRequest::CopyFrom(const MajorCompactionTimestampForRegionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MajorCompactionTimestampForRegionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_region()) { + if (!this->region().IsInitialized()) return false; + } + return true; +} + +void MajorCompactionTimestampForRegionRequest::Swap(MajorCompactionTimestampForRegionRequest* other) { + if (other != this) { + std::swap(region_, other->region_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MajorCompactionTimestampForRegionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MajorCompactionTimestampForRegionRequest_descriptor_; + metadata.reflection = MajorCompactionTimestampForRegionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MajorCompactionTimestampResponse::kCompactionTimestampFieldNumber; +#endif // !_MSC_VER + +MajorCompactionTimestampResponse::MajorCompactionTimestampResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MajorCompactionTimestampResponse::InitAsDefaultInstance() { +} + +MajorCompactionTimestampResponse::MajorCompactionTimestampResponse(const MajorCompactionTimestampResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MajorCompactionTimestampResponse::SharedCtor() { + _cached_size_ = 0; + compaction_timestamp_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MajorCompactionTimestampResponse::~MajorCompactionTimestampResponse() { + SharedDtor(); +} + +void MajorCompactionTimestampResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void MajorCompactionTimestampResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MajorCompactionTimestampResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MajorCompactionTimestampResponse_descriptor_; +} + +const MajorCompactionTimestampResponse& MajorCompactionTimestampResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +MajorCompactionTimestampResponse* MajorCompactionTimestampResponse::default_instance_ = NULL; + +MajorCompactionTimestampResponse* MajorCompactionTimestampResponse::New() const { + return new MajorCompactionTimestampResponse; +} + +void MajorCompactionTimestampResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + compaction_timestamp_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MajorCompactionTimestampResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required int64 compaction_timestamp = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &compaction_timestamp_))); + set_has_compaction_timestamp(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MajorCompactionTimestampResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required int64 compaction_timestamp = 1; + if (has_compaction_timestamp()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->compaction_timestamp(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MajorCompactionTimestampResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required int64 compaction_timestamp = 1; + if (has_compaction_timestamp()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->compaction_timestamp(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MajorCompactionTimestampResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required int64 compaction_timestamp = 1; + if (has_compaction_timestamp()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->compaction_timestamp()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MajorCompactionTimestampResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MajorCompactionTimestampResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MajorCompactionTimestampResponse::MergeFrom(const MajorCompactionTimestampResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_compaction_timestamp()) { + set_compaction_timestamp(from.compaction_timestamp()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MajorCompactionTimestampResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MajorCompactionTimestampResponse::CopyFrom(const MajorCompactionTimestampResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MajorCompactionTimestampResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void MajorCompactionTimestampResponse::Swap(MajorCompactionTimestampResponse* other) { + if (other != this) { + std::swap(compaction_timestamp_, other->compaction_timestamp_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MajorCompactionTimestampResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MajorCompactionTimestampResponse_descriptor_; + metadata.reflection = MajorCompactionTimestampResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +SecurityCapabilitiesRequest::SecurityCapabilitiesRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SecurityCapabilitiesRequest::InitAsDefaultInstance() { +} + +SecurityCapabilitiesRequest::SecurityCapabilitiesRequest(const SecurityCapabilitiesRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SecurityCapabilitiesRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SecurityCapabilitiesRequest::~SecurityCapabilitiesRequest() { + SharedDtor(); +} + +void SecurityCapabilitiesRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void SecurityCapabilitiesRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SecurityCapabilitiesRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SecurityCapabilitiesRequest_descriptor_; +} + +const SecurityCapabilitiesRequest& SecurityCapabilitiesRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SecurityCapabilitiesRequest* SecurityCapabilitiesRequest::default_instance_ = NULL; + +SecurityCapabilitiesRequest* SecurityCapabilitiesRequest::New() const { + return new SecurityCapabilitiesRequest; +} + +void SecurityCapabilitiesRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SecurityCapabilitiesRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void SecurityCapabilitiesRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SecurityCapabilitiesRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SecurityCapabilitiesRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SecurityCapabilitiesRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SecurityCapabilitiesRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SecurityCapabilitiesRequest::MergeFrom(const SecurityCapabilitiesRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SecurityCapabilitiesRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SecurityCapabilitiesRequest::CopyFrom(const SecurityCapabilitiesRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SecurityCapabilitiesRequest::IsInitialized() const { + + return true; +} + +void SecurityCapabilitiesRequest::Swap(SecurityCapabilitiesRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SecurityCapabilitiesRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SecurityCapabilitiesRequest_descriptor_; + metadata.reflection = SecurityCapabilitiesRequest_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* SecurityCapabilitiesResponse_Capability_descriptor() { + protobuf_AssignDescriptorsOnce(); + return SecurityCapabilitiesResponse_Capability_descriptor_; +} +bool SecurityCapabilitiesResponse_Capability_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse::SIMPLE_AUTHENTICATION; +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse::SECURE_AUTHENTICATION; +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse::AUTHORIZATION; +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse::CELL_AUTHORIZATION; +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse::CELL_VISIBILITY; +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse::Capability_MIN; +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse::Capability_MAX; +const int SecurityCapabilitiesResponse::Capability_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int SecurityCapabilitiesResponse::kCapabilitiesFieldNumber; +#endif // !_MSC_VER + +SecurityCapabilitiesResponse::SecurityCapabilitiesResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SecurityCapabilitiesResponse::InitAsDefaultInstance() { +} + +SecurityCapabilitiesResponse::SecurityCapabilitiesResponse(const SecurityCapabilitiesResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SecurityCapabilitiesResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SecurityCapabilitiesResponse::~SecurityCapabilitiesResponse() { + SharedDtor(); +} + +void SecurityCapabilitiesResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SecurityCapabilitiesResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SecurityCapabilitiesResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SecurityCapabilitiesResponse_descriptor_; +} + +const SecurityCapabilitiesResponse& SecurityCapabilitiesResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Master_2eproto(); + return *default_instance_; +} + +SecurityCapabilitiesResponse* SecurityCapabilitiesResponse::default_instance_ = NULL; + +SecurityCapabilitiesResponse* SecurityCapabilitiesResponse::New() const { + return new SecurityCapabilitiesResponse; +} + +void SecurityCapabilitiesResponse::Clear() { + capabilities_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SecurityCapabilitiesResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_capabilities: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::SecurityCapabilitiesResponse_Capability_IsValid(value)) { + add_capabilities(static_cast< ::hbase::pb::SecurityCapabilitiesResponse_Capability >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( + input, + &::hbase::pb::SecurityCapabilitiesResponse_Capability_IsValid, + this->mutable_capabilities()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(8)) goto parse_capabilities; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SecurityCapabilitiesResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1; + for (int i = 0; i < this->capabilities_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->capabilities(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SecurityCapabilitiesResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1; + for (int i = 0; i < this->capabilities_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->capabilities(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SecurityCapabilitiesResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1; + { + int data_size = 0; + for (int i = 0; i < this->capabilities_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->capabilities(i)); + } + total_size += 1 * this->capabilities_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SecurityCapabilitiesResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SecurityCapabilitiesResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SecurityCapabilitiesResponse::MergeFrom(const SecurityCapabilitiesResponse& from) { + GOOGLE_CHECK_NE(&from, this); + capabilities_.MergeFrom(from.capabilities_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SecurityCapabilitiesResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SecurityCapabilitiesResponse::CopyFrom(const SecurityCapabilitiesResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SecurityCapabilitiesResponse::IsInitialized() const { + + return true; +} + +void SecurityCapabilitiesResponse::Swap(SecurityCapabilitiesResponse* other) { + if (other != this) { + capabilities_.Swap(&other->capabilities_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SecurityCapabilitiesResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SecurityCapabilitiesResponse_descriptor_; + metadata.reflection = SecurityCapabilitiesResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Master.pb.h b/hbase-native-client/src/rpc/generated/Master.pb.h new file mode 100644 index 0000000..ee21656 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Master.pb.h @@ -0,0 +1,14718 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Master.proto + +#ifndef PROTOBUF_Master_2eproto__INCLUDED +#define PROTOBUF_Master_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "Client.pb.h" +#include "ClusterStatus.pb.h" +#include "ErrorHandling.pb.h" +#include "Procedure.pb.h" +#include "Quota.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Master_2eproto(); +void protobuf_AssignDesc_Master_2eproto(); +void protobuf_ShutdownFile_Master_2eproto(); + +class AddColumnRequest; +class AddColumnResponse; +class DeleteColumnRequest; +class DeleteColumnResponse; +class ModifyColumnRequest; +class ModifyColumnResponse; +class MoveRegionRequest; +class MoveRegionResponse; +class DispatchMergingRegionsRequest; +class DispatchMergingRegionsResponse; +class AssignRegionRequest; +class AssignRegionResponse; +class UnassignRegionRequest; +class UnassignRegionResponse; +class OfflineRegionRequest; +class OfflineRegionResponse; +class CreateTableRequest; +class CreateTableResponse; +class DeleteTableRequest; +class DeleteTableResponse; +class TruncateTableRequest; +class TruncateTableResponse; +class EnableTableRequest; +class EnableTableResponse; +class DisableTableRequest; +class DisableTableResponse; +class ModifyTableRequest; +class ModifyTableResponse; +class CreateNamespaceRequest; +class CreateNamespaceResponse; +class DeleteNamespaceRequest; +class DeleteNamespaceResponse; +class ModifyNamespaceRequest; +class ModifyNamespaceResponse; +class GetNamespaceDescriptorRequest; +class GetNamespaceDescriptorResponse; +class ListNamespaceDescriptorsRequest; +class ListNamespaceDescriptorsResponse; +class ListTableDescriptorsByNamespaceRequest; +class ListTableDescriptorsByNamespaceResponse; +class ListTableNamesByNamespaceRequest; +class ListTableNamesByNamespaceResponse; +class ShutdownRequest; +class ShutdownResponse; +class StopMasterRequest; +class StopMasterResponse; +class BalanceRequest; +class BalanceResponse; +class SetBalancerRunningRequest; +class SetBalancerRunningResponse; +class IsBalancerEnabledRequest; +class IsBalancerEnabledResponse; +class SetSplitOrMergeEnabledRequest; +class SetSplitOrMergeEnabledResponse; +class IsSplitOrMergeEnabledRequest; +class IsSplitOrMergeEnabledResponse; +class NormalizeRequest; +class NormalizeResponse; +class SetNormalizerRunningRequest; +class SetNormalizerRunningResponse; +class IsNormalizerEnabledRequest; +class IsNormalizerEnabledResponse; +class RunCatalogScanRequest; +class RunCatalogScanResponse; +class EnableCatalogJanitorRequest; +class EnableCatalogJanitorResponse; +class IsCatalogJanitorEnabledRequest; +class IsCatalogJanitorEnabledResponse; +class SnapshotRequest; +class SnapshotResponse; +class GetCompletedSnapshotsRequest; +class GetCompletedSnapshotsResponse; +class DeleteSnapshotRequest; +class DeleteSnapshotResponse; +class RestoreSnapshotRequest; +class RestoreSnapshotResponse; +class IsSnapshotDoneRequest; +class IsSnapshotDoneResponse; +class IsRestoreSnapshotDoneRequest; +class IsRestoreSnapshotDoneResponse; +class GetSchemaAlterStatusRequest; +class GetSchemaAlterStatusResponse; +class GetTableDescriptorsRequest; +class GetTableDescriptorsResponse; +class GetTableNamesRequest; +class GetTableNamesResponse; +class GetTableStateRequest; +class GetTableStateResponse; +class GetClusterStatusRequest; +class GetClusterStatusResponse; +class IsMasterRunningRequest; +class IsMasterRunningResponse; +class ExecProcedureRequest; +class ExecProcedureResponse; +class IsProcedureDoneRequest; +class IsProcedureDoneResponse; +class GetProcedureResultRequest; +class GetProcedureResultResponse; +class AbortProcedureRequest; +class AbortProcedureResponse; +class ListProceduresRequest; +class ListProceduresResponse; +class SetQuotaRequest; +class SetQuotaResponse; +class MajorCompactionTimestampRequest; +class MajorCompactionTimestampForRegionRequest; +class MajorCompactionTimestampResponse; +class SecurityCapabilitiesRequest; +class SecurityCapabilitiesResponse; + +enum GetProcedureResultResponse_State { + GetProcedureResultResponse_State_NOT_FOUND = 0, + GetProcedureResultResponse_State_RUNNING = 1, + GetProcedureResultResponse_State_FINISHED = 2 +}; +bool GetProcedureResultResponse_State_IsValid(int value); +const GetProcedureResultResponse_State GetProcedureResultResponse_State_State_MIN = GetProcedureResultResponse_State_NOT_FOUND; +const GetProcedureResultResponse_State GetProcedureResultResponse_State_State_MAX = GetProcedureResultResponse_State_FINISHED; +const int GetProcedureResultResponse_State_State_ARRAYSIZE = GetProcedureResultResponse_State_State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* GetProcedureResultResponse_State_descriptor(); +inline const ::std::string& GetProcedureResultResponse_State_Name(GetProcedureResultResponse_State value) { + return ::google::protobuf::internal::NameOfEnum( + GetProcedureResultResponse_State_descriptor(), value); +} +inline bool GetProcedureResultResponse_State_Parse( + const ::std::string& name, GetProcedureResultResponse_State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + GetProcedureResultResponse_State_descriptor(), name, value); +} +enum SecurityCapabilitiesResponse_Capability { + SecurityCapabilitiesResponse_Capability_SIMPLE_AUTHENTICATION = 0, + SecurityCapabilitiesResponse_Capability_SECURE_AUTHENTICATION = 1, + SecurityCapabilitiesResponse_Capability_AUTHORIZATION = 2, + SecurityCapabilitiesResponse_Capability_CELL_AUTHORIZATION = 3, + SecurityCapabilitiesResponse_Capability_CELL_VISIBILITY = 4 +}; +bool SecurityCapabilitiesResponse_Capability_IsValid(int value); +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse_Capability_Capability_MIN = SecurityCapabilitiesResponse_Capability_SIMPLE_AUTHENTICATION; +const SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse_Capability_Capability_MAX = SecurityCapabilitiesResponse_Capability_CELL_VISIBILITY; +const int SecurityCapabilitiesResponse_Capability_Capability_ARRAYSIZE = SecurityCapabilitiesResponse_Capability_Capability_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SecurityCapabilitiesResponse_Capability_descriptor(); +inline const ::std::string& SecurityCapabilitiesResponse_Capability_Name(SecurityCapabilitiesResponse_Capability value) { + return ::google::protobuf::internal::NameOfEnum( + SecurityCapabilitiesResponse_Capability_descriptor(), value); +} +inline bool SecurityCapabilitiesResponse_Capability_Parse( + const ::std::string& name, SecurityCapabilitiesResponse_Capability* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SecurityCapabilitiesResponse_Capability_descriptor(), name, value); +} +enum MasterSwitchType { + SPLIT = 0, + MERGE = 1 +}; +bool MasterSwitchType_IsValid(int value); +const MasterSwitchType MasterSwitchType_MIN = SPLIT; +const MasterSwitchType MasterSwitchType_MAX = MERGE; +const int MasterSwitchType_ARRAYSIZE = MasterSwitchType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* MasterSwitchType_descriptor(); +inline const ::std::string& MasterSwitchType_Name(MasterSwitchType value) { + return ::google::protobuf::internal::NameOfEnum( + MasterSwitchType_descriptor(), value); +} +inline bool MasterSwitchType_Parse( + const ::std::string& name, MasterSwitchType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MasterSwitchType_descriptor(), name, value); +} +// =================================================================== + +class AddColumnRequest : public ::google::protobuf::Message { + public: + AddColumnRequest(); + virtual ~AddColumnRequest(); + + AddColumnRequest(const AddColumnRequest& from); + + inline AddColumnRequest& operator=(const AddColumnRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AddColumnRequest& default_instance(); + + void Swap(AddColumnRequest* other); + + // implements Message ---------------------------------------------- + + AddColumnRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AddColumnRequest& from); + void MergeFrom(const AddColumnRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + inline bool has_column_families() const; + inline void clear_column_families(); + static const int kColumnFamiliesFieldNumber = 2; + inline const ::hbase::pb::ColumnFamilySchema& column_families() const; + inline ::hbase::pb::ColumnFamilySchema* mutable_column_families(); + inline ::hbase::pb::ColumnFamilySchema* release_column_families(); + inline void set_allocated_column_families(::hbase::pb::ColumnFamilySchema* column_families); + + // optional uint64 nonce_group = 3 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 3; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 4 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 4; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.AddColumnRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_column_families(); + inline void clear_has_column_families(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::hbase::pb::ColumnFamilySchema* column_families_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static AddColumnRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class AddColumnResponse : public ::google::protobuf::Message { + public: + AddColumnResponse(); + virtual ~AddColumnResponse(); + + AddColumnResponse(const AddColumnResponse& from); + + inline AddColumnResponse& operator=(const AddColumnResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AddColumnResponse& default_instance(); + + void Swap(AddColumnResponse* other); + + // implements Message ---------------------------------------------- + + AddColumnResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AddColumnResponse& from); + void MergeFrom(const AddColumnResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.AddColumnResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static AddColumnResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteColumnRequest : public ::google::protobuf::Message { + public: + DeleteColumnRequest(); + virtual ~DeleteColumnRequest(); + + DeleteColumnRequest(const DeleteColumnRequest& from); + + inline DeleteColumnRequest& operator=(const DeleteColumnRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteColumnRequest& default_instance(); + + void Swap(DeleteColumnRequest* other); + + // implements Message ---------------------------------------------- + + DeleteColumnRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteColumnRequest& from); + void MergeFrom(const DeleteColumnRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required bytes column_name = 2; + inline bool has_column_name() const; + inline void clear_column_name(); + static const int kColumnNameFieldNumber = 2; + inline const ::std::string& column_name() const; + inline void set_column_name(const ::std::string& value); + inline void set_column_name(const char* value); + inline void set_column_name(const void* value, size_t size); + inline ::std::string* mutable_column_name(); + inline ::std::string* release_column_name(); + inline void set_allocated_column_name(::std::string* column_name); + + // optional uint64 nonce_group = 3 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 3; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 4 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 4; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteColumnRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_column_name(); + inline void clear_has_column_name(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::std::string* column_name_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DeleteColumnRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteColumnResponse : public ::google::protobuf::Message { + public: + DeleteColumnResponse(); + virtual ~DeleteColumnResponse(); + + DeleteColumnResponse(const DeleteColumnResponse& from); + + inline DeleteColumnResponse& operator=(const DeleteColumnResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteColumnResponse& default_instance(); + + void Swap(DeleteColumnResponse* other); + + // implements Message ---------------------------------------------- + + DeleteColumnResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteColumnResponse& from); + void MergeFrom(const DeleteColumnResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteColumnResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DeleteColumnResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyColumnRequest : public ::google::protobuf::Message { + public: + ModifyColumnRequest(); + virtual ~ModifyColumnRequest(); + + ModifyColumnRequest(const ModifyColumnRequest& from); + + inline ModifyColumnRequest& operator=(const ModifyColumnRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyColumnRequest& default_instance(); + + void Swap(ModifyColumnRequest* other); + + // implements Message ---------------------------------------------- + + ModifyColumnRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyColumnRequest& from); + void MergeFrom(const ModifyColumnRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required .hbase.pb.ColumnFamilySchema column_families = 2; + inline bool has_column_families() const; + inline void clear_column_families(); + static const int kColumnFamiliesFieldNumber = 2; + inline const ::hbase::pb::ColumnFamilySchema& column_families() const; + inline ::hbase::pb::ColumnFamilySchema* mutable_column_families(); + inline ::hbase::pb::ColumnFamilySchema* release_column_families(); + inline void set_allocated_column_families(::hbase::pb::ColumnFamilySchema* column_families); + + // optional uint64 nonce_group = 3 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 3; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 4 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 4; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyColumnRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_column_families(); + inline void clear_has_column_families(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::hbase::pb::ColumnFamilySchema* column_families_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ModifyColumnRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyColumnResponse : public ::google::protobuf::Message { + public: + ModifyColumnResponse(); + virtual ~ModifyColumnResponse(); + + ModifyColumnResponse(const ModifyColumnResponse& from); + + inline ModifyColumnResponse& operator=(const ModifyColumnResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyColumnResponse& default_instance(); + + void Swap(ModifyColumnResponse* other); + + // implements Message ---------------------------------------------- + + ModifyColumnResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyColumnResponse& from); + void MergeFrom(const ModifyColumnResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyColumnResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ModifyColumnResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class MoveRegionRequest : public ::google::protobuf::Message { + public: + MoveRegionRequest(); + virtual ~MoveRegionRequest(); + + MoveRegionRequest(const MoveRegionRequest& from); + + inline MoveRegionRequest& operator=(const MoveRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoveRegionRequest& default_instance(); + + void Swap(MoveRegionRequest* other); + + // implements Message ---------------------------------------------- + + MoveRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MoveRegionRequest& from); + void MergeFrom(const MoveRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional .hbase.pb.ServerName dest_server_name = 2; + inline bool has_dest_server_name() const; + inline void clear_dest_server_name(); + static const int kDestServerNameFieldNumber = 2; + inline const ::hbase::pb::ServerName& dest_server_name() const; + inline ::hbase::pb::ServerName* mutable_dest_server_name(); + inline ::hbase::pb::ServerName* release_dest_server_name(); + inline void set_allocated_dest_server_name(::hbase::pb::ServerName* dest_server_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.MoveRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_dest_server_name(); + inline void clear_has_dest_server_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + ::hbase::pb::ServerName* dest_server_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static MoveRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MoveRegionResponse : public ::google::protobuf::Message { + public: + MoveRegionResponse(); + virtual ~MoveRegionResponse(); + + MoveRegionResponse(const MoveRegionResponse& from); + + inline MoveRegionResponse& operator=(const MoveRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoveRegionResponse& default_instance(); + + void Swap(MoveRegionResponse* other); + + // implements Message ---------------------------------------------- + + MoveRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MoveRegionResponse& from); + void MergeFrom(const MoveRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.MoveRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static MoveRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class DispatchMergingRegionsRequest : public ::google::protobuf::Message { + public: + DispatchMergingRegionsRequest(); + virtual ~DispatchMergingRegionsRequest(); + + DispatchMergingRegionsRequest(const DispatchMergingRegionsRequest& from); + + inline DispatchMergingRegionsRequest& operator=(const DispatchMergingRegionsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DispatchMergingRegionsRequest& default_instance(); + + void Swap(DispatchMergingRegionsRequest* other); + + // implements Message ---------------------------------------------- + + DispatchMergingRegionsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DispatchMergingRegionsRequest& from); + void MergeFrom(const DispatchMergingRegionsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region_a = 1; + inline bool has_region_a() const; + inline void clear_region_a(); + static const int kRegionAFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region_a() const; + inline ::hbase::pb::RegionSpecifier* mutable_region_a(); + inline ::hbase::pb::RegionSpecifier* release_region_a(); + inline void set_allocated_region_a(::hbase::pb::RegionSpecifier* region_a); + + // required .hbase.pb.RegionSpecifier region_b = 2; + inline bool has_region_b() const; + inline void clear_region_b(); + static const int kRegionBFieldNumber = 2; + inline const ::hbase::pb::RegionSpecifier& region_b() const; + inline ::hbase::pb::RegionSpecifier* mutable_region_b(); + inline ::hbase::pb::RegionSpecifier* release_region_b(); + inline void set_allocated_region_b(::hbase::pb::RegionSpecifier* region_b); + + // optional bool forcible = 3 [default = false]; + inline bool has_forcible() const; + inline void clear_forcible(); + static const int kForcibleFieldNumber = 3; + inline bool forcible() const; + inline void set_forcible(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DispatchMergingRegionsRequest) + private: + inline void set_has_region_a(); + inline void clear_has_region_a(); + inline void set_has_region_b(); + inline void clear_has_region_b(); + inline void set_has_forcible(); + inline void clear_has_forcible(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_a_; + ::hbase::pb::RegionSpecifier* region_b_; + bool forcible_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DispatchMergingRegionsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class DispatchMergingRegionsResponse : public ::google::protobuf::Message { + public: + DispatchMergingRegionsResponse(); + virtual ~DispatchMergingRegionsResponse(); + + DispatchMergingRegionsResponse(const DispatchMergingRegionsResponse& from); + + inline DispatchMergingRegionsResponse& operator=(const DispatchMergingRegionsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DispatchMergingRegionsResponse& default_instance(); + + void Swap(DispatchMergingRegionsResponse* other); + + // implements Message ---------------------------------------------- + + DispatchMergingRegionsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DispatchMergingRegionsResponse& from); + void MergeFrom(const DispatchMergingRegionsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.DispatchMergingRegionsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DispatchMergingRegionsResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class AssignRegionRequest : public ::google::protobuf::Message { + public: + AssignRegionRequest(); + virtual ~AssignRegionRequest(); + + AssignRegionRequest(const AssignRegionRequest& from); + + inline AssignRegionRequest& operator=(const AssignRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AssignRegionRequest& default_instance(); + + void Swap(AssignRegionRequest* other); + + // implements Message ---------------------------------------------- + + AssignRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AssignRegionRequest& from); + void MergeFrom(const AssignRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // @@protoc_insertion_point(class_scope:hbase.pb.AssignRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static AssignRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class AssignRegionResponse : public ::google::protobuf::Message { + public: + AssignRegionResponse(); + virtual ~AssignRegionResponse(); + + AssignRegionResponse(const AssignRegionResponse& from); + + inline AssignRegionResponse& operator=(const AssignRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AssignRegionResponse& default_instance(); + + void Swap(AssignRegionResponse* other); + + // implements Message ---------------------------------------------- + + AssignRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AssignRegionResponse& from); + void MergeFrom(const AssignRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.AssignRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static AssignRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class UnassignRegionRequest : public ::google::protobuf::Message { + public: + UnassignRegionRequest(); + virtual ~UnassignRegionRequest(); + + UnassignRegionRequest(const UnassignRegionRequest& from); + + inline UnassignRegionRequest& operator=(const UnassignRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UnassignRegionRequest& default_instance(); + + void Swap(UnassignRegionRequest* other); + + // implements Message ---------------------------------------------- + + UnassignRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UnassignRegionRequest& from); + void MergeFrom(const UnassignRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // optional bool force = 2 [default = false]; + inline bool has_force() const; + inline void clear_force(); + static const int kForceFieldNumber = 2; + inline bool force() const; + inline void set_force(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.UnassignRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + inline void set_has_force(); + inline void clear_has_force(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + bool force_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static UnassignRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class UnassignRegionResponse : public ::google::protobuf::Message { + public: + UnassignRegionResponse(); + virtual ~UnassignRegionResponse(); + + UnassignRegionResponse(const UnassignRegionResponse& from); + + inline UnassignRegionResponse& operator=(const UnassignRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UnassignRegionResponse& default_instance(); + + void Swap(UnassignRegionResponse* other); + + // implements Message ---------------------------------------------- + + UnassignRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UnassignRegionResponse& from); + void MergeFrom(const UnassignRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.UnassignRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static UnassignRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class OfflineRegionRequest : public ::google::protobuf::Message { + public: + OfflineRegionRequest(); + virtual ~OfflineRegionRequest(); + + OfflineRegionRequest(const OfflineRegionRequest& from); + + inline OfflineRegionRequest& operator=(const OfflineRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OfflineRegionRequest& default_instance(); + + void Swap(OfflineRegionRequest* other); + + // implements Message ---------------------------------------------- + + OfflineRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const OfflineRegionRequest& from); + void MergeFrom(const OfflineRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // @@protoc_insertion_point(class_scope:hbase.pb.OfflineRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static OfflineRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class OfflineRegionResponse : public ::google::protobuf::Message { + public: + OfflineRegionResponse(); + virtual ~OfflineRegionResponse(); + + OfflineRegionResponse(const OfflineRegionResponse& from); + + inline OfflineRegionResponse& operator=(const OfflineRegionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const OfflineRegionResponse& default_instance(); + + void Swap(OfflineRegionResponse* other); + + // implements Message ---------------------------------------------- + + OfflineRegionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const OfflineRegionResponse& from); + void MergeFrom(const OfflineRegionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.OfflineRegionResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static OfflineRegionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class CreateTableRequest : public ::google::protobuf::Message { + public: + CreateTableRequest(); + virtual ~CreateTableRequest(); + + CreateTableRequest(const CreateTableRequest& from); + + inline CreateTableRequest& operator=(const CreateTableRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CreateTableRequest& default_instance(); + + void Swap(CreateTableRequest* other); + + // implements Message ---------------------------------------------- + + CreateTableRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CreateTableRequest& from); + void MergeFrom(const CreateTableRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableSchema table_schema = 1; + inline bool has_table_schema() const; + inline void clear_table_schema(); + static const int kTableSchemaFieldNumber = 1; + inline const ::hbase::pb::TableSchema& table_schema() const; + inline ::hbase::pb::TableSchema* mutable_table_schema(); + inline ::hbase::pb::TableSchema* release_table_schema(); + inline void set_allocated_table_schema(::hbase::pb::TableSchema* table_schema); + + // repeated bytes split_keys = 2; + inline int split_keys_size() const; + inline void clear_split_keys(); + static const int kSplitKeysFieldNumber = 2; + inline const ::std::string& split_keys(int index) const; + inline ::std::string* mutable_split_keys(int index); + inline void set_split_keys(int index, const ::std::string& value); + inline void set_split_keys(int index, const char* value); + inline void set_split_keys(int index, const void* value, size_t size); + inline ::std::string* add_split_keys(); + inline void add_split_keys(const ::std::string& value); + inline void add_split_keys(const char* value); + inline void add_split_keys(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& split_keys() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_split_keys(); + + // optional uint64 nonce_group = 3 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 3; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 4 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 4; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CreateTableRequest) + private: + inline void set_has_table_schema(); + inline void clear_has_table_schema(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableSchema* table_schema_; + ::google::protobuf::RepeatedPtrField< ::std::string> split_keys_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static CreateTableRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class CreateTableResponse : public ::google::protobuf::Message { + public: + CreateTableResponse(); + virtual ~CreateTableResponse(); + + CreateTableResponse(const CreateTableResponse& from); + + inline CreateTableResponse& operator=(const CreateTableResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CreateTableResponse& default_instance(); + + void Swap(CreateTableResponse* other); + + // implements Message ---------------------------------------------- + + CreateTableResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CreateTableResponse& from); + void MergeFrom(const CreateTableResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CreateTableResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static CreateTableResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteTableRequest : public ::google::protobuf::Message { + public: + DeleteTableRequest(); + virtual ~DeleteTableRequest(); + + DeleteTableRequest(const DeleteTableRequest& from); + + inline DeleteTableRequest& operator=(const DeleteTableRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteTableRequest& default_instance(); + + void Swap(DeleteTableRequest* other); + + // implements Message ---------------------------------------------- + + DeleteTableRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteTableRequest& from); + void MergeFrom(const DeleteTableRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional uint64 nonce_group = 2 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 2; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 3 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 3; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteTableRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DeleteTableRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteTableResponse : public ::google::protobuf::Message { + public: + DeleteTableResponse(); + virtual ~DeleteTableResponse(); + + DeleteTableResponse(const DeleteTableResponse& from); + + inline DeleteTableResponse& operator=(const DeleteTableResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteTableResponse& default_instance(); + + void Swap(DeleteTableResponse* other); + + // implements Message ---------------------------------------------- + + DeleteTableResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteTableResponse& from); + void MergeFrom(const DeleteTableResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteTableResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DeleteTableResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class TruncateTableRequest : public ::google::protobuf::Message { + public: + TruncateTableRequest(); + virtual ~TruncateTableRequest(); + + TruncateTableRequest(const TruncateTableRequest& from); + + inline TruncateTableRequest& operator=(const TruncateTableRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TruncateTableRequest& default_instance(); + + void Swap(TruncateTableRequest* other); + + // implements Message ---------------------------------------------- + + TruncateTableRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TruncateTableRequest& from); + void MergeFrom(const TruncateTableRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName tableName = 1; + inline bool has_tablename() const; + inline void clear_tablename(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& tablename() const; + inline ::hbase::pb::TableName* mutable_tablename(); + inline ::hbase::pb::TableName* release_tablename(); + inline void set_allocated_tablename(::hbase::pb::TableName* tablename); + + // optional bool preserveSplits = 2 [default = false]; + inline bool has_preservesplits() const; + inline void clear_preservesplits(); + static const int kPreserveSplitsFieldNumber = 2; + inline bool preservesplits() const; + inline void set_preservesplits(bool value); + + // optional uint64 nonce_group = 3 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 3; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 4 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 4; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.TruncateTableRequest) + private: + inline void set_has_tablename(); + inline void clear_has_tablename(); + inline void set_has_preservesplits(); + inline void clear_has_preservesplits(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* tablename_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + bool preservesplits_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static TruncateTableRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class TruncateTableResponse : public ::google::protobuf::Message { + public: + TruncateTableResponse(); + virtual ~TruncateTableResponse(); + + TruncateTableResponse(const TruncateTableResponse& from); + + inline TruncateTableResponse& operator=(const TruncateTableResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TruncateTableResponse& default_instance(); + + void Swap(TruncateTableResponse* other); + + // implements Message ---------------------------------------------- + + TruncateTableResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TruncateTableResponse& from); + void MergeFrom(const TruncateTableResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.TruncateTableResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static TruncateTableResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class EnableTableRequest : public ::google::protobuf::Message { + public: + EnableTableRequest(); + virtual ~EnableTableRequest(); + + EnableTableRequest(const EnableTableRequest& from); + + inline EnableTableRequest& operator=(const EnableTableRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EnableTableRequest& default_instance(); + + void Swap(EnableTableRequest* other); + + // implements Message ---------------------------------------------- + + EnableTableRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EnableTableRequest& from); + void MergeFrom(const EnableTableRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional uint64 nonce_group = 2 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 2; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 3 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 3; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.EnableTableRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static EnableTableRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class EnableTableResponse : public ::google::protobuf::Message { + public: + EnableTableResponse(); + virtual ~EnableTableResponse(); + + EnableTableResponse(const EnableTableResponse& from); + + inline EnableTableResponse& operator=(const EnableTableResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EnableTableResponse& default_instance(); + + void Swap(EnableTableResponse* other); + + // implements Message ---------------------------------------------- + + EnableTableResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EnableTableResponse& from); + void MergeFrom(const EnableTableResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.EnableTableResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static EnableTableResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class DisableTableRequest : public ::google::protobuf::Message { + public: + DisableTableRequest(); + virtual ~DisableTableRequest(); + + DisableTableRequest(const DisableTableRequest& from); + + inline DisableTableRequest& operator=(const DisableTableRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DisableTableRequest& default_instance(); + + void Swap(DisableTableRequest* other); + + // implements Message ---------------------------------------------- + + DisableTableRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DisableTableRequest& from); + void MergeFrom(const DisableTableRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional uint64 nonce_group = 2 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 2; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 3 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 3; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DisableTableRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DisableTableRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class DisableTableResponse : public ::google::protobuf::Message { + public: + DisableTableResponse(); + virtual ~DisableTableResponse(); + + DisableTableResponse(const DisableTableResponse& from); + + inline DisableTableResponse& operator=(const DisableTableResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DisableTableResponse& default_instance(); + + void Swap(DisableTableResponse* other); + + // implements Message ---------------------------------------------- + + DisableTableResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DisableTableResponse& from); + void MergeFrom(const DisableTableResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DisableTableResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DisableTableResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyTableRequest : public ::google::protobuf::Message { + public: + ModifyTableRequest(); + virtual ~ModifyTableRequest(); + + ModifyTableRequest(const ModifyTableRequest& from); + + inline ModifyTableRequest& operator=(const ModifyTableRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyTableRequest& default_instance(); + + void Swap(ModifyTableRequest* other); + + // implements Message ---------------------------------------------- + + ModifyTableRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyTableRequest& from); + void MergeFrom(const ModifyTableRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required .hbase.pb.TableSchema table_schema = 2; + inline bool has_table_schema() const; + inline void clear_table_schema(); + static const int kTableSchemaFieldNumber = 2; + inline const ::hbase::pb::TableSchema& table_schema() const; + inline ::hbase::pb::TableSchema* mutable_table_schema(); + inline ::hbase::pb::TableSchema* release_table_schema(); + inline void set_allocated_table_schema(::hbase::pb::TableSchema* table_schema); + + // optional uint64 nonce_group = 3 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 3; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 4 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 4; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyTableRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_table_schema(); + inline void clear_has_table_schema(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::hbase::pb::TableSchema* table_schema_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ModifyTableRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyTableResponse : public ::google::protobuf::Message { + public: + ModifyTableResponse(); + virtual ~ModifyTableResponse(); + + ModifyTableResponse(const ModifyTableResponse& from); + + inline ModifyTableResponse& operator=(const ModifyTableResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyTableResponse& default_instance(); + + void Swap(ModifyTableResponse* other); + + // implements Message ---------------------------------------------- + + ModifyTableResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyTableResponse& from); + void MergeFrom(const ModifyTableResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyTableResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ModifyTableResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class CreateNamespaceRequest : public ::google::protobuf::Message { + public: + CreateNamespaceRequest(); + virtual ~CreateNamespaceRequest(); + + CreateNamespaceRequest(const CreateNamespaceRequest& from); + + inline CreateNamespaceRequest& operator=(const CreateNamespaceRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CreateNamespaceRequest& default_instance(); + + void Swap(CreateNamespaceRequest* other); + + // implements Message ---------------------------------------------- + + CreateNamespaceRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CreateNamespaceRequest& from); + void MergeFrom(const CreateNamespaceRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + inline bool has_namespacedescriptor() const; + inline void clear_namespacedescriptor(); + static const int kNamespaceDescriptorFieldNumber = 1; + inline const ::hbase::pb::NamespaceDescriptor& namespacedescriptor() const; + inline ::hbase::pb::NamespaceDescriptor* mutable_namespacedescriptor(); + inline ::hbase::pb::NamespaceDescriptor* release_namespacedescriptor(); + inline void set_allocated_namespacedescriptor(::hbase::pb::NamespaceDescriptor* namespacedescriptor); + + // optional uint64 nonce_group = 2 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 2; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 3 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 3; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CreateNamespaceRequest) + private: + inline void set_has_namespacedescriptor(); + inline void clear_has_namespacedescriptor(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::NamespaceDescriptor* namespacedescriptor_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static CreateNamespaceRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class CreateNamespaceResponse : public ::google::protobuf::Message { + public: + CreateNamespaceResponse(); + virtual ~CreateNamespaceResponse(); + + CreateNamespaceResponse(const CreateNamespaceResponse& from); + + inline CreateNamespaceResponse& operator=(const CreateNamespaceResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CreateNamespaceResponse& default_instance(); + + void Swap(CreateNamespaceResponse* other); + + // implements Message ---------------------------------------------- + + CreateNamespaceResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CreateNamespaceResponse& from); + void MergeFrom(const CreateNamespaceResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CreateNamespaceResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static CreateNamespaceResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteNamespaceRequest : public ::google::protobuf::Message { + public: + DeleteNamespaceRequest(); + virtual ~DeleteNamespaceRequest(); + + DeleteNamespaceRequest(const DeleteNamespaceRequest& from); + + inline DeleteNamespaceRequest& operator=(const DeleteNamespaceRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteNamespaceRequest& default_instance(); + + void Swap(DeleteNamespaceRequest* other); + + // implements Message ---------------------------------------------- + + DeleteNamespaceRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteNamespaceRequest& from); + void MergeFrom(const DeleteNamespaceRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string namespaceName = 1; + inline bool has_namespacename() const; + inline void clear_namespacename(); + static const int kNamespaceNameFieldNumber = 1; + inline const ::std::string& namespacename() const; + inline void set_namespacename(const ::std::string& value); + inline void set_namespacename(const char* value); + inline void set_namespacename(const char* value, size_t size); + inline ::std::string* mutable_namespacename(); + inline ::std::string* release_namespacename(); + inline void set_allocated_namespacename(::std::string* namespacename); + + // optional uint64 nonce_group = 2 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 2; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 3 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 3; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteNamespaceRequest) + private: + inline void set_has_namespacename(); + inline void clear_has_namespacename(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* namespacename_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DeleteNamespaceRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteNamespaceResponse : public ::google::protobuf::Message { + public: + DeleteNamespaceResponse(); + virtual ~DeleteNamespaceResponse(); + + DeleteNamespaceResponse(const DeleteNamespaceResponse& from); + + inline DeleteNamespaceResponse& operator=(const DeleteNamespaceResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteNamespaceResponse& default_instance(); + + void Swap(DeleteNamespaceResponse* other); + + // implements Message ---------------------------------------------- + + DeleteNamespaceResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteNamespaceResponse& from); + void MergeFrom(const DeleteNamespaceResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteNamespaceResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DeleteNamespaceResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyNamespaceRequest : public ::google::protobuf::Message { + public: + ModifyNamespaceRequest(); + virtual ~ModifyNamespaceRequest(); + + ModifyNamespaceRequest(const ModifyNamespaceRequest& from); + + inline ModifyNamespaceRequest& operator=(const ModifyNamespaceRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyNamespaceRequest& default_instance(); + + void Swap(ModifyNamespaceRequest* other); + + // implements Message ---------------------------------------------- + + ModifyNamespaceRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyNamespaceRequest& from); + void MergeFrom(const ModifyNamespaceRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + inline bool has_namespacedescriptor() const; + inline void clear_namespacedescriptor(); + static const int kNamespaceDescriptorFieldNumber = 1; + inline const ::hbase::pb::NamespaceDescriptor& namespacedescriptor() const; + inline ::hbase::pb::NamespaceDescriptor* mutable_namespacedescriptor(); + inline ::hbase::pb::NamespaceDescriptor* release_namespacedescriptor(); + inline void set_allocated_namespacedescriptor(::hbase::pb::NamespaceDescriptor* namespacedescriptor); + + // optional uint64 nonce_group = 2 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 2; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 3 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 3; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyNamespaceRequest) + private: + inline void set_has_namespacedescriptor(); + inline void clear_has_namespacedescriptor(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::NamespaceDescriptor* namespacedescriptor_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ModifyNamespaceRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyNamespaceResponse : public ::google::protobuf::Message { + public: + ModifyNamespaceResponse(); + virtual ~ModifyNamespaceResponse(); + + ModifyNamespaceResponse(const ModifyNamespaceResponse& from); + + inline ModifyNamespaceResponse& operator=(const ModifyNamespaceResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyNamespaceResponse& default_instance(); + + void Swap(ModifyNamespaceResponse* other); + + // implements Message ---------------------------------------------- + + ModifyNamespaceResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyNamespaceResponse& from); + void MergeFrom(const ModifyNamespaceResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyNamespaceResponse) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ModifyNamespaceResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetNamespaceDescriptorRequest : public ::google::protobuf::Message { + public: + GetNamespaceDescriptorRequest(); + virtual ~GetNamespaceDescriptorRequest(); + + GetNamespaceDescriptorRequest(const GetNamespaceDescriptorRequest& from); + + inline GetNamespaceDescriptorRequest& operator=(const GetNamespaceDescriptorRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetNamespaceDescriptorRequest& default_instance(); + + void Swap(GetNamespaceDescriptorRequest* other); + + // implements Message ---------------------------------------------- + + GetNamespaceDescriptorRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetNamespaceDescriptorRequest& from); + void MergeFrom(const GetNamespaceDescriptorRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string namespaceName = 1; + inline bool has_namespacename() const; + inline void clear_namespacename(); + static const int kNamespaceNameFieldNumber = 1; + inline const ::std::string& namespacename() const; + inline void set_namespacename(const ::std::string& value); + inline void set_namespacename(const char* value); + inline void set_namespacename(const char* value, size_t size); + inline ::std::string* mutable_namespacename(); + inline ::std::string* release_namespacename(); + inline void set_allocated_namespacename(::std::string* namespacename); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetNamespaceDescriptorRequest) + private: + inline void set_has_namespacename(); + inline void clear_has_namespacename(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* namespacename_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetNamespaceDescriptorRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetNamespaceDescriptorResponse : public ::google::protobuf::Message { + public: + GetNamespaceDescriptorResponse(); + virtual ~GetNamespaceDescriptorResponse(); + + GetNamespaceDescriptorResponse(const GetNamespaceDescriptorResponse& from); + + inline GetNamespaceDescriptorResponse& operator=(const GetNamespaceDescriptorResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetNamespaceDescriptorResponse& default_instance(); + + void Swap(GetNamespaceDescriptorResponse* other); + + // implements Message ---------------------------------------------- + + GetNamespaceDescriptorResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetNamespaceDescriptorResponse& from); + void MergeFrom(const GetNamespaceDescriptorResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + inline bool has_namespacedescriptor() const; + inline void clear_namespacedescriptor(); + static const int kNamespaceDescriptorFieldNumber = 1; + inline const ::hbase::pb::NamespaceDescriptor& namespacedescriptor() const; + inline ::hbase::pb::NamespaceDescriptor* mutable_namespacedescriptor(); + inline ::hbase::pb::NamespaceDescriptor* release_namespacedescriptor(); + inline void set_allocated_namespacedescriptor(::hbase::pb::NamespaceDescriptor* namespacedescriptor); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetNamespaceDescriptorResponse) + private: + inline void set_has_namespacedescriptor(); + inline void clear_has_namespacedescriptor(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::NamespaceDescriptor* namespacedescriptor_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetNamespaceDescriptorResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListNamespaceDescriptorsRequest : public ::google::protobuf::Message { + public: + ListNamespaceDescriptorsRequest(); + virtual ~ListNamespaceDescriptorsRequest(); + + ListNamespaceDescriptorsRequest(const ListNamespaceDescriptorsRequest& from); + + inline ListNamespaceDescriptorsRequest& operator=(const ListNamespaceDescriptorsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListNamespaceDescriptorsRequest& default_instance(); + + void Swap(ListNamespaceDescriptorsRequest* other); + + // implements Message ---------------------------------------------- + + ListNamespaceDescriptorsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListNamespaceDescriptorsRequest& from); + void MergeFrom(const ListNamespaceDescriptorsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.ListNamespaceDescriptorsRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ListNamespaceDescriptorsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListNamespaceDescriptorsResponse : public ::google::protobuf::Message { + public: + ListNamespaceDescriptorsResponse(); + virtual ~ListNamespaceDescriptorsResponse(); + + ListNamespaceDescriptorsResponse(const ListNamespaceDescriptorsResponse& from); + + inline ListNamespaceDescriptorsResponse& operator=(const ListNamespaceDescriptorsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListNamespaceDescriptorsResponse& default_instance(); + + void Swap(ListNamespaceDescriptorsResponse* other); + + // implements Message ---------------------------------------------- + + ListNamespaceDescriptorsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListNamespaceDescriptorsResponse& from); + void MergeFrom(const ListNamespaceDescriptorsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; + inline int namespacedescriptor_size() const; + inline void clear_namespacedescriptor(); + static const int kNamespaceDescriptorFieldNumber = 1; + inline const ::hbase::pb::NamespaceDescriptor& namespacedescriptor(int index) const; + inline ::hbase::pb::NamespaceDescriptor* mutable_namespacedescriptor(int index); + inline ::hbase::pb::NamespaceDescriptor* add_namespacedescriptor(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NamespaceDescriptor >& + namespacedescriptor() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NamespaceDescriptor >* + mutable_namespacedescriptor(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListNamespaceDescriptorsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NamespaceDescriptor > namespacedescriptor_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ListNamespaceDescriptorsResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListTableDescriptorsByNamespaceRequest : public ::google::protobuf::Message { + public: + ListTableDescriptorsByNamespaceRequest(); + virtual ~ListTableDescriptorsByNamespaceRequest(); + + ListTableDescriptorsByNamespaceRequest(const ListTableDescriptorsByNamespaceRequest& from); + + inline ListTableDescriptorsByNamespaceRequest& operator=(const ListTableDescriptorsByNamespaceRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListTableDescriptorsByNamespaceRequest& default_instance(); + + void Swap(ListTableDescriptorsByNamespaceRequest* other); + + // implements Message ---------------------------------------------- + + ListTableDescriptorsByNamespaceRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListTableDescriptorsByNamespaceRequest& from); + void MergeFrom(const ListTableDescriptorsByNamespaceRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string namespaceName = 1; + inline bool has_namespacename() const; + inline void clear_namespacename(); + static const int kNamespaceNameFieldNumber = 1; + inline const ::std::string& namespacename() const; + inline void set_namespacename(const ::std::string& value); + inline void set_namespacename(const char* value); + inline void set_namespacename(const char* value, size_t size); + inline ::std::string* mutable_namespacename(); + inline ::std::string* release_namespacename(); + inline void set_allocated_namespacename(::std::string* namespacename); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListTableDescriptorsByNamespaceRequest) + private: + inline void set_has_namespacename(); + inline void clear_has_namespacename(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* namespacename_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ListTableDescriptorsByNamespaceRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListTableDescriptorsByNamespaceResponse : public ::google::protobuf::Message { + public: + ListTableDescriptorsByNamespaceResponse(); + virtual ~ListTableDescriptorsByNamespaceResponse(); + + ListTableDescriptorsByNamespaceResponse(const ListTableDescriptorsByNamespaceResponse& from); + + inline ListTableDescriptorsByNamespaceResponse& operator=(const ListTableDescriptorsByNamespaceResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListTableDescriptorsByNamespaceResponse& default_instance(); + + void Swap(ListTableDescriptorsByNamespaceResponse* other); + + // implements Message ---------------------------------------------- + + ListTableDescriptorsByNamespaceResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListTableDescriptorsByNamespaceResponse& from); + void MergeFrom(const ListTableDescriptorsByNamespaceResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.TableSchema tableSchema = 1; + inline int tableschema_size() const; + inline void clear_tableschema(); + static const int kTableSchemaFieldNumber = 1; + inline const ::hbase::pb::TableSchema& tableschema(int index) const; + inline ::hbase::pb::TableSchema* mutable_tableschema(int index); + inline ::hbase::pb::TableSchema* add_tableschema(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema >& + tableschema() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema >* + mutable_tableschema(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListTableDescriptorsByNamespaceResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema > tableschema_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ListTableDescriptorsByNamespaceResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListTableNamesByNamespaceRequest : public ::google::protobuf::Message { + public: + ListTableNamesByNamespaceRequest(); + virtual ~ListTableNamesByNamespaceRequest(); + + ListTableNamesByNamespaceRequest(const ListTableNamesByNamespaceRequest& from); + + inline ListTableNamesByNamespaceRequest& operator=(const ListTableNamesByNamespaceRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListTableNamesByNamespaceRequest& default_instance(); + + void Swap(ListTableNamesByNamespaceRequest* other); + + // implements Message ---------------------------------------------- + + ListTableNamesByNamespaceRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListTableNamesByNamespaceRequest& from); + void MergeFrom(const ListTableNamesByNamespaceRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string namespaceName = 1; + inline bool has_namespacename() const; + inline void clear_namespacename(); + static const int kNamespaceNameFieldNumber = 1; + inline const ::std::string& namespacename() const; + inline void set_namespacename(const ::std::string& value); + inline void set_namespacename(const char* value); + inline void set_namespacename(const char* value, size_t size); + inline ::std::string* mutable_namespacename(); + inline ::std::string* release_namespacename(); + inline void set_allocated_namespacename(::std::string* namespacename); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListTableNamesByNamespaceRequest) + private: + inline void set_has_namespacename(); + inline void clear_has_namespacename(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* namespacename_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ListTableNamesByNamespaceRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListTableNamesByNamespaceResponse : public ::google::protobuf::Message { + public: + ListTableNamesByNamespaceResponse(); + virtual ~ListTableNamesByNamespaceResponse(); + + ListTableNamesByNamespaceResponse(const ListTableNamesByNamespaceResponse& from); + + inline ListTableNamesByNamespaceResponse& operator=(const ListTableNamesByNamespaceResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListTableNamesByNamespaceResponse& default_instance(); + + void Swap(ListTableNamesByNamespaceResponse* other); + + // implements Message ---------------------------------------------- + + ListTableNamesByNamespaceResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListTableNamesByNamespaceResponse& from); + void MergeFrom(const ListTableNamesByNamespaceResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.TableName tableName = 1; + inline int tablename_size() const; + inline void clear_tablename(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& tablename(int index) const; + inline ::hbase::pb::TableName* mutable_tablename(int index); + inline ::hbase::pb::TableName* add_tablename(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& + tablename() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* + mutable_tablename(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListTableNamesByNamespaceResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName > tablename_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ListTableNamesByNamespaceResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ShutdownRequest : public ::google::protobuf::Message { + public: + ShutdownRequest(); + virtual ~ShutdownRequest(); + + ShutdownRequest(const ShutdownRequest& from); + + inline ShutdownRequest& operator=(const ShutdownRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ShutdownRequest& default_instance(); + + void Swap(ShutdownRequest* other); + + // implements Message ---------------------------------------------- + + ShutdownRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ShutdownRequest& from); + void MergeFrom(const ShutdownRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.ShutdownRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ShutdownRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ShutdownResponse : public ::google::protobuf::Message { + public: + ShutdownResponse(); + virtual ~ShutdownResponse(); + + ShutdownResponse(const ShutdownResponse& from); + + inline ShutdownResponse& operator=(const ShutdownResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ShutdownResponse& default_instance(); + + void Swap(ShutdownResponse* other); + + // implements Message ---------------------------------------------- + + ShutdownResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ShutdownResponse& from); + void MergeFrom(const ShutdownResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.ShutdownResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ShutdownResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class StopMasterRequest : public ::google::protobuf::Message { + public: + StopMasterRequest(); + virtual ~StopMasterRequest(); + + StopMasterRequest(const StopMasterRequest& from); + + inline StopMasterRequest& operator=(const StopMasterRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StopMasterRequest& default_instance(); + + void Swap(StopMasterRequest* other); + + // implements Message ---------------------------------------------- + + StopMasterRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StopMasterRequest& from); + void MergeFrom(const StopMasterRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.StopMasterRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static StopMasterRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class StopMasterResponse : public ::google::protobuf::Message { + public: + StopMasterResponse(); + virtual ~StopMasterResponse(); + + StopMasterResponse(const StopMasterResponse& from); + + inline StopMasterResponse& operator=(const StopMasterResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StopMasterResponse& default_instance(); + + void Swap(StopMasterResponse* other); + + // implements Message ---------------------------------------------- + + StopMasterResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StopMasterResponse& from); + void MergeFrom(const StopMasterResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.StopMasterResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static StopMasterResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class BalanceRequest : public ::google::protobuf::Message { + public: + BalanceRequest(); + virtual ~BalanceRequest(); + + BalanceRequest(const BalanceRequest& from); + + inline BalanceRequest& operator=(const BalanceRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BalanceRequest& default_instance(); + + void Swap(BalanceRequest* other); + + // implements Message ---------------------------------------------- + + BalanceRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BalanceRequest& from); + void MergeFrom(const BalanceRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool force = 1; + inline bool has_force() const; + inline void clear_force(); + static const int kForceFieldNumber = 1; + inline bool force() const; + inline void set_force(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.BalanceRequest) + private: + inline void set_has_force(); + inline void clear_has_force(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool force_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static BalanceRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class BalanceResponse : public ::google::protobuf::Message { + public: + BalanceResponse(); + virtual ~BalanceResponse(); + + BalanceResponse(const BalanceResponse& from); + + inline BalanceResponse& operator=(const BalanceResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BalanceResponse& default_instance(); + + void Swap(BalanceResponse* other); + + // implements Message ---------------------------------------------- + + BalanceResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BalanceResponse& from); + void MergeFrom(const BalanceResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool balancer_ran = 1; + inline bool has_balancer_ran() const; + inline void clear_balancer_ran(); + static const int kBalancerRanFieldNumber = 1; + inline bool balancer_ran() const; + inline void set_balancer_ran(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.BalanceResponse) + private: + inline void set_has_balancer_ran(); + inline void clear_has_balancer_ran(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool balancer_ran_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static BalanceResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetBalancerRunningRequest : public ::google::protobuf::Message { + public: + SetBalancerRunningRequest(); + virtual ~SetBalancerRunningRequest(); + + SetBalancerRunningRequest(const SetBalancerRunningRequest& from); + + inline SetBalancerRunningRequest& operator=(const SetBalancerRunningRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetBalancerRunningRequest& default_instance(); + + void Swap(SetBalancerRunningRequest* other); + + // implements Message ---------------------------------------------- + + SetBalancerRunningRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetBalancerRunningRequest& from); + void MergeFrom(const SetBalancerRunningRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool on = 1; + inline bool has_on() const; + inline void clear_on(); + static const int kOnFieldNumber = 1; + inline bool on() const; + inline void set_on(bool value); + + // optional bool synchronous = 2; + inline bool has_synchronous() const; + inline void clear_synchronous(); + static const int kSynchronousFieldNumber = 2; + inline bool synchronous() const; + inline void set_synchronous(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SetBalancerRunningRequest) + private: + inline void set_has_on(); + inline void clear_has_on(); + inline void set_has_synchronous(); + inline void clear_has_synchronous(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool on_; + bool synchronous_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SetBalancerRunningRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetBalancerRunningResponse : public ::google::protobuf::Message { + public: + SetBalancerRunningResponse(); + virtual ~SetBalancerRunningResponse(); + + SetBalancerRunningResponse(const SetBalancerRunningResponse& from); + + inline SetBalancerRunningResponse& operator=(const SetBalancerRunningResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetBalancerRunningResponse& default_instance(); + + void Swap(SetBalancerRunningResponse* other); + + // implements Message ---------------------------------------------- + + SetBalancerRunningResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetBalancerRunningResponse& from); + void MergeFrom(const SetBalancerRunningResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool prev_balance_value = 1; + inline bool has_prev_balance_value() const; + inline void clear_prev_balance_value(); + static const int kPrevBalanceValueFieldNumber = 1; + inline bool prev_balance_value() const; + inline void set_prev_balance_value(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SetBalancerRunningResponse) + private: + inline void set_has_prev_balance_value(); + inline void clear_has_prev_balance_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool prev_balance_value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SetBalancerRunningResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsBalancerEnabledRequest : public ::google::protobuf::Message { + public: + IsBalancerEnabledRequest(); + virtual ~IsBalancerEnabledRequest(); + + IsBalancerEnabledRequest(const IsBalancerEnabledRequest& from); + + inline IsBalancerEnabledRequest& operator=(const IsBalancerEnabledRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsBalancerEnabledRequest& default_instance(); + + void Swap(IsBalancerEnabledRequest* other); + + // implements Message ---------------------------------------------- + + IsBalancerEnabledRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsBalancerEnabledRequest& from); + void MergeFrom(const IsBalancerEnabledRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.IsBalancerEnabledRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsBalancerEnabledRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsBalancerEnabledResponse : public ::google::protobuf::Message { + public: + IsBalancerEnabledResponse(); + virtual ~IsBalancerEnabledResponse(); + + IsBalancerEnabledResponse(const IsBalancerEnabledResponse& from); + + inline IsBalancerEnabledResponse& operator=(const IsBalancerEnabledResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsBalancerEnabledResponse& default_instance(); + + void Swap(IsBalancerEnabledResponse* other); + + // implements Message ---------------------------------------------- + + IsBalancerEnabledResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsBalancerEnabledResponse& from); + void MergeFrom(const IsBalancerEnabledResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool enabled = 1; + inline bool has_enabled() const; + inline void clear_enabled(); + static const int kEnabledFieldNumber = 1; + inline bool enabled() const; + inline void set_enabled(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsBalancerEnabledResponse) + private: + inline void set_has_enabled(); + inline void clear_has_enabled(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool enabled_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsBalancerEnabledResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetSplitOrMergeEnabledRequest : public ::google::protobuf::Message { + public: + SetSplitOrMergeEnabledRequest(); + virtual ~SetSplitOrMergeEnabledRequest(); + + SetSplitOrMergeEnabledRequest(const SetSplitOrMergeEnabledRequest& from); + + inline SetSplitOrMergeEnabledRequest& operator=(const SetSplitOrMergeEnabledRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetSplitOrMergeEnabledRequest& default_instance(); + + void Swap(SetSplitOrMergeEnabledRequest* other); + + // implements Message ---------------------------------------------- + + SetSplitOrMergeEnabledRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetSplitOrMergeEnabledRequest& from); + void MergeFrom(const SetSplitOrMergeEnabledRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool enabled = 1; + inline bool has_enabled() const; + inline void clear_enabled(); + static const int kEnabledFieldNumber = 1; + inline bool enabled() const; + inline void set_enabled(bool value); + + // optional bool synchronous = 2; + inline bool has_synchronous() const; + inline void clear_synchronous(); + static const int kSynchronousFieldNumber = 2; + inline bool synchronous() const; + inline void set_synchronous(bool value); + + // repeated .hbase.pb.MasterSwitchType switch_types = 3; + inline int switch_types_size() const; + inline void clear_switch_types(); + static const int kSwitchTypesFieldNumber = 3; + inline ::hbase::pb::MasterSwitchType switch_types(int index) const; + inline void set_switch_types(int index, ::hbase::pb::MasterSwitchType value); + inline void add_switch_types(::hbase::pb::MasterSwitchType value); + inline const ::google::protobuf::RepeatedField& switch_types() const; + inline ::google::protobuf::RepeatedField* mutable_switch_types(); + + // @@protoc_insertion_point(class_scope:hbase.pb.SetSplitOrMergeEnabledRequest) + private: + inline void set_has_enabled(); + inline void clear_has_enabled(); + inline void set_has_synchronous(); + inline void clear_has_synchronous(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedField switch_types_; + bool enabled_; + bool synchronous_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SetSplitOrMergeEnabledRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetSplitOrMergeEnabledResponse : public ::google::protobuf::Message { + public: + SetSplitOrMergeEnabledResponse(); + virtual ~SetSplitOrMergeEnabledResponse(); + + SetSplitOrMergeEnabledResponse(const SetSplitOrMergeEnabledResponse& from); + + inline SetSplitOrMergeEnabledResponse& operator=(const SetSplitOrMergeEnabledResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetSplitOrMergeEnabledResponse& default_instance(); + + void Swap(SetSplitOrMergeEnabledResponse* other); + + // implements Message ---------------------------------------------- + + SetSplitOrMergeEnabledResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetSplitOrMergeEnabledResponse& from); + void MergeFrom(const SetSplitOrMergeEnabledResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bool prev_value = 1; + inline int prev_value_size() const; + inline void clear_prev_value(); + static const int kPrevValueFieldNumber = 1; + inline bool prev_value(int index) const; + inline void set_prev_value(int index, bool value); + inline void add_prev_value(bool value); + inline const ::google::protobuf::RepeatedField< bool >& + prev_value() const; + inline ::google::protobuf::RepeatedField< bool >* + mutable_prev_value(); + + // @@protoc_insertion_point(class_scope:hbase.pb.SetSplitOrMergeEnabledResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedField< bool > prev_value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SetSplitOrMergeEnabledResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsSplitOrMergeEnabledRequest : public ::google::protobuf::Message { + public: + IsSplitOrMergeEnabledRequest(); + virtual ~IsSplitOrMergeEnabledRequest(); + + IsSplitOrMergeEnabledRequest(const IsSplitOrMergeEnabledRequest& from); + + inline IsSplitOrMergeEnabledRequest& operator=(const IsSplitOrMergeEnabledRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsSplitOrMergeEnabledRequest& default_instance(); + + void Swap(IsSplitOrMergeEnabledRequest* other); + + // implements Message ---------------------------------------------- + + IsSplitOrMergeEnabledRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsSplitOrMergeEnabledRequest& from); + void MergeFrom(const IsSplitOrMergeEnabledRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.MasterSwitchType switch_type = 1; + inline bool has_switch_type() const; + inline void clear_switch_type(); + static const int kSwitchTypeFieldNumber = 1; + inline ::hbase::pb::MasterSwitchType switch_type() const; + inline void set_switch_type(::hbase::pb::MasterSwitchType value); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsSplitOrMergeEnabledRequest) + private: + inline void set_has_switch_type(); + inline void clear_has_switch_type(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + int switch_type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsSplitOrMergeEnabledRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsSplitOrMergeEnabledResponse : public ::google::protobuf::Message { + public: + IsSplitOrMergeEnabledResponse(); + virtual ~IsSplitOrMergeEnabledResponse(); + + IsSplitOrMergeEnabledResponse(const IsSplitOrMergeEnabledResponse& from); + + inline IsSplitOrMergeEnabledResponse& operator=(const IsSplitOrMergeEnabledResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsSplitOrMergeEnabledResponse& default_instance(); + + void Swap(IsSplitOrMergeEnabledResponse* other); + + // implements Message ---------------------------------------------- + + IsSplitOrMergeEnabledResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsSplitOrMergeEnabledResponse& from); + void MergeFrom(const IsSplitOrMergeEnabledResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool enabled = 1; + inline bool has_enabled() const; + inline void clear_enabled(); + static const int kEnabledFieldNumber = 1; + inline bool enabled() const; + inline void set_enabled(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsSplitOrMergeEnabledResponse) + private: + inline void set_has_enabled(); + inline void clear_has_enabled(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool enabled_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsSplitOrMergeEnabledResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class NormalizeRequest : public ::google::protobuf::Message { + public: + NormalizeRequest(); + virtual ~NormalizeRequest(); + + NormalizeRequest(const NormalizeRequest& from); + + inline NormalizeRequest& operator=(const NormalizeRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NormalizeRequest& default_instance(); + + void Swap(NormalizeRequest* other); + + // implements Message ---------------------------------------------- + + NormalizeRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NormalizeRequest& from); + void MergeFrom(const NormalizeRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.NormalizeRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static NormalizeRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class NormalizeResponse : public ::google::protobuf::Message { + public: + NormalizeResponse(); + virtual ~NormalizeResponse(); + + NormalizeResponse(const NormalizeResponse& from); + + inline NormalizeResponse& operator=(const NormalizeResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NormalizeResponse& default_instance(); + + void Swap(NormalizeResponse* other); + + // implements Message ---------------------------------------------- + + NormalizeResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NormalizeResponse& from); + void MergeFrom(const NormalizeResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool normalizer_ran = 1; + inline bool has_normalizer_ran() const; + inline void clear_normalizer_ran(); + static const int kNormalizerRanFieldNumber = 1; + inline bool normalizer_ran() const; + inline void set_normalizer_ran(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.NormalizeResponse) + private: + inline void set_has_normalizer_ran(); + inline void clear_has_normalizer_ran(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool normalizer_ran_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static NormalizeResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetNormalizerRunningRequest : public ::google::protobuf::Message { + public: + SetNormalizerRunningRequest(); + virtual ~SetNormalizerRunningRequest(); + + SetNormalizerRunningRequest(const SetNormalizerRunningRequest& from); + + inline SetNormalizerRunningRequest& operator=(const SetNormalizerRunningRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetNormalizerRunningRequest& default_instance(); + + void Swap(SetNormalizerRunningRequest* other); + + // implements Message ---------------------------------------------- + + SetNormalizerRunningRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetNormalizerRunningRequest& from); + void MergeFrom(const SetNormalizerRunningRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool on = 1; + inline bool has_on() const; + inline void clear_on(); + static const int kOnFieldNumber = 1; + inline bool on() const; + inline void set_on(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SetNormalizerRunningRequest) + private: + inline void set_has_on(); + inline void clear_has_on(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool on_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SetNormalizerRunningRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetNormalizerRunningResponse : public ::google::protobuf::Message { + public: + SetNormalizerRunningResponse(); + virtual ~SetNormalizerRunningResponse(); + + SetNormalizerRunningResponse(const SetNormalizerRunningResponse& from); + + inline SetNormalizerRunningResponse& operator=(const SetNormalizerRunningResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetNormalizerRunningResponse& default_instance(); + + void Swap(SetNormalizerRunningResponse* other); + + // implements Message ---------------------------------------------- + + SetNormalizerRunningResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetNormalizerRunningResponse& from); + void MergeFrom(const SetNormalizerRunningResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool prev_normalizer_value = 1; + inline bool has_prev_normalizer_value() const; + inline void clear_prev_normalizer_value(); + static const int kPrevNormalizerValueFieldNumber = 1; + inline bool prev_normalizer_value() const; + inline void set_prev_normalizer_value(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SetNormalizerRunningResponse) + private: + inline void set_has_prev_normalizer_value(); + inline void clear_has_prev_normalizer_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool prev_normalizer_value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SetNormalizerRunningResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsNormalizerEnabledRequest : public ::google::protobuf::Message { + public: + IsNormalizerEnabledRequest(); + virtual ~IsNormalizerEnabledRequest(); + + IsNormalizerEnabledRequest(const IsNormalizerEnabledRequest& from); + + inline IsNormalizerEnabledRequest& operator=(const IsNormalizerEnabledRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsNormalizerEnabledRequest& default_instance(); + + void Swap(IsNormalizerEnabledRequest* other); + + // implements Message ---------------------------------------------- + + IsNormalizerEnabledRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsNormalizerEnabledRequest& from); + void MergeFrom(const IsNormalizerEnabledRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.IsNormalizerEnabledRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsNormalizerEnabledRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsNormalizerEnabledResponse : public ::google::protobuf::Message { + public: + IsNormalizerEnabledResponse(); + virtual ~IsNormalizerEnabledResponse(); + + IsNormalizerEnabledResponse(const IsNormalizerEnabledResponse& from); + + inline IsNormalizerEnabledResponse& operator=(const IsNormalizerEnabledResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsNormalizerEnabledResponse& default_instance(); + + void Swap(IsNormalizerEnabledResponse* other); + + // implements Message ---------------------------------------------- + + IsNormalizerEnabledResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsNormalizerEnabledResponse& from); + void MergeFrom(const IsNormalizerEnabledResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool enabled = 1; + inline bool has_enabled() const; + inline void clear_enabled(); + static const int kEnabledFieldNumber = 1; + inline bool enabled() const; + inline void set_enabled(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsNormalizerEnabledResponse) + private: + inline void set_has_enabled(); + inline void clear_has_enabled(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool enabled_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsNormalizerEnabledResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class RunCatalogScanRequest : public ::google::protobuf::Message { + public: + RunCatalogScanRequest(); + virtual ~RunCatalogScanRequest(); + + RunCatalogScanRequest(const RunCatalogScanRequest& from); + + inline RunCatalogScanRequest& operator=(const RunCatalogScanRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RunCatalogScanRequest& default_instance(); + + void Swap(RunCatalogScanRequest* other); + + // implements Message ---------------------------------------------- + + RunCatalogScanRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RunCatalogScanRequest& from); + void MergeFrom(const RunCatalogScanRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.RunCatalogScanRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static RunCatalogScanRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class RunCatalogScanResponse : public ::google::protobuf::Message { + public: + RunCatalogScanResponse(); + virtual ~RunCatalogScanResponse(); + + RunCatalogScanResponse(const RunCatalogScanResponse& from); + + inline RunCatalogScanResponse& operator=(const RunCatalogScanResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RunCatalogScanResponse& default_instance(); + + void Swap(RunCatalogScanResponse* other); + + // implements Message ---------------------------------------------- + + RunCatalogScanResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RunCatalogScanResponse& from); + void MergeFrom(const RunCatalogScanResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional int32 scan_result = 1; + inline bool has_scan_result() const; + inline void clear_scan_result(); + static const int kScanResultFieldNumber = 1; + inline ::google::protobuf::int32 scan_result() const; + inline void set_scan_result(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RunCatalogScanResponse) + private: + inline void set_has_scan_result(); + inline void clear_has_scan_result(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int32 scan_result_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static RunCatalogScanResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class EnableCatalogJanitorRequest : public ::google::protobuf::Message { + public: + EnableCatalogJanitorRequest(); + virtual ~EnableCatalogJanitorRequest(); + + EnableCatalogJanitorRequest(const EnableCatalogJanitorRequest& from); + + inline EnableCatalogJanitorRequest& operator=(const EnableCatalogJanitorRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EnableCatalogJanitorRequest& default_instance(); + + void Swap(EnableCatalogJanitorRequest* other); + + // implements Message ---------------------------------------------- + + EnableCatalogJanitorRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EnableCatalogJanitorRequest& from); + void MergeFrom(const EnableCatalogJanitorRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool enable = 1; + inline bool has_enable() const; + inline void clear_enable(); + static const int kEnableFieldNumber = 1; + inline bool enable() const; + inline void set_enable(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.EnableCatalogJanitorRequest) + private: + inline void set_has_enable(); + inline void clear_has_enable(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool enable_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static EnableCatalogJanitorRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class EnableCatalogJanitorResponse : public ::google::protobuf::Message { + public: + EnableCatalogJanitorResponse(); + virtual ~EnableCatalogJanitorResponse(); + + EnableCatalogJanitorResponse(const EnableCatalogJanitorResponse& from); + + inline EnableCatalogJanitorResponse& operator=(const EnableCatalogJanitorResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EnableCatalogJanitorResponse& default_instance(); + + void Swap(EnableCatalogJanitorResponse* other); + + // implements Message ---------------------------------------------- + + EnableCatalogJanitorResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EnableCatalogJanitorResponse& from); + void MergeFrom(const EnableCatalogJanitorResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool prev_value = 1; + inline bool has_prev_value() const; + inline void clear_prev_value(); + static const int kPrevValueFieldNumber = 1; + inline bool prev_value() const; + inline void set_prev_value(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.EnableCatalogJanitorResponse) + private: + inline void set_has_prev_value(); + inline void clear_has_prev_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool prev_value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static EnableCatalogJanitorResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsCatalogJanitorEnabledRequest : public ::google::protobuf::Message { + public: + IsCatalogJanitorEnabledRequest(); + virtual ~IsCatalogJanitorEnabledRequest(); + + IsCatalogJanitorEnabledRequest(const IsCatalogJanitorEnabledRequest& from); + + inline IsCatalogJanitorEnabledRequest& operator=(const IsCatalogJanitorEnabledRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsCatalogJanitorEnabledRequest& default_instance(); + + void Swap(IsCatalogJanitorEnabledRequest* other); + + // implements Message ---------------------------------------------- + + IsCatalogJanitorEnabledRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsCatalogJanitorEnabledRequest& from); + void MergeFrom(const IsCatalogJanitorEnabledRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.IsCatalogJanitorEnabledRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsCatalogJanitorEnabledRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsCatalogJanitorEnabledResponse : public ::google::protobuf::Message { + public: + IsCatalogJanitorEnabledResponse(); + virtual ~IsCatalogJanitorEnabledResponse(); + + IsCatalogJanitorEnabledResponse(const IsCatalogJanitorEnabledResponse& from); + + inline IsCatalogJanitorEnabledResponse& operator=(const IsCatalogJanitorEnabledResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsCatalogJanitorEnabledResponse& default_instance(); + + void Swap(IsCatalogJanitorEnabledResponse* other); + + // implements Message ---------------------------------------------- + + IsCatalogJanitorEnabledResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsCatalogJanitorEnabledResponse& from); + void MergeFrom(const IsCatalogJanitorEnabledResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool value = 1; + inline bool has_value() const; + inline void clear_value(); + static const int kValueFieldNumber = 1; + inline bool value() const; + inline void set_value(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsCatalogJanitorEnabledResponse) + private: + inline void set_has_value(); + inline void clear_has_value(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool value_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsCatalogJanitorEnabledResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class SnapshotRequest : public ::google::protobuf::Message { + public: + SnapshotRequest(); + virtual ~SnapshotRequest(); + + SnapshotRequest(const SnapshotRequest& from); + + inline SnapshotRequest& operator=(const SnapshotRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SnapshotRequest& default_instance(); + + void Swap(SnapshotRequest* other); + + // implements Message ---------------------------------------------- + + SnapshotRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SnapshotRequest& from); + void MergeFrom(const SnapshotRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.SnapshotDescription snapshot = 1; + inline bool has_snapshot() const; + inline void clear_snapshot(); + static const int kSnapshotFieldNumber = 1; + inline const ::hbase::pb::SnapshotDescription& snapshot() const; + inline ::hbase::pb::SnapshotDescription* mutable_snapshot(); + inline ::hbase::pb::SnapshotDescription* release_snapshot(); + inline void set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot); + + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRequest) + private: + inline void set_has_snapshot(); + inline void clear_has_snapshot(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::SnapshotDescription* snapshot_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SnapshotRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SnapshotResponse : public ::google::protobuf::Message { + public: + SnapshotResponse(); + virtual ~SnapshotResponse(); + + SnapshotResponse(const SnapshotResponse& from); + + inline SnapshotResponse& operator=(const SnapshotResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SnapshotResponse& default_instance(); + + void Swap(SnapshotResponse* other); + + // implements Message ---------------------------------------------- + + SnapshotResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SnapshotResponse& from); + void MergeFrom(const SnapshotResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required int64 expected_timeout = 1; + inline bool has_expected_timeout() const; + inline void clear_expected_timeout(); + static const int kExpectedTimeoutFieldNumber = 1; + inline ::google::protobuf::int64 expected_timeout() const; + inline void set_expected_timeout(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotResponse) + private: + inline void set_has_expected_timeout(); + inline void clear_has_expected_timeout(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int64 expected_timeout_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SnapshotResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetCompletedSnapshotsRequest : public ::google::protobuf::Message { + public: + GetCompletedSnapshotsRequest(); + virtual ~GetCompletedSnapshotsRequest(); + + GetCompletedSnapshotsRequest(const GetCompletedSnapshotsRequest& from); + + inline GetCompletedSnapshotsRequest& operator=(const GetCompletedSnapshotsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetCompletedSnapshotsRequest& default_instance(); + + void Swap(GetCompletedSnapshotsRequest* other); + + // implements Message ---------------------------------------------- + + GetCompletedSnapshotsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetCompletedSnapshotsRequest& from); + void MergeFrom(const GetCompletedSnapshotsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.GetCompletedSnapshotsRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetCompletedSnapshotsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetCompletedSnapshotsResponse : public ::google::protobuf::Message { + public: + GetCompletedSnapshotsResponse(); + virtual ~GetCompletedSnapshotsResponse(); + + GetCompletedSnapshotsResponse(const GetCompletedSnapshotsResponse& from); + + inline GetCompletedSnapshotsResponse& operator=(const GetCompletedSnapshotsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetCompletedSnapshotsResponse& default_instance(); + + void Swap(GetCompletedSnapshotsResponse* other); + + // implements Message ---------------------------------------------- + + GetCompletedSnapshotsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetCompletedSnapshotsResponse& from); + void MergeFrom(const GetCompletedSnapshotsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.SnapshotDescription snapshots = 1; + inline int snapshots_size() const; + inline void clear_snapshots(); + static const int kSnapshotsFieldNumber = 1; + inline const ::hbase::pb::SnapshotDescription& snapshots(int index) const; + inline ::hbase::pb::SnapshotDescription* mutable_snapshots(int index); + inline ::hbase::pb::SnapshotDescription* add_snapshots(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotDescription >& + snapshots() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotDescription >* + mutable_snapshots(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetCompletedSnapshotsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotDescription > snapshots_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetCompletedSnapshotsResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteSnapshotRequest : public ::google::protobuf::Message { + public: + DeleteSnapshotRequest(); + virtual ~DeleteSnapshotRequest(); + + DeleteSnapshotRequest(const DeleteSnapshotRequest& from); + + inline DeleteSnapshotRequest& operator=(const DeleteSnapshotRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteSnapshotRequest& default_instance(); + + void Swap(DeleteSnapshotRequest* other); + + // implements Message ---------------------------------------------- + + DeleteSnapshotRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteSnapshotRequest& from); + void MergeFrom(const DeleteSnapshotRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.SnapshotDescription snapshot = 1; + inline bool has_snapshot() const; + inline void clear_snapshot(); + static const int kSnapshotFieldNumber = 1; + inline const ::hbase::pb::SnapshotDescription& snapshot() const; + inline ::hbase::pb::SnapshotDescription* mutable_snapshot(); + inline ::hbase::pb::SnapshotDescription* release_snapshot(); + inline void set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteSnapshotRequest) + private: + inline void set_has_snapshot(); + inline void clear_has_snapshot(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::SnapshotDescription* snapshot_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DeleteSnapshotRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteSnapshotResponse : public ::google::protobuf::Message { + public: + DeleteSnapshotResponse(); + virtual ~DeleteSnapshotResponse(); + + DeleteSnapshotResponse(const DeleteSnapshotResponse& from); + + inline DeleteSnapshotResponse& operator=(const DeleteSnapshotResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteSnapshotResponse& default_instance(); + + void Swap(DeleteSnapshotResponse* other); + + // implements Message ---------------------------------------------- + + DeleteSnapshotResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteSnapshotResponse& from); + void MergeFrom(const DeleteSnapshotResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteSnapshotResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static DeleteSnapshotResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class RestoreSnapshotRequest : public ::google::protobuf::Message { + public: + RestoreSnapshotRequest(); + virtual ~RestoreSnapshotRequest(); + + RestoreSnapshotRequest(const RestoreSnapshotRequest& from); + + inline RestoreSnapshotRequest& operator=(const RestoreSnapshotRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RestoreSnapshotRequest& default_instance(); + + void Swap(RestoreSnapshotRequest* other); + + // implements Message ---------------------------------------------- + + RestoreSnapshotRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RestoreSnapshotRequest& from); + void MergeFrom(const RestoreSnapshotRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.SnapshotDescription snapshot = 1; + inline bool has_snapshot() const; + inline void clear_snapshot(); + static const int kSnapshotFieldNumber = 1; + inline const ::hbase::pb::SnapshotDescription& snapshot() const; + inline ::hbase::pb::SnapshotDescription* mutable_snapshot(); + inline ::hbase::pb::SnapshotDescription* release_snapshot(); + inline void set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot); + + // @@protoc_insertion_point(class_scope:hbase.pb.RestoreSnapshotRequest) + private: + inline void set_has_snapshot(); + inline void clear_has_snapshot(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::SnapshotDescription* snapshot_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static RestoreSnapshotRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class RestoreSnapshotResponse : public ::google::protobuf::Message { + public: + RestoreSnapshotResponse(); + virtual ~RestoreSnapshotResponse(); + + RestoreSnapshotResponse(const RestoreSnapshotResponse& from); + + inline RestoreSnapshotResponse& operator=(const RestoreSnapshotResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RestoreSnapshotResponse& default_instance(); + + void Swap(RestoreSnapshotResponse* other); + + // implements Message ---------------------------------------------- + + RestoreSnapshotResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RestoreSnapshotResponse& from); + void MergeFrom(const RestoreSnapshotResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.RestoreSnapshotResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static RestoreSnapshotResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsSnapshotDoneRequest : public ::google::protobuf::Message { + public: + IsSnapshotDoneRequest(); + virtual ~IsSnapshotDoneRequest(); + + IsSnapshotDoneRequest(const IsSnapshotDoneRequest& from); + + inline IsSnapshotDoneRequest& operator=(const IsSnapshotDoneRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsSnapshotDoneRequest& default_instance(); + + void Swap(IsSnapshotDoneRequest* other); + + // implements Message ---------------------------------------------- + + IsSnapshotDoneRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsSnapshotDoneRequest& from); + void MergeFrom(const IsSnapshotDoneRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.SnapshotDescription snapshot = 1; + inline bool has_snapshot() const; + inline void clear_snapshot(); + static const int kSnapshotFieldNumber = 1; + inline const ::hbase::pb::SnapshotDescription& snapshot() const; + inline ::hbase::pb::SnapshotDescription* mutable_snapshot(); + inline ::hbase::pb::SnapshotDescription* release_snapshot(); + inline void set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsSnapshotDoneRequest) + private: + inline void set_has_snapshot(); + inline void clear_has_snapshot(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::SnapshotDescription* snapshot_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsSnapshotDoneRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsSnapshotDoneResponse : public ::google::protobuf::Message { + public: + IsSnapshotDoneResponse(); + virtual ~IsSnapshotDoneResponse(); + + IsSnapshotDoneResponse(const IsSnapshotDoneResponse& from); + + inline IsSnapshotDoneResponse& operator=(const IsSnapshotDoneResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsSnapshotDoneResponse& default_instance(); + + void Swap(IsSnapshotDoneResponse* other); + + // implements Message ---------------------------------------------- + + IsSnapshotDoneResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsSnapshotDoneResponse& from); + void MergeFrom(const IsSnapshotDoneResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool done = 1 [default = false]; + inline bool has_done() const; + inline void clear_done(); + static const int kDoneFieldNumber = 1; + inline bool done() const; + inline void set_done(bool value); + + // optional .hbase.pb.SnapshotDescription snapshot = 2; + inline bool has_snapshot() const; + inline void clear_snapshot(); + static const int kSnapshotFieldNumber = 2; + inline const ::hbase::pb::SnapshotDescription& snapshot() const; + inline ::hbase::pb::SnapshotDescription* mutable_snapshot(); + inline ::hbase::pb::SnapshotDescription* release_snapshot(); + inline void set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsSnapshotDoneResponse) + private: + inline void set_has_done(); + inline void clear_has_done(); + inline void set_has_snapshot(); + inline void clear_has_snapshot(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::SnapshotDescription* snapshot_; + bool done_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsSnapshotDoneResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsRestoreSnapshotDoneRequest : public ::google::protobuf::Message { + public: + IsRestoreSnapshotDoneRequest(); + virtual ~IsRestoreSnapshotDoneRequest(); + + IsRestoreSnapshotDoneRequest(const IsRestoreSnapshotDoneRequest& from); + + inline IsRestoreSnapshotDoneRequest& operator=(const IsRestoreSnapshotDoneRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsRestoreSnapshotDoneRequest& default_instance(); + + void Swap(IsRestoreSnapshotDoneRequest* other); + + // implements Message ---------------------------------------------- + + IsRestoreSnapshotDoneRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsRestoreSnapshotDoneRequest& from); + void MergeFrom(const IsRestoreSnapshotDoneRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.SnapshotDescription snapshot = 1; + inline bool has_snapshot() const; + inline void clear_snapshot(); + static const int kSnapshotFieldNumber = 1; + inline const ::hbase::pb::SnapshotDescription& snapshot() const; + inline ::hbase::pb::SnapshotDescription* mutable_snapshot(); + inline ::hbase::pb::SnapshotDescription* release_snapshot(); + inline void set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsRestoreSnapshotDoneRequest) + private: + inline void set_has_snapshot(); + inline void clear_has_snapshot(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::SnapshotDescription* snapshot_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsRestoreSnapshotDoneRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsRestoreSnapshotDoneResponse : public ::google::protobuf::Message { + public: + IsRestoreSnapshotDoneResponse(); + virtual ~IsRestoreSnapshotDoneResponse(); + + IsRestoreSnapshotDoneResponse(const IsRestoreSnapshotDoneResponse& from); + + inline IsRestoreSnapshotDoneResponse& operator=(const IsRestoreSnapshotDoneResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsRestoreSnapshotDoneResponse& default_instance(); + + void Swap(IsRestoreSnapshotDoneResponse* other); + + // implements Message ---------------------------------------------- + + IsRestoreSnapshotDoneResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsRestoreSnapshotDoneResponse& from); + void MergeFrom(const IsRestoreSnapshotDoneResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool done = 1 [default = false]; + inline bool has_done() const; + inline void clear_done(); + static const int kDoneFieldNumber = 1; + inline bool done() const; + inline void set_done(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsRestoreSnapshotDoneResponse) + private: + inline void set_has_done(); + inline void clear_has_done(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool done_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsRestoreSnapshotDoneResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetSchemaAlterStatusRequest : public ::google::protobuf::Message { + public: + GetSchemaAlterStatusRequest(); + virtual ~GetSchemaAlterStatusRequest(); + + GetSchemaAlterStatusRequest(const GetSchemaAlterStatusRequest& from); + + inline GetSchemaAlterStatusRequest& operator=(const GetSchemaAlterStatusRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetSchemaAlterStatusRequest& default_instance(); + + void Swap(GetSchemaAlterStatusRequest* other); + + // implements Message ---------------------------------------------- + + GetSchemaAlterStatusRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetSchemaAlterStatusRequest& from); + void MergeFrom(const GetSchemaAlterStatusRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetSchemaAlterStatusRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetSchemaAlterStatusRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetSchemaAlterStatusResponse : public ::google::protobuf::Message { + public: + GetSchemaAlterStatusResponse(); + virtual ~GetSchemaAlterStatusResponse(); + + GetSchemaAlterStatusResponse(const GetSchemaAlterStatusResponse& from); + + inline GetSchemaAlterStatusResponse& operator=(const GetSchemaAlterStatusResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetSchemaAlterStatusResponse& default_instance(); + + void Swap(GetSchemaAlterStatusResponse* other); + + // implements Message ---------------------------------------------- + + GetSchemaAlterStatusResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetSchemaAlterStatusResponse& from); + void MergeFrom(const GetSchemaAlterStatusResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 yet_to_update_regions = 1; + inline bool has_yet_to_update_regions() const; + inline void clear_yet_to_update_regions(); + static const int kYetToUpdateRegionsFieldNumber = 1; + inline ::google::protobuf::uint32 yet_to_update_regions() const; + inline void set_yet_to_update_regions(::google::protobuf::uint32 value); + + // optional uint32 total_regions = 2; + inline bool has_total_regions() const; + inline void clear_total_regions(); + static const int kTotalRegionsFieldNumber = 2; + inline ::google::protobuf::uint32 total_regions() const; + inline void set_total_regions(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetSchemaAlterStatusResponse) + private: + inline void set_has_yet_to_update_regions(); + inline void clear_has_yet_to_update_regions(); + inline void set_has_total_regions(); + inline void clear_has_total_regions(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 yet_to_update_regions_; + ::google::protobuf::uint32 total_regions_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetSchemaAlterStatusResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetTableDescriptorsRequest : public ::google::protobuf::Message { + public: + GetTableDescriptorsRequest(); + virtual ~GetTableDescriptorsRequest(); + + GetTableDescriptorsRequest(const GetTableDescriptorsRequest& from); + + inline GetTableDescriptorsRequest& operator=(const GetTableDescriptorsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetTableDescriptorsRequest& default_instance(); + + void Swap(GetTableDescriptorsRequest* other); + + // implements Message ---------------------------------------------- + + GetTableDescriptorsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetTableDescriptorsRequest& from); + void MergeFrom(const GetTableDescriptorsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.TableName table_names = 1; + inline int table_names_size() const; + inline void clear_table_names(); + static const int kTableNamesFieldNumber = 1; + inline const ::hbase::pb::TableName& table_names(int index) const; + inline ::hbase::pb::TableName* mutable_table_names(int index); + inline ::hbase::pb::TableName* add_table_names(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& + table_names() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* + mutable_table_names(); + + // optional string regex = 2; + inline bool has_regex() const; + inline void clear_regex(); + static const int kRegexFieldNumber = 2; + inline const ::std::string& regex() const; + inline void set_regex(const ::std::string& value); + inline void set_regex(const char* value); + inline void set_regex(const char* value, size_t size); + inline ::std::string* mutable_regex(); + inline ::std::string* release_regex(); + inline void set_allocated_regex(::std::string* regex); + + // optional bool include_sys_tables = 3 [default = false]; + inline bool has_include_sys_tables() const; + inline void clear_include_sys_tables(); + static const int kIncludeSysTablesFieldNumber = 3; + inline bool include_sys_tables() const; + inline void set_include_sys_tables(bool value); + + // optional string namespace = 4; + inline bool has_namespace_() const; + inline void clear_namespace_(); + static const int kNamespaceFieldNumber = 4; + inline const ::std::string& namespace_() const; + inline void set_namespace_(const ::std::string& value); + inline void set_namespace_(const char* value); + inline void set_namespace_(const char* value, size_t size); + inline ::std::string* mutable_namespace_(); + inline ::std::string* release_namespace_(); + inline void set_allocated_namespace_(::std::string* namespace_); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetTableDescriptorsRequest) + private: + inline void set_has_regex(); + inline void clear_has_regex(); + inline void set_has_include_sys_tables(); + inline void clear_has_include_sys_tables(); + inline void set_has_namespace_(); + inline void clear_has_namespace_(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName > table_names_; + ::std::string* regex_; + ::std::string* namespace__; + bool include_sys_tables_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetTableDescriptorsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetTableDescriptorsResponse : public ::google::protobuf::Message { + public: + GetTableDescriptorsResponse(); + virtual ~GetTableDescriptorsResponse(); + + GetTableDescriptorsResponse(const GetTableDescriptorsResponse& from); + + inline GetTableDescriptorsResponse& operator=(const GetTableDescriptorsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetTableDescriptorsResponse& default_instance(); + + void Swap(GetTableDescriptorsResponse* other); + + // implements Message ---------------------------------------------- + + GetTableDescriptorsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetTableDescriptorsResponse& from); + void MergeFrom(const GetTableDescriptorsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.TableSchema table_schema = 1; + inline int table_schema_size() const; + inline void clear_table_schema(); + static const int kTableSchemaFieldNumber = 1; + inline const ::hbase::pb::TableSchema& table_schema(int index) const; + inline ::hbase::pb::TableSchema* mutable_table_schema(int index); + inline ::hbase::pb::TableSchema* add_table_schema(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema >& + table_schema() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema >* + mutable_table_schema(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetTableDescriptorsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema > table_schema_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetTableDescriptorsResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetTableNamesRequest : public ::google::protobuf::Message { + public: + GetTableNamesRequest(); + virtual ~GetTableNamesRequest(); + + GetTableNamesRequest(const GetTableNamesRequest& from); + + inline GetTableNamesRequest& operator=(const GetTableNamesRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetTableNamesRequest& default_instance(); + + void Swap(GetTableNamesRequest* other); + + // implements Message ---------------------------------------------- + + GetTableNamesRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetTableNamesRequest& from); + void MergeFrom(const GetTableNamesRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string regex = 1; + inline bool has_regex() const; + inline void clear_regex(); + static const int kRegexFieldNumber = 1; + inline const ::std::string& regex() const; + inline void set_regex(const ::std::string& value); + inline void set_regex(const char* value); + inline void set_regex(const char* value, size_t size); + inline ::std::string* mutable_regex(); + inline ::std::string* release_regex(); + inline void set_allocated_regex(::std::string* regex); + + // optional bool include_sys_tables = 2 [default = false]; + inline bool has_include_sys_tables() const; + inline void clear_include_sys_tables(); + static const int kIncludeSysTablesFieldNumber = 2; + inline bool include_sys_tables() const; + inline void set_include_sys_tables(bool value); + + // optional string namespace = 3; + inline bool has_namespace_() const; + inline void clear_namespace_(); + static const int kNamespaceFieldNumber = 3; + inline const ::std::string& namespace_() const; + inline void set_namespace_(const ::std::string& value); + inline void set_namespace_(const char* value); + inline void set_namespace_(const char* value, size_t size); + inline ::std::string* mutable_namespace_(); + inline ::std::string* release_namespace_(); + inline void set_allocated_namespace_(::std::string* namespace_); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetTableNamesRequest) + private: + inline void set_has_regex(); + inline void clear_has_regex(); + inline void set_has_include_sys_tables(); + inline void clear_has_include_sys_tables(); + inline void set_has_namespace_(); + inline void clear_has_namespace_(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* regex_; + ::std::string* namespace__; + bool include_sys_tables_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetTableNamesRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetTableNamesResponse : public ::google::protobuf::Message { + public: + GetTableNamesResponse(); + virtual ~GetTableNamesResponse(); + + GetTableNamesResponse(const GetTableNamesResponse& from); + + inline GetTableNamesResponse& operator=(const GetTableNamesResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetTableNamesResponse& default_instance(); + + void Swap(GetTableNamesResponse* other); + + // implements Message ---------------------------------------------- + + GetTableNamesResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetTableNamesResponse& from); + void MergeFrom(const GetTableNamesResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.TableName table_names = 1; + inline int table_names_size() const; + inline void clear_table_names(); + static const int kTableNamesFieldNumber = 1; + inline const ::hbase::pb::TableName& table_names(int index) const; + inline ::hbase::pb::TableName* mutable_table_names(int index); + inline ::hbase::pb::TableName* add_table_names(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& + table_names() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* + mutable_table_names(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetTableNamesResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName > table_names_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetTableNamesResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetTableStateRequest : public ::google::protobuf::Message { + public: + GetTableStateRequest(); + virtual ~GetTableStateRequest(); + + GetTableStateRequest(const GetTableStateRequest& from); + + inline GetTableStateRequest& operator=(const GetTableStateRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetTableStateRequest& default_instance(); + + void Swap(GetTableStateRequest* other); + + // implements Message ---------------------------------------------- + + GetTableStateRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetTableStateRequest& from); + void MergeFrom(const GetTableStateRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetTableStateRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetTableStateRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetTableStateResponse : public ::google::protobuf::Message { + public: + GetTableStateResponse(); + virtual ~GetTableStateResponse(); + + GetTableStateResponse(const GetTableStateResponse& from); + + inline GetTableStateResponse& operator=(const GetTableStateResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetTableStateResponse& default_instance(); + + void Swap(GetTableStateResponse* other); + + // implements Message ---------------------------------------------- + + GetTableStateResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetTableStateResponse& from); + void MergeFrom(const GetTableStateResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableState table_state = 1; + inline bool has_table_state() const; + inline void clear_table_state(); + static const int kTableStateFieldNumber = 1; + inline const ::hbase::pb::TableState& table_state() const; + inline ::hbase::pb::TableState* mutable_table_state(); + inline ::hbase::pb::TableState* release_table_state(); + inline void set_allocated_table_state(::hbase::pb::TableState* table_state); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetTableStateResponse) + private: + inline void set_has_table_state(); + inline void clear_has_table_state(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableState* table_state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetTableStateResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetClusterStatusRequest : public ::google::protobuf::Message { + public: + GetClusterStatusRequest(); + virtual ~GetClusterStatusRequest(); + + GetClusterStatusRequest(const GetClusterStatusRequest& from); + + inline GetClusterStatusRequest& operator=(const GetClusterStatusRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetClusterStatusRequest& default_instance(); + + void Swap(GetClusterStatusRequest* other); + + // implements Message ---------------------------------------------- + + GetClusterStatusRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetClusterStatusRequest& from); + void MergeFrom(const GetClusterStatusRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.GetClusterStatusRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetClusterStatusRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetClusterStatusResponse : public ::google::protobuf::Message { + public: + GetClusterStatusResponse(); + virtual ~GetClusterStatusResponse(); + + GetClusterStatusResponse(const GetClusterStatusResponse& from); + + inline GetClusterStatusResponse& operator=(const GetClusterStatusResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetClusterStatusResponse& default_instance(); + + void Swap(GetClusterStatusResponse* other); + + // implements Message ---------------------------------------------- + + GetClusterStatusResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetClusterStatusResponse& from); + void MergeFrom(const GetClusterStatusResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ClusterStatus cluster_status = 1; + inline bool has_cluster_status() const; + inline void clear_cluster_status(); + static const int kClusterStatusFieldNumber = 1; + inline const ::hbase::pb::ClusterStatus& cluster_status() const; + inline ::hbase::pb::ClusterStatus* mutable_cluster_status(); + inline ::hbase::pb::ClusterStatus* release_cluster_status(); + inline void set_allocated_cluster_status(::hbase::pb::ClusterStatus* cluster_status); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetClusterStatusResponse) + private: + inline void set_has_cluster_status(); + inline void clear_has_cluster_status(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ClusterStatus* cluster_status_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetClusterStatusResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsMasterRunningRequest : public ::google::protobuf::Message { + public: + IsMasterRunningRequest(); + virtual ~IsMasterRunningRequest(); + + IsMasterRunningRequest(const IsMasterRunningRequest& from); + + inline IsMasterRunningRequest& operator=(const IsMasterRunningRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsMasterRunningRequest& default_instance(); + + void Swap(IsMasterRunningRequest* other); + + // implements Message ---------------------------------------------- + + IsMasterRunningRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsMasterRunningRequest& from); + void MergeFrom(const IsMasterRunningRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.IsMasterRunningRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsMasterRunningRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsMasterRunningResponse : public ::google::protobuf::Message { + public: + IsMasterRunningResponse(); + virtual ~IsMasterRunningResponse(); + + IsMasterRunningResponse(const IsMasterRunningResponse& from); + + inline IsMasterRunningResponse& operator=(const IsMasterRunningResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsMasterRunningResponse& default_instance(); + + void Swap(IsMasterRunningResponse* other); + + // implements Message ---------------------------------------------- + + IsMasterRunningResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsMasterRunningResponse& from); + void MergeFrom(const IsMasterRunningResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool is_master_running = 1; + inline bool has_is_master_running() const; + inline void clear_is_master_running(); + static const int kIsMasterRunningFieldNumber = 1; + inline bool is_master_running() const; + inline void set_is_master_running(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsMasterRunningResponse) + private: + inline void set_has_is_master_running(); + inline void clear_has_is_master_running(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool is_master_running_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsMasterRunningResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ExecProcedureRequest : public ::google::protobuf::Message { + public: + ExecProcedureRequest(); + virtual ~ExecProcedureRequest(); + + ExecProcedureRequest(const ExecProcedureRequest& from); + + inline ExecProcedureRequest& operator=(const ExecProcedureRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecProcedureRequest& default_instance(); + + void Swap(ExecProcedureRequest* other); + + // implements Message ---------------------------------------------- + + ExecProcedureRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ExecProcedureRequest& from); + void MergeFrom(const ExecProcedureRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ProcedureDescription procedure = 1; + inline bool has_procedure() const; + inline void clear_procedure(); + static const int kProcedureFieldNumber = 1; + inline const ::hbase::pb::ProcedureDescription& procedure() const; + inline ::hbase::pb::ProcedureDescription* mutable_procedure(); + inline ::hbase::pb::ProcedureDescription* release_procedure(); + inline void set_allocated_procedure(::hbase::pb::ProcedureDescription* procedure); + + // @@protoc_insertion_point(class_scope:hbase.pb.ExecProcedureRequest) + private: + inline void set_has_procedure(); + inline void clear_has_procedure(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ProcedureDescription* procedure_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ExecProcedureRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ExecProcedureResponse : public ::google::protobuf::Message { + public: + ExecProcedureResponse(); + virtual ~ExecProcedureResponse(); + + ExecProcedureResponse(const ExecProcedureResponse& from); + + inline ExecProcedureResponse& operator=(const ExecProcedureResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecProcedureResponse& default_instance(); + + void Swap(ExecProcedureResponse* other); + + // implements Message ---------------------------------------------- + + ExecProcedureResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ExecProcedureResponse& from); + void MergeFrom(const ExecProcedureResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional int64 expected_timeout = 1; + inline bool has_expected_timeout() const; + inline void clear_expected_timeout(); + static const int kExpectedTimeoutFieldNumber = 1; + inline ::google::protobuf::int64 expected_timeout() const; + inline void set_expected_timeout(::google::protobuf::int64 value); + + // optional bytes return_data = 2; + inline bool has_return_data() const; + inline void clear_return_data(); + static const int kReturnDataFieldNumber = 2; + inline const ::std::string& return_data() const; + inline void set_return_data(const ::std::string& value); + inline void set_return_data(const char* value); + inline void set_return_data(const void* value, size_t size); + inline ::std::string* mutable_return_data(); + inline ::std::string* release_return_data(); + inline void set_allocated_return_data(::std::string* return_data); + + // @@protoc_insertion_point(class_scope:hbase.pb.ExecProcedureResponse) + private: + inline void set_has_expected_timeout(); + inline void clear_has_expected_timeout(); + inline void set_has_return_data(); + inline void clear_has_return_data(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int64 expected_timeout_; + ::std::string* return_data_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ExecProcedureResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsProcedureDoneRequest : public ::google::protobuf::Message { + public: + IsProcedureDoneRequest(); + virtual ~IsProcedureDoneRequest(); + + IsProcedureDoneRequest(const IsProcedureDoneRequest& from); + + inline IsProcedureDoneRequest& operator=(const IsProcedureDoneRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsProcedureDoneRequest& default_instance(); + + void Swap(IsProcedureDoneRequest* other); + + // implements Message ---------------------------------------------- + + IsProcedureDoneRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsProcedureDoneRequest& from); + void MergeFrom(const IsProcedureDoneRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.ProcedureDescription procedure = 1; + inline bool has_procedure() const; + inline void clear_procedure(); + static const int kProcedureFieldNumber = 1; + inline const ::hbase::pb::ProcedureDescription& procedure() const; + inline ::hbase::pb::ProcedureDescription* mutable_procedure(); + inline ::hbase::pb::ProcedureDescription* release_procedure(); + inline void set_allocated_procedure(::hbase::pb::ProcedureDescription* procedure); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsProcedureDoneRequest) + private: + inline void set_has_procedure(); + inline void clear_has_procedure(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ProcedureDescription* procedure_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsProcedureDoneRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class IsProcedureDoneResponse : public ::google::protobuf::Message { + public: + IsProcedureDoneResponse(); + virtual ~IsProcedureDoneResponse(); + + IsProcedureDoneResponse(const IsProcedureDoneResponse& from); + + inline IsProcedureDoneResponse& operator=(const IsProcedureDoneResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const IsProcedureDoneResponse& default_instance(); + + void Swap(IsProcedureDoneResponse* other); + + // implements Message ---------------------------------------------- + + IsProcedureDoneResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const IsProcedureDoneResponse& from); + void MergeFrom(const IsProcedureDoneResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool done = 1 [default = false]; + inline bool has_done() const; + inline void clear_done(); + static const int kDoneFieldNumber = 1; + inline bool done() const; + inline void set_done(bool value); + + // optional .hbase.pb.ProcedureDescription snapshot = 2; + inline bool has_snapshot() const; + inline void clear_snapshot(); + static const int kSnapshotFieldNumber = 2; + inline const ::hbase::pb::ProcedureDescription& snapshot() const; + inline ::hbase::pb::ProcedureDescription* mutable_snapshot(); + inline ::hbase::pb::ProcedureDescription* release_snapshot(); + inline void set_allocated_snapshot(::hbase::pb::ProcedureDescription* snapshot); + + // @@protoc_insertion_point(class_scope:hbase.pb.IsProcedureDoneResponse) + private: + inline void set_has_done(); + inline void clear_has_done(); + inline void set_has_snapshot(); + inline void clear_has_snapshot(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ProcedureDescription* snapshot_; + bool done_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static IsProcedureDoneResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetProcedureResultRequest : public ::google::protobuf::Message { + public: + GetProcedureResultRequest(); + virtual ~GetProcedureResultRequest(); + + GetProcedureResultRequest(const GetProcedureResultRequest& from); + + inline GetProcedureResultRequest& operator=(const GetProcedureResultRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetProcedureResultRequest& default_instance(); + + void Swap(GetProcedureResultRequest* other); + + // implements Message ---------------------------------------------- + + GetProcedureResultRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetProcedureResultRequest& from); + void MergeFrom(const GetProcedureResultRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetProcedureResultRequest) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetProcedureResultRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetProcedureResultResponse : public ::google::protobuf::Message { + public: + GetProcedureResultResponse(); + virtual ~GetProcedureResultResponse(); + + GetProcedureResultResponse(const GetProcedureResultResponse& from); + + inline GetProcedureResultResponse& operator=(const GetProcedureResultResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetProcedureResultResponse& default_instance(); + + void Swap(GetProcedureResultResponse* other); + + // implements Message ---------------------------------------------- + + GetProcedureResultResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetProcedureResultResponse& from); + void MergeFrom(const GetProcedureResultResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef GetProcedureResultResponse_State State; + static const State NOT_FOUND = GetProcedureResultResponse_State_NOT_FOUND; + static const State RUNNING = GetProcedureResultResponse_State_RUNNING; + static const State FINISHED = GetProcedureResultResponse_State_FINISHED; + static inline bool State_IsValid(int value) { + return GetProcedureResultResponse_State_IsValid(value); + } + static const State State_MIN = + GetProcedureResultResponse_State_State_MIN; + static const State State_MAX = + GetProcedureResultResponse_State_State_MAX; + static const int State_ARRAYSIZE = + GetProcedureResultResponse_State_State_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + State_descriptor() { + return GetProcedureResultResponse_State_descriptor(); + } + static inline const ::std::string& State_Name(State value) { + return GetProcedureResultResponse_State_Name(value); + } + static inline bool State_Parse(const ::std::string& name, + State* value) { + return GetProcedureResultResponse_State_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.GetProcedureResultResponse.State state = 1; + inline bool has_state() const; + inline void clear_state(); + static const int kStateFieldNumber = 1; + inline ::hbase::pb::GetProcedureResultResponse_State state() const; + inline void set_state(::hbase::pb::GetProcedureResultResponse_State value); + + // optional uint64 start_time = 2; + inline bool has_start_time() const; + inline void clear_start_time(); + static const int kStartTimeFieldNumber = 2; + inline ::google::protobuf::uint64 start_time() const; + inline void set_start_time(::google::protobuf::uint64 value); + + // optional uint64 last_update = 3; + inline bool has_last_update() const; + inline void clear_last_update(); + static const int kLastUpdateFieldNumber = 3; + inline ::google::protobuf::uint64 last_update() const; + inline void set_last_update(::google::protobuf::uint64 value); + + // optional bytes result = 4; + inline bool has_result() const; + inline void clear_result(); + static const int kResultFieldNumber = 4; + inline const ::std::string& result() const; + inline void set_result(const ::std::string& value); + inline void set_result(const char* value); + inline void set_result(const void* value, size_t size); + inline ::std::string* mutable_result(); + inline ::std::string* release_result(); + inline void set_allocated_result(::std::string* result); + + // optional .hbase.pb.ForeignExceptionMessage exception = 5; + inline bool has_exception() const; + inline void clear_exception(); + static const int kExceptionFieldNumber = 5; + inline const ::hbase::pb::ForeignExceptionMessage& exception() const; + inline ::hbase::pb::ForeignExceptionMessage* mutable_exception(); + inline ::hbase::pb::ForeignExceptionMessage* release_exception(); + inline void set_allocated_exception(::hbase::pb::ForeignExceptionMessage* exception); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetProcedureResultResponse) + private: + inline void set_has_state(); + inline void clear_has_state(); + inline void set_has_start_time(); + inline void clear_has_start_time(); + inline void set_has_last_update(); + inline void clear_has_last_update(); + inline void set_has_result(); + inline void clear_has_result(); + inline void set_has_exception(); + inline void clear_has_exception(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 start_time_; + ::google::protobuf::uint64 last_update_; + ::std::string* result_; + ::hbase::pb::ForeignExceptionMessage* exception_; + int state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static GetProcedureResultResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class AbortProcedureRequest : public ::google::protobuf::Message { + public: + AbortProcedureRequest(); + virtual ~AbortProcedureRequest(); + + AbortProcedureRequest(const AbortProcedureRequest& from); + + inline AbortProcedureRequest& operator=(const AbortProcedureRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AbortProcedureRequest& default_instance(); + + void Swap(AbortProcedureRequest* other); + + // implements Message ---------------------------------------------- + + AbortProcedureRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AbortProcedureRequest& from); + void MergeFrom(const AbortProcedureRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 proc_id = 1; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 1; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // optional bool mayInterruptIfRunning = 2 [default = true]; + inline bool has_mayinterruptifrunning() const; + inline void clear_mayinterruptifrunning(); + static const int kMayInterruptIfRunningFieldNumber = 2; + inline bool mayinterruptifrunning() const; + inline void set_mayinterruptifrunning(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.AbortProcedureRequest) + private: + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + inline void set_has_mayinterruptifrunning(); + inline void clear_has_mayinterruptifrunning(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 proc_id_; + bool mayinterruptifrunning_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static AbortProcedureRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class AbortProcedureResponse : public ::google::protobuf::Message { + public: + AbortProcedureResponse(); + virtual ~AbortProcedureResponse(); + + AbortProcedureResponse(const AbortProcedureResponse& from); + + inline AbortProcedureResponse& operator=(const AbortProcedureResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AbortProcedureResponse& default_instance(); + + void Swap(AbortProcedureResponse* other); + + // implements Message ---------------------------------------------- + + AbortProcedureResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AbortProcedureResponse& from); + void MergeFrom(const AbortProcedureResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool is_procedure_aborted = 1; + inline bool has_is_procedure_aborted() const; + inline void clear_is_procedure_aborted(); + static const int kIsProcedureAbortedFieldNumber = 1; + inline bool is_procedure_aborted() const; + inline void set_is_procedure_aborted(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.AbortProcedureResponse) + private: + inline void set_has_is_procedure_aborted(); + inline void clear_has_is_procedure_aborted(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool is_procedure_aborted_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static AbortProcedureResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListProceduresRequest : public ::google::protobuf::Message { + public: + ListProceduresRequest(); + virtual ~ListProceduresRequest(); + + ListProceduresRequest(const ListProceduresRequest& from); + + inline ListProceduresRequest& operator=(const ListProceduresRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListProceduresRequest& default_instance(); + + void Swap(ListProceduresRequest* other); + + // implements Message ---------------------------------------------- + + ListProceduresRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListProceduresRequest& from); + void MergeFrom(const ListProceduresRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.ListProceduresRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ListProceduresRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListProceduresResponse : public ::google::protobuf::Message { + public: + ListProceduresResponse(); + virtual ~ListProceduresResponse(); + + ListProceduresResponse(const ListProceduresResponse& from); + + inline ListProceduresResponse& operator=(const ListProceduresResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListProceduresResponse& default_instance(); + + void Swap(ListProceduresResponse* other); + + // implements Message ---------------------------------------------- + + ListProceduresResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListProceduresResponse& from); + void MergeFrom(const ListProceduresResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.Procedure procedure = 1; + inline int procedure_size() const; + inline void clear_procedure(); + static const int kProcedureFieldNumber = 1; + inline const ::hbase::pb::Procedure& procedure(int index) const; + inline ::hbase::pb::Procedure* mutable_procedure(int index); + inline ::hbase::pb::Procedure* add_procedure(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure >& + procedure() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure >* + mutable_procedure(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListProceduresResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure > procedure_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static ListProceduresResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetQuotaRequest : public ::google::protobuf::Message { + public: + SetQuotaRequest(); + virtual ~SetQuotaRequest(); + + SetQuotaRequest(const SetQuotaRequest& from); + + inline SetQuotaRequest& operator=(const SetQuotaRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetQuotaRequest& default_instance(); + + void Swap(SetQuotaRequest* other); + + // implements Message ---------------------------------------------- + + SetQuotaRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetQuotaRequest& from); + void MergeFrom(const SetQuotaRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string user_name = 1; + inline bool has_user_name() const; + inline void clear_user_name(); + static const int kUserNameFieldNumber = 1; + inline const ::std::string& user_name() const; + inline void set_user_name(const ::std::string& value); + inline void set_user_name(const char* value); + inline void set_user_name(const char* value, size_t size); + inline ::std::string* mutable_user_name(); + inline ::std::string* release_user_name(); + inline void set_allocated_user_name(::std::string* user_name); + + // optional string user_group = 2; + inline bool has_user_group() const; + inline void clear_user_group(); + static const int kUserGroupFieldNumber = 2; + inline const ::std::string& user_group() const; + inline void set_user_group(const ::std::string& value); + inline void set_user_group(const char* value); + inline void set_user_group(const char* value, size_t size); + inline ::std::string* mutable_user_group(); + inline ::std::string* release_user_group(); + inline void set_allocated_user_group(::std::string* user_group); + + // optional string namespace = 3; + inline bool has_namespace_() const; + inline void clear_namespace_(); + static const int kNamespaceFieldNumber = 3; + inline const ::std::string& namespace_() const; + inline void set_namespace_(const ::std::string& value); + inline void set_namespace_(const char* value); + inline void set_namespace_(const char* value, size_t size); + inline ::std::string* mutable_namespace_(); + inline ::std::string* release_namespace_(); + inline void set_allocated_namespace_(::std::string* namespace_); + + // optional .hbase.pb.TableName table_name = 4; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 4; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional bool remove_all = 5; + inline bool has_remove_all() const; + inline void clear_remove_all(); + static const int kRemoveAllFieldNumber = 5; + inline bool remove_all() const; + inline void set_remove_all(bool value); + + // optional bool bypass_globals = 6; + inline bool has_bypass_globals() const; + inline void clear_bypass_globals(); + static const int kBypassGlobalsFieldNumber = 6; + inline bool bypass_globals() const; + inline void set_bypass_globals(bool value); + + // optional .hbase.pb.ThrottleRequest throttle = 7; + inline bool has_throttle() const; + inline void clear_throttle(); + static const int kThrottleFieldNumber = 7; + inline const ::hbase::pb::ThrottleRequest& throttle() const; + inline ::hbase::pb::ThrottleRequest* mutable_throttle(); + inline ::hbase::pb::ThrottleRequest* release_throttle(); + inline void set_allocated_throttle(::hbase::pb::ThrottleRequest* throttle); + + // @@protoc_insertion_point(class_scope:hbase.pb.SetQuotaRequest) + private: + inline void set_has_user_name(); + inline void clear_has_user_name(); + inline void set_has_user_group(); + inline void clear_has_user_group(); + inline void set_has_namespace_(); + inline void clear_has_namespace_(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_remove_all(); + inline void clear_has_remove_all(); + inline void set_has_bypass_globals(); + inline void clear_has_bypass_globals(); + inline void set_has_throttle(); + inline void clear_has_throttle(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* user_name_; + ::std::string* user_group_; + ::std::string* namespace__; + ::hbase::pb::TableName* table_name_; + ::hbase::pb::ThrottleRequest* throttle_; + bool remove_all_; + bool bypass_globals_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SetQuotaRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetQuotaResponse : public ::google::protobuf::Message { + public: + SetQuotaResponse(); + virtual ~SetQuotaResponse(); + + SetQuotaResponse(const SetQuotaResponse& from); + + inline SetQuotaResponse& operator=(const SetQuotaResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetQuotaResponse& default_instance(); + + void Swap(SetQuotaResponse* other); + + // implements Message ---------------------------------------------- + + SetQuotaResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetQuotaResponse& from); + void MergeFrom(const SetQuotaResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.SetQuotaResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SetQuotaResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class MajorCompactionTimestampRequest : public ::google::protobuf::Message { + public: + MajorCompactionTimestampRequest(); + virtual ~MajorCompactionTimestampRequest(); + + MajorCompactionTimestampRequest(const MajorCompactionTimestampRequest& from); + + inline MajorCompactionTimestampRequest& operator=(const MajorCompactionTimestampRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MajorCompactionTimestampRequest& default_instance(); + + void Swap(MajorCompactionTimestampRequest* other); + + // implements Message ---------------------------------------------- + + MajorCompactionTimestampRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MajorCompactionTimestampRequest& from); + void MergeFrom(const MajorCompactionTimestampRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.MajorCompactionTimestampRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static MajorCompactionTimestampRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MajorCompactionTimestampForRegionRequest : public ::google::protobuf::Message { + public: + MajorCompactionTimestampForRegionRequest(); + virtual ~MajorCompactionTimestampForRegionRequest(); + + MajorCompactionTimestampForRegionRequest(const MajorCompactionTimestampForRegionRequest& from); + + inline MajorCompactionTimestampForRegionRequest& operator=(const MajorCompactionTimestampForRegionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MajorCompactionTimestampForRegionRequest& default_instance(); + + void Swap(MajorCompactionTimestampForRegionRequest* other); + + // implements Message ---------------------------------------------- + + MajorCompactionTimestampForRegionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MajorCompactionTimestampForRegionRequest& from); + void MergeFrom(const MajorCompactionTimestampForRegionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionSpecifier region = 1; + inline bool has_region() const; + inline void clear_region(); + static const int kRegionFieldNumber = 1; + inline const ::hbase::pb::RegionSpecifier& region() const; + inline ::hbase::pb::RegionSpecifier* mutable_region(); + inline ::hbase::pb::RegionSpecifier* release_region(); + inline void set_allocated_region(::hbase::pb::RegionSpecifier* region); + + // @@protoc_insertion_point(class_scope:hbase.pb.MajorCompactionTimestampForRegionRequest) + private: + inline void set_has_region(); + inline void clear_has_region(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionSpecifier* region_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static MajorCompactionTimestampForRegionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MajorCompactionTimestampResponse : public ::google::protobuf::Message { + public: + MajorCompactionTimestampResponse(); + virtual ~MajorCompactionTimestampResponse(); + + MajorCompactionTimestampResponse(const MajorCompactionTimestampResponse& from); + + inline MajorCompactionTimestampResponse& operator=(const MajorCompactionTimestampResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MajorCompactionTimestampResponse& default_instance(); + + void Swap(MajorCompactionTimestampResponse* other); + + // implements Message ---------------------------------------------- + + MajorCompactionTimestampResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MajorCompactionTimestampResponse& from); + void MergeFrom(const MajorCompactionTimestampResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required int64 compaction_timestamp = 1; + inline bool has_compaction_timestamp() const; + inline void clear_compaction_timestamp(); + static const int kCompactionTimestampFieldNumber = 1; + inline ::google::protobuf::int64 compaction_timestamp() const; + inline void set_compaction_timestamp(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.MajorCompactionTimestampResponse) + private: + inline void set_has_compaction_timestamp(); + inline void clear_has_compaction_timestamp(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int64 compaction_timestamp_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static MajorCompactionTimestampResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class SecurityCapabilitiesRequest : public ::google::protobuf::Message { + public: + SecurityCapabilitiesRequest(); + virtual ~SecurityCapabilitiesRequest(); + + SecurityCapabilitiesRequest(const SecurityCapabilitiesRequest& from); + + inline SecurityCapabilitiesRequest& operator=(const SecurityCapabilitiesRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SecurityCapabilitiesRequest& default_instance(); + + void Swap(SecurityCapabilitiesRequest* other); + + // implements Message ---------------------------------------------- + + SecurityCapabilitiesRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SecurityCapabilitiesRequest& from); + void MergeFrom(const SecurityCapabilitiesRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.SecurityCapabilitiesRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SecurityCapabilitiesRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SecurityCapabilitiesResponse : public ::google::protobuf::Message { + public: + SecurityCapabilitiesResponse(); + virtual ~SecurityCapabilitiesResponse(); + + SecurityCapabilitiesResponse(const SecurityCapabilitiesResponse& from); + + inline SecurityCapabilitiesResponse& operator=(const SecurityCapabilitiesResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SecurityCapabilitiesResponse& default_instance(); + + void Swap(SecurityCapabilitiesResponse* other); + + // implements Message ---------------------------------------------- + + SecurityCapabilitiesResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SecurityCapabilitiesResponse& from); + void MergeFrom(const SecurityCapabilitiesResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef SecurityCapabilitiesResponse_Capability Capability; + static const Capability SIMPLE_AUTHENTICATION = SecurityCapabilitiesResponse_Capability_SIMPLE_AUTHENTICATION; + static const Capability SECURE_AUTHENTICATION = SecurityCapabilitiesResponse_Capability_SECURE_AUTHENTICATION; + static const Capability AUTHORIZATION = SecurityCapabilitiesResponse_Capability_AUTHORIZATION; + static const Capability CELL_AUTHORIZATION = SecurityCapabilitiesResponse_Capability_CELL_AUTHORIZATION; + static const Capability CELL_VISIBILITY = SecurityCapabilitiesResponse_Capability_CELL_VISIBILITY; + static inline bool Capability_IsValid(int value) { + return SecurityCapabilitiesResponse_Capability_IsValid(value); + } + static const Capability Capability_MIN = + SecurityCapabilitiesResponse_Capability_Capability_MIN; + static const Capability Capability_MAX = + SecurityCapabilitiesResponse_Capability_Capability_MAX; + static const int Capability_ARRAYSIZE = + SecurityCapabilitiesResponse_Capability_Capability_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Capability_descriptor() { + return SecurityCapabilitiesResponse_Capability_descriptor(); + } + static inline const ::std::string& Capability_Name(Capability value) { + return SecurityCapabilitiesResponse_Capability_Name(value); + } + static inline bool Capability_Parse(const ::std::string& name, + Capability* value) { + return SecurityCapabilitiesResponse_Capability_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1; + inline int capabilities_size() const; + inline void clear_capabilities(); + static const int kCapabilitiesFieldNumber = 1; + inline ::hbase::pb::SecurityCapabilitiesResponse_Capability capabilities(int index) const; + inline void set_capabilities(int index, ::hbase::pb::SecurityCapabilitiesResponse_Capability value); + inline void add_capabilities(::hbase::pb::SecurityCapabilitiesResponse_Capability value); + inline const ::google::protobuf::RepeatedField& capabilities() const; + inline ::google::protobuf::RepeatedField* mutable_capabilities(); + + // @@protoc_insertion_point(class_scope:hbase.pb.SecurityCapabilitiesResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedField capabilities_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Master_2eproto(); + friend void protobuf_AssignDesc_Master_2eproto(); + friend void protobuf_ShutdownFile_Master_2eproto(); + + void InitAsDefaultInstance(); + static SecurityCapabilitiesResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// AddColumnRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool AddColumnRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AddColumnRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void AddColumnRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AddColumnRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& AddColumnRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* AddColumnRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* AddColumnRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void AddColumnRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required .hbase.pb.ColumnFamilySchema column_families = 2; +inline bool AddColumnRequest::has_column_families() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AddColumnRequest::set_has_column_families() { + _has_bits_[0] |= 0x00000002u; +} +inline void AddColumnRequest::clear_has_column_families() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AddColumnRequest::clear_column_families() { + if (column_families_ != NULL) column_families_->::hbase::pb::ColumnFamilySchema::Clear(); + clear_has_column_families(); +} +inline const ::hbase::pb::ColumnFamilySchema& AddColumnRequest::column_families() const { + return column_families_ != NULL ? *column_families_ : *default_instance_->column_families_; +} +inline ::hbase::pb::ColumnFamilySchema* AddColumnRequest::mutable_column_families() { + set_has_column_families(); + if (column_families_ == NULL) column_families_ = new ::hbase::pb::ColumnFamilySchema; + return column_families_; +} +inline ::hbase::pb::ColumnFamilySchema* AddColumnRequest::release_column_families() { + clear_has_column_families(); + ::hbase::pb::ColumnFamilySchema* temp = column_families_; + column_families_ = NULL; + return temp; +} +inline void AddColumnRequest::set_allocated_column_families(::hbase::pb::ColumnFamilySchema* column_families) { + delete column_families_; + column_families_ = column_families; + if (column_families) { + set_has_column_families(); + } else { + clear_has_column_families(); + } +} + +// optional uint64 nonce_group = 3 [default = 0]; +inline bool AddColumnRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AddColumnRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000004u; +} +inline void AddColumnRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AddColumnRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 AddColumnRequest::nonce_group() const { + return nonce_group_; +} +inline void AddColumnRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 4 [default = 0]; +inline bool AddColumnRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void AddColumnRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000008u; +} +inline void AddColumnRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000008u; +} +inline void AddColumnRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 AddColumnRequest::nonce() const { + return nonce_; +} +inline void AddColumnRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// AddColumnResponse + +// optional uint64 proc_id = 1; +inline bool AddColumnResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AddColumnResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void AddColumnResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AddColumnResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 AddColumnResponse::proc_id() const { + return proc_id_; +} +inline void AddColumnResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// DeleteColumnRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool DeleteColumnRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteColumnRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteColumnRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteColumnRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& DeleteColumnRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* DeleteColumnRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* DeleteColumnRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void DeleteColumnRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required bytes column_name = 2; +inline bool DeleteColumnRequest::has_column_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DeleteColumnRequest::set_has_column_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void DeleteColumnRequest::clear_has_column_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DeleteColumnRequest::clear_column_name() { + if (column_name_ != &::google::protobuf::internal::kEmptyString) { + column_name_->clear(); + } + clear_has_column_name(); +} +inline const ::std::string& DeleteColumnRequest::column_name() const { + return *column_name_; +} +inline void DeleteColumnRequest::set_column_name(const ::std::string& value) { + set_has_column_name(); + if (column_name_ == &::google::protobuf::internal::kEmptyString) { + column_name_ = new ::std::string; + } + column_name_->assign(value); +} +inline void DeleteColumnRequest::set_column_name(const char* value) { + set_has_column_name(); + if (column_name_ == &::google::protobuf::internal::kEmptyString) { + column_name_ = new ::std::string; + } + column_name_->assign(value); +} +inline void DeleteColumnRequest::set_column_name(const void* value, size_t size) { + set_has_column_name(); + if (column_name_ == &::google::protobuf::internal::kEmptyString) { + column_name_ = new ::std::string; + } + column_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DeleteColumnRequest::mutable_column_name() { + set_has_column_name(); + if (column_name_ == &::google::protobuf::internal::kEmptyString) { + column_name_ = new ::std::string; + } + return column_name_; +} +inline ::std::string* DeleteColumnRequest::release_column_name() { + clear_has_column_name(); + if (column_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = column_name_; + column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DeleteColumnRequest::set_allocated_column_name(::std::string* column_name) { + if (column_name_ != &::google::protobuf::internal::kEmptyString) { + delete column_name_; + } + if (column_name) { + set_has_column_name(); + column_name_ = column_name; + } else { + clear_has_column_name(); + column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 nonce_group = 3 [default = 0]; +inline bool DeleteColumnRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DeleteColumnRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000004u; +} +inline void DeleteColumnRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DeleteColumnRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 DeleteColumnRequest::nonce_group() const { + return nonce_group_; +} +inline void DeleteColumnRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 4 [default = 0]; +inline bool DeleteColumnRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DeleteColumnRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000008u; +} +inline void DeleteColumnRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DeleteColumnRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 DeleteColumnRequest::nonce() const { + return nonce_; +} +inline void DeleteColumnRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// DeleteColumnResponse + +// optional uint64 proc_id = 1; +inline bool DeleteColumnResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteColumnResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteColumnResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteColumnResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 DeleteColumnResponse::proc_id() const { + return proc_id_; +} +inline void DeleteColumnResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// ModifyColumnRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool ModifyColumnRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyColumnRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyColumnRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyColumnRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& ModifyColumnRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* ModifyColumnRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* ModifyColumnRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void ModifyColumnRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required .hbase.pb.ColumnFamilySchema column_families = 2; +inline bool ModifyColumnRequest::has_column_families() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ModifyColumnRequest::set_has_column_families() { + _has_bits_[0] |= 0x00000002u; +} +inline void ModifyColumnRequest::clear_has_column_families() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ModifyColumnRequest::clear_column_families() { + if (column_families_ != NULL) column_families_->::hbase::pb::ColumnFamilySchema::Clear(); + clear_has_column_families(); +} +inline const ::hbase::pb::ColumnFamilySchema& ModifyColumnRequest::column_families() const { + return column_families_ != NULL ? *column_families_ : *default_instance_->column_families_; +} +inline ::hbase::pb::ColumnFamilySchema* ModifyColumnRequest::mutable_column_families() { + set_has_column_families(); + if (column_families_ == NULL) column_families_ = new ::hbase::pb::ColumnFamilySchema; + return column_families_; +} +inline ::hbase::pb::ColumnFamilySchema* ModifyColumnRequest::release_column_families() { + clear_has_column_families(); + ::hbase::pb::ColumnFamilySchema* temp = column_families_; + column_families_ = NULL; + return temp; +} +inline void ModifyColumnRequest::set_allocated_column_families(::hbase::pb::ColumnFamilySchema* column_families) { + delete column_families_; + column_families_ = column_families; + if (column_families) { + set_has_column_families(); + } else { + clear_has_column_families(); + } +} + +// optional uint64 nonce_group = 3 [default = 0]; +inline bool ModifyColumnRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ModifyColumnRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000004u; +} +inline void ModifyColumnRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ModifyColumnRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 ModifyColumnRequest::nonce_group() const { + return nonce_group_; +} +inline void ModifyColumnRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 4 [default = 0]; +inline bool ModifyColumnRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ModifyColumnRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000008u; +} +inline void ModifyColumnRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ModifyColumnRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 ModifyColumnRequest::nonce() const { + return nonce_; +} +inline void ModifyColumnRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// ModifyColumnResponse + +// optional uint64 proc_id = 1; +inline bool ModifyColumnResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyColumnResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyColumnResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyColumnResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 ModifyColumnResponse::proc_id() const { + return proc_id_; +} +inline void ModifyColumnResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// MoveRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool MoveRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoveRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoveRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoveRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& MoveRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* MoveRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* MoveRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void MoveRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional .hbase.pb.ServerName dest_server_name = 2; +inline bool MoveRegionRequest::has_dest_server_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MoveRegionRequest::set_has_dest_server_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void MoveRegionRequest::clear_has_dest_server_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MoveRegionRequest::clear_dest_server_name() { + if (dest_server_name_ != NULL) dest_server_name_->::hbase::pb::ServerName::Clear(); + clear_has_dest_server_name(); +} +inline const ::hbase::pb::ServerName& MoveRegionRequest::dest_server_name() const { + return dest_server_name_ != NULL ? *dest_server_name_ : *default_instance_->dest_server_name_; +} +inline ::hbase::pb::ServerName* MoveRegionRequest::mutable_dest_server_name() { + set_has_dest_server_name(); + if (dest_server_name_ == NULL) dest_server_name_ = new ::hbase::pb::ServerName; + return dest_server_name_; +} +inline ::hbase::pb::ServerName* MoveRegionRequest::release_dest_server_name() { + clear_has_dest_server_name(); + ::hbase::pb::ServerName* temp = dest_server_name_; + dest_server_name_ = NULL; + return temp; +} +inline void MoveRegionRequest::set_allocated_dest_server_name(::hbase::pb::ServerName* dest_server_name) { + delete dest_server_name_; + dest_server_name_ = dest_server_name; + if (dest_server_name) { + set_has_dest_server_name(); + } else { + clear_has_dest_server_name(); + } +} + +// ------------------------------------------------------------------- + +// MoveRegionResponse + +// ------------------------------------------------------------------- + +// DispatchMergingRegionsRequest + +// required .hbase.pb.RegionSpecifier region_a = 1; +inline bool DispatchMergingRegionsRequest::has_region_a() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DispatchMergingRegionsRequest::set_has_region_a() { + _has_bits_[0] |= 0x00000001u; +} +inline void DispatchMergingRegionsRequest::clear_has_region_a() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DispatchMergingRegionsRequest::clear_region_a() { + if (region_a_ != NULL) region_a_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region_a(); +} +inline const ::hbase::pb::RegionSpecifier& DispatchMergingRegionsRequest::region_a() const { + return region_a_ != NULL ? *region_a_ : *default_instance_->region_a_; +} +inline ::hbase::pb::RegionSpecifier* DispatchMergingRegionsRequest::mutable_region_a() { + set_has_region_a(); + if (region_a_ == NULL) region_a_ = new ::hbase::pb::RegionSpecifier; + return region_a_; +} +inline ::hbase::pb::RegionSpecifier* DispatchMergingRegionsRequest::release_region_a() { + clear_has_region_a(); + ::hbase::pb::RegionSpecifier* temp = region_a_; + region_a_ = NULL; + return temp; +} +inline void DispatchMergingRegionsRequest::set_allocated_region_a(::hbase::pb::RegionSpecifier* region_a) { + delete region_a_; + region_a_ = region_a; + if (region_a) { + set_has_region_a(); + } else { + clear_has_region_a(); + } +} + +// required .hbase.pb.RegionSpecifier region_b = 2; +inline bool DispatchMergingRegionsRequest::has_region_b() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DispatchMergingRegionsRequest::set_has_region_b() { + _has_bits_[0] |= 0x00000002u; +} +inline void DispatchMergingRegionsRequest::clear_has_region_b() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DispatchMergingRegionsRequest::clear_region_b() { + if (region_b_ != NULL) region_b_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region_b(); +} +inline const ::hbase::pb::RegionSpecifier& DispatchMergingRegionsRequest::region_b() const { + return region_b_ != NULL ? *region_b_ : *default_instance_->region_b_; +} +inline ::hbase::pb::RegionSpecifier* DispatchMergingRegionsRequest::mutable_region_b() { + set_has_region_b(); + if (region_b_ == NULL) region_b_ = new ::hbase::pb::RegionSpecifier; + return region_b_; +} +inline ::hbase::pb::RegionSpecifier* DispatchMergingRegionsRequest::release_region_b() { + clear_has_region_b(); + ::hbase::pb::RegionSpecifier* temp = region_b_; + region_b_ = NULL; + return temp; +} +inline void DispatchMergingRegionsRequest::set_allocated_region_b(::hbase::pb::RegionSpecifier* region_b) { + delete region_b_; + region_b_ = region_b; + if (region_b) { + set_has_region_b(); + } else { + clear_has_region_b(); + } +} + +// optional bool forcible = 3 [default = false]; +inline bool DispatchMergingRegionsRequest::has_forcible() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DispatchMergingRegionsRequest::set_has_forcible() { + _has_bits_[0] |= 0x00000004u; +} +inline void DispatchMergingRegionsRequest::clear_has_forcible() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DispatchMergingRegionsRequest::clear_forcible() { + forcible_ = false; + clear_has_forcible(); +} +inline bool DispatchMergingRegionsRequest::forcible() const { + return forcible_; +} +inline void DispatchMergingRegionsRequest::set_forcible(bool value) { + set_has_forcible(); + forcible_ = value; +} + +// ------------------------------------------------------------------- + +// DispatchMergingRegionsResponse + +// ------------------------------------------------------------------- + +// AssignRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool AssignRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AssignRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void AssignRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AssignRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& AssignRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* AssignRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* AssignRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void AssignRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// ------------------------------------------------------------------- + +// AssignRegionResponse + +// ------------------------------------------------------------------- + +// UnassignRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool UnassignRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UnassignRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void UnassignRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UnassignRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& UnassignRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* UnassignRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* UnassignRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void UnassignRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// optional bool force = 2 [default = false]; +inline bool UnassignRegionRequest::has_force() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void UnassignRegionRequest::set_has_force() { + _has_bits_[0] |= 0x00000002u; +} +inline void UnassignRegionRequest::clear_has_force() { + _has_bits_[0] &= ~0x00000002u; +} +inline void UnassignRegionRequest::clear_force() { + force_ = false; + clear_has_force(); +} +inline bool UnassignRegionRequest::force() const { + return force_; +} +inline void UnassignRegionRequest::set_force(bool value) { + set_has_force(); + force_ = value; +} + +// ------------------------------------------------------------------- + +// UnassignRegionResponse + +// ------------------------------------------------------------------- + +// OfflineRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool OfflineRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void OfflineRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void OfflineRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void OfflineRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& OfflineRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* OfflineRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* OfflineRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void OfflineRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// ------------------------------------------------------------------- + +// OfflineRegionResponse + +// ------------------------------------------------------------------- + +// CreateTableRequest + +// required .hbase.pb.TableSchema table_schema = 1; +inline bool CreateTableRequest::has_table_schema() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CreateTableRequest::set_has_table_schema() { + _has_bits_[0] |= 0x00000001u; +} +inline void CreateTableRequest::clear_has_table_schema() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CreateTableRequest::clear_table_schema() { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_table_schema(); +} +inline const ::hbase::pb::TableSchema& CreateTableRequest::table_schema() const { + return table_schema_ != NULL ? *table_schema_ : *default_instance_->table_schema_; +} +inline ::hbase::pb::TableSchema* CreateTableRequest::mutable_table_schema() { + set_has_table_schema(); + if (table_schema_ == NULL) table_schema_ = new ::hbase::pb::TableSchema; + return table_schema_; +} +inline ::hbase::pb::TableSchema* CreateTableRequest::release_table_schema() { + clear_has_table_schema(); + ::hbase::pb::TableSchema* temp = table_schema_; + table_schema_ = NULL; + return temp; +} +inline void CreateTableRequest::set_allocated_table_schema(::hbase::pb::TableSchema* table_schema) { + delete table_schema_; + table_schema_ = table_schema; + if (table_schema) { + set_has_table_schema(); + } else { + clear_has_table_schema(); + } +} + +// repeated bytes split_keys = 2; +inline int CreateTableRequest::split_keys_size() const { + return split_keys_.size(); +} +inline void CreateTableRequest::clear_split_keys() { + split_keys_.Clear(); +} +inline const ::std::string& CreateTableRequest::split_keys(int index) const { + return split_keys_.Get(index); +} +inline ::std::string* CreateTableRequest::mutable_split_keys(int index) { + return split_keys_.Mutable(index); +} +inline void CreateTableRequest::set_split_keys(int index, const ::std::string& value) { + split_keys_.Mutable(index)->assign(value); +} +inline void CreateTableRequest::set_split_keys(int index, const char* value) { + split_keys_.Mutable(index)->assign(value); +} +inline void CreateTableRequest::set_split_keys(int index, const void* value, size_t size) { + split_keys_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* CreateTableRequest::add_split_keys() { + return split_keys_.Add(); +} +inline void CreateTableRequest::add_split_keys(const ::std::string& value) { + split_keys_.Add()->assign(value); +} +inline void CreateTableRequest::add_split_keys(const char* value) { + split_keys_.Add()->assign(value); +} +inline void CreateTableRequest::add_split_keys(const void* value, size_t size) { + split_keys_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +CreateTableRequest::split_keys() const { + return split_keys_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +CreateTableRequest::mutable_split_keys() { + return &split_keys_; +} + +// optional uint64 nonce_group = 3 [default = 0]; +inline bool CreateTableRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CreateTableRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000004u; +} +inline void CreateTableRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CreateTableRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 CreateTableRequest::nonce_group() const { + return nonce_group_; +} +inline void CreateTableRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 4 [default = 0]; +inline bool CreateTableRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void CreateTableRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000008u; +} +inline void CreateTableRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000008u; +} +inline void CreateTableRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 CreateTableRequest::nonce() const { + return nonce_; +} +inline void CreateTableRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// CreateTableResponse + +// optional uint64 proc_id = 1; +inline bool CreateTableResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CreateTableResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void CreateTableResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CreateTableResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 CreateTableResponse::proc_id() const { + return proc_id_; +} +inline void CreateTableResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// DeleteTableRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool DeleteTableRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteTableRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteTableRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteTableRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& DeleteTableRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* DeleteTableRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* DeleteTableRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void DeleteTableRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional uint64 nonce_group = 2 [default = 0]; +inline bool DeleteTableRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DeleteTableRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void DeleteTableRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DeleteTableRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 DeleteTableRequest::nonce_group() const { + return nonce_group_; +} +inline void DeleteTableRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 3 [default = 0]; +inline bool DeleteTableRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DeleteTableRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000004u; +} +inline void DeleteTableRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DeleteTableRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 DeleteTableRequest::nonce() const { + return nonce_; +} +inline void DeleteTableRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// DeleteTableResponse + +// optional uint64 proc_id = 1; +inline bool DeleteTableResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteTableResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteTableResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteTableResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 DeleteTableResponse::proc_id() const { + return proc_id_; +} +inline void DeleteTableResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// TruncateTableRequest + +// required .hbase.pb.TableName tableName = 1; +inline bool TruncateTableRequest::has_tablename() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TruncateTableRequest::set_has_tablename() { + _has_bits_[0] |= 0x00000001u; +} +inline void TruncateTableRequest::clear_has_tablename() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TruncateTableRequest::clear_tablename() { + if (tablename_ != NULL) tablename_->::hbase::pb::TableName::Clear(); + clear_has_tablename(); +} +inline const ::hbase::pb::TableName& TruncateTableRequest::tablename() const { + return tablename_ != NULL ? *tablename_ : *default_instance_->tablename_; +} +inline ::hbase::pb::TableName* TruncateTableRequest::mutable_tablename() { + set_has_tablename(); + if (tablename_ == NULL) tablename_ = new ::hbase::pb::TableName; + return tablename_; +} +inline ::hbase::pb::TableName* TruncateTableRequest::release_tablename() { + clear_has_tablename(); + ::hbase::pb::TableName* temp = tablename_; + tablename_ = NULL; + return temp; +} +inline void TruncateTableRequest::set_allocated_tablename(::hbase::pb::TableName* tablename) { + delete tablename_; + tablename_ = tablename; + if (tablename) { + set_has_tablename(); + } else { + clear_has_tablename(); + } +} + +// optional bool preserveSplits = 2 [default = false]; +inline bool TruncateTableRequest::has_preservesplits() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TruncateTableRequest::set_has_preservesplits() { + _has_bits_[0] |= 0x00000002u; +} +inline void TruncateTableRequest::clear_has_preservesplits() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TruncateTableRequest::clear_preservesplits() { + preservesplits_ = false; + clear_has_preservesplits(); +} +inline bool TruncateTableRequest::preservesplits() const { + return preservesplits_; +} +inline void TruncateTableRequest::set_preservesplits(bool value) { + set_has_preservesplits(); + preservesplits_ = value; +} + +// optional uint64 nonce_group = 3 [default = 0]; +inline bool TruncateTableRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TruncateTableRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000004u; +} +inline void TruncateTableRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TruncateTableRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 TruncateTableRequest::nonce_group() const { + return nonce_group_; +} +inline void TruncateTableRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 4 [default = 0]; +inline bool TruncateTableRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TruncateTableRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000008u; +} +inline void TruncateTableRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TruncateTableRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 TruncateTableRequest::nonce() const { + return nonce_; +} +inline void TruncateTableRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// TruncateTableResponse + +// optional uint64 proc_id = 1; +inline bool TruncateTableResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TruncateTableResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void TruncateTableResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TruncateTableResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 TruncateTableResponse::proc_id() const { + return proc_id_; +} +inline void TruncateTableResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// EnableTableRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool EnableTableRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EnableTableRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void EnableTableRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EnableTableRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& EnableTableRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* EnableTableRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* EnableTableRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void EnableTableRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional uint64 nonce_group = 2 [default = 0]; +inline bool EnableTableRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EnableTableRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void EnableTableRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EnableTableRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 EnableTableRequest::nonce_group() const { + return nonce_group_; +} +inline void EnableTableRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 3 [default = 0]; +inline bool EnableTableRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EnableTableRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000004u; +} +inline void EnableTableRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EnableTableRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 EnableTableRequest::nonce() const { + return nonce_; +} +inline void EnableTableRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// EnableTableResponse + +// optional uint64 proc_id = 1; +inline bool EnableTableResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EnableTableResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void EnableTableResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EnableTableResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 EnableTableResponse::proc_id() const { + return proc_id_; +} +inline void EnableTableResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// DisableTableRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool DisableTableRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DisableTableRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void DisableTableRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DisableTableRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& DisableTableRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* DisableTableRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* DisableTableRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void DisableTableRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional uint64 nonce_group = 2 [default = 0]; +inline bool DisableTableRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DisableTableRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void DisableTableRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DisableTableRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 DisableTableRequest::nonce_group() const { + return nonce_group_; +} +inline void DisableTableRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 3 [default = 0]; +inline bool DisableTableRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DisableTableRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000004u; +} +inline void DisableTableRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DisableTableRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 DisableTableRequest::nonce() const { + return nonce_; +} +inline void DisableTableRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// DisableTableResponse + +// optional uint64 proc_id = 1; +inline bool DisableTableResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DisableTableResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void DisableTableResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DisableTableResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 DisableTableResponse::proc_id() const { + return proc_id_; +} +inline void DisableTableResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// ModifyTableRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool ModifyTableRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyTableRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyTableRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyTableRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& ModifyTableRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* ModifyTableRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* ModifyTableRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void ModifyTableRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required .hbase.pb.TableSchema table_schema = 2; +inline bool ModifyTableRequest::has_table_schema() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ModifyTableRequest::set_has_table_schema() { + _has_bits_[0] |= 0x00000002u; +} +inline void ModifyTableRequest::clear_has_table_schema() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ModifyTableRequest::clear_table_schema() { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_table_schema(); +} +inline const ::hbase::pb::TableSchema& ModifyTableRequest::table_schema() const { + return table_schema_ != NULL ? *table_schema_ : *default_instance_->table_schema_; +} +inline ::hbase::pb::TableSchema* ModifyTableRequest::mutable_table_schema() { + set_has_table_schema(); + if (table_schema_ == NULL) table_schema_ = new ::hbase::pb::TableSchema; + return table_schema_; +} +inline ::hbase::pb::TableSchema* ModifyTableRequest::release_table_schema() { + clear_has_table_schema(); + ::hbase::pb::TableSchema* temp = table_schema_; + table_schema_ = NULL; + return temp; +} +inline void ModifyTableRequest::set_allocated_table_schema(::hbase::pb::TableSchema* table_schema) { + delete table_schema_; + table_schema_ = table_schema; + if (table_schema) { + set_has_table_schema(); + } else { + clear_has_table_schema(); + } +} + +// optional uint64 nonce_group = 3 [default = 0]; +inline bool ModifyTableRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ModifyTableRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000004u; +} +inline void ModifyTableRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ModifyTableRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 ModifyTableRequest::nonce_group() const { + return nonce_group_; +} +inline void ModifyTableRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 4 [default = 0]; +inline bool ModifyTableRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ModifyTableRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000008u; +} +inline void ModifyTableRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ModifyTableRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 ModifyTableRequest::nonce() const { + return nonce_; +} +inline void ModifyTableRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// ModifyTableResponse + +// optional uint64 proc_id = 1; +inline bool ModifyTableResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyTableResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyTableResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyTableResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 ModifyTableResponse::proc_id() const { + return proc_id_; +} +inline void ModifyTableResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// CreateNamespaceRequest + +// required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; +inline bool CreateNamespaceRequest::has_namespacedescriptor() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CreateNamespaceRequest::set_has_namespacedescriptor() { + _has_bits_[0] |= 0x00000001u; +} +inline void CreateNamespaceRequest::clear_has_namespacedescriptor() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CreateNamespaceRequest::clear_namespacedescriptor() { + if (namespacedescriptor_ != NULL) namespacedescriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + clear_has_namespacedescriptor(); +} +inline const ::hbase::pb::NamespaceDescriptor& CreateNamespaceRequest::namespacedescriptor() const { + return namespacedescriptor_ != NULL ? *namespacedescriptor_ : *default_instance_->namespacedescriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* CreateNamespaceRequest::mutable_namespacedescriptor() { + set_has_namespacedescriptor(); + if (namespacedescriptor_ == NULL) namespacedescriptor_ = new ::hbase::pb::NamespaceDescriptor; + return namespacedescriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* CreateNamespaceRequest::release_namespacedescriptor() { + clear_has_namespacedescriptor(); + ::hbase::pb::NamespaceDescriptor* temp = namespacedescriptor_; + namespacedescriptor_ = NULL; + return temp; +} +inline void CreateNamespaceRequest::set_allocated_namespacedescriptor(::hbase::pb::NamespaceDescriptor* namespacedescriptor) { + delete namespacedescriptor_; + namespacedescriptor_ = namespacedescriptor; + if (namespacedescriptor) { + set_has_namespacedescriptor(); + } else { + clear_has_namespacedescriptor(); + } +} + +// optional uint64 nonce_group = 2 [default = 0]; +inline bool CreateNamespaceRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CreateNamespaceRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void CreateNamespaceRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CreateNamespaceRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 CreateNamespaceRequest::nonce_group() const { + return nonce_group_; +} +inline void CreateNamespaceRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 3 [default = 0]; +inline bool CreateNamespaceRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CreateNamespaceRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000004u; +} +inline void CreateNamespaceRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CreateNamespaceRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 CreateNamespaceRequest::nonce() const { + return nonce_; +} +inline void CreateNamespaceRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// CreateNamespaceResponse + +// optional uint64 proc_id = 1; +inline bool CreateNamespaceResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CreateNamespaceResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void CreateNamespaceResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CreateNamespaceResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 CreateNamespaceResponse::proc_id() const { + return proc_id_; +} +inline void CreateNamespaceResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// DeleteNamespaceRequest + +// required string namespaceName = 1; +inline bool DeleteNamespaceRequest::has_namespacename() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteNamespaceRequest::set_has_namespacename() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteNamespaceRequest::clear_has_namespacename() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteNamespaceRequest::clear_namespacename() { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + namespacename_->clear(); + } + clear_has_namespacename(); +} +inline const ::std::string& DeleteNamespaceRequest::namespacename() const { + return *namespacename_; +} +inline void DeleteNamespaceRequest::set_namespacename(const ::std::string& value) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(value); +} +inline void DeleteNamespaceRequest::set_namespacename(const char* value) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(value); +} +inline void DeleteNamespaceRequest::set_namespacename(const char* value, size_t size) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DeleteNamespaceRequest::mutable_namespacename() { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + return namespacename_; +} +inline ::std::string* DeleteNamespaceRequest::release_namespacename() { + clear_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespacename_; + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DeleteNamespaceRequest::set_allocated_namespacename(::std::string* namespacename) { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + delete namespacename_; + } + if (namespacename) { + set_has_namespacename(); + namespacename_ = namespacename; + } else { + clear_has_namespacename(); + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 nonce_group = 2 [default = 0]; +inline bool DeleteNamespaceRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DeleteNamespaceRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void DeleteNamespaceRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DeleteNamespaceRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 DeleteNamespaceRequest::nonce_group() const { + return nonce_group_; +} +inline void DeleteNamespaceRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 3 [default = 0]; +inline bool DeleteNamespaceRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DeleteNamespaceRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000004u; +} +inline void DeleteNamespaceRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DeleteNamespaceRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 DeleteNamespaceRequest::nonce() const { + return nonce_; +} +inline void DeleteNamespaceRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// DeleteNamespaceResponse + +// optional uint64 proc_id = 1; +inline bool DeleteNamespaceResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteNamespaceResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteNamespaceResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteNamespaceResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 DeleteNamespaceResponse::proc_id() const { + return proc_id_; +} +inline void DeleteNamespaceResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// ModifyNamespaceRequest + +// required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; +inline bool ModifyNamespaceRequest::has_namespacedescriptor() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyNamespaceRequest::set_has_namespacedescriptor() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyNamespaceRequest::clear_has_namespacedescriptor() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyNamespaceRequest::clear_namespacedescriptor() { + if (namespacedescriptor_ != NULL) namespacedescriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + clear_has_namespacedescriptor(); +} +inline const ::hbase::pb::NamespaceDescriptor& ModifyNamespaceRequest::namespacedescriptor() const { + return namespacedescriptor_ != NULL ? *namespacedescriptor_ : *default_instance_->namespacedescriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* ModifyNamespaceRequest::mutable_namespacedescriptor() { + set_has_namespacedescriptor(); + if (namespacedescriptor_ == NULL) namespacedescriptor_ = new ::hbase::pb::NamespaceDescriptor; + return namespacedescriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* ModifyNamespaceRequest::release_namespacedescriptor() { + clear_has_namespacedescriptor(); + ::hbase::pb::NamespaceDescriptor* temp = namespacedescriptor_; + namespacedescriptor_ = NULL; + return temp; +} +inline void ModifyNamespaceRequest::set_allocated_namespacedescriptor(::hbase::pb::NamespaceDescriptor* namespacedescriptor) { + delete namespacedescriptor_; + namespacedescriptor_ = namespacedescriptor; + if (namespacedescriptor) { + set_has_namespacedescriptor(); + } else { + clear_has_namespacedescriptor(); + } +} + +// optional uint64 nonce_group = 2 [default = 0]; +inline bool ModifyNamespaceRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ModifyNamespaceRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void ModifyNamespaceRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ModifyNamespaceRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 ModifyNamespaceRequest::nonce_group() const { + return nonce_group_; +} +inline void ModifyNamespaceRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 3 [default = 0]; +inline bool ModifyNamespaceRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ModifyNamespaceRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000004u; +} +inline void ModifyNamespaceRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ModifyNamespaceRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 ModifyNamespaceRequest::nonce() const { + return nonce_; +} +inline void ModifyNamespaceRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// ModifyNamespaceResponse + +// optional uint64 proc_id = 1; +inline bool ModifyNamespaceResponse::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyNamespaceResponse::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyNamespaceResponse::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyNamespaceResponse::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 ModifyNamespaceResponse::proc_id() const { + return proc_id_; +} +inline void ModifyNamespaceResponse::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// GetNamespaceDescriptorRequest + +// required string namespaceName = 1; +inline bool GetNamespaceDescriptorRequest::has_namespacename() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetNamespaceDescriptorRequest::set_has_namespacename() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetNamespaceDescriptorRequest::clear_has_namespacename() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetNamespaceDescriptorRequest::clear_namespacename() { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + namespacename_->clear(); + } + clear_has_namespacename(); +} +inline const ::std::string& GetNamespaceDescriptorRequest::namespacename() const { + return *namespacename_; +} +inline void GetNamespaceDescriptorRequest::set_namespacename(const ::std::string& value) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(value); +} +inline void GetNamespaceDescriptorRequest::set_namespacename(const char* value) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(value); +} +inline void GetNamespaceDescriptorRequest::set_namespacename(const char* value, size_t size) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetNamespaceDescriptorRequest::mutable_namespacename() { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + return namespacename_; +} +inline ::std::string* GetNamespaceDescriptorRequest::release_namespacename() { + clear_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespacename_; + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetNamespaceDescriptorRequest::set_allocated_namespacename(::std::string* namespacename) { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + delete namespacename_; + } + if (namespacename) { + set_has_namespacename(); + namespacename_ = namespacename; + } else { + clear_has_namespacename(); + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// GetNamespaceDescriptorResponse + +// required .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; +inline bool GetNamespaceDescriptorResponse::has_namespacedescriptor() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetNamespaceDescriptorResponse::set_has_namespacedescriptor() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetNamespaceDescriptorResponse::clear_has_namespacedescriptor() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetNamespaceDescriptorResponse::clear_namespacedescriptor() { + if (namespacedescriptor_ != NULL) namespacedescriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + clear_has_namespacedescriptor(); +} +inline const ::hbase::pb::NamespaceDescriptor& GetNamespaceDescriptorResponse::namespacedescriptor() const { + return namespacedescriptor_ != NULL ? *namespacedescriptor_ : *default_instance_->namespacedescriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* GetNamespaceDescriptorResponse::mutable_namespacedescriptor() { + set_has_namespacedescriptor(); + if (namespacedescriptor_ == NULL) namespacedescriptor_ = new ::hbase::pb::NamespaceDescriptor; + return namespacedescriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* GetNamespaceDescriptorResponse::release_namespacedescriptor() { + clear_has_namespacedescriptor(); + ::hbase::pb::NamespaceDescriptor* temp = namespacedescriptor_; + namespacedescriptor_ = NULL; + return temp; +} +inline void GetNamespaceDescriptorResponse::set_allocated_namespacedescriptor(::hbase::pb::NamespaceDescriptor* namespacedescriptor) { + delete namespacedescriptor_; + namespacedescriptor_ = namespacedescriptor; + if (namespacedescriptor) { + set_has_namespacedescriptor(); + } else { + clear_has_namespacedescriptor(); + } +} + +// ------------------------------------------------------------------- + +// ListNamespaceDescriptorsRequest + +// ------------------------------------------------------------------- + +// ListNamespaceDescriptorsResponse + +// repeated .hbase.pb.NamespaceDescriptor namespaceDescriptor = 1; +inline int ListNamespaceDescriptorsResponse::namespacedescriptor_size() const { + return namespacedescriptor_.size(); +} +inline void ListNamespaceDescriptorsResponse::clear_namespacedescriptor() { + namespacedescriptor_.Clear(); +} +inline const ::hbase::pb::NamespaceDescriptor& ListNamespaceDescriptorsResponse::namespacedescriptor(int index) const { + return namespacedescriptor_.Get(index); +} +inline ::hbase::pb::NamespaceDescriptor* ListNamespaceDescriptorsResponse::mutable_namespacedescriptor(int index) { + return namespacedescriptor_.Mutable(index); +} +inline ::hbase::pb::NamespaceDescriptor* ListNamespaceDescriptorsResponse::add_namespacedescriptor() { + return namespacedescriptor_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NamespaceDescriptor >& +ListNamespaceDescriptorsResponse::namespacedescriptor() const { + return namespacedescriptor_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NamespaceDescriptor >* +ListNamespaceDescriptorsResponse::mutable_namespacedescriptor() { + return &namespacedescriptor_; +} + +// ------------------------------------------------------------------- + +// ListTableDescriptorsByNamespaceRequest + +// required string namespaceName = 1; +inline bool ListTableDescriptorsByNamespaceRequest::has_namespacename() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ListTableDescriptorsByNamespaceRequest::set_has_namespacename() { + _has_bits_[0] |= 0x00000001u; +} +inline void ListTableDescriptorsByNamespaceRequest::clear_has_namespacename() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ListTableDescriptorsByNamespaceRequest::clear_namespacename() { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + namespacename_->clear(); + } + clear_has_namespacename(); +} +inline const ::std::string& ListTableDescriptorsByNamespaceRequest::namespacename() const { + return *namespacename_; +} +inline void ListTableDescriptorsByNamespaceRequest::set_namespacename(const ::std::string& value) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(value); +} +inline void ListTableDescriptorsByNamespaceRequest::set_namespacename(const char* value) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(value); +} +inline void ListTableDescriptorsByNamespaceRequest::set_namespacename(const char* value, size_t size) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ListTableDescriptorsByNamespaceRequest::mutable_namespacename() { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + return namespacename_; +} +inline ::std::string* ListTableDescriptorsByNamespaceRequest::release_namespacename() { + clear_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespacename_; + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ListTableDescriptorsByNamespaceRequest::set_allocated_namespacename(::std::string* namespacename) { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + delete namespacename_; + } + if (namespacename) { + set_has_namespacename(); + namespacename_ = namespacename; + } else { + clear_has_namespacename(); + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ListTableDescriptorsByNamespaceResponse + +// repeated .hbase.pb.TableSchema tableSchema = 1; +inline int ListTableDescriptorsByNamespaceResponse::tableschema_size() const { + return tableschema_.size(); +} +inline void ListTableDescriptorsByNamespaceResponse::clear_tableschema() { + tableschema_.Clear(); +} +inline const ::hbase::pb::TableSchema& ListTableDescriptorsByNamespaceResponse::tableschema(int index) const { + return tableschema_.Get(index); +} +inline ::hbase::pb::TableSchema* ListTableDescriptorsByNamespaceResponse::mutable_tableschema(int index) { + return tableschema_.Mutable(index); +} +inline ::hbase::pb::TableSchema* ListTableDescriptorsByNamespaceResponse::add_tableschema() { + return tableschema_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema >& +ListTableDescriptorsByNamespaceResponse::tableschema() const { + return tableschema_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema >* +ListTableDescriptorsByNamespaceResponse::mutable_tableschema() { + return &tableschema_; +} + +// ------------------------------------------------------------------- + +// ListTableNamesByNamespaceRequest + +// required string namespaceName = 1; +inline bool ListTableNamesByNamespaceRequest::has_namespacename() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ListTableNamesByNamespaceRequest::set_has_namespacename() { + _has_bits_[0] |= 0x00000001u; +} +inline void ListTableNamesByNamespaceRequest::clear_has_namespacename() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ListTableNamesByNamespaceRequest::clear_namespacename() { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + namespacename_->clear(); + } + clear_has_namespacename(); +} +inline const ::std::string& ListTableNamesByNamespaceRequest::namespacename() const { + return *namespacename_; +} +inline void ListTableNamesByNamespaceRequest::set_namespacename(const ::std::string& value) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(value); +} +inline void ListTableNamesByNamespaceRequest::set_namespacename(const char* value) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(value); +} +inline void ListTableNamesByNamespaceRequest::set_namespacename(const char* value, size_t size) { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + namespacename_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ListTableNamesByNamespaceRequest::mutable_namespacename() { + set_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + namespacename_ = new ::std::string; + } + return namespacename_; +} +inline ::std::string* ListTableNamesByNamespaceRequest::release_namespacename() { + clear_has_namespacename(); + if (namespacename_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespacename_; + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ListTableNamesByNamespaceRequest::set_allocated_namespacename(::std::string* namespacename) { + if (namespacename_ != &::google::protobuf::internal::kEmptyString) { + delete namespacename_; + } + if (namespacename) { + set_has_namespacename(); + namespacename_ = namespacename; + } else { + clear_has_namespacename(); + namespacename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ListTableNamesByNamespaceResponse + +// repeated .hbase.pb.TableName tableName = 1; +inline int ListTableNamesByNamespaceResponse::tablename_size() const { + return tablename_.size(); +} +inline void ListTableNamesByNamespaceResponse::clear_tablename() { + tablename_.Clear(); +} +inline const ::hbase::pb::TableName& ListTableNamesByNamespaceResponse::tablename(int index) const { + return tablename_.Get(index); +} +inline ::hbase::pb::TableName* ListTableNamesByNamespaceResponse::mutable_tablename(int index) { + return tablename_.Mutable(index); +} +inline ::hbase::pb::TableName* ListTableNamesByNamespaceResponse::add_tablename() { + return tablename_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& +ListTableNamesByNamespaceResponse::tablename() const { + return tablename_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* +ListTableNamesByNamespaceResponse::mutable_tablename() { + return &tablename_; +} + +// ------------------------------------------------------------------- + +// ShutdownRequest + +// ------------------------------------------------------------------- + +// ShutdownResponse + +// ------------------------------------------------------------------- + +// StopMasterRequest + +// ------------------------------------------------------------------- + +// StopMasterResponse + +// ------------------------------------------------------------------- + +// BalanceRequest + +// optional bool force = 1; +inline bool BalanceRequest::has_force() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BalanceRequest::set_has_force() { + _has_bits_[0] |= 0x00000001u; +} +inline void BalanceRequest::clear_has_force() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BalanceRequest::clear_force() { + force_ = false; + clear_has_force(); +} +inline bool BalanceRequest::force() const { + return force_; +} +inline void BalanceRequest::set_force(bool value) { + set_has_force(); + force_ = value; +} + +// ------------------------------------------------------------------- + +// BalanceResponse + +// required bool balancer_ran = 1; +inline bool BalanceResponse::has_balancer_ran() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BalanceResponse::set_has_balancer_ran() { + _has_bits_[0] |= 0x00000001u; +} +inline void BalanceResponse::clear_has_balancer_ran() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BalanceResponse::clear_balancer_ran() { + balancer_ran_ = false; + clear_has_balancer_ran(); +} +inline bool BalanceResponse::balancer_ran() const { + return balancer_ran_; +} +inline void BalanceResponse::set_balancer_ran(bool value) { + set_has_balancer_ran(); + balancer_ran_ = value; +} + +// ------------------------------------------------------------------- + +// SetBalancerRunningRequest + +// required bool on = 1; +inline bool SetBalancerRunningRequest::has_on() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SetBalancerRunningRequest::set_has_on() { + _has_bits_[0] |= 0x00000001u; +} +inline void SetBalancerRunningRequest::clear_has_on() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SetBalancerRunningRequest::clear_on() { + on_ = false; + clear_has_on(); +} +inline bool SetBalancerRunningRequest::on() const { + return on_; +} +inline void SetBalancerRunningRequest::set_on(bool value) { + set_has_on(); + on_ = value; +} + +// optional bool synchronous = 2; +inline bool SetBalancerRunningRequest::has_synchronous() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SetBalancerRunningRequest::set_has_synchronous() { + _has_bits_[0] |= 0x00000002u; +} +inline void SetBalancerRunningRequest::clear_has_synchronous() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SetBalancerRunningRequest::clear_synchronous() { + synchronous_ = false; + clear_has_synchronous(); +} +inline bool SetBalancerRunningRequest::synchronous() const { + return synchronous_; +} +inline void SetBalancerRunningRequest::set_synchronous(bool value) { + set_has_synchronous(); + synchronous_ = value; +} + +// ------------------------------------------------------------------- + +// SetBalancerRunningResponse + +// optional bool prev_balance_value = 1; +inline bool SetBalancerRunningResponse::has_prev_balance_value() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SetBalancerRunningResponse::set_has_prev_balance_value() { + _has_bits_[0] |= 0x00000001u; +} +inline void SetBalancerRunningResponse::clear_has_prev_balance_value() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SetBalancerRunningResponse::clear_prev_balance_value() { + prev_balance_value_ = false; + clear_has_prev_balance_value(); +} +inline bool SetBalancerRunningResponse::prev_balance_value() const { + return prev_balance_value_; +} +inline void SetBalancerRunningResponse::set_prev_balance_value(bool value) { + set_has_prev_balance_value(); + prev_balance_value_ = value; +} + +// ------------------------------------------------------------------- + +// IsBalancerEnabledRequest + +// ------------------------------------------------------------------- + +// IsBalancerEnabledResponse + +// required bool enabled = 1; +inline bool IsBalancerEnabledResponse::has_enabled() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsBalancerEnabledResponse::set_has_enabled() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsBalancerEnabledResponse::clear_has_enabled() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsBalancerEnabledResponse::clear_enabled() { + enabled_ = false; + clear_has_enabled(); +} +inline bool IsBalancerEnabledResponse::enabled() const { + return enabled_; +} +inline void IsBalancerEnabledResponse::set_enabled(bool value) { + set_has_enabled(); + enabled_ = value; +} + +// ------------------------------------------------------------------- + +// SetSplitOrMergeEnabledRequest + +// required bool enabled = 1; +inline bool SetSplitOrMergeEnabledRequest::has_enabled() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SetSplitOrMergeEnabledRequest::set_has_enabled() { + _has_bits_[0] |= 0x00000001u; +} +inline void SetSplitOrMergeEnabledRequest::clear_has_enabled() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SetSplitOrMergeEnabledRequest::clear_enabled() { + enabled_ = false; + clear_has_enabled(); +} +inline bool SetSplitOrMergeEnabledRequest::enabled() const { + return enabled_; +} +inline void SetSplitOrMergeEnabledRequest::set_enabled(bool value) { + set_has_enabled(); + enabled_ = value; +} + +// optional bool synchronous = 2; +inline bool SetSplitOrMergeEnabledRequest::has_synchronous() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SetSplitOrMergeEnabledRequest::set_has_synchronous() { + _has_bits_[0] |= 0x00000002u; +} +inline void SetSplitOrMergeEnabledRequest::clear_has_synchronous() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SetSplitOrMergeEnabledRequest::clear_synchronous() { + synchronous_ = false; + clear_has_synchronous(); +} +inline bool SetSplitOrMergeEnabledRequest::synchronous() const { + return synchronous_; +} +inline void SetSplitOrMergeEnabledRequest::set_synchronous(bool value) { + set_has_synchronous(); + synchronous_ = value; +} + +// repeated .hbase.pb.MasterSwitchType switch_types = 3; +inline int SetSplitOrMergeEnabledRequest::switch_types_size() const { + return switch_types_.size(); +} +inline void SetSplitOrMergeEnabledRequest::clear_switch_types() { + switch_types_.Clear(); +} +inline ::hbase::pb::MasterSwitchType SetSplitOrMergeEnabledRequest::switch_types(int index) const { + return static_cast< ::hbase::pb::MasterSwitchType >(switch_types_.Get(index)); +} +inline void SetSplitOrMergeEnabledRequest::set_switch_types(int index, ::hbase::pb::MasterSwitchType value) { + assert(::hbase::pb::MasterSwitchType_IsValid(value)); + switch_types_.Set(index, value); +} +inline void SetSplitOrMergeEnabledRequest::add_switch_types(::hbase::pb::MasterSwitchType value) { + assert(::hbase::pb::MasterSwitchType_IsValid(value)); + switch_types_.Add(value); +} +inline const ::google::protobuf::RepeatedField& +SetSplitOrMergeEnabledRequest::switch_types() const { + return switch_types_; +} +inline ::google::protobuf::RepeatedField* +SetSplitOrMergeEnabledRequest::mutable_switch_types() { + return &switch_types_; +} + +// ------------------------------------------------------------------- + +// SetSplitOrMergeEnabledResponse + +// repeated bool prev_value = 1; +inline int SetSplitOrMergeEnabledResponse::prev_value_size() const { + return prev_value_.size(); +} +inline void SetSplitOrMergeEnabledResponse::clear_prev_value() { + prev_value_.Clear(); +} +inline bool SetSplitOrMergeEnabledResponse::prev_value(int index) const { + return prev_value_.Get(index); +} +inline void SetSplitOrMergeEnabledResponse::set_prev_value(int index, bool value) { + prev_value_.Set(index, value); +} +inline void SetSplitOrMergeEnabledResponse::add_prev_value(bool value) { + prev_value_.Add(value); +} +inline const ::google::protobuf::RepeatedField< bool >& +SetSplitOrMergeEnabledResponse::prev_value() const { + return prev_value_; +} +inline ::google::protobuf::RepeatedField< bool >* +SetSplitOrMergeEnabledResponse::mutable_prev_value() { + return &prev_value_; +} + +// ------------------------------------------------------------------- + +// IsSplitOrMergeEnabledRequest + +// required .hbase.pb.MasterSwitchType switch_type = 1; +inline bool IsSplitOrMergeEnabledRequest::has_switch_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsSplitOrMergeEnabledRequest::set_has_switch_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsSplitOrMergeEnabledRequest::clear_has_switch_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsSplitOrMergeEnabledRequest::clear_switch_type() { + switch_type_ = 0; + clear_has_switch_type(); +} +inline ::hbase::pb::MasterSwitchType IsSplitOrMergeEnabledRequest::switch_type() const { + return static_cast< ::hbase::pb::MasterSwitchType >(switch_type_); +} +inline void IsSplitOrMergeEnabledRequest::set_switch_type(::hbase::pb::MasterSwitchType value) { + assert(::hbase::pb::MasterSwitchType_IsValid(value)); + set_has_switch_type(); + switch_type_ = value; +} + +// ------------------------------------------------------------------- + +// IsSplitOrMergeEnabledResponse + +// required bool enabled = 1; +inline bool IsSplitOrMergeEnabledResponse::has_enabled() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsSplitOrMergeEnabledResponse::set_has_enabled() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsSplitOrMergeEnabledResponse::clear_has_enabled() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsSplitOrMergeEnabledResponse::clear_enabled() { + enabled_ = false; + clear_has_enabled(); +} +inline bool IsSplitOrMergeEnabledResponse::enabled() const { + return enabled_; +} +inline void IsSplitOrMergeEnabledResponse::set_enabled(bool value) { + set_has_enabled(); + enabled_ = value; +} + +// ------------------------------------------------------------------- + +// NormalizeRequest + +// ------------------------------------------------------------------- + +// NormalizeResponse + +// required bool normalizer_ran = 1; +inline bool NormalizeResponse::has_normalizer_ran() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NormalizeResponse::set_has_normalizer_ran() { + _has_bits_[0] |= 0x00000001u; +} +inline void NormalizeResponse::clear_has_normalizer_ran() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NormalizeResponse::clear_normalizer_ran() { + normalizer_ran_ = false; + clear_has_normalizer_ran(); +} +inline bool NormalizeResponse::normalizer_ran() const { + return normalizer_ran_; +} +inline void NormalizeResponse::set_normalizer_ran(bool value) { + set_has_normalizer_ran(); + normalizer_ran_ = value; +} + +// ------------------------------------------------------------------- + +// SetNormalizerRunningRequest + +// required bool on = 1; +inline bool SetNormalizerRunningRequest::has_on() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SetNormalizerRunningRequest::set_has_on() { + _has_bits_[0] |= 0x00000001u; +} +inline void SetNormalizerRunningRequest::clear_has_on() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SetNormalizerRunningRequest::clear_on() { + on_ = false; + clear_has_on(); +} +inline bool SetNormalizerRunningRequest::on() const { + return on_; +} +inline void SetNormalizerRunningRequest::set_on(bool value) { + set_has_on(); + on_ = value; +} + +// ------------------------------------------------------------------- + +// SetNormalizerRunningResponse + +// optional bool prev_normalizer_value = 1; +inline bool SetNormalizerRunningResponse::has_prev_normalizer_value() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SetNormalizerRunningResponse::set_has_prev_normalizer_value() { + _has_bits_[0] |= 0x00000001u; +} +inline void SetNormalizerRunningResponse::clear_has_prev_normalizer_value() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SetNormalizerRunningResponse::clear_prev_normalizer_value() { + prev_normalizer_value_ = false; + clear_has_prev_normalizer_value(); +} +inline bool SetNormalizerRunningResponse::prev_normalizer_value() const { + return prev_normalizer_value_; +} +inline void SetNormalizerRunningResponse::set_prev_normalizer_value(bool value) { + set_has_prev_normalizer_value(); + prev_normalizer_value_ = value; +} + +// ------------------------------------------------------------------- + +// IsNormalizerEnabledRequest + +// ------------------------------------------------------------------- + +// IsNormalizerEnabledResponse + +// required bool enabled = 1; +inline bool IsNormalizerEnabledResponse::has_enabled() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsNormalizerEnabledResponse::set_has_enabled() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsNormalizerEnabledResponse::clear_has_enabled() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsNormalizerEnabledResponse::clear_enabled() { + enabled_ = false; + clear_has_enabled(); +} +inline bool IsNormalizerEnabledResponse::enabled() const { + return enabled_; +} +inline void IsNormalizerEnabledResponse::set_enabled(bool value) { + set_has_enabled(); + enabled_ = value; +} + +// ------------------------------------------------------------------- + +// RunCatalogScanRequest + +// ------------------------------------------------------------------- + +// RunCatalogScanResponse + +// optional int32 scan_result = 1; +inline bool RunCatalogScanResponse::has_scan_result() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RunCatalogScanResponse::set_has_scan_result() { + _has_bits_[0] |= 0x00000001u; +} +inline void RunCatalogScanResponse::clear_has_scan_result() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RunCatalogScanResponse::clear_scan_result() { + scan_result_ = 0; + clear_has_scan_result(); +} +inline ::google::protobuf::int32 RunCatalogScanResponse::scan_result() const { + return scan_result_; +} +inline void RunCatalogScanResponse::set_scan_result(::google::protobuf::int32 value) { + set_has_scan_result(); + scan_result_ = value; +} + +// ------------------------------------------------------------------- + +// EnableCatalogJanitorRequest + +// required bool enable = 1; +inline bool EnableCatalogJanitorRequest::has_enable() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EnableCatalogJanitorRequest::set_has_enable() { + _has_bits_[0] |= 0x00000001u; +} +inline void EnableCatalogJanitorRequest::clear_has_enable() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EnableCatalogJanitorRequest::clear_enable() { + enable_ = false; + clear_has_enable(); +} +inline bool EnableCatalogJanitorRequest::enable() const { + return enable_; +} +inline void EnableCatalogJanitorRequest::set_enable(bool value) { + set_has_enable(); + enable_ = value; +} + +// ------------------------------------------------------------------- + +// EnableCatalogJanitorResponse + +// optional bool prev_value = 1; +inline bool EnableCatalogJanitorResponse::has_prev_value() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EnableCatalogJanitorResponse::set_has_prev_value() { + _has_bits_[0] |= 0x00000001u; +} +inline void EnableCatalogJanitorResponse::clear_has_prev_value() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EnableCatalogJanitorResponse::clear_prev_value() { + prev_value_ = false; + clear_has_prev_value(); +} +inline bool EnableCatalogJanitorResponse::prev_value() const { + return prev_value_; +} +inline void EnableCatalogJanitorResponse::set_prev_value(bool value) { + set_has_prev_value(); + prev_value_ = value; +} + +// ------------------------------------------------------------------- + +// IsCatalogJanitorEnabledRequest + +// ------------------------------------------------------------------- + +// IsCatalogJanitorEnabledResponse + +// required bool value = 1; +inline bool IsCatalogJanitorEnabledResponse::has_value() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsCatalogJanitorEnabledResponse::set_has_value() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsCatalogJanitorEnabledResponse::clear_has_value() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsCatalogJanitorEnabledResponse::clear_value() { + value_ = false; + clear_has_value(); +} +inline bool IsCatalogJanitorEnabledResponse::value() const { + return value_; +} +inline void IsCatalogJanitorEnabledResponse::set_value(bool value) { + set_has_value(); + value_ = value; +} + +// ------------------------------------------------------------------- + +// SnapshotRequest + +// required .hbase.pb.SnapshotDescription snapshot = 1; +inline bool SnapshotRequest::has_snapshot() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SnapshotRequest::set_has_snapshot() { + _has_bits_[0] |= 0x00000001u; +} +inline void SnapshotRequest::clear_has_snapshot() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SnapshotRequest::clear_snapshot() { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + clear_has_snapshot(); +} +inline const ::hbase::pb::SnapshotDescription& SnapshotRequest::snapshot() const { + return snapshot_ != NULL ? *snapshot_ : *default_instance_->snapshot_; +} +inline ::hbase::pb::SnapshotDescription* SnapshotRequest::mutable_snapshot() { + set_has_snapshot(); + if (snapshot_ == NULL) snapshot_ = new ::hbase::pb::SnapshotDescription; + return snapshot_; +} +inline ::hbase::pb::SnapshotDescription* SnapshotRequest::release_snapshot() { + clear_has_snapshot(); + ::hbase::pb::SnapshotDescription* temp = snapshot_; + snapshot_ = NULL; + return temp; +} +inline void SnapshotRequest::set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot) { + delete snapshot_; + snapshot_ = snapshot; + if (snapshot) { + set_has_snapshot(); + } else { + clear_has_snapshot(); + } +} + +// ------------------------------------------------------------------- + +// SnapshotResponse + +// required int64 expected_timeout = 1; +inline bool SnapshotResponse::has_expected_timeout() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SnapshotResponse::set_has_expected_timeout() { + _has_bits_[0] |= 0x00000001u; +} +inline void SnapshotResponse::clear_has_expected_timeout() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SnapshotResponse::clear_expected_timeout() { + expected_timeout_ = GOOGLE_LONGLONG(0); + clear_has_expected_timeout(); +} +inline ::google::protobuf::int64 SnapshotResponse::expected_timeout() const { + return expected_timeout_; +} +inline void SnapshotResponse::set_expected_timeout(::google::protobuf::int64 value) { + set_has_expected_timeout(); + expected_timeout_ = value; +} + +// ------------------------------------------------------------------- + +// GetCompletedSnapshotsRequest + +// ------------------------------------------------------------------- + +// GetCompletedSnapshotsResponse + +// repeated .hbase.pb.SnapshotDescription snapshots = 1; +inline int GetCompletedSnapshotsResponse::snapshots_size() const { + return snapshots_.size(); +} +inline void GetCompletedSnapshotsResponse::clear_snapshots() { + snapshots_.Clear(); +} +inline const ::hbase::pb::SnapshotDescription& GetCompletedSnapshotsResponse::snapshots(int index) const { + return snapshots_.Get(index); +} +inline ::hbase::pb::SnapshotDescription* GetCompletedSnapshotsResponse::mutable_snapshots(int index) { + return snapshots_.Mutable(index); +} +inline ::hbase::pb::SnapshotDescription* GetCompletedSnapshotsResponse::add_snapshots() { + return snapshots_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotDescription >& +GetCompletedSnapshotsResponse::snapshots() const { + return snapshots_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotDescription >* +GetCompletedSnapshotsResponse::mutable_snapshots() { + return &snapshots_; +} + +// ------------------------------------------------------------------- + +// DeleteSnapshotRequest + +// required .hbase.pb.SnapshotDescription snapshot = 1; +inline bool DeleteSnapshotRequest::has_snapshot() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteSnapshotRequest::set_has_snapshot() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteSnapshotRequest::clear_has_snapshot() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteSnapshotRequest::clear_snapshot() { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + clear_has_snapshot(); +} +inline const ::hbase::pb::SnapshotDescription& DeleteSnapshotRequest::snapshot() const { + return snapshot_ != NULL ? *snapshot_ : *default_instance_->snapshot_; +} +inline ::hbase::pb::SnapshotDescription* DeleteSnapshotRequest::mutable_snapshot() { + set_has_snapshot(); + if (snapshot_ == NULL) snapshot_ = new ::hbase::pb::SnapshotDescription; + return snapshot_; +} +inline ::hbase::pb::SnapshotDescription* DeleteSnapshotRequest::release_snapshot() { + clear_has_snapshot(); + ::hbase::pb::SnapshotDescription* temp = snapshot_; + snapshot_ = NULL; + return temp; +} +inline void DeleteSnapshotRequest::set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot) { + delete snapshot_; + snapshot_ = snapshot; + if (snapshot) { + set_has_snapshot(); + } else { + clear_has_snapshot(); + } +} + +// ------------------------------------------------------------------- + +// DeleteSnapshotResponse + +// ------------------------------------------------------------------- + +// RestoreSnapshotRequest + +// required .hbase.pb.SnapshotDescription snapshot = 1; +inline bool RestoreSnapshotRequest::has_snapshot() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RestoreSnapshotRequest::set_has_snapshot() { + _has_bits_[0] |= 0x00000001u; +} +inline void RestoreSnapshotRequest::clear_has_snapshot() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RestoreSnapshotRequest::clear_snapshot() { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + clear_has_snapshot(); +} +inline const ::hbase::pb::SnapshotDescription& RestoreSnapshotRequest::snapshot() const { + return snapshot_ != NULL ? *snapshot_ : *default_instance_->snapshot_; +} +inline ::hbase::pb::SnapshotDescription* RestoreSnapshotRequest::mutable_snapshot() { + set_has_snapshot(); + if (snapshot_ == NULL) snapshot_ = new ::hbase::pb::SnapshotDescription; + return snapshot_; +} +inline ::hbase::pb::SnapshotDescription* RestoreSnapshotRequest::release_snapshot() { + clear_has_snapshot(); + ::hbase::pb::SnapshotDescription* temp = snapshot_; + snapshot_ = NULL; + return temp; +} +inline void RestoreSnapshotRequest::set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot) { + delete snapshot_; + snapshot_ = snapshot; + if (snapshot) { + set_has_snapshot(); + } else { + clear_has_snapshot(); + } +} + +// ------------------------------------------------------------------- + +// RestoreSnapshotResponse + +// ------------------------------------------------------------------- + +// IsSnapshotDoneRequest + +// optional .hbase.pb.SnapshotDescription snapshot = 1; +inline bool IsSnapshotDoneRequest::has_snapshot() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsSnapshotDoneRequest::set_has_snapshot() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsSnapshotDoneRequest::clear_has_snapshot() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsSnapshotDoneRequest::clear_snapshot() { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + clear_has_snapshot(); +} +inline const ::hbase::pb::SnapshotDescription& IsSnapshotDoneRequest::snapshot() const { + return snapshot_ != NULL ? *snapshot_ : *default_instance_->snapshot_; +} +inline ::hbase::pb::SnapshotDescription* IsSnapshotDoneRequest::mutable_snapshot() { + set_has_snapshot(); + if (snapshot_ == NULL) snapshot_ = new ::hbase::pb::SnapshotDescription; + return snapshot_; +} +inline ::hbase::pb::SnapshotDescription* IsSnapshotDoneRequest::release_snapshot() { + clear_has_snapshot(); + ::hbase::pb::SnapshotDescription* temp = snapshot_; + snapshot_ = NULL; + return temp; +} +inline void IsSnapshotDoneRequest::set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot) { + delete snapshot_; + snapshot_ = snapshot; + if (snapshot) { + set_has_snapshot(); + } else { + clear_has_snapshot(); + } +} + +// ------------------------------------------------------------------- + +// IsSnapshotDoneResponse + +// optional bool done = 1 [default = false]; +inline bool IsSnapshotDoneResponse::has_done() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsSnapshotDoneResponse::set_has_done() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsSnapshotDoneResponse::clear_has_done() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsSnapshotDoneResponse::clear_done() { + done_ = false; + clear_has_done(); +} +inline bool IsSnapshotDoneResponse::done() const { + return done_; +} +inline void IsSnapshotDoneResponse::set_done(bool value) { + set_has_done(); + done_ = value; +} + +// optional .hbase.pb.SnapshotDescription snapshot = 2; +inline bool IsSnapshotDoneResponse::has_snapshot() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void IsSnapshotDoneResponse::set_has_snapshot() { + _has_bits_[0] |= 0x00000002u; +} +inline void IsSnapshotDoneResponse::clear_has_snapshot() { + _has_bits_[0] &= ~0x00000002u; +} +inline void IsSnapshotDoneResponse::clear_snapshot() { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + clear_has_snapshot(); +} +inline const ::hbase::pb::SnapshotDescription& IsSnapshotDoneResponse::snapshot() const { + return snapshot_ != NULL ? *snapshot_ : *default_instance_->snapshot_; +} +inline ::hbase::pb::SnapshotDescription* IsSnapshotDoneResponse::mutable_snapshot() { + set_has_snapshot(); + if (snapshot_ == NULL) snapshot_ = new ::hbase::pb::SnapshotDescription; + return snapshot_; +} +inline ::hbase::pb::SnapshotDescription* IsSnapshotDoneResponse::release_snapshot() { + clear_has_snapshot(); + ::hbase::pb::SnapshotDescription* temp = snapshot_; + snapshot_ = NULL; + return temp; +} +inline void IsSnapshotDoneResponse::set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot) { + delete snapshot_; + snapshot_ = snapshot; + if (snapshot) { + set_has_snapshot(); + } else { + clear_has_snapshot(); + } +} + +// ------------------------------------------------------------------- + +// IsRestoreSnapshotDoneRequest + +// optional .hbase.pb.SnapshotDescription snapshot = 1; +inline bool IsRestoreSnapshotDoneRequest::has_snapshot() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsRestoreSnapshotDoneRequest::set_has_snapshot() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsRestoreSnapshotDoneRequest::clear_has_snapshot() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsRestoreSnapshotDoneRequest::clear_snapshot() { + if (snapshot_ != NULL) snapshot_->::hbase::pb::SnapshotDescription::Clear(); + clear_has_snapshot(); +} +inline const ::hbase::pb::SnapshotDescription& IsRestoreSnapshotDoneRequest::snapshot() const { + return snapshot_ != NULL ? *snapshot_ : *default_instance_->snapshot_; +} +inline ::hbase::pb::SnapshotDescription* IsRestoreSnapshotDoneRequest::mutable_snapshot() { + set_has_snapshot(); + if (snapshot_ == NULL) snapshot_ = new ::hbase::pb::SnapshotDescription; + return snapshot_; +} +inline ::hbase::pb::SnapshotDescription* IsRestoreSnapshotDoneRequest::release_snapshot() { + clear_has_snapshot(); + ::hbase::pb::SnapshotDescription* temp = snapshot_; + snapshot_ = NULL; + return temp; +} +inline void IsRestoreSnapshotDoneRequest::set_allocated_snapshot(::hbase::pb::SnapshotDescription* snapshot) { + delete snapshot_; + snapshot_ = snapshot; + if (snapshot) { + set_has_snapshot(); + } else { + clear_has_snapshot(); + } +} + +// ------------------------------------------------------------------- + +// IsRestoreSnapshotDoneResponse + +// optional bool done = 1 [default = false]; +inline bool IsRestoreSnapshotDoneResponse::has_done() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsRestoreSnapshotDoneResponse::set_has_done() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsRestoreSnapshotDoneResponse::clear_has_done() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsRestoreSnapshotDoneResponse::clear_done() { + done_ = false; + clear_has_done(); +} +inline bool IsRestoreSnapshotDoneResponse::done() const { + return done_; +} +inline void IsRestoreSnapshotDoneResponse::set_done(bool value) { + set_has_done(); + done_ = value; +} + +// ------------------------------------------------------------------- + +// GetSchemaAlterStatusRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool GetSchemaAlterStatusRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetSchemaAlterStatusRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetSchemaAlterStatusRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetSchemaAlterStatusRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& GetSchemaAlterStatusRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* GetSchemaAlterStatusRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* GetSchemaAlterStatusRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void GetSchemaAlterStatusRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// ------------------------------------------------------------------- + +// GetSchemaAlterStatusResponse + +// optional uint32 yet_to_update_regions = 1; +inline bool GetSchemaAlterStatusResponse::has_yet_to_update_regions() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetSchemaAlterStatusResponse::set_has_yet_to_update_regions() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetSchemaAlterStatusResponse::clear_has_yet_to_update_regions() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetSchemaAlterStatusResponse::clear_yet_to_update_regions() { + yet_to_update_regions_ = 0u; + clear_has_yet_to_update_regions(); +} +inline ::google::protobuf::uint32 GetSchemaAlterStatusResponse::yet_to_update_regions() const { + return yet_to_update_regions_; +} +inline void GetSchemaAlterStatusResponse::set_yet_to_update_regions(::google::protobuf::uint32 value) { + set_has_yet_to_update_regions(); + yet_to_update_regions_ = value; +} + +// optional uint32 total_regions = 2; +inline bool GetSchemaAlterStatusResponse::has_total_regions() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetSchemaAlterStatusResponse::set_has_total_regions() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetSchemaAlterStatusResponse::clear_has_total_regions() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetSchemaAlterStatusResponse::clear_total_regions() { + total_regions_ = 0u; + clear_has_total_regions(); +} +inline ::google::protobuf::uint32 GetSchemaAlterStatusResponse::total_regions() const { + return total_regions_; +} +inline void GetSchemaAlterStatusResponse::set_total_regions(::google::protobuf::uint32 value) { + set_has_total_regions(); + total_regions_ = value; +} + +// ------------------------------------------------------------------- + +// GetTableDescriptorsRequest + +// repeated .hbase.pb.TableName table_names = 1; +inline int GetTableDescriptorsRequest::table_names_size() const { + return table_names_.size(); +} +inline void GetTableDescriptorsRequest::clear_table_names() { + table_names_.Clear(); +} +inline const ::hbase::pb::TableName& GetTableDescriptorsRequest::table_names(int index) const { + return table_names_.Get(index); +} +inline ::hbase::pb::TableName* GetTableDescriptorsRequest::mutable_table_names(int index) { + return table_names_.Mutable(index); +} +inline ::hbase::pb::TableName* GetTableDescriptorsRequest::add_table_names() { + return table_names_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& +GetTableDescriptorsRequest::table_names() const { + return table_names_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* +GetTableDescriptorsRequest::mutable_table_names() { + return &table_names_; +} + +// optional string regex = 2; +inline bool GetTableDescriptorsRequest::has_regex() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetTableDescriptorsRequest::set_has_regex() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetTableDescriptorsRequest::clear_has_regex() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetTableDescriptorsRequest::clear_regex() { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + regex_->clear(); + } + clear_has_regex(); +} +inline const ::std::string& GetTableDescriptorsRequest::regex() const { + return *regex_; +} +inline void GetTableDescriptorsRequest::set_regex(const ::std::string& value) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(value); +} +inline void GetTableDescriptorsRequest::set_regex(const char* value) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(value); +} +inline void GetTableDescriptorsRequest::set_regex(const char* value, size_t size) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetTableDescriptorsRequest::mutable_regex() { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + return regex_; +} +inline ::std::string* GetTableDescriptorsRequest::release_regex() { + clear_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = regex_; + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetTableDescriptorsRequest::set_allocated_regex(::std::string* regex) { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + delete regex_; + } + if (regex) { + set_has_regex(); + regex_ = regex; + } else { + clear_has_regex(); + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool include_sys_tables = 3 [default = false]; +inline bool GetTableDescriptorsRequest::has_include_sys_tables() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GetTableDescriptorsRequest::set_has_include_sys_tables() { + _has_bits_[0] |= 0x00000004u; +} +inline void GetTableDescriptorsRequest::clear_has_include_sys_tables() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GetTableDescriptorsRequest::clear_include_sys_tables() { + include_sys_tables_ = false; + clear_has_include_sys_tables(); +} +inline bool GetTableDescriptorsRequest::include_sys_tables() const { + return include_sys_tables_; +} +inline void GetTableDescriptorsRequest::set_include_sys_tables(bool value) { + set_has_include_sys_tables(); + include_sys_tables_ = value; +} + +// optional string namespace = 4; +inline bool GetTableDescriptorsRequest::has_namespace_() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void GetTableDescriptorsRequest::set_has_namespace_() { + _has_bits_[0] |= 0x00000008u; +} +inline void GetTableDescriptorsRequest::clear_has_namespace_() { + _has_bits_[0] &= ~0x00000008u; +} +inline void GetTableDescriptorsRequest::clear_namespace_() { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + namespace__->clear(); + } + clear_has_namespace_(); +} +inline const ::std::string& GetTableDescriptorsRequest::namespace_() const { + return *namespace__; +} +inline void GetTableDescriptorsRequest::set_namespace_(const ::std::string& value) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(value); +} +inline void GetTableDescriptorsRequest::set_namespace_(const char* value) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(value); +} +inline void GetTableDescriptorsRequest::set_namespace_(const char* value, size_t size) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetTableDescriptorsRequest::mutable_namespace_() { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + return namespace__; +} +inline ::std::string* GetTableDescriptorsRequest::release_namespace_() { + clear_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespace__; + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetTableDescriptorsRequest::set_allocated_namespace_(::std::string* namespace_) { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + delete namespace__; + } + if (namespace_) { + set_has_namespace_(); + namespace__ = namespace_; + } else { + clear_has_namespace_(); + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// GetTableDescriptorsResponse + +// repeated .hbase.pb.TableSchema table_schema = 1; +inline int GetTableDescriptorsResponse::table_schema_size() const { + return table_schema_.size(); +} +inline void GetTableDescriptorsResponse::clear_table_schema() { + table_schema_.Clear(); +} +inline const ::hbase::pb::TableSchema& GetTableDescriptorsResponse::table_schema(int index) const { + return table_schema_.Get(index); +} +inline ::hbase::pb::TableSchema* GetTableDescriptorsResponse::mutable_table_schema(int index) { + return table_schema_.Mutable(index); +} +inline ::hbase::pb::TableSchema* GetTableDescriptorsResponse::add_table_schema() { + return table_schema_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema >& +GetTableDescriptorsResponse::table_schema() const { + return table_schema_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableSchema >* +GetTableDescriptorsResponse::mutable_table_schema() { + return &table_schema_; +} + +// ------------------------------------------------------------------- + +// GetTableNamesRequest + +// optional string regex = 1; +inline bool GetTableNamesRequest::has_regex() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetTableNamesRequest::set_has_regex() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetTableNamesRequest::clear_has_regex() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetTableNamesRequest::clear_regex() { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + regex_->clear(); + } + clear_has_regex(); +} +inline const ::std::string& GetTableNamesRequest::regex() const { + return *regex_; +} +inline void GetTableNamesRequest::set_regex(const ::std::string& value) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(value); +} +inline void GetTableNamesRequest::set_regex(const char* value) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(value); +} +inline void GetTableNamesRequest::set_regex(const char* value, size_t size) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetTableNamesRequest::mutable_regex() { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + return regex_; +} +inline ::std::string* GetTableNamesRequest::release_regex() { + clear_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = regex_; + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetTableNamesRequest::set_allocated_regex(::std::string* regex) { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + delete regex_; + } + if (regex) { + set_has_regex(); + regex_ = regex; + } else { + clear_has_regex(); + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool include_sys_tables = 2 [default = false]; +inline bool GetTableNamesRequest::has_include_sys_tables() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetTableNamesRequest::set_has_include_sys_tables() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetTableNamesRequest::clear_has_include_sys_tables() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetTableNamesRequest::clear_include_sys_tables() { + include_sys_tables_ = false; + clear_has_include_sys_tables(); +} +inline bool GetTableNamesRequest::include_sys_tables() const { + return include_sys_tables_; +} +inline void GetTableNamesRequest::set_include_sys_tables(bool value) { + set_has_include_sys_tables(); + include_sys_tables_ = value; +} + +// optional string namespace = 3; +inline bool GetTableNamesRequest::has_namespace_() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GetTableNamesRequest::set_has_namespace_() { + _has_bits_[0] |= 0x00000004u; +} +inline void GetTableNamesRequest::clear_has_namespace_() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GetTableNamesRequest::clear_namespace_() { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + namespace__->clear(); + } + clear_has_namespace_(); +} +inline const ::std::string& GetTableNamesRequest::namespace_() const { + return *namespace__; +} +inline void GetTableNamesRequest::set_namespace_(const ::std::string& value) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(value); +} +inline void GetTableNamesRequest::set_namespace_(const char* value) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(value); +} +inline void GetTableNamesRequest::set_namespace_(const char* value, size_t size) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetTableNamesRequest::mutable_namespace_() { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + return namespace__; +} +inline ::std::string* GetTableNamesRequest::release_namespace_() { + clear_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespace__; + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetTableNamesRequest::set_allocated_namespace_(::std::string* namespace_) { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + delete namespace__; + } + if (namespace_) { + set_has_namespace_(); + namespace__ = namespace_; + } else { + clear_has_namespace_(); + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// GetTableNamesResponse + +// repeated .hbase.pb.TableName table_names = 1; +inline int GetTableNamesResponse::table_names_size() const { + return table_names_.size(); +} +inline void GetTableNamesResponse::clear_table_names() { + table_names_.Clear(); +} +inline const ::hbase::pb::TableName& GetTableNamesResponse::table_names(int index) const { + return table_names_.Get(index); +} +inline ::hbase::pb::TableName* GetTableNamesResponse::mutable_table_names(int index) { + return table_names_.Mutable(index); +} +inline ::hbase::pb::TableName* GetTableNamesResponse::add_table_names() { + return table_names_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& +GetTableNamesResponse::table_names() const { + return table_names_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* +GetTableNamesResponse::mutable_table_names() { + return &table_names_; +} + +// ------------------------------------------------------------------- + +// GetTableStateRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool GetTableStateRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetTableStateRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetTableStateRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetTableStateRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& GetTableStateRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* GetTableStateRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* GetTableStateRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void GetTableStateRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// ------------------------------------------------------------------- + +// GetTableStateResponse + +// required .hbase.pb.TableState table_state = 1; +inline bool GetTableStateResponse::has_table_state() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetTableStateResponse::set_has_table_state() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetTableStateResponse::clear_has_table_state() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetTableStateResponse::clear_table_state() { + if (table_state_ != NULL) table_state_->::hbase::pb::TableState::Clear(); + clear_has_table_state(); +} +inline const ::hbase::pb::TableState& GetTableStateResponse::table_state() const { + return table_state_ != NULL ? *table_state_ : *default_instance_->table_state_; +} +inline ::hbase::pb::TableState* GetTableStateResponse::mutable_table_state() { + set_has_table_state(); + if (table_state_ == NULL) table_state_ = new ::hbase::pb::TableState; + return table_state_; +} +inline ::hbase::pb::TableState* GetTableStateResponse::release_table_state() { + clear_has_table_state(); + ::hbase::pb::TableState* temp = table_state_; + table_state_ = NULL; + return temp; +} +inline void GetTableStateResponse::set_allocated_table_state(::hbase::pb::TableState* table_state) { + delete table_state_; + table_state_ = table_state; + if (table_state) { + set_has_table_state(); + } else { + clear_has_table_state(); + } +} + +// ------------------------------------------------------------------- + +// GetClusterStatusRequest + +// ------------------------------------------------------------------- + +// GetClusterStatusResponse + +// required .hbase.pb.ClusterStatus cluster_status = 1; +inline bool GetClusterStatusResponse::has_cluster_status() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetClusterStatusResponse::set_has_cluster_status() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetClusterStatusResponse::clear_has_cluster_status() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetClusterStatusResponse::clear_cluster_status() { + if (cluster_status_ != NULL) cluster_status_->::hbase::pb::ClusterStatus::Clear(); + clear_has_cluster_status(); +} +inline const ::hbase::pb::ClusterStatus& GetClusterStatusResponse::cluster_status() const { + return cluster_status_ != NULL ? *cluster_status_ : *default_instance_->cluster_status_; +} +inline ::hbase::pb::ClusterStatus* GetClusterStatusResponse::mutable_cluster_status() { + set_has_cluster_status(); + if (cluster_status_ == NULL) cluster_status_ = new ::hbase::pb::ClusterStatus; + return cluster_status_; +} +inline ::hbase::pb::ClusterStatus* GetClusterStatusResponse::release_cluster_status() { + clear_has_cluster_status(); + ::hbase::pb::ClusterStatus* temp = cluster_status_; + cluster_status_ = NULL; + return temp; +} +inline void GetClusterStatusResponse::set_allocated_cluster_status(::hbase::pb::ClusterStatus* cluster_status) { + delete cluster_status_; + cluster_status_ = cluster_status; + if (cluster_status) { + set_has_cluster_status(); + } else { + clear_has_cluster_status(); + } +} + +// ------------------------------------------------------------------- + +// IsMasterRunningRequest + +// ------------------------------------------------------------------- + +// IsMasterRunningResponse + +// required bool is_master_running = 1; +inline bool IsMasterRunningResponse::has_is_master_running() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsMasterRunningResponse::set_has_is_master_running() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsMasterRunningResponse::clear_has_is_master_running() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsMasterRunningResponse::clear_is_master_running() { + is_master_running_ = false; + clear_has_is_master_running(); +} +inline bool IsMasterRunningResponse::is_master_running() const { + return is_master_running_; +} +inline void IsMasterRunningResponse::set_is_master_running(bool value) { + set_has_is_master_running(); + is_master_running_ = value; +} + +// ------------------------------------------------------------------- + +// ExecProcedureRequest + +// required .hbase.pb.ProcedureDescription procedure = 1; +inline bool ExecProcedureRequest::has_procedure() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ExecProcedureRequest::set_has_procedure() { + _has_bits_[0] |= 0x00000001u; +} +inline void ExecProcedureRequest::clear_has_procedure() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ExecProcedureRequest::clear_procedure() { + if (procedure_ != NULL) procedure_->::hbase::pb::ProcedureDescription::Clear(); + clear_has_procedure(); +} +inline const ::hbase::pb::ProcedureDescription& ExecProcedureRequest::procedure() const { + return procedure_ != NULL ? *procedure_ : *default_instance_->procedure_; +} +inline ::hbase::pb::ProcedureDescription* ExecProcedureRequest::mutable_procedure() { + set_has_procedure(); + if (procedure_ == NULL) procedure_ = new ::hbase::pb::ProcedureDescription; + return procedure_; +} +inline ::hbase::pb::ProcedureDescription* ExecProcedureRequest::release_procedure() { + clear_has_procedure(); + ::hbase::pb::ProcedureDescription* temp = procedure_; + procedure_ = NULL; + return temp; +} +inline void ExecProcedureRequest::set_allocated_procedure(::hbase::pb::ProcedureDescription* procedure) { + delete procedure_; + procedure_ = procedure; + if (procedure) { + set_has_procedure(); + } else { + clear_has_procedure(); + } +} + +// ------------------------------------------------------------------- + +// ExecProcedureResponse + +// optional int64 expected_timeout = 1; +inline bool ExecProcedureResponse::has_expected_timeout() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ExecProcedureResponse::set_has_expected_timeout() { + _has_bits_[0] |= 0x00000001u; +} +inline void ExecProcedureResponse::clear_has_expected_timeout() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ExecProcedureResponse::clear_expected_timeout() { + expected_timeout_ = GOOGLE_LONGLONG(0); + clear_has_expected_timeout(); +} +inline ::google::protobuf::int64 ExecProcedureResponse::expected_timeout() const { + return expected_timeout_; +} +inline void ExecProcedureResponse::set_expected_timeout(::google::protobuf::int64 value) { + set_has_expected_timeout(); + expected_timeout_ = value; +} + +// optional bytes return_data = 2; +inline bool ExecProcedureResponse::has_return_data() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ExecProcedureResponse::set_has_return_data() { + _has_bits_[0] |= 0x00000002u; +} +inline void ExecProcedureResponse::clear_has_return_data() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ExecProcedureResponse::clear_return_data() { + if (return_data_ != &::google::protobuf::internal::kEmptyString) { + return_data_->clear(); + } + clear_has_return_data(); +} +inline const ::std::string& ExecProcedureResponse::return_data() const { + return *return_data_; +} +inline void ExecProcedureResponse::set_return_data(const ::std::string& value) { + set_has_return_data(); + if (return_data_ == &::google::protobuf::internal::kEmptyString) { + return_data_ = new ::std::string; + } + return_data_->assign(value); +} +inline void ExecProcedureResponse::set_return_data(const char* value) { + set_has_return_data(); + if (return_data_ == &::google::protobuf::internal::kEmptyString) { + return_data_ = new ::std::string; + } + return_data_->assign(value); +} +inline void ExecProcedureResponse::set_return_data(const void* value, size_t size) { + set_has_return_data(); + if (return_data_ == &::google::protobuf::internal::kEmptyString) { + return_data_ = new ::std::string; + } + return_data_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ExecProcedureResponse::mutable_return_data() { + set_has_return_data(); + if (return_data_ == &::google::protobuf::internal::kEmptyString) { + return_data_ = new ::std::string; + } + return return_data_; +} +inline ::std::string* ExecProcedureResponse::release_return_data() { + clear_has_return_data(); + if (return_data_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = return_data_; + return_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ExecProcedureResponse::set_allocated_return_data(::std::string* return_data) { + if (return_data_ != &::google::protobuf::internal::kEmptyString) { + delete return_data_; + } + if (return_data) { + set_has_return_data(); + return_data_ = return_data; + } else { + clear_has_return_data(); + return_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// IsProcedureDoneRequest + +// optional .hbase.pb.ProcedureDescription procedure = 1; +inline bool IsProcedureDoneRequest::has_procedure() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsProcedureDoneRequest::set_has_procedure() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsProcedureDoneRequest::clear_has_procedure() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsProcedureDoneRequest::clear_procedure() { + if (procedure_ != NULL) procedure_->::hbase::pb::ProcedureDescription::Clear(); + clear_has_procedure(); +} +inline const ::hbase::pb::ProcedureDescription& IsProcedureDoneRequest::procedure() const { + return procedure_ != NULL ? *procedure_ : *default_instance_->procedure_; +} +inline ::hbase::pb::ProcedureDescription* IsProcedureDoneRequest::mutable_procedure() { + set_has_procedure(); + if (procedure_ == NULL) procedure_ = new ::hbase::pb::ProcedureDescription; + return procedure_; +} +inline ::hbase::pb::ProcedureDescription* IsProcedureDoneRequest::release_procedure() { + clear_has_procedure(); + ::hbase::pb::ProcedureDescription* temp = procedure_; + procedure_ = NULL; + return temp; +} +inline void IsProcedureDoneRequest::set_allocated_procedure(::hbase::pb::ProcedureDescription* procedure) { + delete procedure_; + procedure_ = procedure; + if (procedure) { + set_has_procedure(); + } else { + clear_has_procedure(); + } +} + +// ------------------------------------------------------------------- + +// IsProcedureDoneResponse + +// optional bool done = 1 [default = false]; +inline bool IsProcedureDoneResponse::has_done() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void IsProcedureDoneResponse::set_has_done() { + _has_bits_[0] |= 0x00000001u; +} +inline void IsProcedureDoneResponse::clear_has_done() { + _has_bits_[0] &= ~0x00000001u; +} +inline void IsProcedureDoneResponse::clear_done() { + done_ = false; + clear_has_done(); +} +inline bool IsProcedureDoneResponse::done() const { + return done_; +} +inline void IsProcedureDoneResponse::set_done(bool value) { + set_has_done(); + done_ = value; +} + +// optional .hbase.pb.ProcedureDescription snapshot = 2; +inline bool IsProcedureDoneResponse::has_snapshot() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void IsProcedureDoneResponse::set_has_snapshot() { + _has_bits_[0] |= 0x00000002u; +} +inline void IsProcedureDoneResponse::clear_has_snapshot() { + _has_bits_[0] &= ~0x00000002u; +} +inline void IsProcedureDoneResponse::clear_snapshot() { + if (snapshot_ != NULL) snapshot_->::hbase::pb::ProcedureDescription::Clear(); + clear_has_snapshot(); +} +inline const ::hbase::pb::ProcedureDescription& IsProcedureDoneResponse::snapshot() const { + return snapshot_ != NULL ? *snapshot_ : *default_instance_->snapshot_; +} +inline ::hbase::pb::ProcedureDescription* IsProcedureDoneResponse::mutable_snapshot() { + set_has_snapshot(); + if (snapshot_ == NULL) snapshot_ = new ::hbase::pb::ProcedureDescription; + return snapshot_; +} +inline ::hbase::pb::ProcedureDescription* IsProcedureDoneResponse::release_snapshot() { + clear_has_snapshot(); + ::hbase::pb::ProcedureDescription* temp = snapshot_; + snapshot_ = NULL; + return temp; +} +inline void IsProcedureDoneResponse::set_allocated_snapshot(::hbase::pb::ProcedureDescription* snapshot) { + delete snapshot_; + snapshot_ = snapshot; + if (snapshot) { + set_has_snapshot(); + } else { + clear_has_snapshot(); + } +} + +// ------------------------------------------------------------------- + +// GetProcedureResultRequest + +// required uint64 proc_id = 1; +inline bool GetProcedureResultRequest::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetProcedureResultRequest::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetProcedureResultRequest::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetProcedureResultRequest::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 GetProcedureResultRequest::proc_id() const { + return proc_id_; +} +inline void GetProcedureResultRequest::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// GetProcedureResultResponse + +// required .hbase.pb.GetProcedureResultResponse.State state = 1; +inline bool GetProcedureResultResponse::has_state() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetProcedureResultResponse::set_has_state() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetProcedureResultResponse::clear_has_state() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetProcedureResultResponse::clear_state() { + state_ = 0; + clear_has_state(); +} +inline ::hbase::pb::GetProcedureResultResponse_State GetProcedureResultResponse::state() const { + return static_cast< ::hbase::pb::GetProcedureResultResponse_State >(state_); +} +inline void GetProcedureResultResponse::set_state(::hbase::pb::GetProcedureResultResponse_State value) { + assert(::hbase::pb::GetProcedureResultResponse_State_IsValid(value)); + set_has_state(); + state_ = value; +} + +// optional uint64 start_time = 2; +inline bool GetProcedureResultResponse::has_start_time() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GetProcedureResultResponse::set_has_start_time() { + _has_bits_[0] |= 0x00000002u; +} +inline void GetProcedureResultResponse::clear_has_start_time() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GetProcedureResultResponse::clear_start_time() { + start_time_ = GOOGLE_ULONGLONG(0); + clear_has_start_time(); +} +inline ::google::protobuf::uint64 GetProcedureResultResponse::start_time() const { + return start_time_; +} +inline void GetProcedureResultResponse::set_start_time(::google::protobuf::uint64 value) { + set_has_start_time(); + start_time_ = value; +} + +// optional uint64 last_update = 3; +inline bool GetProcedureResultResponse::has_last_update() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GetProcedureResultResponse::set_has_last_update() { + _has_bits_[0] |= 0x00000004u; +} +inline void GetProcedureResultResponse::clear_has_last_update() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GetProcedureResultResponse::clear_last_update() { + last_update_ = GOOGLE_ULONGLONG(0); + clear_has_last_update(); +} +inline ::google::protobuf::uint64 GetProcedureResultResponse::last_update() const { + return last_update_; +} +inline void GetProcedureResultResponse::set_last_update(::google::protobuf::uint64 value) { + set_has_last_update(); + last_update_ = value; +} + +// optional bytes result = 4; +inline bool GetProcedureResultResponse::has_result() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void GetProcedureResultResponse::set_has_result() { + _has_bits_[0] |= 0x00000008u; +} +inline void GetProcedureResultResponse::clear_has_result() { + _has_bits_[0] &= ~0x00000008u; +} +inline void GetProcedureResultResponse::clear_result() { + if (result_ != &::google::protobuf::internal::kEmptyString) { + result_->clear(); + } + clear_has_result(); +} +inline const ::std::string& GetProcedureResultResponse::result() const { + return *result_; +} +inline void GetProcedureResultResponse::set_result(const ::std::string& value) { + set_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + result_ = new ::std::string; + } + result_->assign(value); +} +inline void GetProcedureResultResponse::set_result(const char* value) { + set_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + result_ = new ::std::string; + } + result_->assign(value); +} +inline void GetProcedureResultResponse::set_result(const void* value, size_t size) { + set_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + result_ = new ::std::string; + } + result_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetProcedureResultResponse::mutable_result() { + set_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + result_ = new ::std::string; + } + return result_; +} +inline ::std::string* GetProcedureResultResponse::release_result() { + clear_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = result_; + result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetProcedureResultResponse::set_allocated_result(::std::string* result) { + if (result_ != &::google::protobuf::internal::kEmptyString) { + delete result_; + } + if (result) { + set_has_result(); + result_ = result; + } else { + clear_has_result(); + result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.ForeignExceptionMessage exception = 5; +inline bool GetProcedureResultResponse::has_exception() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void GetProcedureResultResponse::set_has_exception() { + _has_bits_[0] |= 0x00000010u; +} +inline void GetProcedureResultResponse::clear_has_exception() { + _has_bits_[0] &= ~0x00000010u; +} +inline void GetProcedureResultResponse::clear_exception() { + if (exception_ != NULL) exception_->::hbase::pb::ForeignExceptionMessage::Clear(); + clear_has_exception(); +} +inline const ::hbase::pb::ForeignExceptionMessage& GetProcedureResultResponse::exception() const { + return exception_ != NULL ? *exception_ : *default_instance_->exception_; +} +inline ::hbase::pb::ForeignExceptionMessage* GetProcedureResultResponse::mutable_exception() { + set_has_exception(); + if (exception_ == NULL) exception_ = new ::hbase::pb::ForeignExceptionMessage; + return exception_; +} +inline ::hbase::pb::ForeignExceptionMessage* GetProcedureResultResponse::release_exception() { + clear_has_exception(); + ::hbase::pb::ForeignExceptionMessage* temp = exception_; + exception_ = NULL; + return temp; +} +inline void GetProcedureResultResponse::set_allocated_exception(::hbase::pb::ForeignExceptionMessage* exception) { + delete exception_; + exception_ = exception; + if (exception) { + set_has_exception(); + } else { + clear_has_exception(); + } +} + +// ------------------------------------------------------------------- + +// AbortProcedureRequest + +// required uint64 proc_id = 1; +inline bool AbortProcedureRequest::has_proc_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AbortProcedureRequest::set_has_proc_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void AbortProcedureRequest::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AbortProcedureRequest::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 AbortProcedureRequest::proc_id() const { + return proc_id_; +} +inline void AbortProcedureRequest::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// optional bool mayInterruptIfRunning = 2 [default = true]; +inline bool AbortProcedureRequest::has_mayinterruptifrunning() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AbortProcedureRequest::set_has_mayinterruptifrunning() { + _has_bits_[0] |= 0x00000002u; +} +inline void AbortProcedureRequest::clear_has_mayinterruptifrunning() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AbortProcedureRequest::clear_mayinterruptifrunning() { + mayinterruptifrunning_ = true; + clear_has_mayinterruptifrunning(); +} +inline bool AbortProcedureRequest::mayinterruptifrunning() const { + return mayinterruptifrunning_; +} +inline void AbortProcedureRequest::set_mayinterruptifrunning(bool value) { + set_has_mayinterruptifrunning(); + mayinterruptifrunning_ = value; +} + +// ------------------------------------------------------------------- + +// AbortProcedureResponse + +// required bool is_procedure_aborted = 1; +inline bool AbortProcedureResponse::has_is_procedure_aborted() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AbortProcedureResponse::set_has_is_procedure_aborted() { + _has_bits_[0] |= 0x00000001u; +} +inline void AbortProcedureResponse::clear_has_is_procedure_aborted() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AbortProcedureResponse::clear_is_procedure_aborted() { + is_procedure_aborted_ = false; + clear_has_is_procedure_aborted(); +} +inline bool AbortProcedureResponse::is_procedure_aborted() const { + return is_procedure_aborted_; +} +inline void AbortProcedureResponse::set_is_procedure_aborted(bool value) { + set_has_is_procedure_aborted(); + is_procedure_aborted_ = value; +} + +// ------------------------------------------------------------------- + +// ListProceduresRequest + +// ------------------------------------------------------------------- + +// ListProceduresResponse + +// repeated .hbase.pb.Procedure procedure = 1; +inline int ListProceduresResponse::procedure_size() const { + return procedure_.size(); +} +inline void ListProceduresResponse::clear_procedure() { + procedure_.Clear(); +} +inline const ::hbase::pb::Procedure& ListProceduresResponse::procedure(int index) const { + return procedure_.Get(index); +} +inline ::hbase::pb::Procedure* ListProceduresResponse::mutable_procedure(int index) { + return procedure_.Mutable(index); +} +inline ::hbase::pb::Procedure* ListProceduresResponse::add_procedure() { + return procedure_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure >& +ListProceduresResponse::procedure() const { + return procedure_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure >* +ListProceduresResponse::mutable_procedure() { + return &procedure_; +} + +// ------------------------------------------------------------------- + +// SetQuotaRequest + +// optional string user_name = 1; +inline bool SetQuotaRequest::has_user_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SetQuotaRequest::set_has_user_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void SetQuotaRequest::clear_has_user_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SetQuotaRequest::clear_user_name() { + if (user_name_ != &::google::protobuf::internal::kEmptyString) { + user_name_->clear(); + } + clear_has_user_name(); +} +inline const ::std::string& SetQuotaRequest::user_name() const { + return *user_name_; +} +inline void SetQuotaRequest::set_user_name(const ::std::string& value) { + set_has_user_name(); + if (user_name_ == &::google::protobuf::internal::kEmptyString) { + user_name_ = new ::std::string; + } + user_name_->assign(value); +} +inline void SetQuotaRequest::set_user_name(const char* value) { + set_has_user_name(); + if (user_name_ == &::google::protobuf::internal::kEmptyString) { + user_name_ = new ::std::string; + } + user_name_->assign(value); +} +inline void SetQuotaRequest::set_user_name(const char* value, size_t size) { + set_has_user_name(); + if (user_name_ == &::google::protobuf::internal::kEmptyString) { + user_name_ = new ::std::string; + } + user_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SetQuotaRequest::mutable_user_name() { + set_has_user_name(); + if (user_name_ == &::google::protobuf::internal::kEmptyString) { + user_name_ = new ::std::string; + } + return user_name_; +} +inline ::std::string* SetQuotaRequest::release_user_name() { + clear_has_user_name(); + if (user_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_name_; + user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SetQuotaRequest::set_allocated_user_name(::std::string* user_name) { + if (user_name_ != &::google::protobuf::internal::kEmptyString) { + delete user_name_; + } + if (user_name) { + set_has_user_name(); + user_name_ = user_name; + } else { + clear_has_user_name(); + user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string user_group = 2; +inline bool SetQuotaRequest::has_user_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SetQuotaRequest::set_has_user_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void SetQuotaRequest::clear_has_user_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SetQuotaRequest::clear_user_group() { + if (user_group_ != &::google::protobuf::internal::kEmptyString) { + user_group_->clear(); + } + clear_has_user_group(); +} +inline const ::std::string& SetQuotaRequest::user_group() const { + return *user_group_; +} +inline void SetQuotaRequest::set_user_group(const ::std::string& value) { + set_has_user_group(); + if (user_group_ == &::google::protobuf::internal::kEmptyString) { + user_group_ = new ::std::string; + } + user_group_->assign(value); +} +inline void SetQuotaRequest::set_user_group(const char* value) { + set_has_user_group(); + if (user_group_ == &::google::protobuf::internal::kEmptyString) { + user_group_ = new ::std::string; + } + user_group_->assign(value); +} +inline void SetQuotaRequest::set_user_group(const char* value, size_t size) { + set_has_user_group(); + if (user_group_ == &::google::protobuf::internal::kEmptyString) { + user_group_ = new ::std::string; + } + user_group_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SetQuotaRequest::mutable_user_group() { + set_has_user_group(); + if (user_group_ == &::google::protobuf::internal::kEmptyString) { + user_group_ = new ::std::string; + } + return user_group_; +} +inline ::std::string* SetQuotaRequest::release_user_group() { + clear_has_user_group(); + if (user_group_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_group_; + user_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SetQuotaRequest::set_allocated_user_group(::std::string* user_group) { + if (user_group_ != &::google::protobuf::internal::kEmptyString) { + delete user_group_; + } + if (user_group) { + set_has_user_group(); + user_group_ = user_group; + } else { + clear_has_user_group(); + user_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string namespace = 3; +inline bool SetQuotaRequest::has_namespace_() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SetQuotaRequest::set_has_namespace_() { + _has_bits_[0] |= 0x00000004u; +} +inline void SetQuotaRequest::clear_has_namespace_() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SetQuotaRequest::clear_namespace_() { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + namespace__->clear(); + } + clear_has_namespace_(); +} +inline const ::std::string& SetQuotaRequest::namespace_() const { + return *namespace__; +} +inline void SetQuotaRequest::set_namespace_(const ::std::string& value) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(value); +} +inline void SetQuotaRequest::set_namespace_(const char* value) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(value); +} +inline void SetQuotaRequest::set_namespace_(const char* value, size_t size) { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + namespace__->assign(reinterpret_cast(value), size); +} +inline ::std::string* SetQuotaRequest::mutable_namespace_() { + set_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + namespace__ = new ::std::string; + } + return namespace__; +} +inline ::std::string* SetQuotaRequest::release_namespace_() { + clear_has_namespace_(); + if (namespace__ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespace__; + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SetQuotaRequest::set_allocated_namespace_(::std::string* namespace_) { + if (namespace__ != &::google::protobuf::internal::kEmptyString) { + delete namespace__; + } + if (namespace_) { + set_has_namespace_(); + namespace__ = namespace_; + } else { + clear_has_namespace_(); + namespace__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.TableName table_name = 4; +inline bool SetQuotaRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void SetQuotaRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000008u; +} +inline void SetQuotaRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000008u; +} +inline void SetQuotaRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& SetQuotaRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* SetQuotaRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* SetQuotaRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void SetQuotaRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional bool remove_all = 5; +inline bool SetQuotaRequest::has_remove_all() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void SetQuotaRequest::set_has_remove_all() { + _has_bits_[0] |= 0x00000010u; +} +inline void SetQuotaRequest::clear_has_remove_all() { + _has_bits_[0] &= ~0x00000010u; +} +inline void SetQuotaRequest::clear_remove_all() { + remove_all_ = false; + clear_has_remove_all(); +} +inline bool SetQuotaRequest::remove_all() const { + return remove_all_; +} +inline void SetQuotaRequest::set_remove_all(bool value) { + set_has_remove_all(); + remove_all_ = value; +} + +// optional bool bypass_globals = 6; +inline bool SetQuotaRequest::has_bypass_globals() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void SetQuotaRequest::set_has_bypass_globals() { + _has_bits_[0] |= 0x00000020u; +} +inline void SetQuotaRequest::clear_has_bypass_globals() { + _has_bits_[0] &= ~0x00000020u; +} +inline void SetQuotaRequest::clear_bypass_globals() { + bypass_globals_ = false; + clear_has_bypass_globals(); +} +inline bool SetQuotaRequest::bypass_globals() const { + return bypass_globals_; +} +inline void SetQuotaRequest::set_bypass_globals(bool value) { + set_has_bypass_globals(); + bypass_globals_ = value; +} + +// optional .hbase.pb.ThrottleRequest throttle = 7; +inline bool SetQuotaRequest::has_throttle() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void SetQuotaRequest::set_has_throttle() { + _has_bits_[0] |= 0x00000040u; +} +inline void SetQuotaRequest::clear_has_throttle() { + _has_bits_[0] &= ~0x00000040u; +} +inline void SetQuotaRequest::clear_throttle() { + if (throttle_ != NULL) throttle_->::hbase::pb::ThrottleRequest::Clear(); + clear_has_throttle(); +} +inline const ::hbase::pb::ThrottleRequest& SetQuotaRequest::throttle() const { + return throttle_ != NULL ? *throttle_ : *default_instance_->throttle_; +} +inline ::hbase::pb::ThrottleRequest* SetQuotaRequest::mutable_throttle() { + set_has_throttle(); + if (throttle_ == NULL) throttle_ = new ::hbase::pb::ThrottleRequest; + return throttle_; +} +inline ::hbase::pb::ThrottleRequest* SetQuotaRequest::release_throttle() { + clear_has_throttle(); + ::hbase::pb::ThrottleRequest* temp = throttle_; + throttle_ = NULL; + return temp; +} +inline void SetQuotaRequest::set_allocated_throttle(::hbase::pb::ThrottleRequest* throttle) { + delete throttle_; + throttle_ = throttle; + if (throttle) { + set_has_throttle(); + } else { + clear_has_throttle(); + } +} + +// ------------------------------------------------------------------- + +// SetQuotaResponse + +// ------------------------------------------------------------------- + +// MajorCompactionTimestampRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool MajorCompactionTimestampRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MajorCompactionTimestampRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void MajorCompactionTimestampRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MajorCompactionTimestampRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& MajorCompactionTimestampRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* MajorCompactionTimestampRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* MajorCompactionTimestampRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void MajorCompactionTimestampRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// ------------------------------------------------------------------- + +// MajorCompactionTimestampForRegionRequest + +// required .hbase.pb.RegionSpecifier region = 1; +inline bool MajorCompactionTimestampForRegionRequest::has_region() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MajorCompactionTimestampForRegionRequest::set_has_region() { + _has_bits_[0] |= 0x00000001u; +} +inline void MajorCompactionTimestampForRegionRequest::clear_has_region() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MajorCompactionTimestampForRegionRequest::clear_region() { + if (region_ != NULL) region_->::hbase::pb::RegionSpecifier::Clear(); + clear_has_region(); +} +inline const ::hbase::pb::RegionSpecifier& MajorCompactionTimestampForRegionRequest::region() const { + return region_ != NULL ? *region_ : *default_instance_->region_; +} +inline ::hbase::pb::RegionSpecifier* MajorCompactionTimestampForRegionRequest::mutable_region() { + set_has_region(); + if (region_ == NULL) region_ = new ::hbase::pb::RegionSpecifier; + return region_; +} +inline ::hbase::pb::RegionSpecifier* MajorCompactionTimestampForRegionRequest::release_region() { + clear_has_region(); + ::hbase::pb::RegionSpecifier* temp = region_; + region_ = NULL; + return temp; +} +inline void MajorCompactionTimestampForRegionRequest::set_allocated_region(::hbase::pb::RegionSpecifier* region) { + delete region_; + region_ = region; + if (region) { + set_has_region(); + } else { + clear_has_region(); + } +} + +// ------------------------------------------------------------------- + +// MajorCompactionTimestampResponse + +// required int64 compaction_timestamp = 1; +inline bool MajorCompactionTimestampResponse::has_compaction_timestamp() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MajorCompactionTimestampResponse::set_has_compaction_timestamp() { + _has_bits_[0] |= 0x00000001u; +} +inline void MajorCompactionTimestampResponse::clear_has_compaction_timestamp() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MajorCompactionTimestampResponse::clear_compaction_timestamp() { + compaction_timestamp_ = GOOGLE_LONGLONG(0); + clear_has_compaction_timestamp(); +} +inline ::google::protobuf::int64 MajorCompactionTimestampResponse::compaction_timestamp() const { + return compaction_timestamp_; +} +inline void MajorCompactionTimestampResponse::set_compaction_timestamp(::google::protobuf::int64 value) { + set_has_compaction_timestamp(); + compaction_timestamp_ = value; +} + +// ------------------------------------------------------------------- + +// SecurityCapabilitiesRequest + +// ------------------------------------------------------------------- + +// SecurityCapabilitiesResponse + +// repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1; +inline int SecurityCapabilitiesResponse::capabilities_size() const { + return capabilities_.size(); +} +inline void SecurityCapabilitiesResponse::clear_capabilities() { + capabilities_.Clear(); +} +inline ::hbase::pb::SecurityCapabilitiesResponse_Capability SecurityCapabilitiesResponse::capabilities(int index) const { + return static_cast< ::hbase::pb::SecurityCapabilitiesResponse_Capability >(capabilities_.Get(index)); +} +inline void SecurityCapabilitiesResponse::set_capabilities(int index, ::hbase::pb::SecurityCapabilitiesResponse_Capability value) { + assert(::hbase::pb::SecurityCapabilitiesResponse_Capability_IsValid(value)); + capabilities_.Set(index, value); +} +inline void SecurityCapabilitiesResponse::add_capabilities(::hbase::pb::SecurityCapabilitiesResponse_Capability value) { + assert(::hbase::pb::SecurityCapabilitiesResponse_Capability_IsValid(value)); + capabilities_.Add(value); +} +inline const ::google::protobuf::RepeatedField& +SecurityCapabilitiesResponse::capabilities() const { + return capabilities_; +} +inline ::google::protobuf::RepeatedField* +SecurityCapabilitiesResponse::mutable_capabilities() { + return &capabilities_; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::GetProcedureResultResponse_State>() { + return ::hbase::pb::GetProcedureResultResponse_State_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::SecurityCapabilitiesResponse_Capability>() { + return ::hbase::pb::SecurityCapabilitiesResponse_Capability_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::MasterSwitchType>() { + return ::hbase::pb::MasterSwitchType_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Master_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/MasterProcedure.pb.cc b/hbase-native-client/src/rpc/generated/MasterProcedure.pb.cc new file mode 100644 index 0000000..25d36a7 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/MasterProcedure.pb.cc @@ -0,0 +1,5041 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MasterProcedure.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "MasterProcedure.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* CreateTableStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CreateTableStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyTableStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyTableStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* TruncateTableStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TruncateTableStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteTableStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteTableStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* CreateNamespaceStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CreateNamespaceStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyNamespaceStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyNamespaceStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteNamespaceStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteNamespaceStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* AddColumnFamilyStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AddColumnFamilyStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* ModifyColumnFamilyStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ModifyColumnFamilyStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* DeleteColumnFamilyStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeleteColumnFamilyStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* EnableTableStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EnableTableStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* DisableTableStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DisableTableStateData_reflection_ = NULL; +const ::google::protobuf::Descriptor* ServerCrashStateData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ServerCrashStateData_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* CreateTableState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* ModifyTableState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* TruncateTableState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* DeleteTableState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* CreateNamespaceState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* ModifyNamespaceState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* DeleteNamespaceState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* AddColumnFamilyState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* ModifyColumnFamilyState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* DeleteColumnFamilyState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* EnableTableState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* DisableTableState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* ServerCrashState_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_MasterProcedure_2eproto() { + protobuf_AddDesc_MasterProcedure_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "MasterProcedure.proto"); + GOOGLE_CHECK(file != NULL); + CreateTableStateData_descriptor_ = file->message_type(0); + static const int CreateTableStateData_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableStateData, table_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableStateData, region_info_), + }; + CreateTableStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CreateTableStateData_descriptor_, + CreateTableStateData::default_instance_, + CreateTableStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateTableStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CreateTableStateData)); + ModifyTableStateData_descriptor_ = file->message_type(1); + static const int ModifyTableStateData_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableStateData, unmodified_table_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableStateData, modified_table_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableStateData, delete_column_family_in_modify_), + }; + ModifyTableStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyTableStateData_descriptor_, + ModifyTableStateData::default_instance_, + ModifyTableStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyTableStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyTableStateData)); + TruncateTableStateData_descriptor_ = file->message_type(2); + static const int TruncateTableStateData_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableStateData, preserve_splits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableStateData, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableStateData, table_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableStateData, region_info_), + }; + TruncateTableStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TruncateTableStateData_descriptor_, + TruncateTableStateData::default_instance_, + TruncateTableStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TruncateTableStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TruncateTableStateData)); + DeleteTableStateData_descriptor_ = file->message_type(3); + static const int DeleteTableStateData_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableStateData, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableStateData, region_info_), + }; + DeleteTableStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteTableStateData_descriptor_, + DeleteTableStateData::default_instance_, + DeleteTableStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteTableStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteTableStateData)); + CreateNamespaceStateData_descriptor_ = file->message_type(4); + static const int CreateNamespaceStateData_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceStateData, namespace_descriptor_), + }; + CreateNamespaceStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CreateNamespaceStateData_descriptor_, + CreateNamespaceStateData::default_instance_, + CreateNamespaceStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateNamespaceStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CreateNamespaceStateData)); + ModifyNamespaceStateData_descriptor_ = file->message_type(5); + static const int ModifyNamespaceStateData_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceStateData, namespace_descriptor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceStateData, unmodified_namespace_descriptor_), + }; + ModifyNamespaceStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyNamespaceStateData_descriptor_, + ModifyNamespaceStateData::default_instance_, + ModifyNamespaceStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyNamespaceStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyNamespaceStateData)); + DeleteNamespaceStateData_descriptor_ = file->message_type(6); + static const int DeleteNamespaceStateData_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceStateData, namespace_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceStateData, namespace_descriptor_), + }; + DeleteNamespaceStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteNamespaceStateData_descriptor_, + DeleteNamespaceStateData::default_instance_, + DeleteNamespaceStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteNamespaceStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteNamespaceStateData)); + AddColumnFamilyStateData_descriptor_ = file->message_type(7); + static const int AddColumnFamilyStateData_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnFamilyStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnFamilyStateData, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnFamilyStateData, columnfamily_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnFamilyStateData, unmodified_table_schema_), + }; + AddColumnFamilyStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AddColumnFamilyStateData_descriptor_, + AddColumnFamilyStateData::default_instance_, + AddColumnFamilyStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnFamilyStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddColumnFamilyStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AddColumnFamilyStateData)); + ModifyColumnFamilyStateData_descriptor_ = file->message_type(8); + static const int ModifyColumnFamilyStateData_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnFamilyStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnFamilyStateData, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnFamilyStateData, columnfamily_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnFamilyStateData, unmodified_table_schema_), + }; + ModifyColumnFamilyStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ModifyColumnFamilyStateData_descriptor_, + ModifyColumnFamilyStateData::default_instance_, + ModifyColumnFamilyStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnFamilyStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ModifyColumnFamilyStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ModifyColumnFamilyStateData)); + DeleteColumnFamilyStateData_descriptor_ = file->message_type(9); + static const int DeleteColumnFamilyStateData_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnFamilyStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnFamilyStateData, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnFamilyStateData, columnfamily_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnFamilyStateData, unmodified_table_schema_), + }; + DeleteColumnFamilyStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeleteColumnFamilyStateData_descriptor_, + DeleteColumnFamilyStateData::default_instance_, + DeleteColumnFamilyStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnFamilyStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeleteColumnFamilyStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeleteColumnFamilyStateData)); + EnableTableStateData_descriptor_ = file->message_type(10); + static const int EnableTableStateData_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableStateData, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableStateData, skip_table_state_check_), + }; + EnableTableStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EnableTableStateData_descriptor_, + EnableTableStateData::default_instance_, + EnableTableStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnableTableStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EnableTableStateData)); + DisableTableStateData_descriptor_ = file->message_type(11); + static const int DisableTableStateData_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableStateData, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableStateData, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableStateData, skip_table_state_check_), + }; + DisableTableStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DisableTableStateData_descriptor_, + DisableTableStateData::default_instance_, + DisableTableStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DisableTableStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DisableTableStateData)); + ServerCrashStateData_descriptor_ = file->message_type(12); + static const int ServerCrashStateData_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerCrashStateData, server_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerCrashStateData, distributed_log_replay_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerCrashStateData, regions_on_crashed_server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerCrashStateData, regions_assigned_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerCrashStateData, carrying_meta_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerCrashStateData, should_split_wal_), + }; + ServerCrashStateData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ServerCrashStateData_descriptor_, + ServerCrashStateData::default_instance_, + ServerCrashStateData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerCrashStateData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerCrashStateData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ServerCrashStateData)); + CreateTableState_descriptor_ = file->enum_type(0); + ModifyTableState_descriptor_ = file->enum_type(1); + TruncateTableState_descriptor_ = file->enum_type(2); + DeleteTableState_descriptor_ = file->enum_type(3); + CreateNamespaceState_descriptor_ = file->enum_type(4); + ModifyNamespaceState_descriptor_ = file->enum_type(5); + DeleteNamespaceState_descriptor_ = file->enum_type(6); + AddColumnFamilyState_descriptor_ = file->enum_type(7); + ModifyColumnFamilyState_descriptor_ = file->enum_type(8); + DeleteColumnFamilyState_descriptor_ = file->enum_type(9); + EnableTableState_descriptor_ = file->enum_type(10); + DisableTableState_descriptor_ = file->enum_type(11); + ServerCrashState_descriptor_ = file->enum_type(12); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_MasterProcedure_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CreateTableStateData_descriptor_, &CreateTableStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyTableStateData_descriptor_, &ModifyTableStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TruncateTableStateData_descriptor_, &TruncateTableStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteTableStateData_descriptor_, &DeleteTableStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CreateNamespaceStateData_descriptor_, &CreateNamespaceStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyNamespaceStateData_descriptor_, &ModifyNamespaceStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteNamespaceStateData_descriptor_, &DeleteNamespaceStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AddColumnFamilyStateData_descriptor_, &AddColumnFamilyStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ModifyColumnFamilyStateData_descriptor_, &ModifyColumnFamilyStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeleteColumnFamilyStateData_descriptor_, &DeleteColumnFamilyStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EnableTableStateData_descriptor_, &EnableTableStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DisableTableStateData_descriptor_, &DisableTableStateData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ServerCrashStateData_descriptor_, &ServerCrashStateData::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_MasterProcedure_2eproto() { + delete CreateTableStateData::default_instance_; + delete CreateTableStateData_reflection_; + delete ModifyTableStateData::default_instance_; + delete ModifyTableStateData_reflection_; + delete TruncateTableStateData::default_instance_; + delete TruncateTableStateData_reflection_; + delete DeleteTableStateData::default_instance_; + delete DeleteTableStateData_reflection_; + delete CreateNamespaceStateData::default_instance_; + delete CreateNamespaceStateData_reflection_; + delete ModifyNamespaceStateData::default_instance_; + delete ModifyNamespaceStateData_reflection_; + delete DeleteNamespaceStateData::default_instance_; + delete DeleteNamespaceStateData_reflection_; + delete AddColumnFamilyStateData::default_instance_; + delete AddColumnFamilyStateData_reflection_; + delete ModifyColumnFamilyStateData::default_instance_; + delete ModifyColumnFamilyStateData_reflection_; + delete DeleteColumnFamilyStateData::default_instance_; + delete DeleteColumnFamilyStateData_reflection_; + delete EnableTableStateData::default_instance_; + delete EnableTableStateData_reflection_; + delete DisableTableStateData::default_instance_; + delete DisableTableStateData_reflection_; + delete ServerCrashStateData::default_instance_; + delete ServerCrashStateData_reflection_; +} + +void protobuf_AddDesc_MasterProcedure_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_RPC_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\025MasterProcedure.proto\022\010hbase.pb\032\013HBase" + ".proto\032\tRPC.proto\"\234\001\n\024CreateTableStateDa" + "ta\022,\n\tuser_info\030\001 \002(\0132\031.hbase.pb.UserInf" + "ormation\022+\n\014table_schema\030\002 \002(\0132\025.hbase.p" + "b.TableSchema\022)\n\013region_info\030\003 \003(\0132\024.hba" + "se.pb.RegionInfo\"\332\001\n\024ModifyTableStateDat" + "a\022,\n\tuser_info\030\001 \002(\0132\031.hbase.pb.UserInfo" + "rmation\0226\n\027unmodified_table_schema\030\002 \001(\013" + "2\025.hbase.pb.TableSchema\0224\n\025modified_tabl" + "e_schema\030\003 \002(\0132\025.hbase.pb.TableSchema\022&\n" + "\036delete_column_family_in_modify\030\004 \002(\010\"\340\001" + "\n\026TruncateTableStateData\022,\n\tuser_info\030\001 " + "\002(\0132\031.hbase.pb.UserInformation\022\027\n\017preser" + "ve_splits\030\002 \002(\010\022\'\n\ntable_name\030\003 \001(\0132\023.hb" + "ase.pb.TableName\022+\n\014table_schema\030\004 \001(\0132\025" + ".hbase.pb.TableSchema\022)\n\013region_info\030\005 \003" + "(\0132\024.hbase.pb.RegionInfo\"\230\001\n\024DeleteTable" + "StateData\022,\n\tuser_info\030\001 \002(\0132\031.hbase.pb." + "UserInformation\022\'\n\ntable_name\030\002 \002(\0132\023.hb" + "ase.pb.TableName\022)\n\013region_info\030\003 \003(\0132\024." + "hbase.pb.RegionInfo\"W\n\030CreateNamespaceSt" + "ateData\022;\n\024namespace_descriptor\030\001 \002(\0132\035." + "hbase.pb.NamespaceDescriptor\"\237\001\n\030ModifyN" + "amespaceStateData\022;\n\024namespace_descripto" + "r\030\001 \002(\0132\035.hbase.pb.NamespaceDescriptor\022F" + "\n\037unmodified_namespace_descriptor\030\002 \001(\0132" + "\035.hbase.pb.NamespaceDescriptor\"o\n\030Delete" + "NamespaceStateData\022\026\n\016namespace_name\030\001 \002" + "(\t\022;\n\024namespace_descriptor\030\002 \001(\0132\035.hbase" + ".pb.NamespaceDescriptor\"\344\001\n\030AddColumnFam" + "ilyStateData\022,\n\tuser_info\030\001 \002(\0132\031.hbase." + "pb.UserInformation\022\'\n\ntable_name\030\002 \002(\0132\023" + ".hbase.pb.TableName\0229\n\023columnfamily_sche" + "ma\030\003 \002(\0132\034.hbase.pb.ColumnFamilySchema\0226" + "\n\027unmodified_table_schema\030\004 \001(\0132\025.hbase." + "pb.TableSchema\"\347\001\n\033ModifyColumnFamilySta" + "teData\022,\n\tuser_info\030\001 \002(\0132\031.hbase.pb.Use" + "rInformation\022\'\n\ntable_name\030\002 \002(\0132\023.hbase" + ".pb.TableName\0229\n\023columnfamily_schema\030\003 \002" + "(\0132\034.hbase.pb.ColumnFamilySchema\0226\n\027unmo" + "dified_table_schema\030\004 \001(\0132\025.hbase.pb.Tab" + "leSchema\"\307\001\n\033DeleteColumnFamilyStateData" + "\022,\n\tuser_info\030\001 \002(\0132\031.hbase.pb.UserInfor" + "mation\022\'\n\ntable_name\030\002 \002(\0132\023.hbase.pb.Ta" + "bleName\022\031\n\021columnfamily_name\030\003 \002(\014\0226\n\027un" + "modified_table_schema\030\004 \001(\0132\025.hbase.pb.T" + "ableSchema\"\215\001\n\024EnableTableStateData\022,\n\tu" + "ser_info\030\001 \002(\0132\031.hbase.pb.UserInformatio" + "n\022\'\n\ntable_name\030\002 \002(\0132\023.hbase.pb.TableNa" + "me\022\036\n\026skip_table_state_check\030\003 \002(\010\"\216\001\n\025D" + "isableTableStateData\022,\n\tuser_info\030\001 \002(\0132" + "\031.hbase.pb.UserInformation\022\'\n\ntable_name" + "\030\002 \002(\0132\023.hbase.pb.TableName\022\036\n\026skip_tabl" + "e_state_check\030\003 \002(\010\"\201\002\n\024ServerCrashState" + "Data\022)\n\013server_name\030\001 \002(\0132\024.hbase.pb.Ser" + "verName\022\036\n\026distributed_log_replay\030\002 \001(\010\022" + "7\n\031regions_on_crashed_server\030\003 \003(\0132\024.hba" + "se.pb.RegionInfo\022.\n\020regions_assigned\030\004 \003" + "(\0132\024.hbase.pb.RegionInfo\022\025\n\rcarrying_met" + "a\030\005 \001(\010\022\036\n\020should_split_wal\030\006 \001(\010:\004true*" + "\330\001\n\020CreateTableState\022\036\n\032CREATE_TABLE_PRE" + "_OPERATION\020\001\022 \n\034CREATE_TABLE_WRITE_FS_LA" + "YOUT\020\002\022\034\n\030CREATE_TABLE_ADD_TO_META\020\003\022\037\n\033" + "CREATE_TABLE_ASSIGN_REGIONS\020\004\022\"\n\036CREATE_" + "TABLE_UPDATE_DESC_CACHE\020\005\022\037\n\033CREATE_TABL" + "E_POST_OPERATION\020\006*\207\002\n\020ModifyTableState\022" + "\030\n\024MODIFY_TABLE_PREPARE\020\001\022\036\n\032MODIFY_TABL" + "E_PRE_OPERATION\020\002\022(\n$MODIFY_TABLE_UPDATE" + "_TABLE_DESCRIPTOR\020\003\022&\n\"MODIFY_TABLE_REMO" + "VE_REPLICA_COLUMN\020\004\022!\n\035MODIFY_TABLE_DELE" + "TE_FS_LAYOUT\020\005\022\037\n\033MODIFY_TABLE_POST_OPER" + "ATION\020\006\022#\n\037MODIFY_TABLE_REOPEN_ALL_REGIO" + "NS\020\007*\212\002\n\022TruncateTableState\022 \n\034TRUNCATE_" + "TABLE_PRE_OPERATION\020\001\022#\n\037TRUNCATE_TABLE_" + "REMOVE_FROM_META\020\002\022\"\n\036TRUNCATE_TABLE_CLE" + "AR_FS_LAYOUT\020\003\022#\n\037TRUNCATE_TABLE_CREATE_" + "FS_LAYOUT\020\004\022\036\n\032TRUNCATE_TABLE_ADD_TO_MET" + "A\020\005\022!\n\035TRUNCATE_TABLE_ASSIGN_REGIONS\020\006\022!" + "\n\035TRUNCATE_TABLE_POST_OPERATION\020\007*\337\001\n\020De" + "leteTableState\022\036\n\032DELETE_TABLE_PRE_OPERA" + "TION\020\001\022!\n\035DELETE_TABLE_REMOVE_FROM_META\020" + "\002\022 \n\034DELETE_TABLE_CLEAR_FS_LAYOUT\020\003\022\"\n\036D" + "ELETE_TABLE_UPDATE_DESC_CACHE\020\004\022!\n\035DELET" + "E_TABLE_UNASSIGN_REGIONS\020\005\022\037\n\033DELETE_TAB" + "LE_POST_OPERATION\020\006*\320\001\n\024CreateNamespaceS" + "tate\022\034\n\030CREATE_NAMESPACE_PREPARE\020\001\022%\n!CR" + "EATE_NAMESPACE_CREATE_DIRECTORY\020\002\022)\n%CRE" + "ATE_NAMESPACE_INSERT_INTO_NS_TABLE\020\003\022\036\n\032" + "CREATE_NAMESPACE_UPDATE_ZK\020\004\022(\n$CREATE_N" + "AMESPACE_SET_NAMESPACE_QUOTA\020\005*z\n\024Modify" + "NamespaceState\022\034\n\030MODIFY_NAMESPACE_PREPA" + "RE\020\001\022$\n MODIFY_NAMESPACE_UPDATE_NS_TABLE" + "\020\002\022\036\n\032MODIFY_NAMESPACE_UPDATE_ZK\020\003*\332\001\n\024D" + "eleteNamespaceState\022\034\n\030DELETE_NAMESPACE_" + "PREPARE\020\001\022)\n%DELETE_NAMESPACE_DELETE_FRO" + "M_NS_TABLE\020\002\022#\n\037DELETE_NAMESPACE_REMOVE_" + "FROM_ZK\020\003\022\'\n#DELETE_NAMESPACE_DELETE_DIR" + "ECTORIES\020\004\022+\n\'DELETE_NAMESPACE_REMOVE_NA" + "MESPACE_QUOTA\020\005*\331\001\n\024AddColumnFamilyState" + "\022\035\n\031ADD_COLUMN_FAMILY_PREPARE\020\001\022#\n\037ADD_C" + "OLUMN_FAMILY_PRE_OPERATION\020\002\022-\n)ADD_COLU" + "MN_FAMILY_UPDATE_TABLE_DESCRIPTOR\020\003\022$\n A" + "DD_COLUMN_FAMILY_POST_OPERATION\020\004\022(\n$ADD" + "_COLUMN_FAMILY_REOPEN_ALL_REGIONS\020\005*\353\001\n\027" + "ModifyColumnFamilyState\022 \n\034MODIFY_COLUMN" + "_FAMILY_PREPARE\020\001\022&\n\"MODIFY_COLUMN_FAMIL" + "Y_PRE_OPERATION\020\002\0220\n,MODIFY_COLUMN_FAMIL" + "Y_UPDATE_TABLE_DESCRIPTOR\020\003\022\'\n#MODIFY_CO" + "LUMN_FAMILY_POST_OPERATION\020\004\022+\n\'MODIFY_C" + "OLUMN_FAMILY_REOPEN_ALL_REGIONS\020\005*\226\002\n\027De" + "leteColumnFamilyState\022 \n\034DELETE_COLUMN_F" + "AMILY_PREPARE\020\001\022&\n\"DELETE_COLUMN_FAMILY_" + "PRE_OPERATION\020\002\0220\n,DELETE_COLUMN_FAMILY_" + "UPDATE_TABLE_DESCRIPTOR\020\003\022)\n%DELETE_COLU" + "MN_FAMILY_DELETE_FS_LAYOUT\020\004\022\'\n#DELETE_C" + "OLUMN_FAMILY_POST_OPERATION\020\005\022+\n\'DELETE_" + "COLUMN_FAMILY_REOPEN_ALL_REGIONS\020\006*\350\001\n\020E" + "nableTableState\022\030\n\024ENABLE_TABLE_PREPARE\020" + "\001\022\036\n\032ENABLE_TABLE_PRE_OPERATION\020\002\022)\n%ENA" + "BLE_TABLE_SET_ENABLING_TABLE_STATE\020\003\022$\n " + "ENABLE_TABLE_MARK_REGIONS_ONLINE\020\004\022(\n$EN" + "ABLE_TABLE_SET_ENABLED_TABLE_STATE\020\005\022\037\n\033" + "ENABLE_TABLE_POST_OPERATION\020\006*\362\001\n\021Disabl" + "eTableState\022\031\n\025DISABLE_TABLE_PREPARE\020\001\022\037" + "\n\033DISABLE_TABLE_PRE_OPERATION\020\002\022+\n\'DISAB" + "LE_TABLE_SET_DISABLING_TABLE_STATE\020\003\022&\n\"" + "DISABLE_TABLE_MARK_REGIONS_OFFLINE\020\004\022*\n&" + "DISABLE_TABLE_SET_DISABLED_TABLE_STATE\020\005" + "\022 \n\034DISABLE_TABLE_POST_OPERATION\020\006*\234\002\n\020S" + "erverCrashState\022\026\n\022SERVER_CRASH_START\020\001\022" + "\035\n\031SERVER_CRASH_PROCESS_META\020\002\022\034\n\030SERVER" + "_CRASH_GET_REGIONS\020\003\022\036\n\032SERVER_CRASH_NO_" + "SPLIT_LOGS\020\004\022\033\n\027SERVER_CRASH_SPLIT_LOGS\020" + "\005\022#\n\037SERVER_CRASH_PREPARE_LOG_REPLAY\020\006\022\027" + "\n\023SERVER_CRASH_ASSIGN\020\010\022\037\n\033SERVER_CRASH_" + "WAIT_ON_ASSIGN\020\t\022\027\n\023SERVER_CRASH_FINISH\020" + "dBK\n*org.apache.hadoop.hbase.protobuf.ge" + "neratedB\025MasterProcedureProtosH\001\210\001\001\240\001\001", 5518); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "MasterProcedure.proto", &protobuf_RegisterTypes); + CreateTableStateData::default_instance_ = new CreateTableStateData(); + ModifyTableStateData::default_instance_ = new ModifyTableStateData(); + TruncateTableStateData::default_instance_ = new TruncateTableStateData(); + DeleteTableStateData::default_instance_ = new DeleteTableStateData(); + CreateNamespaceStateData::default_instance_ = new CreateNamespaceStateData(); + ModifyNamespaceStateData::default_instance_ = new ModifyNamespaceStateData(); + DeleteNamespaceStateData::default_instance_ = new DeleteNamespaceStateData(); + AddColumnFamilyStateData::default_instance_ = new AddColumnFamilyStateData(); + ModifyColumnFamilyStateData::default_instance_ = new ModifyColumnFamilyStateData(); + DeleteColumnFamilyStateData::default_instance_ = new DeleteColumnFamilyStateData(); + EnableTableStateData::default_instance_ = new EnableTableStateData(); + DisableTableStateData::default_instance_ = new DisableTableStateData(); + ServerCrashStateData::default_instance_ = new ServerCrashStateData(); + CreateTableStateData::default_instance_->InitAsDefaultInstance(); + ModifyTableStateData::default_instance_->InitAsDefaultInstance(); + TruncateTableStateData::default_instance_->InitAsDefaultInstance(); + DeleteTableStateData::default_instance_->InitAsDefaultInstance(); + CreateNamespaceStateData::default_instance_->InitAsDefaultInstance(); + ModifyNamespaceStateData::default_instance_->InitAsDefaultInstance(); + DeleteNamespaceStateData::default_instance_->InitAsDefaultInstance(); + AddColumnFamilyStateData::default_instance_->InitAsDefaultInstance(); + ModifyColumnFamilyStateData::default_instance_->InitAsDefaultInstance(); + DeleteColumnFamilyStateData::default_instance_->InitAsDefaultInstance(); + EnableTableStateData::default_instance_->InitAsDefaultInstance(); + DisableTableStateData::default_instance_->InitAsDefaultInstance(); + ServerCrashStateData::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_MasterProcedure_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_MasterProcedure_2eproto { + StaticDescriptorInitializer_MasterProcedure_2eproto() { + protobuf_AddDesc_MasterProcedure_2eproto(); + } +} static_descriptor_initializer_MasterProcedure_2eproto_; +const ::google::protobuf::EnumDescriptor* CreateTableState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateTableState_descriptor_; +} +bool CreateTableState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* ModifyTableState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyTableState_descriptor_; +} +bool ModifyTableState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* TruncateTableState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return TruncateTableState_descriptor_; +} +bool TruncateTableState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* DeleteTableState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteTableState_descriptor_; +} +bool DeleteTableState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* CreateNamespaceState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateNamespaceState_descriptor_; +} +bool CreateNamespaceState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* ModifyNamespaceState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyNamespaceState_descriptor_; +} +bool ModifyNamespaceState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* DeleteNamespaceState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteNamespaceState_descriptor_; +} +bool DeleteNamespaceState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* AddColumnFamilyState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return AddColumnFamilyState_descriptor_; +} +bool AddColumnFamilyState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* ModifyColumnFamilyState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyColumnFamilyState_descriptor_; +} +bool ModifyColumnFamilyState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* DeleteColumnFamilyState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteColumnFamilyState_descriptor_; +} +bool DeleteColumnFamilyState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* EnableTableState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return EnableTableState_descriptor_; +} +bool EnableTableState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* DisableTableState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return DisableTableState_descriptor_; +} +bool DisableTableState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* ServerCrashState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ServerCrashState_descriptor_; +} +bool ServerCrashState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 8: + case 9: + case 100: + return true; + default: + return false; + } +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CreateTableStateData::kUserInfoFieldNumber; +const int CreateTableStateData::kTableSchemaFieldNumber; +const int CreateTableStateData::kRegionInfoFieldNumber; +#endif // !_MSC_VER + +CreateTableStateData::CreateTableStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CreateTableStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +CreateTableStateData::CreateTableStateData(const CreateTableStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CreateTableStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + table_schema_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CreateTableStateData::~CreateTableStateData() { + SharedDtor(); +} + +void CreateTableStateData::SharedDtor() { + if (this != default_instance_) { + delete user_info_; + delete table_schema_; + } +} + +void CreateTableStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateTableStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateTableStateData_descriptor_; +} + +const CreateTableStateData& CreateTableStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +CreateTableStateData* CreateTableStateData::default_instance_ = NULL; + +CreateTableStateData* CreateTableStateData::New() const { + return new CreateTableStateData; +} + +void CreateTableStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_table_schema()) { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + } + } + region_info_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CreateTableStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_schema; + break; + } + + // required .hbase.pb.TableSchema table_schema = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_region_info; + break; + } + + // repeated .hbase.pb.RegionInfo region_info = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_region_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_region_info; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CreateTableStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // required .hbase.pb.TableSchema table_schema = 2; + if (has_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_schema(), output); + } + + // repeated .hbase.pb.RegionInfo region_info = 3; + for (int i = 0; i < this->region_info_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->region_info(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CreateTableStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // required .hbase.pb.TableSchema table_schema = 2; + if (has_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_schema(), target); + } + + // repeated .hbase.pb.RegionInfo region_info = 3; + for (int i = 0; i < this->region_info_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->region_info(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CreateTableStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // required .hbase.pb.TableSchema table_schema = 2; + if (has_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_schema()); + } + + } + // repeated .hbase.pb.RegionInfo region_info = 3; + total_size += 1 * this->region_info_size(); + for (int i = 0; i < this->region_info_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_info(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CreateTableStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CreateTableStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CreateTableStateData::MergeFrom(const CreateTableStateData& from) { + GOOGLE_CHECK_NE(&from, this); + region_info_.MergeFrom(from.region_info_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_table_schema()) { + mutable_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.table_schema()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CreateTableStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateTableStateData::CopyFrom(const CreateTableStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateTableStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_table_schema()) { + if (!this->table_schema().IsInitialized()) return false; + } + for (int i = 0; i < region_info_size(); i++) { + if (!this->region_info(i).IsInitialized()) return false; + } + return true; +} + +void CreateTableStateData::Swap(CreateTableStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(table_schema_, other->table_schema_); + region_info_.Swap(&other->region_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CreateTableStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CreateTableStateData_descriptor_; + metadata.reflection = CreateTableStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyTableStateData::kUserInfoFieldNumber; +const int ModifyTableStateData::kUnmodifiedTableSchemaFieldNumber; +const int ModifyTableStateData::kModifiedTableSchemaFieldNumber; +const int ModifyTableStateData::kDeleteColumnFamilyInModifyFieldNumber; +#endif // !_MSC_VER + +ModifyTableStateData::ModifyTableStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyTableStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + unmodified_table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); + modified_table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +ModifyTableStateData::ModifyTableStateData(const ModifyTableStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyTableStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + unmodified_table_schema_ = NULL; + modified_table_schema_ = NULL; + delete_column_family_in_modify_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyTableStateData::~ModifyTableStateData() { + SharedDtor(); +} + +void ModifyTableStateData::SharedDtor() { + if (this != default_instance_) { + delete user_info_; + delete unmodified_table_schema_; + delete modified_table_schema_; + } +} + +void ModifyTableStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyTableStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyTableStateData_descriptor_; +} + +const ModifyTableStateData& ModifyTableStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +ModifyTableStateData* ModifyTableStateData::default_instance_ = NULL; + +ModifyTableStateData* ModifyTableStateData::New() const { + return new ModifyTableStateData; +} + +void ModifyTableStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_unmodified_table_schema()) { + if (unmodified_table_schema_ != NULL) unmodified_table_schema_->::hbase::pb::TableSchema::Clear(); + } + if (has_modified_table_schema()) { + if (modified_table_schema_ != NULL) modified_table_schema_->::hbase::pb::TableSchema::Clear(); + } + delete_column_family_in_modify_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyTableStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_unmodified_table_schema; + break; + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_unmodified_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_unmodified_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_modified_table_schema; + break; + } + + // required .hbase.pb.TableSchema modified_table_schema = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_modified_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_modified_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_delete_column_family_in_modify; + break; + } + + // required bool delete_column_family_in_modify = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_delete_column_family_in_modify: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &delete_column_family_in_modify_))); + set_has_delete_column_family_in_modify(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyTableStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 2; + if (has_unmodified_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->unmodified_table_schema(), output); + } + + // required .hbase.pb.TableSchema modified_table_schema = 3; + if (has_modified_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->modified_table_schema(), output); + } + + // required bool delete_column_family_in_modify = 4; + if (has_delete_column_family_in_modify()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->delete_column_family_in_modify(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyTableStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 2; + if (has_unmodified_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->unmodified_table_schema(), target); + } + + // required .hbase.pb.TableSchema modified_table_schema = 3; + if (has_modified_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->modified_table_schema(), target); + } + + // required bool delete_column_family_in_modify = 4; + if (has_delete_column_family_in_modify()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->delete_column_family_in_modify(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyTableStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 2; + if (has_unmodified_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->unmodified_table_schema()); + } + + // required .hbase.pb.TableSchema modified_table_schema = 3; + if (has_modified_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->modified_table_schema()); + } + + // required bool delete_column_family_in_modify = 4; + if (has_delete_column_family_in_modify()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyTableStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyTableStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyTableStateData::MergeFrom(const ModifyTableStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_unmodified_table_schema()) { + mutable_unmodified_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.unmodified_table_schema()); + } + if (from.has_modified_table_schema()) { + mutable_modified_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.modified_table_schema()); + } + if (from.has_delete_column_family_in_modify()) { + set_delete_column_family_in_modify(from.delete_column_family_in_modify()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyTableStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyTableStateData::CopyFrom(const ModifyTableStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyTableStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000d) != 0x0000000d) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_unmodified_table_schema()) { + if (!this->unmodified_table_schema().IsInitialized()) return false; + } + if (has_modified_table_schema()) { + if (!this->modified_table_schema().IsInitialized()) return false; + } + return true; +} + +void ModifyTableStateData::Swap(ModifyTableStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(unmodified_table_schema_, other->unmodified_table_schema_); + std::swap(modified_table_schema_, other->modified_table_schema_); + std::swap(delete_column_family_in_modify_, other->delete_column_family_in_modify_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyTableStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyTableStateData_descriptor_; + metadata.reflection = ModifyTableStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TruncateTableStateData::kUserInfoFieldNumber; +const int TruncateTableStateData::kPreserveSplitsFieldNumber; +const int TruncateTableStateData::kTableNameFieldNumber; +const int TruncateTableStateData::kTableSchemaFieldNumber; +const int TruncateTableStateData::kRegionInfoFieldNumber; +#endif // !_MSC_VER + +TruncateTableStateData::TruncateTableStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TruncateTableStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +TruncateTableStateData::TruncateTableStateData(const TruncateTableStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TruncateTableStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + preserve_splits_ = false; + table_name_ = NULL; + table_schema_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TruncateTableStateData::~TruncateTableStateData() { + SharedDtor(); +} + +void TruncateTableStateData::SharedDtor() { + if (this != default_instance_) { + delete user_info_; + delete table_name_; + delete table_schema_; + } +} + +void TruncateTableStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TruncateTableStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TruncateTableStateData_descriptor_; +} + +const TruncateTableStateData& TruncateTableStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +TruncateTableStateData* TruncateTableStateData::default_instance_ = NULL; + +TruncateTableStateData* TruncateTableStateData::New() const { + return new TruncateTableStateData; +} + +void TruncateTableStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + preserve_splits_ = false; + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_table_schema()) { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + } + } + region_info_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TruncateTableStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_preserve_splits; + break; + } + + // required bool preserve_splits = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_preserve_splits: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &preserve_splits_))); + set_has_preserve_splits(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_table_name; + break; + } + + // optional .hbase.pb.TableName table_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_table_schema; + break; + } + + // optional .hbase.pb.TableSchema table_schema = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_region_info; + break; + } + + // repeated .hbase.pb.RegionInfo region_info = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_region_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_region_info; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TruncateTableStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // required bool preserve_splits = 2; + if (has_preserve_splits()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->preserve_splits(), output); + } + + // optional .hbase.pb.TableName table_name = 3; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->table_name(), output); + } + + // optional .hbase.pb.TableSchema table_schema = 4; + if (has_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->table_schema(), output); + } + + // repeated .hbase.pb.RegionInfo region_info = 5; + for (int i = 0; i < this->region_info_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->region_info(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TruncateTableStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // required bool preserve_splits = 2; + if (has_preserve_splits()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->preserve_splits(), target); + } + + // optional .hbase.pb.TableName table_name = 3; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->table_name(), target); + } + + // optional .hbase.pb.TableSchema table_schema = 4; + if (has_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->table_schema(), target); + } + + // repeated .hbase.pb.RegionInfo region_info = 5; + for (int i = 0; i < this->region_info_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->region_info(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TruncateTableStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // required bool preserve_splits = 2; + if (has_preserve_splits()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.TableName table_name = 3; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional .hbase.pb.TableSchema table_schema = 4; + if (has_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_schema()); + } + + } + // repeated .hbase.pb.RegionInfo region_info = 5; + total_size += 1 * this->region_info_size(); + for (int i = 0; i < this->region_info_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_info(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TruncateTableStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TruncateTableStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TruncateTableStateData::MergeFrom(const TruncateTableStateData& from) { + GOOGLE_CHECK_NE(&from, this); + region_info_.MergeFrom(from.region_info_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_preserve_splits()) { + set_preserve_splits(from.preserve_splits()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_table_schema()) { + mutable_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.table_schema()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TruncateTableStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TruncateTableStateData::CopyFrom(const TruncateTableStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TruncateTableStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_table_schema()) { + if (!this->table_schema().IsInitialized()) return false; + } + for (int i = 0; i < region_info_size(); i++) { + if (!this->region_info(i).IsInitialized()) return false; + } + return true; +} + +void TruncateTableStateData::Swap(TruncateTableStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(preserve_splits_, other->preserve_splits_); + std::swap(table_name_, other->table_name_); + std::swap(table_schema_, other->table_schema_); + region_info_.Swap(&other->region_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TruncateTableStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TruncateTableStateData_descriptor_; + metadata.reflection = TruncateTableStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteTableStateData::kUserInfoFieldNumber; +const int DeleteTableStateData::kTableNameFieldNumber; +const int DeleteTableStateData::kRegionInfoFieldNumber; +#endif // !_MSC_VER + +DeleteTableStateData::DeleteTableStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteTableStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +DeleteTableStateData::DeleteTableStateData(const DeleteTableStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteTableStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + table_name_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteTableStateData::~DeleteTableStateData() { + SharedDtor(); +} + +void DeleteTableStateData::SharedDtor() { + if (this != default_instance_) { + delete user_info_; + delete table_name_; + } +} + +void DeleteTableStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteTableStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteTableStateData_descriptor_; +} + +const DeleteTableStateData& DeleteTableStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +DeleteTableStateData* DeleteTableStateData::default_instance_ = NULL; + +DeleteTableStateData* DeleteTableStateData::New() const { + return new DeleteTableStateData; +} + +void DeleteTableStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + } + region_info_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteTableStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_region_info; + break; + } + + // repeated .hbase.pb.RegionInfo region_info = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_region_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_region_info; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteTableStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(), output); + } + + // repeated .hbase.pb.RegionInfo region_info = 3; + for (int i = 0; i < this->region_info_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->region_info(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteTableStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(), target); + } + + // repeated .hbase.pb.RegionInfo region_info = 3; + for (int i = 0; i < this->region_info_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->region_info(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteTableStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + } + // repeated .hbase.pb.RegionInfo region_info = 3; + total_size += 1 * this->region_info_size(); + for (int i = 0; i < this->region_info_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_info(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteTableStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteTableStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteTableStateData::MergeFrom(const DeleteTableStateData& from) { + GOOGLE_CHECK_NE(&from, this); + region_info_.MergeFrom(from.region_info_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteTableStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteTableStateData::CopyFrom(const DeleteTableStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteTableStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + for (int i = 0; i < region_info_size(); i++) { + if (!this->region_info(i).IsInitialized()) return false; + } + return true; +} + +void DeleteTableStateData::Swap(DeleteTableStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(table_name_, other->table_name_); + region_info_.Swap(&other->region_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteTableStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteTableStateData_descriptor_; + metadata.reflection = DeleteTableStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CreateNamespaceStateData::kNamespaceDescriptorFieldNumber; +#endif // !_MSC_VER + +CreateNamespaceStateData::CreateNamespaceStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CreateNamespaceStateData::InitAsDefaultInstance() { + namespace_descriptor_ = const_cast< ::hbase::pb::NamespaceDescriptor*>(&::hbase::pb::NamespaceDescriptor::default_instance()); +} + +CreateNamespaceStateData::CreateNamespaceStateData(const CreateNamespaceStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CreateNamespaceStateData::SharedCtor() { + _cached_size_ = 0; + namespace_descriptor_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CreateNamespaceStateData::~CreateNamespaceStateData() { + SharedDtor(); +} + +void CreateNamespaceStateData::SharedDtor() { + if (this != default_instance_) { + delete namespace_descriptor_; + } +} + +void CreateNamespaceStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateNamespaceStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CreateNamespaceStateData_descriptor_; +} + +const CreateNamespaceStateData& CreateNamespaceStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +CreateNamespaceStateData* CreateNamespaceStateData::default_instance_ = NULL; + +CreateNamespaceStateData* CreateNamespaceStateData::New() const { + return new CreateNamespaceStateData; +} + +void CreateNamespaceStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespace_descriptor()) { + if (namespace_descriptor_ != NULL) namespace_descriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CreateNamespaceStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_namespace_descriptor())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CreateNamespaceStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + if (has_namespace_descriptor()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->namespace_descriptor(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CreateNamespaceStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + if (has_namespace_descriptor()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->namespace_descriptor(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CreateNamespaceStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + if (has_namespace_descriptor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->namespace_descriptor()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CreateNamespaceStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CreateNamespaceStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CreateNamespaceStateData::MergeFrom(const CreateNamespaceStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespace_descriptor()) { + mutable_namespace_descriptor()->::hbase::pb::NamespaceDescriptor::MergeFrom(from.namespace_descriptor()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CreateNamespaceStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateNamespaceStateData::CopyFrom(const CreateNamespaceStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateNamespaceStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_namespace_descriptor()) { + if (!this->namespace_descriptor().IsInitialized()) return false; + } + return true; +} + +void CreateNamespaceStateData::Swap(CreateNamespaceStateData* other) { + if (other != this) { + std::swap(namespace_descriptor_, other->namespace_descriptor_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CreateNamespaceStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CreateNamespaceStateData_descriptor_; + metadata.reflection = CreateNamespaceStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyNamespaceStateData::kNamespaceDescriptorFieldNumber; +const int ModifyNamespaceStateData::kUnmodifiedNamespaceDescriptorFieldNumber; +#endif // !_MSC_VER + +ModifyNamespaceStateData::ModifyNamespaceStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyNamespaceStateData::InitAsDefaultInstance() { + namespace_descriptor_ = const_cast< ::hbase::pb::NamespaceDescriptor*>(&::hbase::pb::NamespaceDescriptor::default_instance()); + unmodified_namespace_descriptor_ = const_cast< ::hbase::pb::NamespaceDescriptor*>(&::hbase::pb::NamespaceDescriptor::default_instance()); +} + +ModifyNamespaceStateData::ModifyNamespaceStateData(const ModifyNamespaceStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyNamespaceStateData::SharedCtor() { + _cached_size_ = 0; + namespace_descriptor_ = NULL; + unmodified_namespace_descriptor_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyNamespaceStateData::~ModifyNamespaceStateData() { + SharedDtor(); +} + +void ModifyNamespaceStateData::SharedDtor() { + if (this != default_instance_) { + delete namespace_descriptor_; + delete unmodified_namespace_descriptor_; + } +} + +void ModifyNamespaceStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyNamespaceStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyNamespaceStateData_descriptor_; +} + +const ModifyNamespaceStateData& ModifyNamespaceStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +ModifyNamespaceStateData* ModifyNamespaceStateData::default_instance_ = NULL; + +ModifyNamespaceStateData* ModifyNamespaceStateData::New() const { + return new ModifyNamespaceStateData; +} + +void ModifyNamespaceStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespace_descriptor()) { + if (namespace_descriptor_ != NULL) namespace_descriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + } + if (has_unmodified_namespace_descriptor()) { + if (unmodified_namespace_descriptor_ != NULL) unmodified_namespace_descriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyNamespaceStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_namespace_descriptor())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_unmodified_namespace_descriptor; + break; + } + + // optional .hbase.pb.NamespaceDescriptor unmodified_namespace_descriptor = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_unmodified_namespace_descriptor: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_unmodified_namespace_descriptor())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyNamespaceStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + if (has_namespace_descriptor()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->namespace_descriptor(), output); + } + + // optional .hbase.pb.NamespaceDescriptor unmodified_namespace_descriptor = 2; + if (has_unmodified_namespace_descriptor()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->unmodified_namespace_descriptor(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyNamespaceStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + if (has_namespace_descriptor()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->namespace_descriptor(), target); + } + + // optional .hbase.pb.NamespaceDescriptor unmodified_namespace_descriptor = 2; + if (has_unmodified_namespace_descriptor()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->unmodified_namespace_descriptor(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyNamespaceStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + if (has_namespace_descriptor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->namespace_descriptor()); + } + + // optional .hbase.pb.NamespaceDescriptor unmodified_namespace_descriptor = 2; + if (has_unmodified_namespace_descriptor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->unmodified_namespace_descriptor()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyNamespaceStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyNamespaceStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyNamespaceStateData::MergeFrom(const ModifyNamespaceStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespace_descriptor()) { + mutable_namespace_descriptor()->::hbase::pb::NamespaceDescriptor::MergeFrom(from.namespace_descriptor()); + } + if (from.has_unmodified_namespace_descriptor()) { + mutable_unmodified_namespace_descriptor()->::hbase::pb::NamespaceDescriptor::MergeFrom(from.unmodified_namespace_descriptor()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyNamespaceStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyNamespaceStateData::CopyFrom(const ModifyNamespaceStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyNamespaceStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_namespace_descriptor()) { + if (!this->namespace_descriptor().IsInitialized()) return false; + } + if (has_unmodified_namespace_descriptor()) { + if (!this->unmodified_namespace_descriptor().IsInitialized()) return false; + } + return true; +} + +void ModifyNamespaceStateData::Swap(ModifyNamespaceStateData* other) { + if (other != this) { + std::swap(namespace_descriptor_, other->namespace_descriptor_); + std::swap(unmodified_namespace_descriptor_, other->unmodified_namespace_descriptor_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyNamespaceStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyNamespaceStateData_descriptor_; + metadata.reflection = ModifyNamespaceStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteNamespaceStateData::kNamespaceNameFieldNumber; +const int DeleteNamespaceStateData::kNamespaceDescriptorFieldNumber; +#endif // !_MSC_VER + +DeleteNamespaceStateData::DeleteNamespaceStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteNamespaceStateData::InitAsDefaultInstance() { + namespace_descriptor_ = const_cast< ::hbase::pb::NamespaceDescriptor*>(&::hbase::pb::NamespaceDescriptor::default_instance()); +} + +DeleteNamespaceStateData::DeleteNamespaceStateData(const DeleteNamespaceStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteNamespaceStateData::SharedCtor() { + _cached_size_ = 0; + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + namespace_descriptor_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteNamespaceStateData::~DeleteNamespaceStateData() { + SharedDtor(); +} + +void DeleteNamespaceStateData::SharedDtor() { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + delete namespace_name_; + } + if (this != default_instance_) { + delete namespace_descriptor_; + } +} + +void DeleteNamespaceStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteNamespaceStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteNamespaceStateData_descriptor_; +} + +const DeleteNamespaceStateData& DeleteNamespaceStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +DeleteNamespaceStateData* DeleteNamespaceStateData::default_instance_ = NULL; + +DeleteNamespaceStateData* DeleteNamespaceStateData::New() const { + return new DeleteNamespaceStateData; +} + +void DeleteNamespaceStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_namespace_name()) { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + namespace_name_->clear(); + } + } + if (has_namespace_descriptor()) { + if (namespace_descriptor_ != NULL) namespace_descriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteNamespaceStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string namespace_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_name().data(), this->namespace_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_namespace_descriptor; + break; + } + + // optional .hbase.pb.NamespaceDescriptor namespace_descriptor = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_namespace_descriptor: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_namespace_descriptor())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteNamespaceStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string namespace_name = 1; + if (has_namespace_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_name().data(), this->namespace_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->namespace_name(), output); + } + + // optional .hbase.pb.NamespaceDescriptor namespace_descriptor = 2; + if (has_namespace_descriptor()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->namespace_descriptor(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteNamespaceStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string namespace_name = 1; + if (has_namespace_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->namespace_name().data(), this->namespace_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->namespace_name(), target); + } + + // optional .hbase.pb.NamespaceDescriptor namespace_descriptor = 2; + if (has_namespace_descriptor()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->namespace_descriptor(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteNamespaceStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string namespace_name = 1; + if (has_namespace_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_name()); + } + + // optional .hbase.pb.NamespaceDescriptor namespace_descriptor = 2; + if (has_namespace_descriptor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->namespace_descriptor()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteNamespaceStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteNamespaceStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteNamespaceStateData::MergeFrom(const DeleteNamespaceStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_namespace_name()) { + set_namespace_name(from.namespace_name()); + } + if (from.has_namespace_descriptor()) { + mutable_namespace_descriptor()->::hbase::pb::NamespaceDescriptor::MergeFrom(from.namespace_descriptor()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteNamespaceStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteNamespaceStateData::CopyFrom(const DeleteNamespaceStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteNamespaceStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_namespace_descriptor()) { + if (!this->namespace_descriptor().IsInitialized()) return false; + } + return true; +} + +void DeleteNamespaceStateData::Swap(DeleteNamespaceStateData* other) { + if (other != this) { + std::swap(namespace_name_, other->namespace_name_); + std::swap(namespace_descriptor_, other->namespace_descriptor_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteNamespaceStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteNamespaceStateData_descriptor_; + metadata.reflection = DeleteNamespaceStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AddColumnFamilyStateData::kUserInfoFieldNumber; +const int AddColumnFamilyStateData::kTableNameFieldNumber; +const int AddColumnFamilyStateData::kColumnfamilySchemaFieldNumber; +const int AddColumnFamilyStateData::kUnmodifiedTableSchemaFieldNumber; +#endif // !_MSC_VER + +AddColumnFamilyStateData::AddColumnFamilyStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AddColumnFamilyStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + columnfamily_schema_ = const_cast< ::hbase::pb::ColumnFamilySchema*>(&::hbase::pb::ColumnFamilySchema::default_instance()); + unmodified_table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +AddColumnFamilyStateData::AddColumnFamilyStateData(const AddColumnFamilyStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AddColumnFamilyStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + table_name_ = NULL; + columnfamily_schema_ = NULL; + unmodified_table_schema_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AddColumnFamilyStateData::~AddColumnFamilyStateData() { + SharedDtor(); +} + +void AddColumnFamilyStateData::SharedDtor() { + if (this != default_instance_) { + delete user_info_; + delete table_name_; + delete columnfamily_schema_; + delete unmodified_table_schema_; + } +} + +void AddColumnFamilyStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AddColumnFamilyStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AddColumnFamilyStateData_descriptor_; +} + +const AddColumnFamilyStateData& AddColumnFamilyStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +AddColumnFamilyStateData* AddColumnFamilyStateData::default_instance_ = NULL; + +AddColumnFamilyStateData* AddColumnFamilyStateData::New() const { + return new AddColumnFamilyStateData; +} + +void AddColumnFamilyStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_columnfamily_schema()) { + if (columnfamily_schema_ != NULL) columnfamily_schema_->::hbase::pb::ColumnFamilySchema::Clear(); + } + if (has_unmodified_table_schema()) { + if (unmodified_table_schema_ != NULL) unmodified_table_schema_->::hbase::pb::TableSchema::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AddColumnFamilyStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_columnfamily_schema; + break; + } + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_columnfamily_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_columnfamily_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_unmodified_table_schema; + break; + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_unmodified_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_unmodified_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AddColumnFamilyStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(), output); + } + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + if (has_columnfamily_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->columnfamily_schema(), output); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->unmodified_table_schema(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AddColumnFamilyStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(), target); + } + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + if (has_columnfamily_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->columnfamily_schema(), target); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->unmodified_table_schema(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AddColumnFamilyStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + if (has_columnfamily_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->columnfamily_schema()); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->unmodified_table_schema()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AddColumnFamilyStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AddColumnFamilyStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AddColumnFamilyStateData::MergeFrom(const AddColumnFamilyStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_columnfamily_schema()) { + mutable_columnfamily_schema()->::hbase::pb::ColumnFamilySchema::MergeFrom(from.columnfamily_schema()); + } + if (from.has_unmodified_table_schema()) { + mutable_unmodified_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.unmodified_table_schema()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AddColumnFamilyStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddColumnFamilyStateData::CopyFrom(const AddColumnFamilyStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddColumnFamilyStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_columnfamily_schema()) { + if (!this->columnfamily_schema().IsInitialized()) return false; + } + if (has_unmodified_table_schema()) { + if (!this->unmodified_table_schema().IsInitialized()) return false; + } + return true; +} + +void AddColumnFamilyStateData::Swap(AddColumnFamilyStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(table_name_, other->table_name_); + std::swap(columnfamily_schema_, other->columnfamily_schema_); + std::swap(unmodified_table_schema_, other->unmodified_table_schema_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AddColumnFamilyStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AddColumnFamilyStateData_descriptor_; + metadata.reflection = AddColumnFamilyStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ModifyColumnFamilyStateData::kUserInfoFieldNumber; +const int ModifyColumnFamilyStateData::kTableNameFieldNumber; +const int ModifyColumnFamilyStateData::kColumnfamilySchemaFieldNumber; +const int ModifyColumnFamilyStateData::kUnmodifiedTableSchemaFieldNumber; +#endif // !_MSC_VER + +ModifyColumnFamilyStateData::ModifyColumnFamilyStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ModifyColumnFamilyStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + columnfamily_schema_ = const_cast< ::hbase::pb::ColumnFamilySchema*>(&::hbase::pb::ColumnFamilySchema::default_instance()); + unmodified_table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +ModifyColumnFamilyStateData::ModifyColumnFamilyStateData(const ModifyColumnFamilyStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ModifyColumnFamilyStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + table_name_ = NULL; + columnfamily_schema_ = NULL; + unmodified_table_schema_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ModifyColumnFamilyStateData::~ModifyColumnFamilyStateData() { + SharedDtor(); +} + +void ModifyColumnFamilyStateData::SharedDtor() { + if (this != default_instance_) { + delete user_info_; + delete table_name_; + delete columnfamily_schema_; + delete unmodified_table_schema_; + } +} + +void ModifyColumnFamilyStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ModifyColumnFamilyStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ModifyColumnFamilyStateData_descriptor_; +} + +const ModifyColumnFamilyStateData& ModifyColumnFamilyStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +ModifyColumnFamilyStateData* ModifyColumnFamilyStateData::default_instance_ = NULL; + +ModifyColumnFamilyStateData* ModifyColumnFamilyStateData::New() const { + return new ModifyColumnFamilyStateData; +} + +void ModifyColumnFamilyStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_columnfamily_schema()) { + if (columnfamily_schema_ != NULL) columnfamily_schema_->::hbase::pb::ColumnFamilySchema::Clear(); + } + if (has_unmodified_table_schema()) { + if (unmodified_table_schema_ != NULL) unmodified_table_schema_->::hbase::pb::TableSchema::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ModifyColumnFamilyStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_columnfamily_schema; + break; + } + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_columnfamily_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_columnfamily_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_unmodified_table_schema; + break; + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_unmodified_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_unmodified_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ModifyColumnFamilyStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(), output); + } + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + if (has_columnfamily_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->columnfamily_schema(), output); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->unmodified_table_schema(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ModifyColumnFamilyStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(), target); + } + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + if (has_columnfamily_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->columnfamily_schema(), target); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->unmodified_table_schema(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ModifyColumnFamilyStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + if (has_columnfamily_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->columnfamily_schema()); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->unmodified_table_schema()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ModifyColumnFamilyStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ModifyColumnFamilyStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ModifyColumnFamilyStateData::MergeFrom(const ModifyColumnFamilyStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_columnfamily_schema()) { + mutable_columnfamily_schema()->::hbase::pb::ColumnFamilySchema::MergeFrom(from.columnfamily_schema()); + } + if (from.has_unmodified_table_schema()) { + mutable_unmodified_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.unmodified_table_schema()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ModifyColumnFamilyStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ModifyColumnFamilyStateData::CopyFrom(const ModifyColumnFamilyStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ModifyColumnFamilyStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_columnfamily_schema()) { + if (!this->columnfamily_schema().IsInitialized()) return false; + } + if (has_unmodified_table_schema()) { + if (!this->unmodified_table_schema().IsInitialized()) return false; + } + return true; +} + +void ModifyColumnFamilyStateData::Swap(ModifyColumnFamilyStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(table_name_, other->table_name_); + std::swap(columnfamily_schema_, other->columnfamily_schema_); + std::swap(unmodified_table_schema_, other->unmodified_table_schema_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ModifyColumnFamilyStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ModifyColumnFamilyStateData_descriptor_; + metadata.reflection = ModifyColumnFamilyStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DeleteColumnFamilyStateData::kUserInfoFieldNumber; +const int DeleteColumnFamilyStateData::kTableNameFieldNumber; +const int DeleteColumnFamilyStateData::kColumnfamilyNameFieldNumber; +const int DeleteColumnFamilyStateData::kUnmodifiedTableSchemaFieldNumber; +#endif // !_MSC_VER + +DeleteColumnFamilyStateData::DeleteColumnFamilyStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeleteColumnFamilyStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + unmodified_table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +DeleteColumnFamilyStateData::DeleteColumnFamilyStateData(const DeleteColumnFamilyStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeleteColumnFamilyStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + table_name_ = NULL; + columnfamily_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + unmodified_table_schema_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeleteColumnFamilyStateData::~DeleteColumnFamilyStateData() { + SharedDtor(); +} + +void DeleteColumnFamilyStateData::SharedDtor() { + if (columnfamily_name_ != &::google::protobuf::internal::kEmptyString) { + delete columnfamily_name_; + } + if (this != default_instance_) { + delete user_info_; + delete table_name_; + delete unmodified_table_schema_; + } +} + +void DeleteColumnFamilyStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeleteColumnFamilyStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeleteColumnFamilyStateData_descriptor_; +} + +const DeleteColumnFamilyStateData& DeleteColumnFamilyStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +DeleteColumnFamilyStateData* DeleteColumnFamilyStateData::default_instance_ = NULL; + +DeleteColumnFamilyStateData* DeleteColumnFamilyStateData::New() const { + return new DeleteColumnFamilyStateData; +} + +void DeleteColumnFamilyStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_columnfamily_name()) { + if (columnfamily_name_ != &::google::protobuf::internal::kEmptyString) { + columnfamily_name_->clear(); + } + } + if (has_unmodified_table_schema()) { + if (unmodified_table_schema_ != NULL) unmodified_table_schema_->::hbase::pb::TableSchema::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeleteColumnFamilyStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_columnfamily_name; + break; + } + + // required bytes columnfamily_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_columnfamily_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_columnfamily_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_unmodified_table_schema; + break; + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_unmodified_table_schema: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_unmodified_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeleteColumnFamilyStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(), output); + } + + // required bytes columnfamily_name = 3; + if (has_columnfamily_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->columnfamily_name(), output); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->unmodified_table_schema(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeleteColumnFamilyStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(), target); + } + + // required bytes columnfamily_name = 3; + if (has_columnfamily_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->columnfamily_name(), target); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->unmodified_table_schema(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeleteColumnFamilyStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required bytes columnfamily_name = 3; + if (has_columnfamily_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->columnfamily_name()); + } + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + if (has_unmodified_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->unmodified_table_schema()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeleteColumnFamilyStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeleteColumnFamilyStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeleteColumnFamilyStateData::MergeFrom(const DeleteColumnFamilyStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_columnfamily_name()) { + set_columnfamily_name(from.columnfamily_name()); + } + if (from.has_unmodified_table_schema()) { + mutable_unmodified_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.unmodified_table_schema()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeleteColumnFamilyStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteColumnFamilyStateData::CopyFrom(const DeleteColumnFamilyStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteColumnFamilyStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_unmodified_table_schema()) { + if (!this->unmodified_table_schema().IsInitialized()) return false; + } + return true; +} + +void DeleteColumnFamilyStateData::Swap(DeleteColumnFamilyStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(table_name_, other->table_name_); + std::swap(columnfamily_name_, other->columnfamily_name_); + std::swap(unmodified_table_schema_, other->unmodified_table_schema_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeleteColumnFamilyStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeleteColumnFamilyStateData_descriptor_; + metadata.reflection = DeleteColumnFamilyStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int EnableTableStateData::kUserInfoFieldNumber; +const int EnableTableStateData::kTableNameFieldNumber; +const int EnableTableStateData::kSkipTableStateCheckFieldNumber; +#endif // !_MSC_VER + +EnableTableStateData::EnableTableStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EnableTableStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +EnableTableStateData::EnableTableStateData(const EnableTableStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EnableTableStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + table_name_ = NULL; + skip_table_state_check_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EnableTableStateData::~EnableTableStateData() { + SharedDtor(); +} + +void EnableTableStateData::SharedDtor() { + if (this != default_instance_) { + delete user_info_; + delete table_name_; + } +} + +void EnableTableStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EnableTableStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EnableTableStateData_descriptor_; +} + +const EnableTableStateData& EnableTableStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +EnableTableStateData* EnableTableStateData::default_instance_ = NULL; + +EnableTableStateData* EnableTableStateData::New() const { + return new EnableTableStateData; +} + +void EnableTableStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + skip_table_state_check_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EnableTableStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_skip_table_state_check; + break; + } + + // required bool skip_table_state_check = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_skip_table_state_check: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &skip_table_state_check_))); + set_has_skip_table_state_check(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EnableTableStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(), output); + } + + // required bool skip_table_state_check = 3; + if (has_skip_table_state_check()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->skip_table_state_check(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EnableTableStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(), target); + } + + // required bool skip_table_state_check = 3; + if (has_skip_table_state_check()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->skip_table_state_check(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EnableTableStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required bool skip_table_state_check = 3; + if (has_skip_table_state_check()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EnableTableStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EnableTableStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EnableTableStateData::MergeFrom(const EnableTableStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_skip_table_state_check()) { + set_skip_table_state_check(from.skip_table_state_check()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EnableTableStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EnableTableStateData::CopyFrom(const EnableTableStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnableTableStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void EnableTableStateData::Swap(EnableTableStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(table_name_, other->table_name_); + std::swap(skip_table_state_check_, other->skip_table_state_check_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EnableTableStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EnableTableStateData_descriptor_; + metadata.reflection = EnableTableStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DisableTableStateData::kUserInfoFieldNumber; +const int DisableTableStateData::kTableNameFieldNumber; +const int DisableTableStateData::kSkipTableStateCheckFieldNumber; +#endif // !_MSC_VER + +DisableTableStateData::DisableTableStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DisableTableStateData::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +DisableTableStateData::DisableTableStateData(const DisableTableStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DisableTableStateData::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + table_name_ = NULL; + skip_table_state_check_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DisableTableStateData::~DisableTableStateData() { + SharedDtor(); +} + +void DisableTableStateData::SharedDtor() { + if (this != default_instance_) { + delete user_info_; + delete table_name_; + } +} + +void DisableTableStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DisableTableStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DisableTableStateData_descriptor_; +} + +const DisableTableStateData& DisableTableStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +DisableTableStateData* DisableTableStateData::default_instance_ = NULL; + +DisableTableStateData* DisableTableStateData::New() const { + return new DisableTableStateData; +} + +void DisableTableStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + skip_table_state_check_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DisableTableStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_skip_table_state_check; + break; + } + + // required bool skip_table_state_check = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_skip_table_state_check: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &skip_table_state_check_))); + set_has_skip_table_state_check(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DisableTableStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(), output); + } + + // required bool skip_table_state_check = 3; + if (has_skip_table_state_check()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->skip_table_state_check(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DisableTableStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(), target); + } + + // required bool skip_table_state_check = 3; + if (has_skip_table_state_check()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->skip_table_state_check(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DisableTableStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // required .hbase.pb.TableName table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required bool skip_table_state_check = 3; + if (has_skip_table_state_check()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DisableTableStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DisableTableStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DisableTableStateData::MergeFrom(const DisableTableStateData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_skip_table_state_check()) { + set_skip_table_state_check(from.skip_table_state_check()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DisableTableStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DisableTableStateData::CopyFrom(const DisableTableStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DisableTableStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void DisableTableStateData::Swap(DisableTableStateData* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(table_name_, other->table_name_); + std::swap(skip_table_state_check_, other->skip_table_state_check_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DisableTableStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DisableTableStateData_descriptor_; + metadata.reflection = DisableTableStateData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ServerCrashStateData::kServerNameFieldNumber; +const int ServerCrashStateData::kDistributedLogReplayFieldNumber; +const int ServerCrashStateData::kRegionsOnCrashedServerFieldNumber; +const int ServerCrashStateData::kRegionsAssignedFieldNumber; +const int ServerCrashStateData::kCarryingMetaFieldNumber; +const int ServerCrashStateData::kShouldSplitWalFieldNumber; +#endif // !_MSC_VER + +ServerCrashStateData::ServerCrashStateData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ServerCrashStateData::InitAsDefaultInstance() { + server_name_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +ServerCrashStateData::ServerCrashStateData(const ServerCrashStateData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ServerCrashStateData::SharedCtor() { + _cached_size_ = 0; + server_name_ = NULL; + distributed_log_replay_ = false; + carrying_meta_ = false; + should_split_wal_ = true; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ServerCrashStateData::~ServerCrashStateData() { + SharedDtor(); +} + +void ServerCrashStateData::SharedDtor() { + if (this != default_instance_) { + delete server_name_; + } +} + +void ServerCrashStateData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ServerCrashStateData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ServerCrashStateData_descriptor_; +} + +const ServerCrashStateData& ServerCrashStateData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MasterProcedure_2eproto(); + return *default_instance_; +} + +ServerCrashStateData* ServerCrashStateData::default_instance_ = NULL; + +ServerCrashStateData* ServerCrashStateData::New() const { + return new ServerCrashStateData; +} + +void ServerCrashStateData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server_name()) { + if (server_name_ != NULL) server_name_->::hbase::pb::ServerName::Clear(); + } + distributed_log_replay_ = false; + carrying_meta_ = false; + should_split_wal_ = true; + } + regions_on_crashed_server_.Clear(); + regions_assigned_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ServerCrashStateData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName server_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_distributed_log_replay; + break; + } + + // optional bool distributed_log_replay = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_distributed_log_replay: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &distributed_log_replay_))); + set_has_distributed_log_replay(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_regions_on_crashed_server; + break; + } + + // repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_regions_on_crashed_server: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_regions_on_crashed_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_regions_on_crashed_server; + if (input->ExpectTag(34)) goto parse_regions_assigned; + break; + } + + // repeated .hbase.pb.RegionInfo regions_assigned = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_regions_assigned: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_regions_assigned())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_regions_assigned; + if (input->ExpectTag(40)) goto parse_carrying_meta; + break; + } + + // optional bool carrying_meta = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_carrying_meta: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &carrying_meta_))); + set_has_carrying_meta(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_should_split_wal; + break; + } + + // optional bool should_split_wal = 6 [default = true]; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_should_split_wal: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &should_split_wal_))); + set_has_should_split_wal(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ServerCrashStateData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName server_name = 1; + if (has_server_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->server_name(), output); + } + + // optional bool distributed_log_replay = 2; + if (has_distributed_log_replay()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->distributed_log_replay(), output); + } + + // repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3; + for (int i = 0; i < this->regions_on_crashed_server_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->regions_on_crashed_server(i), output); + } + + // repeated .hbase.pb.RegionInfo regions_assigned = 4; + for (int i = 0; i < this->regions_assigned_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->regions_assigned(i), output); + } + + // optional bool carrying_meta = 5; + if (has_carrying_meta()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->carrying_meta(), output); + } + + // optional bool should_split_wal = 6 [default = true]; + if (has_should_split_wal()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->should_split_wal(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ServerCrashStateData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName server_name = 1; + if (has_server_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->server_name(), target); + } + + // optional bool distributed_log_replay = 2; + if (has_distributed_log_replay()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->distributed_log_replay(), target); + } + + // repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3; + for (int i = 0; i < this->regions_on_crashed_server_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->regions_on_crashed_server(i), target); + } + + // repeated .hbase.pb.RegionInfo regions_assigned = 4; + for (int i = 0; i < this->regions_assigned_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->regions_assigned(i), target); + } + + // optional bool carrying_meta = 5; + if (has_carrying_meta()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->carrying_meta(), target); + } + + // optional bool should_split_wal = 6 [default = true]; + if (has_should_split_wal()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->should_split_wal(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ServerCrashStateData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName server_name = 1; + if (has_server_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server_name()); + } + + // optional bool distributed_log_replay = 2; + if (has_distributed_log_replay()) { + total_size += 1 + 1; + } + + // optional bool carrying_meta = 5; + if (has_carrying_meta()) { + total_size += 1 + 1; + } + + // optional bool should_split_wal = 6 [default = true]; + if (has_should_split_wal()) { + total_size += 1 + 1; + } + + } + // repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3; + total_size += 1 * this->regions_on_crashed_server_size(); + for (int i = 0; i < this->regions_on_crashed_server_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->regions_on_crashed_server(i)); + } + + // repeated .hbase.pb.RegionInfo regions_assigned = 4; + total_size += 1 * this->regions_assigned_size(); + for (int i = 0; i < this->regions_assigned_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->regions_assigned(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ServerCrashStateData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ServerCrashStateData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ServerCrashStateData::MergeFrom(const ServerCrashStateData& from) { + GOOGLE_CHECK_NE(&from, this); + regions_on_crashed_server_.MergeFrom(from.regions_on_crashed_server_); + regions_assigned_.MergeFrom(from.regions_assigned_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server_name()) { + mutable_server_name()->::hbase::pb::ServerName::MergeFrom(from.server_name()); + } + if (from.has_distributed_log_replay()) { + set_distributed_log_replay(from.distributed_log_replay()); + } + if (from.has_carrying_meta()) { + set_carrying_meta(from.carrying_meta()); + } + if (from.has_should_split_wal()) { + set_should_split_wal(from.should_split_wal()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ServerCrashStateData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ServerCrashStateData::CopyFrom(const ServerCrashStateData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerCrashStateData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_server_name()) { + if (!this->server_name().IsInitialized()) return false; + } + for (int i = 0; i < regions_on_crashed_server_size(); i++) { + if (!this->regions_on_crashed_server(i).IsInitialized()) return false; + } + for (int i = 0; i < regions_assigned_size(); i++) { + if (!this->regions_assigned(i).IsInitialized()) return false; + } + return true; +} + +void ServerCrashStateData::Swap(ServerCrashStateData* other) { + if (other != this) { + std::swap(server_name_, other->server_name_); + std::swap(distributed_log_replay_, other->distributed_log_replay_); + regions_on_crashed_server_.Swap(&other->regions_on_crashed_server_); + regions_assigned_.Swap(&other->regions_assigned_); + std::swap(carrying_meta_, other->carrying_meta_); + std::swap(should_split_wal_, other->should_split_wal_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ServerCrashStateData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ServerCrashStateData_descriptor_; + metadata.reflection = ServerCrashStateData_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/MasterProcedure.pb.h b/hbase-native-client/src/rpc/generated/MasterProcedure.pb.h new file mode 100644 index 0000000..7b4efaf --- /dev/null +++ b/hbase-native-client/src/rpc/generated/MasterProcedure.pb.h @@ -0,0 +1,3495 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MasterProcedure.proto + +#ifndef PROTOBUF_MasterProcedure_2eproto__INCLUDED +#define PROTOBUF_MasterProcedure_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "RPC.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_MasterProcedure_2eproto(); +void protobuf_AssignDesc_MasterProcedure_2eproto(); +void protobuf_ShutdownFile_MasterProcedure_2eproto(); + +class CreateTableStateData; +class ModifyTableStateData; +class TruncateTableStateData; +class DeleteTableStateData; +class CreateNamespaceStateData; +class ModifyNamespaceStateData; +class DeleteNamespaceStateData; +class AddColumnFamilyStateData; +class ModifyColumnFamilyStateData; +class DeleteColumnFamilyStateData; +class EnableTableStateData; +class DisableTableStateData; +class ServerCrashStateData; + +enum CreateTableState { + CREATE_TABLE_PRE_OPERATION = 1, + CREATE_TABLE_WRITE_FS_LAYOUT = 2, + CREATE_TABLE_ADD_TO_META = 3, + CREATE_TABLE_ASSIGN_REGIONS = 4, + CREATE_TABLE_UPDATE_DESC_CACHE = 5, + CREATE_TABLE_POST_OPERATION = 6 +}; +bool CreateTableState_IsValid(int value); +const CreateTableState CreateTableState_MIN = CREATE_TABLE_PRE_OPERATION; +const CreateTableState CreateTableState_MAX = CREATE_TABLE_POST_OPERATION; +const int CreateTableState_ARRAYSIZE = CreateTableState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* CreateTableState_descriptor(); +inline const ::std::string& CreateTableState_Name(CreateTableState value) { + return ::google::protobuf::internal::NameOfEnum( + CreateTableState_descriptor(), value); +} +inline bool CreateTableState_Parse( + const ::std::string& name, CreateTableState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CreateTableState_descriptor(), name, value); +} +enum ModifyTableState { + MODIFY_TABLE_PREPARE = 1, + MODIFY_TABLE_PRE_OPERATION = 2, + MODIFY_TABLE_UPDATE_TABLE_DESCRIPTOR = 3, + MODIFY_TABLE_REMOVE_REPLICA_COLUMN = 4, + MODIFY_TABLE_DELETE_FS_LAYOUT = 5, + MODIFY_TABLE_POST_OPERATION = 6, + MODIFY_TABLE_REOPEN_ALL_REGIONS = 7 +}; +bool ModifyTableState_IsValid(int value); +const ModifyTableState ModifyTableState_MIN = MODIFY_TABLE_PREPARE; +const ModifyTableState ModifyTableState_MAX = MODIFY_TABLE_REOPEN_ALL_REGIONS; +const int ModifyTableState_ARRAYSIZE = ModifyTableState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ModifyTableState_descriptor(); +inline const ::std::string& ModifyTableState_Name(ModifyTableState value) { + return ::google::protobuf::internal::NameOfEnum( + ModifyTableState_descriptor(), value); +} +inline bool ModifyTableState_Parse( + const ::std::string& name, ModifyTableState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ModifyTableState_descriptor(), name, value); +} +enum TruncateTableState { + TRUNCATE_TABLE_PRE_OPERATION = 1, + TRUNCATE_TABLE_REMOVE_FROM_META = 2, + TRUNCATE_TABLE_CLEAR_FS_LAYOUT = 3, + TRUNCATE_TABLE_CREATE_FS_LAYOUT = 4, + TRUNCATE_TABLE_ADD_TO_META = 5, + TRUNCATE_TABLE_ASSIGN_REGIONS = 6, + TRUNCATE_TABLE_POST_OPERATION = 7 +}; +bool TruncateTableState_IsValid(int value); +const TruncateTableState TruncateTableState_MIN = TRUNCATE_TABLE_PRE_OPERATION; +const TruncateTableState TruncateTableState_MAX = TRUNCATE_TABLE_POST_OPERATION; +const int TruncateTableState_ARRAYSIZE = TruncateTableState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TruncateTableState_descriptor(); +inline const ::std::string& TruncateTableState_Name(TruncateTableState value) { + return ::google::protobuf::internal::NameOfEnum( + TruncateTableState_descriptor(), value); +} +inline bool TruncateTableState_Parse( + const ::std::string& name, TruncateTableState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TruncateTableState_descriptor(), name, value); +} +enum DeleteTableState { + DELETE_TABLE_PRE_OPERATION = 1, + DELETE_TABLE_REMOVE_FROM_META = 2, + DELETE_TABLE_CLEAR_FS_LAYOUT = 3, + DELETE_TABLE_UPDATE_DESC_CACHE = 4, + DELETE_TABLE_UNASSIGN_REGIONS = 5, + DELETE_TABLE_POST_OPERATION = 6 +}; +bool DeleteTableState_IsValid(int value); +const DeleteTableState DeleteTableState_MIN = DELETE_TABLE_PRE_OPERATION; +const DeleteTableState DeleteTableState_MAX = DELETE_TABLE_POST_OPERATION; +const int DeleteTableState_ARRAYSIZE = DeleteTableState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* DeleteTableState_descriptor(); +inline const ::std::string& DeleteTableState_Name(DeleteTableState value) { + return ::google::protobuf::internal::NameOfEnum( + DeleteTableState_descriptor(), value); +} +inline bool DeleteTableState_Parse( + const ::std::string& name, DeleteTableState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + DeleteTableState_descriptor(), name, value); +} +enum CreateNamespaceState { + CREATE_NAMESPACE_PREPARE = 1, + CREATE_NAMESPACE_CREATE_DIRECTORY = 2, + CREATE_NAMESPACE_INSERT_INTO_NS_TABLE = 3, + CREATE_NAMESPACE_UPDATE_ZK = 4, + CREATE_NAMESPACE_SET_NAMESPACE_QUOTA = 5 +}; +bool CreateNamespaceState_IsValid(int value); +const CreateNamespaceState CreateNamespaceState_MIN = CREATE_NAMESPACE_PREPARE; +const CreateNamespaceState CreateNamespaceState_MAX = CREATE_NAMESPACE_SET_NAMESPACE_QUOTA; +const int CreateNamespaceState_ARRAYSIZE = CreateNamespaceState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* CreateNamespaceState_descriptor(); +inline const ::std::string& CreateNamespaceState_Name(CreateNamespaceState value) { + return ::google::protobuf::internal::NameOfEnum( + CreateNamespaceState_descriptor(), value); +} +inline bool CreateNamespaceState_Parse( + const ::std::string& name, CreateNamespaceState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CreateNamespaceState_descriptor(), name, value); +} +enum ModifyNamespaceState { + MODIFY_NAMESPACE_PREPARE = 1, + MODIFY_NAMESPACE_UPDATE_NS_TABLE = 2, + MODIFY_NAMESPACE_UPDATE_ZK = 3 +}; +bool ModifyNamespaceState_IsValid(int value); +const ModifyNamespaceState ModifyNamespaceState_MIN = MODIFY_NAMESPACE_PREPARE; +const ModifyNamespaceState ModifyNamespaceState_MAX = MODIFY_NAMESPACE_UPDATE_ZK; +const int ModifyNamespaceState_ARRAYSIZE = ModifyNamespaceState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ModifyNamespaceState_descriptor(); +inline const ::std::string& ModifyNamespaceState_Name(ModifyNamespaceState value) { + return ::google::protobuf::internal::NameOfEnum( + ModifyNamespaceState_descriptor(), value); +} +inline bool ModifyNamespaceState_Parse( + const ::std::string& name, ModifyNamespaceState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ModifyNamespaceState_descriptor(), name, value); +} +enum DeleteNamespaceState { + DELETE_NAMESPACE_PREPARE = 1, + DELETE_NAMESPACE_DELETE_FROM_NS_TABLE = 2, + DELETE_NAMESPACE_REMOVE_FROM_ZK = 3, + DELETE_NAMESPACE_DELETE_DIRECTORIES = 4, + DELETE_NAMESPACE_REMOVE_NAMESPACE_QUOTA = 5 +}; +bool DeleteNamespaceState_IsValid(int value); +const DeleteNamespaceState DeleteNamespaceState_MIN = DELETE_NAMESPACE_PREPARE; +const DeleteNamespaceState DeleteNamespaceState_MAX = DELETE_NAMESPACE_REMOVE_NAMESPACE_QUOTA; +const int DeleteNamespaceState_ARRAYSIZE = DeleteNamespaceState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* DeleteNamespaceState_descriptor(); +inline const ::std::string& DeleteNamespaceState_Name(DeleteNamespaceState value) { + return ::google::protobuf::internal::NameOfEnum( + DeleteNamespaceState_descriptor(), value); +} +inline bool DeleteNamespaceState_Parse( + const ::std::string& name, DeleteNamespaceState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + DeleteNamespaceState_descriptor(), name, value); +} +enum AddColumnFamilyState { + ADD_COLUMN_FAMILY_PREPARE = 1, + ADD_COLUMN_FAMILY_PRE_OPERATION = 2, + ADD_COLUMN_FAMILY_UPDATE_TABLE_DESCRIPTOR = 3, + ADD_COLUMN_FAMILY_POST_OPERATION = 4, + ADD_COLUMN_FAMILY_REOPEN_ALL_REGIONS = 5 +}; +bool AddColumnFamilyState_IsValid(int value); +const AddColumnFamilyState AddColumnFamilyState_MIN = ADD_COLUMN_FAMILY_PREPARE; +const AddColumnFamilyState AddColumnFamilyState_MAX = ADD_COLUMN_FAMILY_REOPEN_ALL_REGIONS; +const int AddColumnFamilyState_ARRAYSIZE = AddColumnFamilyState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* AddColumnFamilyState_descriptor(); +inline const ::std::string& AddColumnFamilyState_Name(AddColumnFamilyState value) { + return ::google::protobuf::internal::NameOfEnum( + AddColumnFamilyState_descriptor(), value); +} +inline bool AddColumnFamilyState_Parse( + const ::std::string& name, AddColumnFamilyState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + AddColumnFamilyState_descriptor(), name, value); +} +enum ModifyColumnFamilyState { + MODIFY_COLUMN_FAMILY_PREPARE = 1, + MODIFY_COLUMN_FAMILY_PRE_OPERATION = 2, + MODIFY_COLUMN_FAMILY_UPDATE_TABLE_DESCRIPTOR = 3, + MODIFY_COLUMN_FAMILY_POST_OPERATION = 4, + MODIFY_COLUMN_FAMILY_REOPEN_ALL_REGIONS = 5 +}; +bool ModifyColumnFamilyState_IsValid(int value); +const ModifyColumnFamilyState ModifyColumnFamilyState_MIN = MODIFY_COLUMN_FAMILY_PREPARE; +const ModifyColumnFamilyState ModifyColumnFamilyState_MAX = MODIFY_COLUMN_FAMILY_REOPEN_ALL_REGIONS; +const int ModifyColumnFamilyState_ARRAYSIZE = ModifyColumnFamilyState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ModifyColumnFamilyState_descriptor(); +inline const ::std::string& ModifyColumnFamilyState_Name(ModifyColumnFamilyState value) { + return ::google::protobuf::internal::NameOfEnum( + ModifyColumnFamilyState_descriptor(), value); +} +inline bool ModifyColumnFamilyState_Parse( + const ::std::string& name, ModifyColumnFamilyState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ModifyColumnFamilyState_descriptor(), name, value); +} +enum DeleteColumnFamilyState { + DELETE_COLUMN_FAMILY_PREPARE = 1, + DELETE_COLUMN_FAMILY_PRE_OPERATION = 2, + DELETE_COLUMN_FAMILY_UPDATE_TABLE_DESCRIPTOR = 3, + DELETE_COLUMN_FAMILY_DELETE_FS_LAYOUT = 4, + DELETE_COLUMN_FAMILY_POST_OPERATION = 5, + DELETE_COLUMN_FAMILY_REOPEN_ALL_REGIONS = 6 +}; +bool DeleteColumnFamilyState_IsValid(int value); +const DeleteColumnFamilyState DeleteColumnFamilyState_MIN = DELETE_COLUMN_FAMILY_PREPARE; +const DeleteColumnFamilyState DeleteColumnFamilyState_MAX = DELETE_COLUMN_FAMILY_REOPEN_ALL_REGIONS; +const int DeleteColumnFamilyState_ARRAYSIZE = DeleteColumnFamilyState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* DeleteColumnFamilyState_descriptor(); +inline const ::std::string& DeleteColumnFamilyState_Name(DeleteColumnFamilyState value) { + return ::google::protobuf::internal::NameOfEnum( + DeleteColumnFamilyState_descriptor(), value); +} +inline bool DeleteColumnFamilyState_Parse( + const ::std::string& name, DeleteColumnFamilyState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + DeleteColumnFamilyState_descriptor(), name, value); +} +enum EnableTableState { + ENABLE_TABLE_PREPARE = 1, + ENABLE_TABLE_PRE_OPERATION = 2, + ENABLE_TABLE_SET_ENABLING_TABLE_STATE = 3, + ENABLE_TABLE_MARK_REGIONS_ONLINE = 4, + ENABLE_TABLE_SET_ENABLED_TABLE_STATE = 5, + ENABLE_TABLE_POST_OPERATION = 6 +}; +bool EnableTableState_IsValid(int value); +const EnableTableState EnableTableState_MIN = ENABLE_TABLE_PREPARE; +const EnableTableState EnableTableState_MAX = ENABLE_TABLE_POST_OPERATION; +const int EnableTableState_ARRAYSIZE = EnableTableState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* EnableTableState_descriptor(); +inline const ::std::string& EnableTableState_Name(EnableTableState value) { + return ::google::protobuf::internal::NameOfEnum( + EnableTableState_descriptor(), value); +} +inline bool EnableTableState_Parse( + const ::std::string& name, EnableTableState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EnableTableState_descriptor(), name, value); +} +enum DisableTableState { + DISABLE_TABLE_PREPARE = 1, + DISABLE_TABLE_PRE_OPERATION = 2, + DISABLE_TABLE_SET_DISABLING_TABLE_STATE = 3, + DISABLE_TABLE_MARK_REGIONS_OFFLINE = 4, + DISABLE_TABLE_SET_DISABLED_TABLE_STATE = 5, + DISABLE_TABLE_POST_OPERATION = 6 +}; +bool DisableTableState_IsValid(int value); +const DisableTableState DisableTableState_MIN = DISABLE_TABLE_PREPARE; +const DisableTableState DisableTableState_MAX = DISABLE_TABLE_POST_OPERATION; +const int DisableTableState_ARRAYSIZE = DisableTableState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* DisableTableState_descriptor(); +inline const ::std::string& DisableTableState_Name(DisableTableState value) { + return ::google::protobuf::internal::NameOfEnum( + DisableTableState_descriptor(), value); +} +inline bool DisableTableState_Parse( + const ::std::string& name, DisableTableState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + DisableTableState_descriptor(), name, value); +} +enum ServerCrashState { + SERVER_CRASH_START = 1, + SERVER_CRASH_PROCESS_META = 2, + SERVER_CRASH_GET_REGIONS = 3, + SERVER_CRASH_NO_SPLIT_LOGS = 4, + SERVER_CRASH_SPLIT_LOGS = 5, + SERVER_CRASH_PREPARE_LOG_REPLAY = 6, + SERVER_CRASH_ASSIGN = 8, + SERVER_CRASH_WAIT_ON_ASSIGN = 9, + SERVER_CRASH_FINISH = 100 +}; +bool ServerCrashState_IsValid(int value); +const ServerCrashState ServerCrashState_MIN = SERVER_CRASH_START; +const ServerCrashState ServerCrashState_MAX = SERVER_CRASH_FINISH; +const int ServerCrashState_ARRAYSIZE = ServerCrashState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ServerCrashState_descriptor(); +inline const ::std::string& ServerCrashState_Name(ServerCrashState value) { + return ::google::protobuf::internal::NameOfEnum( + ServerCrashState_descriptor(), value); +} +inline bool ServerCrashState_Parse( + const ::std::string& name, ServerCrashState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ServerCrashState_descriptor(), name, value); +} +// =================================================================== + +class CreateTableStateData : public ::google::protobuf::Message { + public: + CreateTableStateData(); + virtual ~CreateTableStateData(); + + CreateTableStateData(const CreateTableStateData& from); + + inline CreateTableStateData& operator=(const CreateTableStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CreateTableStateData& default_instance(); + + void Swap(CreateTableStateData* other); + + // implements Message ---------------------------------------------- + + CreateTableStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CreateTableStateData& from); + void MergeFrom(const CreateTableStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // required .hbase.pb.TableSchema table_schema = 2; + inline bool has_table_schema() const; + inline void clear_table_schema(); + static const int kTableSchemaFieldNumber = 2; + inline const ::hbase::pb::TableSchema& table_schema() const; + inline ::hbase::pb::TableSchema* mutable_table_schema(); + inline ::hbase::pb::TableSchema* release_table_schema(); + inline void set_allocated_table_schema(::hbase::pb::TableSchema* table_schema); + + // repeated .hbase.pb.RegionInfo region_info = 3; + inline int region_info_size() const; + inline void clear_region_info(); + static const int kRegionInfoFieldNumber = 3; + inline const ::hbase::pb::RegionInfo& region_info(int index) const; + inline ::hbase::pb::RegionInfo* mutable_region_info(int index); + inline ::hbase::pb::RegionInfo* add_region_info(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& + region_info() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* + mutable_region_info(); + + // @@protoc_insertion_point(class_scope:hbase.pb.CreateTableStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_table_schema(); + inline void clear_has_table_schema(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableSchema* table_schema_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo > region_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static CreateTableStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyTableStateData : public ::google::protobuf::Message { + public: + ModifyTableStateData(); + virtual ~ModifyTableStateData(); + + ModifyTableStateData(const ModifyTableStateData& from); + + inline ModifyTableStateData& operator=(const ModifyTableStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyTableStateData& default_instance(); + + void Swap(ModifyTableStateData* other); + + // implements Message ---------------------------------------------- + + ModifyTableStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyTableStateData& from); + void MergeFrom(const ModifyTableStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // optional .hbase.pb.TableSchema unmodified_table_schema = 2; + inline bool has_unmodified_table_schema() const; + inline void clear_unmodified_table_schema(); + static const int kUnmodifiedTableSchemaFieldNumber = 2; + inline const ::hbase::pb::TableSchema& unmodified_table_schema() const; + inline ::hbase::pb::TableSchema* mutable_unmodified_table_schema(); + inline ::hbase::pb::TableSchema* release_unmodified_table_schema(); + inline void set_allocated_unmodified_table_schema(::hbase::pb::TableSchema* unmodified_table_schema); + + // required .hbase.pb.TableSchema modified_table_schema = 3; + inline bool has_modified_table_schema() const; + inline void clear_modified_table_schema(); + static const int kModifiedTableSchemaFieldNumber = 3; + inline const ::hbase::pb::TableSchema& modified_table_schema() const; + inline ::hbase::pb::TableSchema* mutable_modified_table_schema(); + inline ::hbase::pb::TableSchema* release_modified_table_schema(); + inline void set_allocated_modified_table_schema(::hbase::pb::TableSchema* modified_table_schema); + + // required bool delete_column_family_in_modify = 4; + inline bool has_delete_column_family_in_modify() const; + inline void clear_delete_column_family_in_modify(); + static const int kDeleteColumnFamilyInModifyFieldNumber = 4; + inline bool delete_column_family_in_modify() const; + inline void set_delete_column_family_in_modify(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyTableStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_unmodified_table_schema(); + inline void clear_has_unmodified_table_schema(); + inline void set_has_modified_table_schema(); + inline void clear_has_modified_table_schema(); + inline void set_has_delete_column_family_in_modify(); + inline void clear_has_delete_column_family_in_modify(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableSchema* unmodified_table_schema_; + ::hbase::pb::TableSchema* modified_table_schema_; + bool delete_column_family_in_modify_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static ModifyTableStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class TruncateTableStateData : public ::google::protobuf::Message { + public: + TruncateTableStateData(); + virtual ~TruncateTableStateData(); + + TruncateTableStateData(const TruncateTableStateData& from); + + inline TruncateTableStateData& operator=(const TruncateTableStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TruncateTableStateData& default_instance(); + + void Swap(TruncateTableStateData* other); + + // implements Message ---------------------------------------------- + + TruncateTableStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TruncateTableStateData& from); + void MergeFrom(const TruncateTableStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // required bool preserve_splits = 2; + inline bool has_preserve_splits() const; + inline void clear_preserve_splits(); + static const int kPreserveSplitsFieldNumber = 2; + inline bool preserve_splits() const; + inline void set_preserve_splits(bool value); + + // optional .hbase.pb.TableName table_name = 3; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 3; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional .hbase.pb.TableSchema table_schema = 4; + inline bool has_table_schema() const; + inline void clear_table_schema(); + static const int kTableSchemaFieldNumber = 4; + inline const ::hbase::pb::TableSchema& table_schema() const; + inline ::hbase::pb::TableSchema* mutable_table_schema(); + inline ::hbase::pb::TableSchema* release_table_schema(); + inline void set_allocated_table_schema(::hbase::pb::TableSchema* table_schema); + + // repeated .hbase.pb.RegionInfo region_info = 5; + inline int region_info_size() const; + inline void clear_region_info(); + static const int kRegionInfoFieldNumber = 5; + inline const ::hbase::pb::RegionInfo& region_info(int index) const; + inline ::hbase::pb::RegionInfo* mutable_region_info(int index); + inline ::hbase::pb::RegionInfo* add_region_info(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& + region_info() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* + mutable_region_info(); + + // @@protoc_insertion_point(class_scope:hbase.pb.TruncateTableStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_preserve_splits(); + inline void clear_has_preserve_splits(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_table_schema(); + inline void clear_has_table_schema(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableName* table_name_; + ::hbase::pb::TableSchema* table_schema_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo > region_info_; + bool preserve_splits_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static TruncateTableStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteTableStateData : public ::google::protobuf::Message { + public: + DeleteTableStateData(); + virtual ~DeleteTableStateData(); + + DeleteTableStateData(const DeleteTableStateData& from); + + inline DeleteTableStateData& operator=(const DeleteTableStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteTableStateData& default_instance(); + + void Swap(DeleteTableStateData* other); + + // implements Message ---------------------------------------------- + + DeleteTableStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteTableStateData& from); + void MergeFrom(const DeleteTableStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // required .hbase.pb.TableName table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // repeated .hbase.pb.RegionInfo region_info = 3; + inline int region_info_size() const; + inline void clear_region_info(); + static const int kRegionInfoFieldNumber = 3; + inline const ::hbase::pb::RegionInfo& region_info(int index) const; + inline ::hbase::pb::RegionInfo* mutable_region_info(int index); + inline ::hbase::pb::RegionInfo* add_region_info(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& + region_info() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* + mutable_region_info(); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteTableStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableName* table_name_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo > region_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static DeleteTableStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class CreateNamespaceStateData : public ::google::protobuf::Message { + public: + CreateNamespaceStateData(); + virtual ~CreateNamespaceStateData(); + + CreateNamespaceStateData(const CreateNamespaceStateData& from); + + inline CreateNamespaceStateData& operator=(const CreateNamespaceStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CreateNamespaceStateData& default_instance(); + + void Swap(CreateNamespaceStateData* other); + + // implements Message ---------------------------------------------- + + CreateNamespaceStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CreateNamespaceStateData& from); + void MergeFrom(const CreateNamespaceStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + inline bool has_namespace_descriptor() const; + inline void clear_namespace_descriptor(); + static const int kNamespaceDescriptorFieldNumber = 1; + inline const ::hbase::pb::NamespaceDescriptor& namespace_descriptor() const; + inline ::hbase::pb::NamespaceDescriptor* mutable_namespace_descriptor(); + inline ::hbase::pb::NamespaceDescriptor* release_namespace_descriptor(); + inline void set_allocated_namespace_descriptor(::hbase::pb::NamespaceDescriptor* namespace_descriptor); + + // @@protoc_insertion_point(class_scope:hbase.pb.CreateNamespaceStateData) + private: + inline void set_has_namespace_descriptor(); + inline void clear_has_namespace_descriptor(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::NamespaceDescriptor* namespace_descriptor_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static CreateNamespaceStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyNamespaceStateData : public ::google::protobuf::Message { + public: + ModifyNamespaceStateData(); + virtual ~ModifyNamespaceStateData(); + + ModifyNamespaceStateData(const ModifyNamespaceStateData& from); + + inline ModifyNamespaceStateData& operator=(const ModifyNamespaceStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyNamespaceStateData& default_instance(); + + void Swap(ModifyNamespaceStateData* other); + + // implements Message ---------------------------------------------- + + ModifyNamespaceStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyNamespaceStateData& from); + void MergeFrom(const ModifyNamespaceStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; + inline bool has_namespace_descriptor() const; + inline void clear_namespace_descriptor(); + static const int kNamespaceDescriptorFieldNumber = 1; + inline const ::hbase::pb::NamespaceDescriptor& namespace_descriptor() const; + inline ::hbase::pb::NamespaceDescriptor* mutable_namespace_descriptor(); + inline ::hbase::pb::NamespaceDescriptor* release_namespace_descriptor(); + inline void set_allocated_namespace_descriptor(::hbase::pb::NamespaceDescriptor* namespace_descriptor); + + // optional .hbase.pb.NamespaceDescriptor unmodified_namespace_descriptor = 2; + inline bool has_unmodified_namespace_descriptor() const; + inline void clear_unmodified_namespace_descriptor(); + static const int kUnmodifiedNamespaceDescriptorFieldNumber = 2; + inline const ::hbase::pb::NamespaceDescriptor& unmodified_namespace_descriptor() const; + inline ::hbase::pb::NamespaceDescriptor* mutable_unmodified_namespace_descriptor(); + inline ::hbase::pb::NamespaceDescriptor* release_unmodified_namespace_descriptor(); + inline void set_allocated_unmodified_namespace_descriptor(::hbase::pb::NamespaceDescriptor* unmodified_namespace_descriptor); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyNamespaceStateData) + private: + inline void set_has_namespace_descriptor(); + inline void clear_has_namespace_descriptor(); + inline void set_has_unmodified_namespace_descriptor(); + inline void clear_has_unmodified_namespace_descriptor(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::NamespaceDescriptor* namespace_descriptor_; + ::hbase::pb::NamespaceDescriptor* unmodified_namespace_descriptor_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static ModifyNamespaceStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteNamespaceStateData : public ::google::protobuf::Message { + public: + DeleteNamespaceStateData(); + virtual ~DeleteNamespaceStateData(); + + DeleteNamespaceStateData(const DeleteNamespaceStateData& from); + + inline DeleteNamespaceStateData& operator=(const DeleteNamespaceStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteNamespaceStateData& default_instance(); + + void Swap(DeleteNamespaceStateData* other); + + // implements Message ---------------------------------------------- + + DeleteNamespaceStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteNamespaceStateData& from); + void MergeFrom(const DeleteNamespaceStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string namespace_name = 1; + inline bool has_namespace_name() const; + inline void clear_namespace_name(); + static const int kNamespaceNameFieldNumber = 1; + inline const ::std::string& namespace_name() const; + inline void set_namespace_name(const ::std::string& value); + inline void set_namespace_name(const char* value); + inline void set_namespace_name(const char* value, size_t size); + inline ::std::string* mutable_namespace_name(); + inline ::std::string* release_namespace_name(); + inline void set_allocated_namespace_name(::std::string* namespace_name); + + // optional .hbase.pb.NamespaceDescriptor namespace_descriptor = 2; + inline bool has_namespace_descriptor() const; + inline void clear_namespace_descriptor(); + static const int kNamespaceDescriptorFieldNumber = 2; + inline const ::hbase::pb::NamespaceDescriptor& namespace_descriptor() const; + inline ::hbase::pb::NamespaceDescriptor* mutable_namespace_descriptor(); + inline ::hbase::pb::NamespaceDescriptor* release_namespace_descriptor(); + inline void set_allocated_namespace_descriptor(::hbase::pb::NamespaceDescriptor* namespace_descriptor); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteNamespaceStateData) + private: + inline void set_has_namespace_name(); + inline void clear_has_namespace_name(); + inline void set_has_namespace_descriptor(); + inline void clear_has_namespace_descriptor(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* namespace_name_; + ::hbase::pb::NamespaceDescriptor* namespace_descriptor_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static DeleteNamespaceStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class AddColumnFamilyStateData : public ::google::protobuf::Message { + public: + AddColumnFamilyStateData(); + virtual ~AddColumnFamilyStateData(); + + AddColumnFamilyStateData(const AddColumnFamilyStateData& from); + + inline AddColumnFamilyStateData& operator=(const AddColumnFamilyStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AddColumnFamilyStateData& default_instance(); + + void Swap(AddColumnFamilyStateData* other); + + // implements Message ---------------------------------------------- + + AddColumnFamilyStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AddColumnFamilyStateData& from); + void MergeFrom(const AddColumnFamilyStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // required .hbase.pb.TableName table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + inline bool has_columnfamily_schema() const; + inline void clear_columnfamily_schema(); + static const int kColumnfamilySchemaFieldNumber = 3; + inline const ::hbase::pb::ColumnFamilySchema& columnfamily_schema() const; + inline ::hbase::pb::ColumnFamilySchema* mutable_columnfamily_schema(); + inline ::hbase::pb::ColumnFamilySchema* release_columnfamily_schema(); + inline void set_allocated_columnfamily_schema(::hbase::pb::ColumnFamilySchema* columnfamily_schema); + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + inline bool has_unmodified_table_schema() const; + inline void clear_unmodified_table_schema(); + static const int kUnmodifiedTableSchemaFieldNumber = 4; + inline const ::hbase::pb::TableSchema& unmodified_table_schema() const; + inline ::hbase::pb::TableSchema* mutable_unmodified_table_schema(); + inline ::hbase::pb::TableSchema* release_unmodified_table_schema(); + inline void set_allocated_unmodified_table_schema(::hbase::pb::TableSchema* unmodified_table_schema); + + // @@protoc_insertion_point(class_scope:hbase.pb.AddColumnFamilyStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_columnfamily_schema(); + inline void clear_has_columnfamily_schema(); + inline void set_has_unmodified_table_schema(); + inline void clear_has_unmodified_table_schema(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableName* table_name_; + ::hbase::pb::ColumnFamilySchema* columnfamily_schema_; + ::hbase::pb::TableSchema* unmodified_table_schema_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static AddColumnFamilyStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class ModifyColumnFamilyStateData : public ::google::protobuf::Message { + public: + ModifyColumnFamilyStateData(); + virtual ~ModifyColumnFamilyStateData(); + + ModifyColumnFamilyStateData(const ModifyColumnFamilyStateData& from); + + inline ModifyColumnFamilyStateData& operator=(const ModifyColumnFamilyStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ModifyColumnFamilyStateData& default_instance(); + + void Swap(ModifyColumnFamilyStateData* other); + + // implements Message ---------------------------------------------- + + ModifyColumnFamilyStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ModifyColumnFamilyStateData& from); + void MergeFrom(const ModifyColumnFamilyStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // required .hbase.pb.TableName table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; + inline bool has_columnfamily_schema() const; + inline void clear_columnfamily_schema(); + static const int kColumnfamilySchemaFieldNumber = 3; + inline const ::hbase::pb::ColumnFamilySchema& columnfamily_schema() const; + inline ::hbase::pb::ColumnFamilySchema* mutable_columnfamily_schema(); + inline ::hbase::pb::ColumnFamilySchema* release_columnfamily_schema(); + inline void set_allocated_columnfamily_schema(::hbase::pb::ColumnFamilySchema* columnfamily_schema); + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + inline bool has_unmodified_table_schema() const; + inline void clear_unmodified_table_schema(); + static const int kUnmodifiedTableSchemaFieldNumber = 4; + inline const ::hbase::pb::TableSchema& unmodified_table_schema() const; + inline ::hbase::pb::TableSchema* mutable_unmodified_table_schema(); + inline ::hbase::pb::TableSchema* release_unmodified_table_schema(); + inline void set_allocated_unmodified_table_schema(::hbase::pb::TableSchema* unmodified_table_schema); + + // @@protoc_insertion_point(class_scope:hbase.pb.ModifyColumnFamilyStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_columnfamily_schema(); + inline void clear_has_columnfamily_schema(); + inline void set_has_unmodified_table_schema(); + inline void clear_has_unmodified_table_schema(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableName* table_name_; + ::hbase::pb::ColumnFamilySchema* columnfamily_schema_; + ::hbase::pb::TableSchema* unmodified_table_schema_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static ModifyColumnFamilyStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeleteColumnFamilyStateData : public ::google::protobuf::Message { + public: + DeleteColumnFamilyStateData(); + virtual ~DeleteColumnFamilyStateData(); + + DeleteColumnFamilyStateData(const DeleteColumnFamilyStateData& from); + + inline DeleteColumnFamilyStateData& operator=(const DeleteColumnFamilyStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeleteColumnFamilyStateData& default_instance(); + + void Swap(DeleteColumnFamilyStateData* other); + + // implements Message ---------------------------------------------- + + DeleteColumnFamilyStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeleteColumnFamilyStateData& from); + void MergeFrom(const DeleteColumnFamilyStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // required .hbase.pb.TableName table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required bytes columnfamily_name = 3; + inline bool has_columnfamily_name() const; + inline void clear_columnfamily_name(); + static const int kColumnfamilyNameFieldNumber = 3; + inline const ::std::string& columnfamily_name() const; + inline void set_columnfamily_name(const ::std::string& value); + inline void set_columnfamily_name(const char* value); + inline void set_columnfamily_name(const void* value, size_t size); + inline ::std::string* mutable_columnfamily_name(); + inline ::std::string* release_columnfamily_name(); + inline void set_allocated_columnfamily_name(::std::string* columnfamily_name); + + // optional .hbase.pb.TableSchema unmodified_table_schema = 4; + inline bool has_unmodified_table_schema() const; + inline void clear_unmodified_table_schema(); + static const int kUnmodifiedTableSchemaFieldNumber = 4; + inline const ::hbase::pb::TableSchema& unmodified_table_schema() const; + inline ::hbase::pb::TableSchema* mutable_unmodified_table_schema(); + inline ::hbase::pb::TableSchema* release_unmodified_table_schema(); + inline void set_allocated_unmodified_table_schema(::hbase::pb::TableSchema* unmodified_table_schema); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeleteColumnFamilyStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_columnfamily_name(); + inline void clear_has_columnfamily_name(); + inline void set_has_unmodified_table_schema(); + inline void clear_has_unmodified_table_schema(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableName* table_name_; + ::std::string* columnfamily_name_; + ::hbase::pb::TableSchema* unmodified_table_schema_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static DeleteColumnFamilyStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class EnableTableStateData : public ::google::protobuf::Message { + public: + EnableTableStateData(); + virtual ~EnableTableStateData(); + + EnableTableStateData(const EnableTableStateData& from); + + inline EnableTableStateData& operator=(const EnableTableStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EnableTableStateData& default_instance(); + + void Swap(EnableTableStateData* other); + + // implements Message ---------------------------------------------- + + EnableTableStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EnableTableStateData& from); + void MergeFrom(const EnableTableStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // required .hbase.pb.TableName table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required bool skip_table_state_check = 3; + inline bool has_skip_table_state_check() const; + inline void clear_skip_table_state_check(); + static const int kSkipTableStateCheckFieldNumber = 3; + inline bool skip_table_state_check() const; + inline void set_skip_table_state_check(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.EnableTableStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_skip_table_state_check(); + inline void clear_has_skip_table_state_check(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableName* table_name_; + bool skip_table_state_check_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static EnableTableStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class DisableTableStateData : public ::google::protobuf::Message { + public: + DisableTableStateData(); + virtual ~DisableTableStateData(); + + DisableTableStateData(const DisableTableStateData& from); + + inline DisableTableStateData& operator=(const DisableTableStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DisableTableStateData& default_instance(); + + void Swap(DisableTableStateData* other); + + // implements Message ---------------------------------------------- + + DisableTableStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DisableTableStateData& from); + void MergeFrom(const DisableTableStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // required .hbase.pb.TableName table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required bool skip_table_state_check = 3; + inline bool has_skip_table_state_check() const; + inline void clear_skip_table_state_check(); + static const int kSkipTableStateCheckFieldNumber = 3; + inline bool skip_table_state_check() const; + inline void set_skip_table_state_check(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DisableTableStateData) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_skip_table_state_check(); + inline void clear_has_skip_table_state_check(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::hbase::pb::TableName* table_name_; + bool skip_table_state_check_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static DisableTableStateData* default_instance_; +}; +// ------------------------------------------------------------------- + +class ServerCrashStateData : public ::google::protobuf::Message { + public: + ServerCrashStateData(); + virtual ~ServerCrashStateData(); + + ServerCrashStateData(const ServerCrashStateData& from); + + inline ServerCrashStateData& operator=(const ServerCrashStateData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ServerCrashStateData& default_instance(); + + void Swap(ServerCrashStateData* other); + + // implements Message ---------------------------------------------- + + ServerCrashStateData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ServerCrashStateData& from); + void MergeFrom(const ServerCrashStateData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName server_name = 1; + inline bool has_server_name() const; + inline void clear_server_name(); + static const int kServerNameFieldNumber = 1; + inline const ::hbase::pb::ServerName& server_name() const; + inline ::hbase::pb::ServerName* mutable_server_name(); + inline ::hbase::pb::ServerName* release_server_name(); + inline void set_allocated_server_name(::hbase::pb::ServerName* server_name); + + // optional bool distributed_log_replay = 2; + inline bool has_distributed_log_replay() const; + inline void clear_distributed_log_replay(); + static const int kDistributedLogReplayFieldNumber = 2; + inline bool distributed_log_replay() const; + inline void set_distributed_log_replay(bool value); + + // repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3; + inline int regions_on_crashed_server_size() const; + inline void clear_regions_on_crashed_server(); + static const int kRegionsOnCrashedServerFieldNumber = 3; + inline const ::hbase::pb::RegionInfo& regions_on_crashed_server(int index) const; + inline ::hbase::pb::RegionInfo* mutable_regions_on_crashed_server(int index); + inline ::hbase::pb::RegionInfo* add_regions_on_crashed_server(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& + regions_on_crashed_server() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* + mutable_regions_on_crashed_server(); + + // repeated .hbase.pb.RegionInfo regions_assigned = 4; + inline int regions_assigned_size() const; + inline void clear_regions_assigned(); + static const int kRegionsAssignedFieldNumber = 4; + inline const ::hbase::pb::RegionInfo& regions_assigned(int index) const; + inline ::hbase::pb::RegionInfo* mutable_regions_assigned(int index); + inline ::hbase::pb::RegionInfo* add_regions_assigned(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& + regions_assigned() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* + mutable_regions_assigned(); + + // optional bool carrying_meta = 5; + inline bool has_carrying_meta() const; + inline void clear_carrying_meta(); + static const int kCarryingMetaFieldNumber = 5; + inline bool carrying_meta() const; + inline void set_carrying_meta(bool value); + + // optional bool should_split_wal = 6 [default = true]; + inline bool has_should_split_wal() const; + inline void clear_should_split_wal(); + static const int kShouldSplitWalFieldNumber = 6; + inline bool should_split_wal() const; + inline void set_should_split_wal(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ServerCrashStateData) + private: + inline void set_has_server_name(); + inline void clear_has_server_name(); + inline void set_has_distributed_log_replay(); + inline void clear_has_distributed_log_replay(); + inline void set_has_carrying_meta(); + inline void clear_has_carrying_meta(); + inline void set_has_should_split_wal(); + inline void clear_has_should_split_wal(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_name_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo > regions_on_crashed_server_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo > regions_assigned_; + bool distributed_log_replay_; + bool carrying_meta_; + bool should_split_wal_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_MasterProcedure_2eproto(); + friend void protobuf_AssignDesc_MasterProcedure_2eproto(); + friend void protobuf_ShutdownFile_MasterProcedure_2eproto(); + + void InitAsDefaultInstance(); + static ServerCrashStateData* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// CreateTableStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool CreateTableStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CreateTableStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void CreateTableStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CreateTableStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& CreateTableStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* CreateTableStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* CreateTableStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void CreateTableStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// required .hbase.pb.TableSchema table_schema = 2; +inline bool CreateTableStateData::has_table_schema() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CreateTableStateData::set_has_table_schema() { + _has_bits_[0] |= 0x00000002u; +} +inline void CreateTableStateData::clear_has_table_schema() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CreateTableStateData::clear_table_schema() { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_table_schema(); +} +inline const ::hbase::pb::TableSchema& CreateTableStateData::table_schema() const { + return table_schema_ != NULL ? *table_schema_ : *default_instance_->table_schema_; +} +inline ::hbase::pb::TableSchema* CreateTableStateData::mutable_table_schema() { + set_has_table_schema(); + if (table_schema_ == NULL) table_schema_ = new ::hbase::pb::TableSchema; + return table_schema_; +} +inline ::hbase::pb::TableSchema* CreateTableStateData::release_table_schema() { + clear_has_table_schema(); + ::hbase::pb::TableSchema* temp = table_schema_; + table_schema_ = NULL; + return temp; +} +inline void CreateTableStateData::set_allocated_table_schema(::hbase::pb::TableSchema* table_schema) { + delete table_schema_; + table_schema_ = table_schema; + if (table_schema) { + set_has_table_schema(); + } else { + clear_has_table_schema(); + } +} + +// repeated .hbase.pb.RegionInfo region_info = 3; +inline int CreateTableStateData::region_info_size() const { + return region_info_.size(); +} +inline void CreateTableStateData::clear_region_info() { + region_info_.Clear(); +} +inline const ::hbase::pb::RegionInfo& CreateTableStateData::region_info(int index) const { + return region_info_.Get(index); +} +inline ::hbase::pb::RegionInfo* CreateTableStateData::mutable_region_info(int index) { + return region_info_.Mutable(index); +} +inline ::hbase::pb::RegionInfo* CreateTableStateData::add_region_info() { + return region_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& +CreateTableStateData::region_info() const { + return region_info_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* +CreateTableStateData::mutable_region_info() { + return ®ion_info_; +} + +// ------------------------------------------------------------------- + +// ModifyTableStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool ModifyTableStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyTableStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyTableStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyTableStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& ModifyTableStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* ModifyTableStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* ModifyTableStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void ModifyTableStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// optional .hbase.pb.TableSchema unmodified_table_schema = 2; +inline bool ModifyTableStateData::has_unmodified_table_schema() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ModifyTableStateData::set_has_unmodified_table_schema() { + _has_bits_[0] |= 0x00000002u; +} +inline void ModifyTableStateData::clear_has_unmodified_table_schema() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ModifyTableStateData::clear_unmodified_table_schema() { + if (unmodified_table_schema_ != NULL) unmodified_table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_unmodified_table_schema(); +} +inline const ::hbase::pb::TableSchema& ModifyTableStateData::unmodified_table_schema() const { + return unmodified_table_schema_ != NULL ? *unmodified_table_schema_ : *default_instance_->unmodified_table_schema_; +} +inline ::hbase::pb::TableSchema* ModifyTableStateData::mutable_unmodified_table_schema() { + set_has_unmodified_table_schema(); + if (unmodified_table_schema_ == NULL) unmodified_table_schema_ = new ::hbase::pb::TableSchema; + return unmodified_table_schema_; +} +inline ::hbase::pb::TableSchema* ModifyTableStateData::release_unmodified_table_schema() { + clear_has_unmodified_table_schema(); + ::hbase::pb::TableSchema* temp = unmodified_table_schema_; + unmodified_table_schema_ = NULL; + return temp; +} +inline void ModifyTableStateData::set_allocated_unmodified_table_schema(::hbase::pb::TableSchema* unmodified_table_schema) { + delete unmodified_table_schema_; + unmodified_table_schema_ = unmodified_table_schema; + if (unmodified_table_schema) { + set_has_unmodified_table_schema(); + } else { + clear_has_unmodified_table_schema(); + } +} + +// required .hbase.pb.TableSchema modified_table_schema = 3; +inline bool ModifyTableStateData::has_modified_table_schema() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ModifyTableStateData::set_has_modified_table_schema() { + _has_bits_[0] |= 0x00000004u; +} +inline void ModifyTableStateData::clear_has_modified_table_schema() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ModifyTableStateData::clear_modified_table_schema() { + if (modified_table_schema_ != NULL) modified_table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_modified_table_schema(); +} +inline const ::hbase::pb::TableSchema& ModifyTableStateData::modified_table_schema() const { + return modified_table_schema_ != NULL ? *modified_table_schema_ : *default_instance_->modified_table_schema_; +} +inline ::hbase::pb::TableSchema* ModifyTableStateData::mutable_modified_table_schema() { + set_has_modified_table_schema(); + if (modified_table_schema_ == NULL) modified_table_schema_ = new ::hbase::pb::TableSchema; + return modified_table_schema_; +} +inline ::hbase::pb::TableSchema* ModifyTableStateData::release_modified_table_schema() { + clear_has_modified_table_schema(); + ::hbase::pb::TableSchema* temp = modified_table_schema_; + modified_table_schema_ = NULL; + return temp; +} +inline void ModifyTableStateData::set_allocated_modified_table_schema(::hbase::pb::TableSchema* modified_table_schema) { + delete modified_table_schema_; + modified_table_schema_ = modified_table_schema; + if (modified_table_schema) { + set_has_modified_table_schema(); + } else { + clear_has_modified_table_schema(); + } +} + +// required bool delete_column_family_in_modify = 4; +inline bool ModifyTableStateData::has_delete_column_family_in_modify() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ModifyTableStateData::set_has_delete_column_family_in_modify() { + _has_bits_[0] |= 0x00000008u; +} +inline void ModifyTableStateData::clear_has_delete_column_family_in_modify() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ModifyTableStateData::clear_delete_column_family_in_modify() { + delete_column_family_in_modify_ = false; + clear_has_delete_column_family_in_modify(); +} +inline bool ModifyTableStateData::delete_column_family_in_modify() const { + return delete_column_family_in_modify_; +} +inline void ModifyTableStateData::set_delete_column_family_in_modify(bool value) { + set_has_delete_column_family_in_modify(); + delete_column_family_in_modify_ = value; +} + +// ------------------------------------------------------------------- + +// TruncateTableStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool TruncateTableStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TruncateTableStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void TruncateTableStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TruncateTableStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& TruncateTableStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* TruncateTableStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* TruncateTableStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void TruncateTableStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// required bool preserve_splits = 2; +inline bool TruncateTableStateData::has_preserve_splits() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TruncateTableStateData::set_has_preserve_splits() { + _has_bits_[0] |= 0x00000002u; +} +inline void TruncateTableStateData::clear_has_preserve_splits() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TruncateTableStateData::clear_preserve_splits() { + preserve_splits_ = false; + clear_has_preserve_splits(); +} +inline bool TruncateTableStateData::preserve_splits() const { + return preserve_splits_; +} +inline void TruncateTableStateData::set_preserve_splits(bool value) { + set_has_preserve_splits(); + preserve_splits_ = value; +} + +// optional .hbase.pb.TableName table_name = 3; +inline bool TruncateTableStateData::has_table_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TruncateTableStateData::set_has_table_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void TruncateTableStateData::clear_has_table_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TruncateTableStateData::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& TruncateTableStateData::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* TruncateTableStateData::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* TruncateTableStateData::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void TruncateTableStateData::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional .hbase.pb.TableSchema table_schema = 4; +inline bool TruncateTableStateData::has_table_schema() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TruncateTableStateData::set_has_table_schema() { + _has_bits_[0] |= 0x00000008u; +} +inline void TruncateTableStateData::clear_has_table_schema() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TruncateTableStateData::clear_table_schema() { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_table_schema(); +} +inline const ::hbase::pb::TableSchema& TruncateTableStateData::table_schema() const { + return table_schema_ != NULL ? *table_schema_ : *default_instance_->table_schema_; +} +inline ::hbase::pb::TableSchema* TruncateTableStateData::mutable_table_schema() { + set_has_table_schema(); + if (table_schema_ == NULL) table_schema_ = new ::hbase::pb::TableSchema; + return table_schema_; +} +inline ::hbase::pb::TableSchema* TruncateTableStateData::release_table_schema() { + clear_has_table_schema(); + ::hbase::pb::TableSchema* temp = table_schema_; + table_schema_ = NULL; + return temp; +} +inline void TruncateTableStateData::set_allocated_table_schema(::hbase::pb::TableSchema* table_schema) { + delete table_schema_; + table_schema_ = table_schema; + if (table_schema) { + set_has_table_schema(); + } else { + clear_has_table_schema(); + } +} + +// repeated .hbase.pb.RegionInfo region_info = 5; +inline int TruncateTableStateData::region_info_size() const { + return region_info_.size(); +} +inline void TruncateTableStateData::clear_region_info() { + region_info_.Clear(); +} +inline const ::hbase::pb::RegionInfo& TruncateTableStateData::region_info(int index) const { + return region_info_.Get(index); +} +inline ::hbase::pb::RegionInfo* TruncateTableStateData::mutable_region_info(int index) { + return region_info_.Mutable(index); +} +inline ::hbase::pb::RegionInfo* TruncateTableStateData::add_region_info() { + return region_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& +TruncateTableStateData::region_info() const { + return region_info_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* +TruncateTableStateData::mutable_region_info() { + return ®ion_info_; +} + +// ------------------------------------------------------------------- + +// DeleteTableStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool DeleteTableStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteTableStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteTableStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteTableStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& DeleteTableStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* DeleteTableStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* DeleteTableStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void DeleteTableStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// required .hbase.pb.TableName table_name = 2; +inline bool DeleteTableStateData::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DeleteTableStateData::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void DeleteTableStateData::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DeleteTableStateData::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& DeleteTableStateData::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* DeleteTableStateData::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* DeleteTableStateData::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void DeleteTableStateData::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// repeated .hbase.pb.RegionInfo region_info = 3; +inline int DeleteTableStateData::region_info_size() const { + return region_info_.size(); +} +inline void DeleteTableStateData::clear_region_info() { + region_info_.Clear(); +} +inline const ::hbase::pb::RegionInfo& DeleteTableStateData::region_info(int index) const { + return region_info_.Get(index); +} +inline ::hbase::pb::RegionInfo* DeleteTableStateData::mutable_region_info(int index) { + return region_info_.Mutable(index); +} +inline ::hbase::pb::RegionInfo* DeleteTableStateData::add_region_info() { + return region_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& +DeleteTableStateData::region_info() const { + return region_info_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* +DeleteTableStateData::mutable_region_info() { + return ®ion_info_; +} + +// ------------------------------------------------------------------- + +// CreateNamespaceStateData + +// required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; +inline bool CreateNamespaceStateData::has_namespace_descriptor() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CreateNamespaceStateData::set_has_namespace_descriptor() { + _has_bits_[0] |= 0x00000001u; +} +inline void CreateNamespaceStateData::clear_has_namespace_descriptor() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CreateNamespaceStateData::clear_namespace_descriptor() { + if (namespace_descriptor_ != NULL) namespace_descriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + clear_has_namespace_descriptor(); +} +inline const ::hbase::pb::NamespaceDescriptor& CreateNamespaceStateData::namespace_descriptor() const { + return namespace_descriptor_ != NULL ? *namespace_descriptor_ : *default_instance_->namespace_descriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* CreateNamespaceStateData::mutable_namespace_descriptor() { + set_has_namespace_descriptor(); + if (namespace_descriptor_ == NULL) namespace_descriptor_ = new ::hbase::pb::NamespaceDescriptor; + return namespace_descriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* CreateNamespaceStateData::release_namespace_descriptor() { + clear_has_namespace_descriptor(); + ::hbase::pb::NamespaceDescriptor* temp = namespace_descriptor_; + namespace_descriptor_ = NULL; + return temp; +} +inline void CreateNamespaceStateData::set_allocated_namespace_descriptor(::hbase::pb::NamespaceDescriptor* namespace_descriptor) { + delete namespace_descriptor_; + namespace_descriptor_ = namespace_descriptor; + if (namespace_descriptor) { + set_has_namespace_descriptor(); + } else { + clear_has_namespace_descriptor(); + } +} + +// ------------------------------------------------------------------- + +// ModifyNamespaceStateData + +// required .hbase.pb.NamespaceDescriptor namespace_descriptor = 1; +inline bool ModifyNamespaceStateData::has_namespace_descriptor() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyNamespaceStateData::set_has_namespace_descriptor() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyNamespaceStateData::clear_has_namespace_descriptor() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyNamespaceStateData::clear_namespace_descriptor() { + if (namespace_descriptor_ != NULL) namespace_descriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + clear_has_namespace_descriptor(); +} +inline const ::hbase::pb::NamespaceDescriptor& ModifyNamespaceStateData::namespace_descriptor() const { + return namespace_descriptor_ != NULL ? *namespace_descriptor_ : *default_instance_->namespace_descriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* ModifyNamespaceStateData::mutable_namespace_descriptor() { + set_has_namespace_descriptor(); + if (namespace_descriptor_ == NULL) namespace_descriptor_ = new ::hbase::pb::NamespaceDescriptor; + return namespace_descriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* ModifyNamespaceStateData::release_namespace_descriptor() { + clear_has_namespace_descriptor(); + ::hbase::pb::NamespaceDescriptor* temp = namespace_descriptor_; + namespace_descriptor_ = NULL; + return temp; +} +inline void ModifyNamespaceStateData::set_allocated_namespace_descriptor(::hbase::pb::NamespaceDescriptor* namespace_descriptor) { + delete namespace_descriptor_; + namespace_descriptor_ = namespace_descriptor; + if (namespace_descriptor) { + set_has_namespace_descriptor(); + } else { + clear_has_namespace_descriptor(); + } +} + +// optional .hbase.pb.NamespaceDescriptor unmodified_namespace_descriptor = 2; +inline bool ModifyNamespaceStateData::has_unmodified_namespace_descriptor() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ModifyNamespaceStateData::set_has_unmodified_namespace_descriptor() { + _has_bits_[0] |= 0x00000002u; +} +inline void ModifyNamespaceStateData::clear_has_unmodified_namespace_descriptor() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ModifyNamespaceStateData::clear_unmodified_namespace_descriptor() { + if (unmodified_namespace_descriptor_ != NULL) unmodified_namespace_descriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + clear_has_unmodified_namespace_descriptor(); +} +inline const ::hbase::pb::NamespaceDescriptor& ModifyNamespaceStateData::unmodified_namespace_descriptor() const { + return unmodified_namespace_descriptor_ != NULL ? *unmodified_namespace_descriptor_ : *default_instance_->unmodified_namespace_descriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* ModifyNamespaceStateData::mutable_unmodified_namespace_descriptor() { + set_has_unmodified_namespace_descriptor(); + if (unmodified_namespace_descriptor_ == NULL) unmodified_namespace_descriptor_ = new ::hbase::pb::NamespaceDescriptor; + return unmodified_namespace_descriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* ModifyNamespaceStateData::release_unmodified_namespace_descriptor() { + clear_has_unmodified_namespace_descriptor(); + ::hbase::pb::NamespaceDescriptor* temp = unmodified_namespace_descriptor_; + unmodified_namespace_descriptor_ = NULL; + return temp; +} +inline void ModifyNamespaceStateData::set_allocated_unmodified_namespace_descriptor(::hbase::pb::NamespaceDescriptor* unmodified_namespace_descriptor) { + delete unmodified_namespace_descriptor_; + unmodified_namespace_descriptor_ = unmodified_namespace_descriptor; + if (unmodified_namespace_descriptor) { + set_has_unmodified_namespace_descriptor(); + } else { + clear_has_unmodified_namespace_descriptor(); + } +} + +// ------------------------------------------------------------------- + +// DeleteNamespaceStateData + +// required string namespace_name = 1; +inline bool DeleteNamespaceStateData::has_namespace_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteNamespaceStateData::set_has_namespace_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteNamespaceStateData::clear_has_namespace_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteNamespaceStateData::clear_namespace_name() { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + namespace_name_->clear(); + } + clear_has_namespace_name(); +} +inline const ::std::string& DeleteNamespaceStateData::namespace_name() const { + return *namespace_name_; +} +inline void DeleteNamespaceStateData::set_namespace_name(const ::std::string& value) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(value); +} +inline void DeleteNamespaceStateData::set_namespace_name(const char* value) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(value); +} +inline void DeleteNamespaceStateData::set_namespace_name(const char* value, size_t size) { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + namespace_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DeleteNamespaceStateData::mutable_namespace_name() { + set_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + namespace_name_ = new ::std::string; + } + return namespace_name_; +} +inline ::std::string* DeleteNamespaceStateData::release_namespace_name() { + clear_has_namespace_name(); + if (namespace_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = namespace_name_; + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DeleteNamespaceStateData::set_allocated_namespace_name(::std::string* namespace_name) { + if (namespace_name_ != &::google::protobuf::internal::kEmptyString) { + delete namespace_name_; + } + if (namespace_name) { + set_has_namespace_name(); + namespace_name_ = namespace_name; + } else { + clear_has_namespace_name(); + namespace_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.NamespaceDescriptor namespace_descriptor = 2; +inline bool DeleteNamespaceStateData::has_namespace_descriptor() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DeleteNamespaceStateData::set_has_namespace_descriptor() { + _has_bits_[0] |= 0x00000002u; +} +inline void DeleteNamespaceStateData::clear_has_namespace_descriptor() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DeleteNamespaceStateData::clear_namespace_descriptor() { + if (namespace_descriptor_ != NULL) namespace_descriptor_->::hbase::pb::NamespaceDescriptor::Clear(); + clear_has_namespace_descriptor(); +} +inline const ::hbase::pb::NamespaceDescriptor& DeleteNamespaceStateData::namespace_descriptor() const { + return namespace_descriptor_ != NULL ? *namespace_descriptor_ : *default_instance_->namespace_descriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* DeleteNamespaceStateData::mutable_namespace_descriptor() { + set_has_namespace_descriptor(); + if (namespace_descriptor_ == NULL) namespace_descriptor_ = new ::hbase::pb::NamespaceDescriptor; + return namespace_descriptor_; +} +inline ::hbase::pb::NamespaceDescriptor* DeleteNamespaceStateData::release_namespace_descriptor() { + clear_has_namespace_descriptor(); + ::hbase::pb::NamespaceDescriptor* temp = namespace_descriptor_; + namespace_descriptor_ = NULL; + return temp; +} +inline void DeleteNamespaceStateData::set_allocated_namespace_descriptor(::hbase::pb::NamespaceDescriptor* namespace_descriptor) { + delete namespace_descriptor_; + namespace_descriptor_ = namespace_descriptor; + if (namespace_descriptor) { + set_has_namespace_descriptor(); + } else { + clear_has_namespace_descriptor(); + } +} + +// ------------------------------------------------------------------- + +// AddColumnFamilyStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool AddColumnFamilyStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AddColumnFamilyStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void AddColumnFamilyStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AddColumnFamilyStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& AddColumnFamilyStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* AddColumnFamilyStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* AddColumnFamilyStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void AddColumnFamilyStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// required .hbase.pb.TableName table_name = 2; +inline bool AddColumnFamilyStateData::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AddColumnFamilyStateData::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void AddColumnFamilyStateData::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AddColumnFamilyStateData::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& AddColumnFamilyStateData::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* AddColumnFamilyStateData::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* AddColumnFamilyStateData::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void AddColumnFamilyStateData::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; +inline bool AddColumnFamilyStateData::has_columnfamily_schema() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AddColumnFamilyStateData::set_has_columnfamily_schema() { + _has_bits_[0] |= 0x00000004u; +} +inline void AddColumnFamilyStateData::clear_has_columnfamily_schema() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AddColumnFamilyStateData::clear_columnfamily_schema() { + if (columnfamily_schema_ != NULL) columnfamily_schema_->::hbase::pb::ColumnFamilySchema::Clear(); + clear_has_columnfamily_schema(); +} +inline const ::hbase::pb::ColumnFamilySchema& AddColumnFamilyStateData::columnfamily_schema() const { + return columnfamily_schema_ != NULL ? *columnfamily_schema_ : *default_instance_->columnfamily_schema_; +} +inline ::hbase::pb::ColumnFamilySchema* AddColumnFamilyStateData::mutable_columnfamily_schema() { + set_has_columnfamily_schema(); + if (columnfamily_schema_ == NULL) columnfamily_schema_ = new ::hbase::pb::ColumnFamilySchema; + return columnfamily_schema_; +} +inline ::hbase::pb::ColumnFamilySchema* AddColumnFamilyStateData::release_columnfamily_schema() { + clear_has_columnfamily_schema(); + ::hbase::pb::ColumnFamilySchema* temp = columnfamily_schema_; + columnfamily_schema_ = NULL; + return temp; +} +inline void AddColumnFamilyStateData::set_allocated_columnfamily_schema(::hbase::pb::ColumnFamilySchema* columnfamily_schema) { + delete columnfamily_schema_; + columnfamily_schema_ = columnfamily_schema; + if (columnfamily_schema) { + set_has_columnfamily_schema(); + } else { + clear_has_columnfamily_schema(); + } +} + +// optional .hbase.pb.TableSchema unmodified_table_schema = 4; +inline bool AddColumnFamilyStateData::has_unmodified_table_schema() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void AddColumnFamilyStateData::set_has_unmodified_table_schema() { + _has_bits_[0] |= 0x00000008u; +} +inline void AddColumnFamilyStateData::clear_has_unmodified_table_schema() { + _has_bits_[0] &= ~0x00000008u; +} +inline void AddColumnFamilyStateData::clear_unmodified_table_schema() { + if (unmodified_table_schema_ != NULL) unmodified_table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_unmodified_table_schema(); +} +inline const ::hbase::pb::TableSchema& AddColumnFamilyStateData::unmodified_table_schema() const { + return unmodified_table_schema_ != NULL ? *unmodified_table_schema_ : *default_instance_->unmodified_table_schema_; +} +inline ::hbase::pb::TableSchema* AddColumnFamilyStateData::mutable_unmodified_table_schema() { + set_has_unmodified_table_schema(); + if (unmodified_table_schema_ == NULL) unmodified_table_schema_ = new ::hbase::pb::TableSchema; + return unmodified_table_schema_; +} +inline ::hbase::pb::TableSchema* AddColumnFamilyStateData::release_unmodified_table_schema() { + clear_has_unmodified_table_schema(); + ::hbase::pb::TableSchema* temp = unmodified_table_schema_; + unmodified_table_schema_ = NULL; + return temp; +} +inline void AddColumnFamilyStateData::set_allocated_unmodified_table_schema(::hbase::pb::TableSchema* unmodified_table_schema) { + delete unmodified_table_schema_; + unmodified_table_schema_ = unmodified_table_schema; + if (unmodified_table_schema) { + set_has_unmodified_table_schema(); + } else { + clear_has_unmodified_table_schema(); + } +} + +// ------------------------------------------------------------------- + +// ModifyColumnFamilyStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool ModifyColumnFamilyStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ModifyColumnFamilyStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void ModifyColumnFamilyStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ModifyColumnFamilyStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& ModifyColumnFamilyStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* ModifyColumnFamilyStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* ModifyColumnFamilyStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void ModifyColumnFamilyStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// required .hbase.pb.TableName table_name = 2; +inline bool ModifyColumnFamilyStateData::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ModifyColumnFamilyStateData::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void ModifyColumnFamilyStateData::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ModifyColumnFamilyStateData::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& ModifyColumnFamilyStateData::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* ModifyColumnFamilyStateData::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* ModifyColumnFamilyStateData::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void ModifyColumnFamilyStateData::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required .hbase.pb.ColumnFamilySchema columnfamily_schema = 3; +inline bool ModifyColumnFamilyStateData::has_columnfamily_schema() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ModifyColumnFamilyStateData::set_has_columnfamily_schema() { + _has_bits_[0] |= 0x00000004u; +} +inline void ModifyColumnFamilyStateData::clear_has_columnfamily_schema() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ModifyColumnFamilyStateData::clear_columnfamily_schema() { + if (columnfamily_schema_ != NULL) columnfamily_schema_->::hbase::pb::ColumnFamilySchema::Clear(); + clear_has_columnfamily_schema(); +} +inline const ::hbase::pb::ColumnFamilySchema& ModifyColumnFamilyStateData::columnfamily_schema() const { + return columnfamily_schema_ != NULL ? *columnfamily_schema_ : *default_instance_->columnfamily_schema_; +} +inline ::hbase::pb::ColumnFamilySchema* ModifyColumnFamilyStateData::mutable_columnfamily_schema() { + set_has_columnfamily_schema(); + if (columnfamily_schema_ == NULL) columnfamily_schema_ = new ::hbase::pb::ColumnFamilySchema; + return columnfamily_schema_; +} +inline ::hbase::pb::ColumnFamilySchema* ModifyColumnFamilyStateData::release_columnfamily_schema() { + clear_has_columnfamily_schema(); + ::hbase::pb::ColumnFamilySchema* temp = columnfamily_schema_; + columnfamily_schema_ = NULL; + return temp; +} +inline void ModifyColumnFamilyStateData::set_allocated_columnfamily_schema(::hbase::pb::ColumnFamilySchema* columnfamily_schema) { + delete columnfamily_schema_; + columnfamily_schema_ = columnfamily_schema; + if (columnfamily_schema) { + set_has_columnfamily_schema(); + } else { + clear_has_columnfamily_schema(); + } +} + +// optional .hbase.pb.TableSchema unmodified_table_schema = 4; +inline bool ModifyColumnFamilyStateData::has_unmodified_table_schema() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ModifyColumnFamilyStateData::set_has_unmodified_table_schema() { + _has_bits_[0] |= 0x00000008u; +} +inline void ModifyColumnFamilyStateData::clear_has_unmodified_table_schema() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ModifyColumnFamilyStateData::clear_unmodified_table_schema() { + if (unmodified_table_schema_ != NULL) unmodified_table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_unmodified_table_schema(); +} +inline const ::hbase::pb::TableSchema& ModifyColumnFamilyStateData::unmodified_table_schema() const { + return unmodified_table_schema_ != NULL ? *unmodified_table_schema_ : *default_instance_->unmodified_table_schema_; +} +inline ::hbase::pb::TableSchema* ModifyColumnFamilyStateData::mutable_unmodified_table_schema() { + set_has_unmodified_table_schema(); + if (unmodified_table_schema_ == NULL) unmodified_table_schema_ = new ::hbase::pb::TableSchema; + return unmodified_table_schema_; +} +inline ::hbase::pb::TableSchema* ModifyColumnFamilyStateData::release_unmodified_table_schema() { + clear_has_unmodified_table_schema(); + ::hbase::pb::TableSchema* temp = unmodified_table_schema_; + unmodified_table_schema_ = NULL; + return temp; +} +inline void ModifyColumnFamilyStateData::set_allocated_unmodified_table_schema(::hbase::pb::TableSchema* unmodified_table_schema) { + delete unmodified_table_schema_; + unmodified_table_schema_ = unmodified_table_schema; + if (unmodified_table_schema) { + set_has_unmodified_table_schema(); + } else { + clear_has_unmodified_table_schema(); + } +} + +// ------------------------------------------------------------------- + +// DeleteColumnFamilyStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool DeleteColumnFamilyStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeleteColumnFamilyStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeleteColumnFamilyStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeleteColumnFamilyStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& DeleteColumnFamilyStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* DeleteColumnFamilyStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* DeleteColumnFamilyStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void DeleteColumnFamilyStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// required .hbase.pb.TableName table_name = 2; +inline bool DeleteColumnFamilyStateData::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DeleteColumnFamilyStateData::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void DeleteColumnFamilyStateData::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DeleteColumnFamilyStateData::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& DeleteColumnFamilyStateData::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* DeleteColumnFamilyStateData::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* DeleteColumnFamilyStateData::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void DeleteColumnFamilyStateData::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required bytes columnfamily_name = 3; +inline bool DeleteColumnFamilyStateData::has_columnfamily_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DeleteColumnFamilyStateData::set_has_columnfamily_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void DeleteColumnFamilyStateData::clear_has_columnfamily_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DeleteColumnFamilyStateData::clear_columnfamily_name() { + if (columnfamily_name_ != &::google::protobuf::internal::kEmptyString) { + columnfamily_name_->clear(); + } + clear_has_columnfamily_name(); +} +inline const ::std::string& DeleteColumnFamilyStateData::columnfamily_name() const { + return *columnfamily_name_; +} +inline void DeleteColumnFamilyStateData::set_columnfamily_name(const ::std::string& value) { + set_has_columnfamily_name(); + if (columnfamily_name_ == &::google::protobuf::internal::kEmptyString) { + columnfamily_name_ = new ::std::string; + } + columnfamily_name_->assign(value); +} +inline void DeleteColumnFamilyStateData::set_columnfamily_name(const char* value) { + set_has_columnfamily_name(); + if (columnfamily_name_ == &::google::protobuf::internal::kEmptyString) { + columnfamily_name_ = new ::std::string; + } + columnfamily_name_->assign(value); +} +inline void DeleteColumnFamilyStateData::set_columnfamily_name(const void* value, size_t size) { + set_has_columnfamily_name(); + if (columnfamily_name_ == &::google::protobuf::internal::kEmptyString) { + columnfamily_name_ = new ::std::string; + } + columnfamily_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DeleteColumnFamilyStateData::mutable_columnfamily_name() { + set_has_columnfamily_name(); + if (columnfamily_name_ == &::google::protobuf::internal::kEmptyString) { + columnfamily_name_ = new ::std::string; + } + return columnfamily_name_; +} +inline ::std::string* DeleteColumnFamilyStateData::release_columnfamily_name() { + clear_has_columnfamily_name(); + if (columnfamily_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = columnfamily_name_; + columnfamily_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DeleteColumnFamilyStateData::set_allocated_columnfamily_name(::std::string* columnfamily_name) { + if (columnfamily_name_ != &::google::protobuf::internal::kEmptyString) { + delete columnfamily_name_; + } + if (columnfamily_name) { + set_has_columnfamily_name(); + columnfamily_name_ = columnfamily_name; + } else { + clear_has_columnfamily_name(); + columnfamily_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.TableSchema unmodified_table_schema = 4; +inline bool DeleteColumnFamilyStateData::has_unmodified_table_schema() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DeleteColumnFamilyStateData::set_has_unmodified_table_schema() { + _has_bits_[0] |= 0x00000008u; +} +inline void DeleteColumnFamilyStateData::clear_has_unmodified_table_schema() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DeleteColumnFamilyStateData::clear_unmodified_table_schema() { + if (unmodified_table_schema_ != NULL) unmodified_table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_unmodified_table_schema(); +} +inline const ::hbase::pb::TableSchema& DeleteColumnFamilyStateData::unmodified_table_schema() const { + return unmodified_table_schema_ != NULL ? *unmodified_table_schema_ : *default_instance_->unmodified_table_schema_; +} +inline ::hbase::pb::TableSchema* DeleteColumnFamilyStateData::mutable_unmodified_table_schema() { + set_has_unmodified_table_schema(); + if (unmodified_table_schema_ == NULL) unmodified_table_schema_ = new ::hbase::pb::TableSchema; + return unmodified_table_schema_; +} +inline ::hbase::pb::TableSchema* DeleteColumnFamilyStateData::release_unmodified_table_schema() { + clear_has_unmodified_table_schema(); + ::hbase::pb::TableSchema* temp = unmodified_table_schema_; + unmodified_table_schema_ = NULL; + return temp; +} +inline void DeleteColumnFamilyStateData::set_allocated_unmodified_table_schema(::hbase::pb::TableSchema* unmodified_table_schema) { + delete unmodified_table_schema_; + unmodified_table_schema_ = unmodified_table_schema; + if (unmodified_table_schema) { + set_has_unmodified_table_schema(); + } else { + clear_has_unmodified_table_schema(); + } +} + +// ------------------------------------------------------------------- + +// EnableTableStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool EnableTableStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EnableTableStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void EnableTableStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EnableTableStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& EnableTableStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* EnableTableStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* EnableTableStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void EnableTableStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// required .hbase.pb.TableName table_name = 2; +inline bool EnableTableStateData::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EnableTableStateData::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void EnableTableStateData::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EnableTableStateData::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& EnableTableStateData::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* EnableTableStateData::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* EnableTableStateData::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void EnableTableStateData::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required bool skip_table_state_check = 3; +inline bool EnableTableStateData::has_skip_table_state_check() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EnableTableStateData::set_has_skip_table_state_check() { + _has_bits_[0] |= 0x00000004u; +} +inline void EnableTableStateData::clear_has_skip_table_state_check() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EnableTableStateData::clear_skip_table_state_check() { + skip_table_state_check_ = false; + clear_has_skip_table_state_check(); +} +inline bool EnableTableStateData::skip_table_state_check() const { + return skip_table_state_check_; +} +inline void EnableTableStateData::set_skip_table_state_check(bool value) { + set_has_skip_table_state_check(); + skip_table_state_check_ = value; +} + +// ------------------------------------------------------------------- + +// DisableTableStateData + +// required .hbase.pb.UserInformation user_info = 1; +inline bool DisableTableStateData::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DisableTableStateData::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void DisableTableStateData::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DisableTableStateData::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& DisableTableStateData::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* DisableTableStateData::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* DisableTableStateData::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void DisableTableStateData::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// required .hbase.pb.TableName table_name = 2; +inline bool DisableTableStateData::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DisableTableStateData::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void DisableTableStateData::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DisableTableStateData::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& DisableTableStateData::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* DisableTableStateData::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* DisableTableStateData::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void DisableTableStateData::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required bool skip_table_state_check = 3; +inline bool DisableTableStateData::has_skip_table_state_check() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DisableTableStateData::set_has_skip_table_state_check() { + _has_bits_[0] |= 0x00000004u; +} +inline void DisableTableStateData::clear_has_skip_table_state_check() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DisableTableStateData::clear_skip_table_state_check() { + skip_table_state_check_ = false; + clear_has_skip_table_state_check(); +} +inline bool DisableTableStateData::skip_table_state_check() const { + return skip_table_state_check_; +} +inline void DisableTableStateData::set_skip_table_state_check(bool value) { + set_has_skip_table_state_check(); + skip_table_state_check_ = value; +} + +// ------------------------------------------------------------------- + +// ServerCrashStateData + +// required .hbase.pb.ServerName server_name = 1; +inline bool ServerCrashStateData::has_server_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ServerCrashStateData::set_has_server_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ServerCrashStateData::clear_has_server_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ServerCrashStateData::clear_server_name() { + if (server_name_ != NULL) server_name_->::hbase::pb::ServerName::Clear(); + clear_has_server_name(); +} +inline const ::hbase::pb::ServerName& ServerCrashStateData::server_name() const { + return server_name_ != NULL ? *server_name_ : *default_instance_->server_name_; +} +inline ::hbase::pb::ServerName* ServerCrashStateData::mutable_server_name() { + set_has_server_name(); + if (server_name_ == NULL) server_name_ = new ::hbase::pb::ServerName; + return server_name_; +} +inline ::hbase::pb::ServerName* ServerCrashStateData::release_server_name() { + clear_has_server_name(); + ::hbase::pb::ServerName* temp = server_name_; + server_name_ = NULL; + return temp; +} +inline void ServerCrashStateData::set_allocated_server_name(::hbase::pb::ServerName* server_name) { + delete server_name_; + server_name_ = server_name; + if (server_name) { + set_has_server_name(); + } else { + clear_has_server_name(); + } +} + +// optional bool distributed_log_replay = 2; +inline bool ServerCrashStateData::has_distributed_log_replay() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ServerCrashStateData::set_has_distributed_log_replay() { + _has_bits_[0] |= 0x00000002u; +} +inline void ServerCrashStateData::clear_has_distributed_log_replay() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ServerCrashStateData::clear_distributed_log_replay() { + distributed_log_replay_ = false; + clear_has_distributed_log_replay(); +} +inline bool ServerCrashStateData::distributed_log_replay() const { + return distributed_log_replay_; +} +inline void ServerCrashStateData::set_distributed_log_replay(bool value) { + set_has_distributed_log_replay(); + distributed_log_replay_ = value; +} + +// repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3; +inline int ServerCrashStateData::regions_on_crashed_server_size() const { + return regions_on_crashed_server_.size(); +} +inline void ServerCrashStateData::clear_regions_on_crashed_server() { + regions_on_crashed_server_.Clear(); +} +inline const ::hbase::pb::RegionInfo& ServerCrashStateData::regions_on_crashed_server(int index) const { + return regions_on_crashed_server_.Get(index); +} +inline ::hbase::pb::RegionInfo* ServerCrashStateData::mutable_regions_on_crashed_server(int index) { + return regions_on_crashed_server_.Mutable(index); +} +inline ::hbase::pb::RegionInfo* ServerCrashStateData::add_regions_on_crashed_server() { + return regions_on_crashed_server_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& +ServerCrashStateData::regions_on_crashed_server() const { + return regions_on_crashed_server_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* +ServerCrashStateData::mutable_regions_on_crashed_server() { + return ®ions_on_crashed_server_; +} + +// repeated .hbase.pb.RegionInfo regions_assigned = 4; +inline int ServerCrashStateData::regions_assigned_size() const { + return regions_assigned_.size(); +} +inline void ServerCrashStateData::clear_regions_assigned() { + regions_assigned_.Clear(); +} +inline const ::hbase::pb::RegionInfo& ServerCrashStateData::regions_assigned(int index) const { + return regions_assigned_.Get(index); +} +inline ::hbase::pb::RegionInfo* ServerCrashStateData::mutable_regions_assigned(int index) { + return regions_assigned_.Mutable(index); +} +inline ::hbase::pb::RegionInfo* ServerCrashStateData::add_regions_assigned() { + return regions_assigned_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& +ServerCrashStateData::regions_assigned() const { + return regions_assigned_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* +ServerCrashStateData::mutable_regions_assigned() { + return ®ions_assigned_; +} + +// optional bool carrying_meta = 5; +inline bool ServerCrashStateData::has_carrying_meta() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ServerCrashStateData::set_has_carrying_meta() { + _has_bits_[0] |= 0x00000010u; +} +inline void ServerCrashStateData::clear_has_carrying_meta() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ServerCrashStateData::clear_carrying_meta() { + carrying_meta_ = false; + clear_has_carrying_meta(); +} +inline bool ServerCrashStateData::carrying_meta() const { + return carrying_meta_; +} +inline void ServerCrashStateData::set_carrying_meta(bool value) { + set_has_carrying_meta(); + carrying_meta_ = value; +} + +// optional bool should_split_wal = 6 [default = true]; +inline bool ServerCrashStateData::has_should_split_wal() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void ServerCrashStateData::set_has_should_split_wal() { + _has_bits_[0] |= 0x00000020u; +} +inline void ServerCrashStateData::clear_has_should_split_wal() { + _has_bits_[0] &= ~0x00000020u; +} +inline void ServerCrashStateData::clear_should_split_wal() { + should_split_wal_ = true; + clear_has_should_split_wal(); +} +inline bool ServerCrashStateData::should_split_wal() const { + return should_split_wal_; +} +inline void ServerCrashStateData::set_should_split_wal(bool value) { + set_has_should_split_wal(); + should_split_wal_ = value; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::CreateTableState>() { + return ::hbase::pb::CreateTableState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ModifyTableState>() { + return ::hbase::pb::ModifyTableState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::TruncateTableState>() { + return ::hbase::pb::TruncateTableState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::DeleteTableState>() { + return ::hbase::pb::DeleteTableState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::CreateNamespaceState>() { + return ::hbase::pb::CreateNamespaceState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ModifyNamespaceState>() { + return ::hbase::pb::ModifyNamespaceState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::DeleteNamespaceState>() { + return ::hbase::pb::DeleteNamespaceState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::AddColumnFamilyState>() { + return ::hbase::pb::AddColumnFamilyState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ModifyColumnFamilyState>() { + return ::hbase::pb::ModifyColumnFamilyState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::DeleteColumnFamilyState>() { + return ::hbase::pb::DeleteColumnFamilyState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::EnableTableState>() { + return ::hbase::pb::EnableTableState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::DisableTableState>() { + return ::hbase::pb::DisableTableState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ServerCrashState>() { + return ::hbase::pb::ServerCrashState_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_MasterProcedure_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/MultiRowMutation.pb.cc b/hbase-native-client/src/rpc/generated/MultiRowMutation.pb.cc new file mode 100644 index 0000000..cb8ce93 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/MultiRowMutation.pb.cc @@ -0,0 +1,944 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MultiRowMutation.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "MultiRowMutation.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* MultiRowMutationProcessorRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MultiRowMutationProcessorRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MultiRowMutationProcessorResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MultiRowMutationProcessorResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* MutateRowsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MutateRowsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MutateRowsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MutateRowsResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_MultiRowMutation_2eproto() { + protobuf_AddDesc_MultiRowMutation_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "MultiRowMutation.proto"); + GOOGLE_CHECK(file != NULL); + MultiRowMutationProcessorRequest_descriptor_ = file->message_type(0); + static const int MultiRowMutationProcessorRequest_offsets_[1] = { + }; + MultiRowMutationProcessorRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MultiRowMutationProcessorRequest_descriptor_, + MultiRowMutationProcessorRequest::default_instance_, + MultiRowMutationProcessorRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRowMutationProcessorRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRowMutationProcessorRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MultiRowMutationProcessorRequest)); + MultiRowMutationProcessorResponse_descriptor_ = file->message_type(1); + static const int MultiRowMutationProcessorResponse_offsets_[1] = { + }; + MultiRowMutationProcessorResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MultiRowMutationProcessorResponse_descriptor_, + MultiRowMutationProcessorResponse::default_instance_, + MultiRowMutationProcessorResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRowMutationProcessorResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiRowMutationProcessorResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MultiRowMutationProcessorResponse)); + MutateRowsRequest_descriptor_ = file->message_type(2); + static const int MutateRowsRequest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRowsRequest, mutation_request_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRowsRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRowsRequest, nonce_), + }; + MutateRowsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MutateRowsRequest_descriptor_, + MutateRowsRequest::default_instance_, + MutateRowsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRowsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRowsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MutateRowsRequest)); + MutateRowsResponse_descriptor_ = file->message_type(3); + static const int MutateRowsResponse_offsets_[1] = { + }; + MutateRowsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MutateRowsResponse_descriptor_, + MutateRowsResponse::default_instance_, + MutateRowsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRowsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MutateRowsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MutateRowsResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_MultiRowMutation_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MultiRowMutationProcessorRequest_descriptor_, &MultiRowMutationProcessorRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MultiRowMutationProcessorResponse_descriptor_, &MultiRowMutationProcessorResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MutateRowsRequest_descriptor_, &MutateRowsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MutateRowsResponse_descriptor_, &MutateRowsResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_MultiRowMutation_2eproto() { + delete MultiRowMutationProcessorRequest::default_instance_; + delete MultiRowMutationProcessorRequest_reflection_; + delete MultiRowMutationProcessorResponse::default_instance_; + delete MultiRowMutationProcessorResponse_reflection_; + delete MutateRowsRequest::default_instance_; + delete MutateRowsRequest_reflection_; + delete MutateRowsResponse::default_instance_; + delete MutateRowsResponse_reflection_; +} + +void protobuf_AddDesc_MultiRowMutation_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_Client_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\026MultiRowMutation.proto\022\010hbase.pb\032\014Clie" + "nt.proto\"\"\n MultiRowMutationProcessorReq" + "uest\"#\n!MultiRowMutationProcessorRespons" + "e\"j\n\021MutateRowsRequest\0221\n\020mutation_reque" + "st\030\001 \003(\0132\027.hbase.pb.MutationProto\022\023\n\013non" + "ce_group\030\002 \001(\004\022\r\n\005nonce\030\003 \001(\004\"\024\n\022MutateR" + "owsResponse2b\n\027MultiRowMutationService\022G" + "\n\nMutateRows\022\033.hbase.pb.MutateRowsReques" + "t\032\034.hbase.pb.MutateRowsResponseBL\n*org.a" + "pache.hadoop.hbase.protobuf.generatedB\026M" + "ultiRowMutationProtosH\001\210\001\001\240\001\001", 429); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "MultiRowMutation.proto", &protobuf_RegisterTypes); + MultiRowMutationProcessorRequest::default_instance_ = new MultiRowMutationProcessorRequest(); + MultiRowMutationProcessorResponse::default_instance_ = new MultiRowMutationProcessorResponse(); + MutateRowsRequest::default_instance_ = new MutateRowsRequest(); + MutateRowsResponse::default_instance_ = new MutateRowsResponse(); + MultiRowMutationProcessorRequest::default_instance_->InitAsDefaultInstance(); + MultiRowMutationProcessorResponse::default_instance_->InitAsDefaultInstance(); + MutateRowsRequest::default_instance_->InitAsDefaultInstance(); + MutateRowsResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_MultiRowMutation_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_MultiRowMutation_2eproto { + StaticDescriptorInitializer_MultiRowMutation_2eproto() { + protobuf_AddDesc_MultiRowMutation_2eproto(); + } +} static_descriptor_initializer_MultiRowMutation_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +MultiRowMutationProcessorRequest::MultiRowMutationProcessorRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MultiRowMutationProcessorRequest::InitAsDefaultInstance() { +} + +MultiRowMutationProcessorRequest::MultiRowMutationProcessorRequest(const MultiRowMutationProcessorRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MultiRowMutationProcessorRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MultiRowMutationProcessorRequest::~MultiRowMutationProcessorRequest() { + SharedDtor(); +} + +void MultiRowMutationProcessorRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void MultiRowMutationProcessorRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MultiRowMutationProcessorRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MultiRowMutationProcessorRequest_descriptor_; +} + +const MultiRowMutationProcessorRequest& MultiRowMutationProcessorRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MultiRowMutation_2eproto(); + return *default_instance_; +} + +MultiRowMutationProcessorRequest* MultiRowMutationProcessorRequest::default_instance_ = NULL; + +MultiRowMutationProcessorRequest* MultiRowMutationProcessorRequest::New() const { + return new MultiRowMutationProcessorRequest; +} + +void MultiRowMutationProcessorRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MultiRowMutationProcessorRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void MultiRowMutationProcessorRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MultiRowMutationProcessorRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MultiRowMutationProcessorRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MultiRowMutationProcessorRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MultiRowMutationProcessorRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MultiRowMutationProcessorRequest::MergeFrom(const MultiRowMutationProcessorRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MultiRowMutationProcessorRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultiRowMutationProcessorRequest::CopyFrom(const MultiRowMutationProcessorRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultiRowMutationProcessorRequest::IsInitialized() const { + + return true; +} + +void MultiRowMutationProcessorRequest::Swap(MultiRowMutationProcessorRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MultiRowMutationProcessorRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MultiRowMutationProcessorRequest_descriptor_; + metadata.reflection = MultiRowMutationProcessorRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +MultiRowMutationProcessorResponse::MultiRowMutationProcessorResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MultiRowMutationProcessorResponse::InitAsDefaultInstance() { +} + +MultiRowMutationProcessorResponse::MultiRowMutationProcessorResponse(const MultiRowMutationProcessorResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MultiRowMutationProcessorResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MultiRowMutationProcessorResponse::~MultiRowMutationProcessorResponse() { + SharedDtor(); +} + +void MultiRowMutationProcessorResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void MultiRowMutationProcessorResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MultiRowMutationProcessorResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MultiRowMutationProcessorResponse_descriptor_; +} + +const MultiRowMutationProcessorResponse& MultiRowMutationProcessorResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MultiRowMutation_2eproto(); + return *default_instance_; +} + +MultiRowMutationProcessorResponse* MultiRowMutationProcessorResponse::default_instance_ = NULL; + +MultiRowMutationProcessorResponse* MultiRowMutationProcessorResponse::New() const { + return new MultiRowMutationProcessorResponse; +} + +void MultiRowMutationProcessorResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MultiRowMutationProcessorResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void MultiRowMutationProcessorResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MultiRowMutationProcessorResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MultiRowMutationProcessorResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MultiRowMutationProcessorResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MultiRowMutationProcessorResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MultiRowMutationProcessorResponse::MergeFrom(const MultiRowMutationProcessorResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MultiRowMutationProcessorResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultiRowMutationProcessorResponse::CopyFrom(const MultiRowMutationProcessorResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultiRowMutationProcessorResponse::IsInitialized() const { + + return true; +} + +void MultiRowMutationProcessorResponse::Swap(MultiRowMutationProcessorResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MultiRowMutationProcessorResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MultiRowMutationProcessorResponse_descriptor_; + metadata.reflection = MultiRowMutationProcessorResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MutateRowsRequest::kMutationRequestFieldNumber; +const int MutateRowsRequest::kNonceGroupFieldNumber; +const int MutateRowsRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +MutateRowsRequest::MutateRowsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MutateRowsRequest::InitAsDefaultInstance() { +} + +MutateRowsRequest::MutateRowsRequest(const MutateRowsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MutateRowsRequest::SharedCtor() { + _cached_size_ = 0; + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MutateRowsRequest::~MutateRowsRequest() { + SharedDtor(); +} + +void MutateRowsRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void MutateRowsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MutateRowsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutateRowsRequest_descriptor_; +} + +const MutateRowsRequest& MutateRowsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MultiRowMutation_2eproto(); + return *default_instance_; +} + +MutateRowsRequest* MutateRowsRequest::default_instance_ = NULL; + +MutateRowsRequest* MutateRowsRequest::New() const { + return new MutateRowsRequest; +} + +void MutateRowsRequest::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + mutation_request_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MutateRowsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.MutationProto mutation_request = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_mutation_request: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_mutation_request())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_mutation_request; + if (input->ExpectTag(16)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MutateRowsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.MutationProto mutation_request = 1; + for (int i = 0; i < this->mutation_request_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->mutation_request(i), output); + } + + // optional uint64 nonce_group = 2; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->nonce_group(), output); + } + + // optional uint64 nonce = 3; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MutateRowsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.MutationProto mutation_request = 1; + for (int i = 0; i < this->mutation_request_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->mutation_request(i), target); + } + + // optional uint64 nonce_group = 2; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->nonce_group(), target); + } + + // optional uint64 nonce = 3; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MutateRowsRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional uint64 nonce_group = 2; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 3; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + // repeated .hbase.pb.MutationProto mutation_request = 1; + total_size += 1 * this->mutation_request_size(); + for (int i = 0; i < this->mutation_request_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->mutation_request(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MutateRowsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MutateRowsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MutateRowsRequest::MergeFrom(const MutateRowsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutation_request_.MergeFrom(from.mutation_request_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MutateRowsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MutateRowsRequest::CopyFrom(const MutateRowsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MutateRowsRequest::IsInitialized() const { + + for (int i = 0; i < mutation_request_size(); i++) { + if (!this->mutation_request(i).IsInitialized()) return false; + } + return true; +} + +void MutateRowsRequest::Swap(MutateRowsRequest* other) { + if (other != this) { + mutation_request_.Swap(&other->mutation_request_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MutateRowsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MutateRowsRequest_descriptor_; + metadata.reflection = MutateRowsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +MutateRowsResponse::MutateRowsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MutateRowsResponse::InitAsDefaultInstance() { +} + +MutateRowsResponse::MutateRowsResponse(const MutateRowsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MutateRowsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MutateRowsResponse::~MutateRowsResponse() { + SharedDtor(); +} + +void MutateRowsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void MutateRowsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MutateRowsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MutateRowsResponse_descriptor_; +} + +const MutateRowsResponse& MutateRowsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_MultiRowMutation_2eproto(); + return *default_instance_; +} + +MutateRowsResponse* MutateRowsResponse::default_instance_ = NULL; + +MutateRowsResponse* MutateRowsResponse::New() const { + return new MutateRowsResponse; +} + +void MutateRowsResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MutateRowsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void MutateRowsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MutateRowsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MutateRowsResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MutateRowsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MutateRowsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MutateRowsResponse::MergeFrom(const MutateRowsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MutateRowsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MutateRowsResponse::CopyFrom(const MutateRowsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MutateRowsResponse::IsInitialized() const { + + return true; +} + +void MutateRowsResponse::Swap(MutateRowsResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MutateRowsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MutateRowsResponse_descriptor_; + metadata.reflection = MutateRowsResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/MultiRowMutation.pb.h b/hbase-native-client/src/rpc/generated/MultiRowMutation.pb.h new file mode 100644 index 0000000..7ab72cc --- /dev/null +++ b/hbase-native-client/src/rpc/generated/MultiRowMutation.pb.h @@ -0,0 +1,469 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MultiRowMutation.proto + +#ifndef PROTOBUF_MultiRowMutation_2eproto__INCLUDED +#define PROTOBUF_MultiRowMutation_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "Client.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_MultiRowMutation_2eproto(); +void protobuf_AssignDesc_MultiRowMutation_2eproto(); +void protobuf_ShutdownFile_MultiRowMutation_2eproto(); + +class MultiRowMutationProcessorRequest; +class MultiRowMutationProcessorResponse; +class MutateRowsRequest; +class MutateRowsResponse; + +// =================================================================== + +class MultiRowMutationProcessorRequest : public ::google::protobuf::Message { + public: + MultiRowMutationProcessorRequest(); + virtual ~MultiRowMutationProcessorRequest(); + + MultiRowMutationProcessorRequest(const MultiRowMutationProcessorRequest& from); + + inline MultiRowMutationProcessorRequest& operator=(const MultiRowMutationProcessorRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultiRowMutationProcessorRequest& default_instance(); + + void Swap(MultiRowMutationProcessorRequest* other); + + // implements Message ---------------------------------------------- + + MultiRowMutationProcessorRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MultiRowMutationProcessorRequest& from); + void MergeFrom(const MultiRowMutationProcessorRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.MultiRowMutationProcessorRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_MultiRowMutation_2eproto(); + friend void protobuf_AssignDesc_MultiRowMutation_2eproto(); + friend void protobuf_ShutdownFile_MultiRowMutation_2eproto(); + + void InitAsDefaultInstance(); + static MultiRowMutationProcessorRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MultiRowMutationProcessorResponse : public ::google::protobuf::Message { + public: + MultiRowMutationProcessorResponse(); + virtual ~MultiRowMutationProcessorResponse(); + + MultiRowMutationProcessorResponse(const MultiRowMutationProcessorResponse& from); + + inline MultiRowMutationProcessorResponse& operator=(const MultiRowMutationProcessorResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultiRowMutationProcessorResponse& default_instance(); + + void Swap(MultiRowMutationProcessorResponse* other); + + // implements Message ---------------------------------------------- + + MultiRowMutationProcessorResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MultiRowMutationProcessorResponse& from); + void MergeFrom(const MultiRowMutationProcessorResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.MultiRowMutationProcessorResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_MultiRowMutation_2eproto(); + friend void protobuf_AssignDesc_MultiRowMutation_2eproto(); + friend void protobuf_ShutdownFile_MultiRowMutation_2eproto(); + + void InitAsDefaultInstance(); + static MultiRowMutationProcessorResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class MutateRowsRequest : public ::google::protobuf::Message { + public: + MutateRowsRequest(); + virtual ~MutateRowsRequest(); + + MutateRowsRequest(const MutateRowsRequest& from); + + inline MutateRowsRequest& operator=(const MutateRowsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MutateRowsRequest& default_instance(); + + void Swap(MutateRowsRequest* other); + + // implements Message ---------------------------------------------- + + MutateRowsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MutateRowsRequest& from); + void MergeFrom(const MutateRowsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.MutationProto mutation_request = 1; + inline int mutation_request_size() const; + inline void clear_mutation_request(); + static const int kMutationRequestFieldNumber = 1; + inline const ::hbase::pb::MutationProto& mutation_request(int index) const; + inline ::hbase::pb::MutationProto* mutable_mutation_request(int index); + inline ::hbase::pb::MutationProto* add_mutation_request(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto >& + mutation_request() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto >* + mutable_mutation_request(); + + // optional uint64 nonce_group = 2; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 2; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 3; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 3; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.MutateRowsRequest) + private: + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto > mutation_request_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_MultiRowMutation_2eproto(); + friend void protobuf_AssignDesc_MultiRowMutation_2eproto(); + friend void protobuf_ShutdownFile_MultiRowMutation_2eproto(); + + void InitAsDefaultInstance(); + static MutateRowsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MutateRowsResponse : public ::google::protobuf::Message { + public: + MutateRowsResponse(); + virtual ~MutateRowsResponse(); + + MutateRowsResponse(const MutateRowsResponse& from); + + inline MutateRowsResponse& operator=(const MutateRowsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MutateRowsResponse& default_instance(); + + void Swap(MutateRowsResponse* other); + + // implements Message ---------------------------------------------- + + MutateRowsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MutateRowsResponse& from); + void MergeFrom(const MutateRowsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.MutateRowsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_MultiRowMutation_2eproto(); + friend void protobuf_AssignDesc_MultiRowMutation_2eproto(); + friend void protobuf_ShutdownFile_MultiRowMutation_2eproto(); + + void InitAsDefaultInstance(); + static MutateRowsResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// MultiRowMutationProcessorRequest + +// ------------------------------------------------------------------- + +// MultiRowMutationProcessorResponse + +// ------------------------------------------------------------------- + +// MutateRowsRequest + +// repeated .hbase.pb.MutationProto mutation_request = 1; +inline int MutateRowsRequest::mutation_request_size() const { + return mutation_request_.size(); +} +inline void MutateRowsRequest::clear_mutation_request() { + mutation_request_.Clear(); +} +inline const ::hbase::pb::MutationProto& MutateRowsRequest::mutation_request(int index) const { + return mutation_request_.Get(index); +} +inline ::hbase::pb::MutationProto* MutateRowsRequest::mutable_mutation_request(int index) { + return mutation_request_.Mutable(index); +} +inline ::hbase::pb::MutationProto* MutateRowsRequest::add_mutation_request() { + return mutation_request_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto >& +MutateRowsRequest::mutation_request() const { + return mutation_request_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::MutationProto >* +MutateRowsRequest::mutable_mutation_request() { + return &mutation_request_; +} + +// optional uint64 nonce_group = 2; +inline bool MutateRowsRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MutateRowsRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000002u; +} +inline void MutateRowsRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MutateRowsRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 MutateRowsRequest::nonce_group() const { + return nonce_group_; +} +inline void MutateRowsRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 3; +inline bool MutateRowsRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MutateRowsRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000004u; +} +inline void MutateRowsRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MutateRowsRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 MutateRowsRequest::nonce() const { + return nonce_; +} +inline void MutateRowsRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// MutateRowsResponse + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_MultiRowMutation_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Procedure.pb.cc b/hbase-native-client/src/rpc/generated/Procedure.pb.cc new file mode 100644 index 0000000..51f40c9 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Procedure.pb.cc @@ -0,0 +1,2983 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Procedure.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Procedure.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* Procedure_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Procedure_reflection_ = NULL; +const ::google::protobuf::Descriptor* SequentialProcedureData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SequentialProcedureData_reflection_ = NULL; +const ::google::protobuf::Descriptor* StateMachineProcedureData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StateMachineProcedureData_reflection_ = NULL; +const ::google::protobuf::Descriptor* ProcedureWALHeader_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ProcedureWALHeader_reflection_ = NULL; +const ::google::protobuf::Descriptor* ProcedureWALTrailer_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ProcedureWALTrailer_reflection_ = NULL; +const ::google::protobuf::Descriptor* ProcedureStoreTracker_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ProcedureStoreTracker_reflection_ = NULL; +const ::google::protobuf::Descriptor* ProcedureStoreTracker_TrackerNode_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ProcedureStoreTracker_TrackerNode_reflection_ = NULL; +const ::google::protobuf::Descriptor* ProcedureWALEntry_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ProcedureWALEntry_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* ProcedureWALEntry_Type_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* ProcedureState_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Procedure_2eproto() { + protobuf_AddDesc_Procedure_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Procedure.proto"); + GOOGLE_CHECK(file != NULL); + Procedure_descriptor_ = file->message_type(0); + static const int Procedure_offsets_[14] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, class_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, parent_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, proc_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, start_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, owner_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, stack_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, last_update_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, timeout_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, exception_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, state_data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, nonce_), + }; + Procedure_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Procedure_descriptor_, + Procedure::default_instance_, + Procedure_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Procedure, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Procedure)); + SequentialProcedureData_descriptor_ = file->message_type(1); + static const int SequentialProcedureData_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SequentialProcedureData, executed_), + }; + SequentialProcedureData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SequentialProcedureData_descriptor_, + SequentialProcedureData::default_instance_, + SequentialProcedureData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SequentialProcedureData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SequentialProcedureData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SequentialProcedureData)); + StateMachineProcedureData_descriptor_ = file->message_type(2); + static const int StateMachineProcedureData_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StateMachineProcedureData, state_), + }; + StateMachineProcedureData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StateMachineProcedureData_descriptor_, + StateMachineProcedureData::default_instance_, + StateMachineProcedureData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StateMachineProcedureData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StateMachineProcedureData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StateMachineProcedureData)); + ProcedureWALHeader_descriptor_ = file->message_type(3); + static const int ProcedureWALHeader_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALHeader, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALHeader, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALHeader, log_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALHeader, min_proc_id_), + }; + ProcedureWALHeader_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ProcedureWALHeader_descriptor_, + ProcedureWALHeader::default_instance_, + ProcedureWALHeader_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALHeader, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALHeader, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ProcedureWALHeader)); + ProcedureWALTrailer_descriptor_ = file->message_type(4); + static const int ProcedureWALTrailer_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALTrailer, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALTrailer, tracker_pos_), + }; + ProcedureWALTrailer_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ProcedureWALTrailer_descriptor_, + ProcedureWALTrailer::default_instance_, + ProcedureWALTrailer_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALTrailer, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALTrailer, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ProcedureWALTrailer)); + ProcedureStoreTracker_descriptor_ = file->message_type(5); + static const int ProcedureStoreTracker_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureStoreTracker, node_), + }; + ProcedureStoreTracker_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ProcedureStoreTracker_descriptor_, + ProcedureStoreTracker::default_instance_, + ProcedureStoreTracker_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureStoreTracker, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureStoreTracker, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ProcedureStoreTracker)); + ProcedureStoreTracker_TrackerNode_descriptor_ = ProcedureStoreTracker_descriptor_->nested_type(0); + static const int ProcedureStoreTracker_TrackerNode_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureStoreTracker_TrackerNode, start_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureStoreTracker_TrackerNode, updated_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureStoreTracker_TrackerNode, deleted_), + }; + ProcedureStoreTracker_TrackerNode_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ProcedureStoreTracker_TrackerNode_descriptor_, + ProcedureStoreTracker_TrackerNode::default_instance_, + ProcedureStoreTracker_TrackerNode_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureStoreTracker_TrackerNode, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureStoreTracker_TrackerNode, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ProcedureStoreTracker_TrackerNode)); + ProcedureWALEntry_descriptor_ = file->message_type(6); + static const int ProcedureWALEntry_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALEntry, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALEntry, procedure_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALEntry, proc_id_), + }; + ProcedureWALEntry_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ProcedureWALEntry_descriptor_, + ProcedureWALEntry::default_instance_, + ProcedureWALEntry_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALEntry, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcedureWALEntry, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ProcedureWALEntry)); + ProcedureWALEntry_Type_descriptor_ = ProcedureWALEntry_descriptor_->enum_type(0); + ProcedureState_descriptor_ = file->enum_type(0); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Procedure_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Procedure_descriptor_, &Procedure::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SequentialProcedureData_descriptor_, &SequentialProcedureData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StateMachineProcedureData_descriptor_, &StateMachineProcedureData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ProcedureWALHeader_descriptor_, &ProcedureWALHeader::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ProcedureWALTrailer_descriptor_, &ProcedureWALTrailer::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ProcedureStoreTracker_descriptor_, &ProcedureStoreTracker::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ProcedureStoreTracker_TrackerNode_descriptor_, &ProcedureStoreTracker_TrackerNode::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ProcedureWALEntry_descriptor_, &ProcedureWALEntry::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Procedure_2eproto() { + delete Procedure::default_instance_; + delete Procedure_reflection_; + delete SequentialProcedureData::default_instance_; + delete SequentialProcedureData_reflection_; + delete StateMachineProcedureData::default_instance_; + delete StateMachineProcedureData_reflection_; + delete ProcedureWALHeader::default_instance_; + delete ProcedureWALHeader_reflection_; + delete ProcedureWALTrailer::default_instance_; + delete ProcedureWALTrailer_reflection_; + delete ProcedureStoreTracker::default_instance_; + delete ProcedureStoreTracker_reflection_; + delete ProcedureStoreTracker_TrackerNode::default_instance_; + delete ProcedureStoreTracker_TrackerNode_reflection_; + delete ProcedureWALEntry::default_instance_; + delete ProcedureWALEntry_reflection_; +} + +void protobuf_AddDesc_Procedure_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_ErrorHandling_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\017Procedure.proto\022\010hbase.pb\032\023ErrorHandli" + "ng.proto\"\313\002\n\tProcedure\022\022\n\nclass_name\030\001 \002" + "(\t\022\021\n\tparent_id\030\002 \001(\004\022\017\n\007proc_id\030\003 \002(\004\022\022" + "\n\nstart_time\030\004 \002(\004\022\r\n\005owner\030\005 \001(\t\022\'\n\005sta" + "te\030\006 \002(\0162\030.hbase.pb.ProcedureState\022\020\n\010st" + "ack_id\030\007 \003(\r\022\023\n\013last_update\030\010 \002(\004\022\017\n\007tim" + "eout\030\t \001(\r\0224\n\texception\030\n \001(\0132!.hbase.pb" + ".ForeignExceptionMessage\022\016\n\006result\030\013 \001(\014" + "\022\022\n\nstate_data\030\014 \001(\014\022\026\n\013nonce_group\030\r \001(" + "\004:\0010\022\020\n\005nonce\030\016 \001(\004:\0010\"+\n\027SequentialProc" + "edureData\022\020\n\010executed\030\001 \002(\010\"*\n\031StateMach" + "ineProcedureData\022\r\n\005state\030\001 \003(\r\"X\n\022Proce" + "dureWALHeader\022\017\n\007version\030\001 \002(\r\022\014\n\004type\030\002" + " \002(\r\022\016\n\006log_id\030\003 \002(\004\022\023\n\013min_proc_id\030\004 \002(" + "\004\";\n\023ProcedureWALTrailer\022\017\n\007version\030\001 \002(" + "\r\022\023\n\013tracker_pos\030\002 \002(\004\"\225\001\n\025ProcedureStor" + "eTracker\0229\n\004node\030\001 \003(\0132+.hbase.pb.Proced" + "ureStoreTracker.TrackerNode\032A\n\013TrackerNo" + "de\022\020\n\010start_id\030\001 \002(\004\022\017\n\007updated\030\002 \003(\004\022\017\n" + "\007deleted\030\003 \003(\004\"\235\002\n\021ProcedureWALEntry\022.\n\004" + "type\030\001 \002(\0162 .hbase.pb.ProcedureWALEntry." + "Type\022&\n\tprocedure\030\002 \003(\0132\023.hbase.pb.Proce" + "dure\022\017\n\007proc_id\030\003 \001(\004\"\236\001\n\004Type\022\025\n\021PROCED" + "URE_WAL_EOF\020\001\022\026\n\022PROCEDURE_WAL_INIT\020\002\022\030\n" + "\024PROCEDURE_WAL_INSERT\020\003\022\030\n\024PROCEDURE_WAL" + "_UPDATE\020\004\022\030\n\024PROCEDURE_WAL_DELETE\020\005\022\031\n\025P" + "ROCEDURE_WAL_COMPACT\020\006*p\n\016ProcedureState" + "\022\020\n\014INITIALIZING\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007WAIT" + "ING\020\003\022\023\n\017WAITING_TIMEOUT\020\004\022\016\n\nROLLEDBACK" + "\020\005\022\014\n\010FINISHED\020\006BE\n*org.apache.hadoop.hb" + "ase.protobuf.generatedB\017ProcedureProtosH" + "\001\210\001\001\240\001\001", 1247); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Procedure.proto", &protobuf_RegisterTypes); + Procedure::default_instance_ = new Procedure(); + SequentialProcedureData::default_instance_ = new SequentialProcedureData(); + StateMachineProcedureData::default_instance_ = new StateMachineProcedureData(); + ProcedureWALHeader::default_instance_ = new ProcedureWALHeader(); + ProcedureWALTrailer::default_instance_ = new ProcedureWALTrailer(); + ProcedureStoreTracker::default_instance_ = new ProcedureStoreTracker(); + ProcedureStoreTracker_TrackerNode::default_instance_ = new ProcedureStoreTracker_TrackerNode(); + ProcedureWALEntry::default_instance_ = new ProcedureWALEntry(); + Procedure::default_instance_->InitAsDefaultInstance(); + SequentialProcedureData::default_instance_->InitAsDefaultInstance(); + StateMachineProcedureData::default_instance_->InitAsDefaultInstance(); + ProcedureWALHeader::default_instance_->InitAsDefaultInstance(); + ProcedureWALTrailer::default_instance_->InitAsDefaultInstance(); + ProcedureStoreTracker::default_instance_->InitAsDefaultInstance(); + ProcedureStoreTracker_TrackerNode::default_instance_->InitAsDefaultInstance(); + ProcedureWALEntry::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Procedure_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Procedure_2eproto { + StaticDescriptorInitializer_Procedure_2eproto() { + protobuf_AddDesc_Procedure_2eproto(); + } +} static_descriptor_initializer_Procedure_2eproto_; +const ::google::protobuf::EnumDescriptor* ProcedureState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcedureState_descriptor_; +} +bool ProcedureState_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Procedure::kClassNameFieldNumber; +const int Procedure::kParentIdFieldNumber; +const int Procedure::kProcIdFieldNumber; +const int Procedure::kStartTimeFieldNumber; +const int Procedure::kOwnerFieldNumber; +const int Procedure::kStateFieldNumber; +const int Procedure::kStackIdFieldNumber; +const int Procedure::kLastUpdateFieldNumber; +const int Procedure::kTimeoutFieldNumber; +const int Procedure::kExceptionFieldNumber; +const int Procedure::kResultFieldNumber; +const int Procedure::kStateDataFieldNumber; +const int Procedure::kNonceGroupFieldNumber; +const int Procedure::kNonceFieldNumber; +#endif // !_MSC_VER + +Procedure::Procedure() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Procedure::InitAsDefaultInstance() { + exception_ = const_cast< ::hbase::pb::ForeignExceptionMessage*>(&::hbase::pb::ForeignExceptionMessage::default_instance()); +} + +Procedure::Procedure(const Procedure& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Procedure::SharedCtor() { + _cached_size_ = 0; + class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + parent_id_ = GOOGLE_ULONGLONG(0); + proc_id_ = GOOGLE_ULONGLONG(0); + start_time_ = GOOGLE_ULONGLONG(0); + owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + state_ = 1; + last_update_ = GOOGLE_ULONGLONG(0); + timeout_ = 0u; + exception_ = NULL; + result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + state_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Procedure::~Procedure() { + SharedDtor(); +} + +void Procedure::SharedDtor() { + if (class_name_ != &::google::protobuf::internal::kEmptyString) { + delete class_name_; + } + if (owner_ != &::google::protobuf::internal::kEmptyString) { + delete owner_; + } + if (result_ != &::google::protobuf::internal::kEmptyString) { + delete result_; + } + if (state_data_ != &::google::protobuf::internal::kEmptyString) { + delete state_data_; + } + if (this != default_instance_) { + delete exception_; + } +} + +void Procedure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Procedure::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Procedure_descriptor_; +} + +const Procedure& Procedure::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Procedure_2eproto(); + return *default_instance_; +} + +Procedure* Procedure::default_instance_ = NULL; + +Procedure* Procedure::New() const { + return new Procedure; +} + +void Procedure::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_class_name()) { + if (class_name_ != &::google::protobuf::internal::kEmptyString) { + class_name_->clear(); + } + } + parent_id_ = GOOGLE_ULONGLONG(0); + proc_id_ = GOOGLE_ULONGLONG(0); + start_time_ = GOOGLE_ULONGLONG(0); + if (has_owner()) { + if (owner_ != &::google::protobuf::internal::kEmptyString) { + owner_->clear(); + } + } + state_ = 1; + last_update_ = GOOGLE_ULONGLONG(0); + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + timeout_ = 0u; + if (has_exception()) { + if (exception_ != NULL) exception_->::hbase::pb::ForeignExceptionMessage::Clear(); + } + if (has_result()) { + if (result_ != &::google::protobuf::internal::kEmptyString) { + result_->clear(); + } + } + if (has_state_data()) { + if (state_data_ != &::google::protobuf::internal::kEmptyString) { + state_data_->clear(); + } + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + stack_id_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Procedure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string class_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_class_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->class_name().data(), this->class_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_parent_id; + break; + } + + // optional uint64 parent_id = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_parent_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &parent_id_))); + set_has_parent_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_proc_id; + break; + } + + // required uint64 proc_id = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_proc_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_start_time; + break; + } + + // required uint64 start_time = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_start_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &start_time_))); + set_has_start_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_owner; + break; + } + + // optional string owner = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_owner: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->owner().data(), this->owner().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_state; + break; + } + + // required .hbase.pb.ProcedureState state = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_state: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::ProcedureState_IsValid(value)) { + set_state(static_cast< ::hbase::pb::ProcedureState >(value)); + } else { + mutable_unknown_fields()->AddVarint(6, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_stack_id; + break; + } + + // repeated uint32 stack_id = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_stack_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 56, input, this->mutable_stack_id()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_stack_id()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_stack_id; + if (input->ExpectTag(64)) goto parse_last_update; + break; + } + + // required uint64 last_update = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_last_update: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &last_update_))); + set_has_last_update(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_timeout; + break; + } + + // optional uint32 timeout = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_timeout: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &timeout_))); + set_has_timeout(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(82)) goto parse_exception; + break; + } + + // optional .hbase.pb.ForeignExceptionMessage exception = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_exception: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_exception())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(90)) goto parse_result; + break; + } + + // optional bytes result = 11; + case 11: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_result: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_result())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(98)) goto parse_state_data; + break; + } + + // optional bytes state_data = 12; + case 12: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_state_data: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_state_data())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(104)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 13 [default = 0]; + case 13: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(112)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 14 [default = 0]; + case 14: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Procedure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string class_name = 1; + if (has_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->class_name().data(), this->class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->class_name(), output); + } + + // optional uint64 parent_id = 2; + if (has_parent_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->parent_id(), output); + } + + // required uint64 proc_id = 3; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->proc_id(), output); + } + + // required uint64 start_time = 4; + if (has_start_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->start_time(), output); + } + + // optional string owner = 5; + if (has_owner()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->owner().data(), this->owner().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->owner(), output); + } + + // required .hbase.pb.ProcedureState state = 6; + if (has_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->state(), output); + } + + // repeated uint32 stack_id = 7; + for (int i = 0; i < this->stack_id_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 7, this->stack_id(i), output); + } + + // required uint64 last_update = 8; + if (has_last_update()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->last_update(), output); + } + + // optional uint32 timeout = 9; + if (has_timeout()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->timeout(), output); + } + + // optional .hbase.pb.ForeignExceptionMessage exception = 10; + if (has_exception()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, this->exception(), output); + } + + // optional bytes result = 11; + if (has_result()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 11, this->result(), output); + } + + // optional bytes state_data = 12; + if (has_state_data()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 12, this->state_data(), output); + } + + // optional uint64 nonce_group = 13 [default = 0]; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(13, this->nonce_group(), output); + } + + // optional uint64 nonce = 14 [default = 0]; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(14, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Procedure::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string class_name = 1; + if (has_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->class_name().data(), this->class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->class_name(), target); + } + + // optional uint64 parent_id = 2; + if (has_parent_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->parent_id(), target); + } + + // required uint64 proc_id = 3; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->proc_id(), target); + } + + // required uint64 start_time = 4; + if (has_start_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->start_time(), target); + } + + // optional string owner = 5; + if (has_owner()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->owner().data(), this->owner().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->owner(), target); + } + + // required .hbase.pb.ProcedureState state = 6; + if (has_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->state(), target); + } + + // repeated uint32 stack_id = 7; + for (int i = 0; i < this->stack_id_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(7, this->stack_id(i), target); + } + + // required uint64 last_update = 8; + if (has_last_update()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->last_update(), target); + } + + // optional uint32 timeout = 9; + if (has_timeout()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->timeout(), target); + } + + // optional .hbase.pb.ForeignExceptionMessage exception = 10; + if (has_exception()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 10, this->exception(), target); + } + + // optional bytes result = 11; + if (has_result()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 11, this->result(), target); + } + + // optional bytes state_data = 12; + if (has_state_data()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 12, this->state_data(), target); + } + + // optional uint64 nonce_group = 13 [default = 0]; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(13, this->nonce_group(), target); + } + + // optional uint64 nonce = 14 [default = 0]; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(14, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Procedure::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string class_name = 1; + if (has_class_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->class_name()); + } + + // optional uint64 parent_id = 2; + if (has_parent_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->parent_id()); + } + + // required uint64 proc_id = 3; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + // required uint64 start_time = 4; + if (has_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->start_time()); + } + + // optional string owner = 5; + if (has_owner()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner()); + } + + // required .hbase.pb.ProcedureState state = 6; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + // required uint64 last_update = 8; + if (has_last_update()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->last_update()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional uint32 timeout = 9; + if (has_timeout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timeout()); + } + + // optional .hbase.pb.ForeignExceptionMessage exception = 10; + if (has_exception()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->exception()); + } + + // optional bytes result = 11; + if (has_result()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->result()); + } + + // optional bytes state_data = 12; + if (has_state_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->state_data()); + } + + // optional uint64 nonce_group = 13 [default = 0]; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 14 [default = 0]; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + // repeated uint32 stack_id = 7; + { + int data_size = 0; + for (int i = 0; i < this->stack_id_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->stack_id(i)); + } + total_size += 1 * this->stack_id_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Procedure::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Procedure* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Procedure::MergeFrom(const Procedure& from) { + GOOGLE_CHECK_NE(&from, this); + stack_id_.MergeFrom(from.stack_id_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_class_name()) { + set_class_name(from.class_name()); + } + if (from.has_parent_id()) { + set_parent_id(from.parent_id()); + } + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + if (from.has_start_time()) { + set_start_time(from.start_time()); + } + if (from.has_owner()) { + set_owner(from.owner()); + } + if (from.has_state()) { + set_state(from.state()); + } + if (from.has_last_update()) { + set_last_update(from.last_update()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_timeout()) { + set_timeout(from.timeout()); + } + if (from.has_exception()) { + mutable_exception()->::hbase::pb::ForeignExceptionMessage::MergeFrom(from.exception()); + } + if (from.has_result()) { + set_result(from.result()); + } + if (from.has_state_data()) { + set_state_data(from.state_data()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Procedure::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Procedure::CopyFrom(const Procedure& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Procedure::IsInitialized() const { + if ((_has_bits_[0] & 0x000000ad) != 0x000000ad) return false; + + return true; +} + +void Procedure::Swap(Procedure* other) { + if (other != this) { + std::swap(class_name_, other->class_name_); + std::swap(parent_id_, other->parent_id_); + std::swap(proc_id_, other->proc_id_); + std::swap(start_time_, other->start_time_); + std::swap(owner_, other->owner_); + std::swap(state_, other->state_); + stack_id_.Swap(&other->stack_id_); + std::swap(last_update_, other->last_update_); + std::swap(timeout_, other->timeout_); + std::swap(exception_, other->exception_); + std::swap(result_, other->result_); + std::swap(state_data_, other->state_data_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Procedure::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Procedure_descriptor_; + metadata.reflection = Procedure_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SequentialProcedureData::kExecutedFieldNumber; +#endif // !_MSC_VER + +SequentialProcedureData::SequentialProcedureData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SequentialProcedureData::InitAsDefaultInstance() { +} + +SequentialProcedureData::SequentialProcedureData(const SequentialProcedureData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SequentialProcedureData::SharedCtor() { + _cached_size_ = 0; + executed_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SequentialProcedureData::~SequentialProcedureData() { + SharedDtor(); +} + +void SequentialProcedureData::SharedDtor() { + if (this != default_instance_) { + } +} + +void SequentialProcedureData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SequentialProcedureData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SequentialProcedureData_descriptor_; +} + +const SequentialProcedureData& SequentialProcedureData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Procedure_2eproto(); + return *default_instance_; +} + +SequentialProcedureData* SequentialProcedureData::default_instance_ = NULL; + +SequentialProcedureData* SequentialProcedureData::New() const { + return new SequentialProcedureData; +} + +void SequentialProcedureData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + executed_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SequentialProcedureData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool executed = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &executed_))); + set_has_executed(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SequentialProcedureData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool executed = 1; + if (has_executed()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->executed(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SequentialProcedureData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool executed = 1; + if (has_executed()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->executed(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SequentialProcedureData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool executed = 1; + if (has_executed()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SequentialProcedureData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SequentialProcedureData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SequentialProcedureData::MergeFrom(const SequentialProcedureData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_executed()) { + set_executed(from.executed()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SequentialProcedureData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SequentialProcedureData::CopyFrom(const SequentialProcedureData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SequentialProcedureData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SequentialProcedureData::Swap(SequentialProcedureData* other) { + if (other != this) { + std::swap(executed_, other->executed_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SequentialProcedureData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SequentialProcedureData_descriptor_; + metadata.reflection = SequentialProcedureData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int StateMachineProcedureData::kStateFieldNumber; +#endif // !_MSC_VER + +StateMachineProcedureData::StateMachineProcedureData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StateMachineProcedureData::InitAsDefaultInstance() { +} + +StateMachineProcedureData::StateMachineProcedureData(const StateMachineProcedureData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StateMachineProcedureData::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StateMachineProcedureData::~StateMachineProcedureData() { + SharedDtor(); +} + +void StateMachineProcedureData::SharedDtor() { + if (this != default_instance_) { + } +} + +void StateMachineProcedureData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StateMachineProcedureData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StateMachineProcedureData_descriptor_; +} + +const StateMachineProcedureData& StateMachineProcedureData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Procedure_2eproto(); + return *default_instance_; +} + +StateMachineProcedureData* StateMachineProcedureData::default_instance_ = NULL; + +StateMachineProcedureData* StateMachineProcedureData::New() const { + return new StateMachineProcedureData; +} + +void StateMachineProcedureData::Clear() { + state_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StateMachineProcedureData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 state = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_state: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8, input, this->mutable_state()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_state()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(8)) goto parse_state; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StateMachineProcedureData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated uint32 state = 1; + for (int i = 0; i < this->state_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->state(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StateMachineProcedureData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated uint32 state = 1; + for (int i = 0; i < this->state_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->state(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StateMachineProcedureData::ByteSize() const { + int total_size = 0; + + // repeated uint32 state = 1; + { + int data_size = 0; + for (int i = 0; i < this->state_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->state(i)); + } + total_size += 1 * this->state_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StateMachineProcedureData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StateMachineProcedureData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StateMachineProcedureData::MergeFrom(const StateMachineProcedureData& from) { + GOOGLE_CHECK_NE(&from, this); + state_.MergeFrom(from.state_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StateMachineProcedureData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StateMachineProcedureData::CopyFrom(const StateMachineProcedureData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StateMachineProcedureData::IsInitialized() const { + + return true; +} + +void StateMachineProcedureData::Swap(StateMachineProcedureData* other) { + if (other != this) { + state_.Swap(&other->state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StateMachineProcedureData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StateMachineProcedureData_descriptor_; + metadata.reflection = StateMachineProcedureData_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ProcedureWALHeader::kVersionFieldNumber; +const int ProcedureWALHeader::kTypeFieldNumber; +const int ProcedureWALHeader::kLogIdFieldNumber; +const int ProcedureWALHeader::kMinProcIdFieldNumber; +#endif // !_MSC_VER + +ProcedureWALHeader::ProcedureWALHeader() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ProcedureWALHeader::InitAsDefaultInstance() { +} + +ProcedureWALHeader::ProcedureWALHeader(const ProcedureWALHeader& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ProcedureWALHeader::SharedCtor() { + _cached_size_ = 0; + version_ = 0u; + type_ = 0u; + log_id_ = GOOGLE_ULONGLONG(0); + min_proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ProcedureWALHeader::~ProcedureWALHeader() { + SharedDtor(); +} + +void ProcedureWALHeader::SharedDtor() { + if (this != default_instance_) { + } +} + +void ProcedureWALHeader::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProcedureWALHeader::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcedureWALHeader_descriptor_; +} + +const ProcedureWALHeader& ProcedureWALHeader::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Procedure_2eproto(); + return *default_instance_; +} + +ProcedureWALHeader* ProcedureWALHeader::default_instance_ = NULL; + +ProcedureWALHeader* ProcedureWALHeader::New() const { + return new ProcedureWALHeader; +} + +void ProcedureWALHeader::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + version_ = 0u; + type_ = 0u; + log_id_ = GOOGLE_ULONGLONG(0); + min_proc_id_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ProcedureWALHeader::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 version = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_))); + set_has_version(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_type; + break; + } + + // required uint32 type = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_type: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &type_))); + set_has_type(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_log_id; + break; + } + + // required uint64 log_id = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_log_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &log_id_))); + set_has_log_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_min_proc_id; + break; + } + + // required uint64 min_proc_id = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_min_proc_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &min_proc_id_))); + set_has_min_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ProcedureWALHeader::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 version = 1; + if (has_version()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->version(), output); + } + + // required uint32 type = 2; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->type(), output); + } + + // required uint64 log_id = 3; + if (has_log_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->log_id(), output); + } + + // required uint64 min_proc_id = 4; + if (has_min_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->min_proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ProcedureWALHeader::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 version = 1; + if (has_version()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->version(), target); + } + + // required uint32 type = 2; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->type(), target); + } + + // required uint64 log_id = 3; + if (has_log_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->log_id(), target); + } + + // required uint64 min_proc_id = 4; + if (has_min_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->min_proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ProcedureWALHeader::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version()); + } + + // required uint32 type = 2; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->type()); + } + + // required uint64 log_id = 3; + if (has_log_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->log_id()); + } + + // required uint64 min_proc_id = 4; + if (has_min_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->min_proc_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProcedureWALHeader::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ProcedureWALHeader* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ProcedureWALHeader::MergeFrom(const ProcedureWALHeader& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_version()) { + set_version(from.version()); + } + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_log_id()) { + set_log_id(from.log_id()); + } + if (from.has_min_proc_id()) { + set_min_proc_id(from.min_proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ProcedureWALHeader::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProcedureWALHeader::CopyFrom(const ProcedureWALHeader& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureWALHeader::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; + + return true; +} + +void ProcedureWALHeader::Swap(ProcedureWALHeader* other) { + if (other != this) { + std::swap(version_, other->version_); + std::swap(type_, other->type_); + std::swap(log_id_, other->log_id_); + std::swap(min_proc_id_, other->min_proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ProcedureWALHeader::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ProcedureWALHeader_descriptor_; + metadata.reflection = ProcedureWALHeader_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ProcedureWALTrailer::kVersionFieldNumber; +const int ProcedureWALTrailer::kTrackerPosFieldNumber; +#endif // !_MSC_VER + +ProcedureWALTrailer::ProcedureWALTrailer() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ProcedureWALTrailer::InitAsDefaultInstance() { +} + +ProcedureWALTrailer::ProcedureWALTrailer(const ProcedureWALTrailer& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ProcedureWALTrailer::SharedCtor() { + _cached_size_ = 0; + version_ = 0u; + tracker_pos_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ProcedureWALTrailer::~ProcedureWALTrailer() { + SharedDtor(); +} + +void ProcedureWALTrailer::SharedDtor() { + if (this != default_instance_) { + } +} + +void ProcedureWALTrailer::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProcedureWALTrailer::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcedureWALTrailer_descriptor_; +} + +const ProcedureWALTrailer& ProcedureWALTrailer::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Procedure_2eproto(); + return *default_instance_; +} + +ProcedureWALTrailer* ProcedureWALTrailer::default_instance_ = NULL; + +ProcedureWALTrailer* ProcedureWALTrailer::New() const { + return new ProcedureWALTrailer; +} + +void ProcedureWALTrailer::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + version_ = 0u; + tracker_pos_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ProcedureWALTrailer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 version = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &version_))); + set_has_version(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_tracker_pos; + break; + } + + // required uint64 tracker_pos = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_tracker_pos: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &tracker_pos_))); + set_has_tracker_pos(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ProcedureWALTrailer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 version = 1; + if (has_version()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->version(), output); + } + + // required uint64 tracker_pos = 2; + if (has_tracker_pos()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->tracker_pos(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ProcedureWALTrailer::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 version = 1; + if (has_version()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->version(), target); + } + + // required uint64 tracker_pos = 2; + if (has_tracker_pos()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->tracker_pos(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ProcedureWALTrailer::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->version()); + } + + // required uint64 tracker_pos = 2; + if (has_tracker_pos()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->tracker_pos()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProcedureWALTrailer::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ProcedureWALTrailer* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ProcedureWALTrailer::MergeFrom(const ProcedureWALTrailer& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_version()) { + set_version(from.version()); + } + if (from.has_tracker_pos()) { + set_tracker_pos(from.tracker_pos()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ProcedureWALTrailer::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProcedureWALTrailer::CopyFrom(const ProcedureWALTrailer& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureWALTrailer::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void ProcedureWALTrailer::Swap(ProcedureWALTrailer* other) { + if (other != this) { + std::swap(version_, other->version_); + std::swap(tracker_pos_, other->tracker_pos_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ProcedureWALTrailer::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ProcedureWALTrailer_descriptor_; + metadata.reflection = ProcedureWALTrailer_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ProcedureStoreTracker_TrackerNode::kStartIdFieldNumber; +const int ProcedureStoreTracker_TrackerNode::kUpdatedFieldNumber; +const int ProcedureStoreTracker_TrackerNode::kDeletedFieldNumber; +#endif // !_MSC_VER + +ProcedureStoreTracker_TrackerNode::ProcedureStoreTracker_TrackerNode() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ProcedureStoreTracker_TrackerNode::InitAsDefaultInstance() { +} + +ProcedureStoreTracker_TrackerNode::ProcedureStoreTracker_TrackerNode(const ProcedureStoreTracker_TrackerNode& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ProcedureStoreTracker_TrackerNode::SharedCtor() { + _cached_size_ = 0; + start_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ProcedureStoreTracker_TrackerNode::~ProcedureStoreTracker_TrackerNode() { + SharedDtor(); +} + +void ProcedureStoreTracker_TrackerNode::SharedDtor() { + if (this != default_instance_) { + } +} + +void ProcedureStoreTracker_TrackerNode::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProcedureStoreTracker_TrackerNode::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcedureStoreTracker_TrackerNode_descriptor_; +} + +const ProcedureStoreTracker_TrackerNode& ProcedureStoreTracker_TrackerNode::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Procedure_2eproto(); + return *default_instance_; +} + +ProcedureStoreTracker_TrackerNode* ProcedureStoreTracker_TrackerNode::default_instance_ = NULL; + +ProcedureStoreTracker_TrackerNode* ProcedureStoreTracker_TrackerNode::New() const { + return new ProcedureStoreTracker_TrackerNode; +} + +void ProcedureStoreTracker_TrackerNode::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + start_id_ = GOOGLE_ULONGLONG(0); + } + updated_.Clear(); + deleted_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ProcedureStoreTracker_TrackerNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 start_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &start_id_))); + set_has_start_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_updated; + break; + } + + // repeated uint64 updated = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_updated: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + 1, 16, input, this->mutable_updated()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, this->mutable_updated()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_updated; + if (input->ExpectTag(24)) goto parse_deleted; + break; + } + + // repeated uint64 deleted = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_deleted: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + 1, 24, input, this->mutable_deleted()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, this->mutable_deleted()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_deleted; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ProcedureStoreTracker_TrackerNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 start_id = 1; + if (has_start_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->start_id(), output); + } + + // repeated uint64 updated = 2; + for (int i = 0; i < this->updated_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64( + 2, this->updated(i), output); + } + + // repeated uint64 deleted = 3; + for (int i = 0; i < this->deleted_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64( + 3, this->deleted(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ProcedureStoreTracker_TrackerNode::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 start_id = 1; + if (has_start_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->start_id(), target); + } + + // repeated uint64 updated = 2; + for (int i = 0; i < this->updated_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt64ToArray(2, this->updated(i), target); + } + + // repeated uint64 deleted = 3; + for (int i = 0; i < this->deleted_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt64ToArray(3, this->deleted(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ProcedureStoreTracker_TrackerNode::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 start_id = 1; + if (has_start_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->start_id()); + } + + } + // repeated uint64 updated = 2; + { + int data_size = 0; + for (int i = 0; i < this->updated_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt64Size(this->updated(i)); + } + total_size += 1 * this->updated_size() + data_size; + } + + // repeated uint64 deleted = 3; + { + int data_size = 0; + for (int i = 0; i < this->deleted_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt64Size(this->deleted(i)); + } + total_size += 1 * this->deleted_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProcedureStoreTracker_TrackerNode::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ProcedureStoreTracker_TrackerNode* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ProcedureStoreTracker_TrackerNode::MergeFrom(const ProcedureStoreTracker_TrackerNode& from) { + GOOGLE_CHECK_NE(&from, this); + updated_.MergeFrom(from.updated_); + deleted_.MergeFrom(from.deleted_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_start_id()) { + set_start_id(from.start_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ProcedureStoreTracker_TrackerNode::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProcedureStoreTracker_TrackerNode::CopyFrom(const ProcedureStoreTracker_TrackerNode& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureStoreTracker_TrackerNode::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ProcedureStoreTracker_TrackerNode::Swap(ProcedureStoreTracker_TrackerNode* other) { + if (other != this) { + std::swap(start_id_, other->start_id_); + updated_.Swap(&other->updated_); + deleted_.Swap(&other->deleted_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ProcedureStoreTracker_TrackerNode::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ProcedureStoreTracker_TrackerNode_descriptor_; + metadata.reflection = ProcedureStoreTracker_TrackerNode_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int ProcedureStoreTracker::kNodeFieldNumber; +#endif // !_MSC_VER + +ProcedureStoreTracker::ProcedureStoreTracker() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ProcedureStoreTracker::InitAsDefaultInstance() { +} + +ProcedureStoreTracker::ProcedureStoreTracker(const ProcedureStoreTracker& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ProcedureStoreTracker::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ProcedureStoreTracker::~ProcedureStoreTracker() { + SharedDtor(); +} + +void ProcedureStoreTracker::SharedDtor() { + if (this != default_instance_) { + } +} + +void ProcedureStoreTracker::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProcedureStoreTracker::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcedureStoreTracker_descriptor_; +} + +const ProcedureStoreTracker& ProcedureStoreTracker::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Procedure_2eproto(); + return *default_instance_; +} + +ProcedureStoreTracker* ProcedureStoreTracker::default_instance_ = NULL; + +ProcedureStoreTracker* ProcedureStoreTracker::New() const { + return new ProcedureStoreTracker; +} + +void ProcedureStoreTracker::Clear() { + node_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ProcedureStoreTracker::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_node: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_node())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_node; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ProcedureStoreTracker::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1; + for (int i = 0; i < this->node_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->node(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ProcedureStoreTracker::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1; + for (int i = 0; i < this->node_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->node(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ProcedureStoreTracker::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1; + total_size += 1 * this->node_size(); + for (int i = 0; i < this->node_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->node(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProcedureStoreTracker::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ProcedureStoreTracker* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ProcedureStoreTracker::MergeFrom(const ProcedureStoreTracker& from) { + GOOGLE_CHECK_NE(&from, this); + node_.MergeFrom(from.node_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ProcedureStoreTracker::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProcedureStoreTracker::CopyFrom(const ProcedureStoreTracker& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureStoreTracker::IsInitialized() const { + + for (int i = 0; i < node_size(); i++) { + if (!this->node(i).IsInitialized()) return false; + } + return true; +} + +void ProcedureStoreTracker::Swap(ProcedureStoreTracker* other) { + if (other != this) { + node_.Swap(&other->node_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ProcedureStoreTracker::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ProcedureStoreTracker_descriptor_; + metadata.reflection = ProcedureStoreTracker_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* ProcedureWALEntry_Type_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcedureWALEntry_Type_descriptor_; +} +bool ProcedureWALEntry_Type_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const ProcedureWALEntry_Type ProcedureWALEntry::PROCEDURE_WAL_EOF; +const ProcedureWALEntry_Type ProcedureWALEntry::PROCEDURE_WAL_INIT; +const ProcedureWALEntry_Type ProcedureWALEntry::PROCEDURE_WAL_INSERT; +const ProcedureWALEntry_Type ProcedureWALEntry::PROCEDURE_WAL_UPDATE; +const ProcedureWALEntry_Type ProcedureWALEntry::PROCEDURE_WAL_DELETE; +const ProcedureWALEntry_Type ProcedureWALEntry::PROCEDURE_WAL_COMPACT; +const ProcedureWALEntry_Type ProcedureWALEntry::Type_MIN; +const ProcedureWALEntry_Type ProcedureWALEntry::Type_MAX; +const int ProcedureWALEntry::Type_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int ProcedureWALEntry::kTypeFieldNumber; +const int ProcedureWALEntry::kProcedureFieldNumber; +const int ProcedureWALEntry::kProcIdFieldNumber; +#endif // !_MSC_VER + +ProcedureWALEntry::ProcedureWALEntry() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ProcedureWALEntry::InitAsDefaultInstance() { +} + +ProcedureWALEntry::ProcedureWALEntry(const ProcedureWALEntry& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ProcedureWALEntry::SharedCtor() { + _cached_size_ = 0; + type_ = 1; + proc_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ProcedureWALEntry::~ProcedureWALEntry() { + SharedDtor(); +} + +void ProcedureWALEntry::SharedDtor() { + if (this != default_instance_) { + } +} + +void ProcedureWALEntry::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProcedureWALEntry::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcedureWALEntry_descriptor_; +} + +const ProcedureWALEntry& ProcedureWALEntry::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Procedure_2eproto(); + return *default_instance_; +} + +ProcedureWALEntry* ProcedureWALEntry::default_instance_ = NULL; + +ProcedureWALEntry* ProcedureWALEntry::New() const { + return new ProcedureWALEntry; +} + +void ProcedureWALEntry::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + type_ = 1; + proc_id_ = GOOGLE_ULONGLONG(0); + } + procedure_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ProcedureWALEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ProcedureWALEntry.Type type = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::ProcedureWALEntry_Type_IsValid(value)) { + set_type(static_cast< ::hbase::pb::ProcedureWALEntry_Type >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_procedure; + break; + } + + // repeated .hbase.pb.Procedure procedure = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_procedure: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_procedure())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_procedure; + if (input->ExpectTag(24)) goto parse_proc_id; + break; + } + + // optional uint64 proc_id = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_proc_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &proc_id_))); + set_has_proc_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ProcedureWALEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ProcedureWALEntry.Type type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // repeated .hbase.pb.Procedure procedure = 2; + for (int i = 0; i < this->procedure_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->procedure(i), output); + } + + // optional uint64 proc_id = 3; + if (has_proc_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->proc_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ProcedureWALEntry::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ProcedureWALEntry.Type type = 1; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // repeated .hbase.pb.Procedure procedure = 2; + for (int i = 0; i < this->procedure_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->procedure(i), target); + } + + // optional uint64 proc_id = 3; + if (has_proc_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->proc_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ProcedureWALEntry::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ProcedureWALEntry.Type type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // optional uint64 proc_id = 3; + if (has_proc_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->proc_id()); + } + + } + // repeated .hbase.pb.Procedure procedure = 2; + total_size += 1 * this->procedure_size(); + for (int i = 0; i < this->procedure_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->procedure(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProcedureWALEntry::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ProcedureWALEntry* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ProcedureWALEntry::MergeFrom(const ProcedureWALEntry& from) { + GOOGLE_CHECK_NE(&from, this); + procedure_.MergeFrom(from.procedure_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_proc_id()) { + set_proc_id(from.proc_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ProcedureWALEntry::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProcedureWALEntry::CopyFrom(const ProcedureWALEntry& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureWALEntry::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < procedure_size(); i++) { + if (!this->procedure(i).IsInitialized()) return false; + } + return true; +} + +void ProcedureWALEntry::Swap(ProcedureWALEntry* other) { + if (other != this) { + std::swap(type_, other->type_); + procedure_.Swap(&other->procedure_); + std::swap(proc_id_, other->proc_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ProcedureWALEntry::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ProcedureWALEntry_descriptor_; + metadata.reflection = ProcedureWALEntry_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Procedure.pb.h b/hbase-native-client/src/rpc/generated/Procedure.pb.h new file mode 100644 index 0000000..534fa2a --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Procedure.pb.h @@ -0,0 +1,1956 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Procedure.proto + +#ifndef PROTOBUF_Procedure_2eproto__INCLUDED +#define PROTOBUF_Procedure_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "ErrorHandling.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Procedure_2eproto(); +void protobuf_AssignDesc_Procedure_2eproto(); +void protobuf_ShutdownFile_Procedure_2eproto(); + +class Procedure; +class SequentialProcedureData; +class StateMachineProcedureData; +class ProcedureWALHeader; +class ProcedureWALTrailer; +class ProcedureStoreTracker; +class ProcedureStoreTracker_TrackerNode; +class ProcedureWALEntry; + +enum ProcedureWALEntry_Type { + ProcedureWALEntry_Type_PROCEDURE_WAL_EOF = 1, + ProcedureWALEntry_Type_PROCEDURE_WAL_INIT = 2, + ProcedureWALEntry_Type_PROCEDURE_WAL_INSERT = 3, + ProcedureWALEntry_Type_PROCEDURE_WAL_UPDATE = 4, + ProcedureWALEntry_Type_PROCEDURE_WAL_DELETE = 5, + ProcedureWALEntry_Type_PROCEDURE_WAL_COMPACT = 6 +}; +bool ProcedureWALEntry_Type_IsValid(int value); +const ProcedureWALEntry_Type ProcedureWALEntry_Type_Type_MIN = ProcedureWALEntry_Type_PROCEDURE_WAL_EOF; +const ProcedureWALEntry_Type ProcedureWALEntry_Type_Type_MAX = ProcedureWALEntry_Type_PROCEDURE_WAL_COMPACT; +const int ProcedureWALEntry_Type_Type_ARRAYSIZE = ProcedureWALEntry_Type_Type_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ProcedureWALEntry_Type_descriptor(); +inline const ::std::string& ProcedureWALEntry_Type_Name(ProcedureWALEntry_Type value) { + return ::google::protobuf::internal::NameOfEnum( + ProcedureWALEntry_Type_descriptor(), value); +} +inline bool ProcedureWALEntry_Type_Parse( + const ::std::string& name, ProcedureWALEntry_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ProcedureWALEntry_Type_descriptor(), name, value); +} +enum ProcedureState { + INITIALIZING = 1, + RUNNABLE = 2, + WAITING = 3, + WAITING_TIMEOUT = 4, + ROLLEDBACK = 5, + FINISHED = 6 +}; +bool ProcedureState_IsValid(int value); +const ProcedureState ProcedureState_MIN = INITIALIZING; +const ProcedureState ProcedureState_MAX = FINISHED; +const int ProcedureState_ARRAYSIZE = ProcedureState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ProcedureState_descriptor(); +inline const ::std::string& ProcedureState_Name(ProcedureState value) { + return ::google::protobuf::internal::NameOfEnum( + ProcedureState_descriptor(), value); +} +inline bool ProcedureState_Parse( + const ::std::string& name, ProcedureState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ProcedureState_descriptor(), name, value); +} +// =================================================================== + +class Procedure : public ::google::protobuf::Message { + public: + Procedure(); + virtual ~Procedure(); + + Procedure(const Procedure& from); + + inline Procedure& operator=(const Procedure& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Procedure& default_instance(); + + void Swap(Procedure* other); + + // implements Message ---------------------------------------------- + + Procedure* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Procedure& from); + void MergeFrom(const Procedure& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string class_name = 1; + inline bool has_class_name() const; + inline void clear_class_name(); + static const int kClassNameFieldNumber = 1; + inline const ::std::string& class_name() const; + inline void set_class_name(const ::std::string& value); + inline void set_class_name(const char* value); + inline void set_class_name(const char* value, size_t size); + inline ::std::string* mutable_class_name(); + inline ::std::string* release_class_name(); + inline void set_allocated_class_name(::std::string* class_name); + + // optional uint64 parent_id = 2; + inline bool has_parent_id() const; + inline void clear_parent_id(); + static const int kParentIdFieldNumber = 2; + inline ::google::protobuf::uint64 parent_id() const; + inline void set_parent_id(::google::protobuf::uint64 value); + + // required uint64 proc_id = 3; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 3; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // required uint64 start_time = 4; + inline bool has_start_time() const; + inline void clear_start_time(); + static const int kStartTimeFieldNumber = 4; + inline ::google::protobuf::uint64 start_time() const; + inline void set_start_time(::google::protobuf::uint64 value); + + // optional string owner = 5; + inline bool has_owner() const; + inline void clear_owner(); + static const int kOwnerFieldNumber = 5; + inline const ::std::string& owner() const; + inline void set_owner(const ::std::string& value); + inline void set_owner(const char* value); + inline void set_owner(const char* value, size_t size); + inline ::std::string* mutable_owner(); + inline ::std::string* release_owner(); + inline void set_allocated_owner(::std::string* owner); + + // required .hbase.pb.ProcedureState state = 6; + inline bool has_state() const; + inline void clear_state(); + static const int kStateFieldNumber = 6; + inline ::hbase::pb::ProcedureState state() const; + inline void set_state(::hbase::pb::ProcedureState value); + + // repeated uint32 stack_id = 7; + inline int stack_id_size() const; + inline void clear_stack_id(); + static const int kStackIdFieldNumber = 7; + inline ::google::protobuf::uint32 stack_id(int index) const; + inline void set_stack_id(int index, ::google::protobuf::uint32 value); + inline void add_stack_id(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + stack_id() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_stack_id(); + + // required uint64 last_update = 8; + inline bool has_last_update() const; + inline void clear_last_update(); + static const int kLastUpdateFieldNumber = 8; + inline ::google::protobuf::uint64 last_update() const; + inline void set_last_update(::google::protobuf::uint64 value); + + // optional uint32 timeout = 9; + inline bool has_timeout() const; + inline void clear_timeout(); + static const int kTimeoutFieldNumber = 9; + inline ::google::protobuf::uint32 timeout() const; + inline void set_timeout(::google::protobuf::uint32 value); + + // optional .hbase.pb.ForeignExceptionMessage exception = 10; + inline bool has_exception() const; + inline void clear_exception(); + static const int kExceptionFieldNumber = 10; + inline const ::hbase::pb::ForeignExceptionMessage& exception() const; + inline ::hbase::pb::ForeignExceptionMessage* mutable_exception(); + inline ::hbase::pb::ForeignExceptionMessage* release_exception(); + inline void set_allocated_exception(::hbase::pb::ForeignExceptionMessage* exception); + + // optional bytes result = 11; + inline bool has_result() const; + inline void clear_result(); + static const int kResultFieldNumber = 11; + inline const ::std::string& result() const; + inline void set_result(const ::std::string& value); + inline void set_result(const char* value); + inline void set_result(const void* value, size_t size); + inline ::std::string* mutable_result(); + inline ::std::string* release_result(); + inline void set_allocated_result(::std::string* result); + + // optional bytes state_data = 12; + inline bool has_state_data() const; + inline void clear_state_data(); + static const int kStateDataFieldNumber = 12; + inline const ::std::string& state_data() const; + inline void set_state_data(const ::std::string& value); + inline void set_state_data(const char* value); + inline void set_state_data(const void* value, size_t size); + inline ::std::string* mutable_state_data(); + inline ::std::string* release_state_data(); + inline void set_allocated_state_data(::std::string* state_data); + + // optional uint64 nonce_group = 13 [default = 0]; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 13; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 14 [default = 0]; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 14; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.Procedure) + private: + inline void set_has_class_name(); + inline void clear_has_class_name(); + inline void set_has_parent_id(); + inline void clear_has_parent_id(); + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + inline void set_has_start_time(); + inline void clear_has_start_time(); + inline void set_has_owner(); + inline void clear_has_owner(); + inline void set_has_state(); + inline void clear_has_state(); + inline void set_has_last_update(); + inline void clear_has_last_update(); + inline void set_has_timeout(); + inline void clear_has_timeout(); + inline void set_has_exception(); + inline void clear_has_exception(); + inline void set_has_result(); + inline void clear_has_result(); + inline void set_has_state_data(); + inline void clear_has_state_data(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* class_name_; + ::google::protobuf::uint64 parent_id_; + ::google::protobuf::uint64 proc_id_; + ::google::protobuf::uint64 start_time_; + ::std::string* owner_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > stack_id_; + int state_; + ::google::protobuf::uint32 timeout_; + ::google::protobuf::uint64 last_update_; + ::hbase::pb::ForeignExceptionMessage* exception_; + ::std::string* result_; + ::std::string* state_data_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(14 + 31) / 32]; + + friend void protobuf_AddDesc_Procedure_2eproto(); + friend void protobuf_AssignDesc_Procedure_2eproto(); + friend void protobuf_ShutdownFile_Procedure_2eproto(); + + void InitAsDefaultInstance(); + static Procedure* default_instance_; +}; +// ------------------------------------------------------------------- + +class SequentialProcedureData : public ::google::protobuf::Message { + public: + SequentialProcedureData(); + virtual ~SequentialProcedureData(); + + SequentialProcedureData(const SequentialProcedureData& from); + + inline SequentialProcedureData& operator=(const SequentialProcedureData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SequentialProcedureData& default_instance(); + + void Swap(SequentialProcedureData* other); + + // implements Message ---------------------------------------------- + + SequentialProcedureData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SequentialProcedureData& from); + void MergeFrom(const SequentialProcedureData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool executed = 1; + inline bool has_executed() const; + inline void clear_executed(); + static const int kExecutedFieldNumber = 1; + inline bool executed() const; + inline void set_executed(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SequentialProcedureData) + private: + inline void set_has_executed(); + inline void clear_has_executed(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool executed_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Procedure_2eproto(); + friend void protobuf_AssignDesc_Procedure_2eproto(); + friend void protobuf_ShutdownFile_Procedure_2eproto(); + + void InitAsDefaultInstance(); + static SequentialProcedureData* default_instance_; +}; +// ------------------------------------------------------------------- + +class StateMachineProcedureData : public ::google::protobuf::Message { + public: + StateMachineProcedureData(); + virtual ~StateMachineProcedureData(); + + StateMachineProcedureData(const StateMachineProcedureData& from); + + inline StateMachineProcedureData& operator=(const StateMachineProcedureData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StateMachineProcedureData& default_instance(); + + void Swap(StateMachineProcedureData* other); + + // implements Message ---------------------------------------------- + + StateMachineProcedureData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StateMachineProcedureData& from); + void MergeFrom(const StateMachineProcedureData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated uint32 state = 1; + inline int state_size() const; + inline void clear_state(); + static const int kStateFieldNumber = 1; + inline ::google::protobuf::uint32 state(int index) const; + inline void set_state(int index, ::google::protobuf::uint32 value); + inline void add_state(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + state() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_state(); + + // @@protoc_insertion_point(class_scope:hbase.pb.StateMachineProcedureData) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Procedure_2eproto(); + friend void protobuf_AssignDesc_Procedure_2eproto(); + friend void protobuf_ShutdownFile_Procedure_2eproto(); + + void InitAsDefaultInstance(); + static StateMachineProcedureData* default_instance_; +}; +// ------------------------------------------------------------------- + +class ProcedureWALHeader : public ::google::protobuf::Message { + public: + ProcedureWALHeader(); + virtual ~ProcedureWALHeader(); + + ProcedureWALHeader(const ProcedureWALHeader& from); + + inline ProcedureWALHeader& operator=(const ProcedureWALHeader& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ProcedureWALHeader& default_instance(); + + void Swap(ProcedureWALHeader* other); + + // implements Message ---------------------------------------------- + + ProcedureWALHeader* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ProcedureWALHeader& from); + void MergeFrom(const ProcedureWALHeader& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 version = 1; + inline bool has_version() const; + inline void clear_version(); + static const int kVersionFieldNumber = 1; + inline ::google::protobuf::uint32 version() const; + inline void set_version(::google::protobuf::uint32 value); + + // required uint32 type = 2; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 2; + inline ::google::protobuf::uint32 type() const; + inline void set_type(::google::protobuf::uint32 value); + + // required uint64 log_id = 3; + inline bool has_log_id() const; + inline void clear_log_id(); + static const int kLogIdFieldNumber = 3; + inline ::google::protobuf::uint64 log_id() const; + inline void set_log_id(::google::protobuf::uint64 value); + + // required uint64 min_proc_id = 4; + inline bool has_min_proc_id() const; + inline void clear_min_proc_id(); + static const int kMinProcIdFieldNumber = 4; + inline ::google::protobuf::uint64 min_proc_id() const; + inline void set_min_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ProcedureWALHeader) + private: + inline void set_has_version(); + inline void clear_has_version(); + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_log_id(); + inline void clear_has_log_id(); + inline void set_has_min_proc_id(); + inline void clear_has_min_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 version_; + ::google::protobuf::uint32 type_; + ::google::protobuf::uint64 log_id_; + ::google::protobuf::uint64 min_proc_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Procedure_2eproto(); + friend void protobuf_AssignDesc_Procedure_2eproto(); + friend void protobuf_ShutdownFile_Procedure_2eproto(); + + void InitAsDefaultInstance(); + static ProcedureWALHeader* default_instance_; +}; +// ------------------------------------------------------------------- + +class ProcedureWALTrailer : public ::google::protobuf::Message { + public: + ProcedureWALTrailer(); + virtual ~ProcedureWALTrailer(); + + ProcedureWALTrailer(const ProcedureWALTrailer& from); + + inline ProcedureWALTrailer& operator=(const ProcedureWALTrailer& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ProcedureWALTrailer& default_instance(); + + void Swap(ProcedureWALTrailer* other); + + // implements Message ---------------------------------------------- + + ProcedureWALTrailer* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ProcedureWALTrailer& from); + void MergeFrom(const ProcedureWALTrailer& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 version = 1; + inline bool has_version() const; + inline void clear_version(); + static const int kVersionFieldNumber = 1; + inline ::google::protobuf::uint32 version() const; + inline void set_version(::google::protobuf::uint32 value); + + // required uint64 tracker_pos = 2; + inline bool has_tracker_pos() const; + inline void clear_tracker_pos(); + static const int kTrackerPosFieldNumber = 2; + inline ::google::protobuf::uint64 tracker_pos() const; + inline void set_tracker_pos(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ProcedureWALTrailer) + private: + inline void set_has_version(); + inline void clear_has_version(); + inline void set_has_tracker_pos(); + inline void clear_has_tracker_pos(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 tracker_pos_; + ::google::protobuf::uint32 version_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Procedure_2eproto(); + friend void protobuf_AssignDesc_Procedure_2eproto(); + friend void protobuf_ShutdownFile_Procedure_2eproto(); + + void InitAsDefaultInstance(); + static ProcedureWALTrailer* default_instance_; +}; +// ------------------------------------------------------------------- + +class ProcedureStoreTracker_TrackerNode : public ::google::protobuf::Message { + public: + ProcedureStoreTracker_TrackerNode(); + virtual ~ProcedureStoreTracker_TrackerNode(); + + ProcedureStoreTracker_TrackerNode(const ProcedureStoreTracker_TrackerNode& from); + + inline ProcedureStoreTracker_TrackerNode& operator=(const ProcedureStoreTracker_TrackerNode& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ProcedureStoreTracker_TrackerNode& default_instance(); + + void Swap(ProcedureStoreTracker_TrackerNode* other); + + // implements Message ---------------------------------------------- + + ProcedureStoreTracker_TrackerNode* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ProcedureStoreTracker_TrackerNode& from); + void MergeFrom(const ProcedureStoreTracker_TrackerNode& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 start_id = 1; + inline bool has_start_id() const; + inline void clear_start_id(); + static const int kStartIdFieldNumber = 1; + inline ::google::protobuf::uint64 start_id() const; + inline void set_start_id(::google::protobuf::uint64 value); + + // repeated uint64 updated = 2; + inline int updated_size() const; + inline void clear_updated(); + static const int kUpdatedFieldNumber = 2; + inline ::google::protobuf::uint64 updated(int index) const; + inline void set_updated(int index, ::google::protobuf::uint64 value); + inline void add_updated(::google::protobuf::uint64 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& + updated() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* + mutable_updated(); + + // repeated uint64 deleted = 3; + inline int deleted_size() const; + inline void clear_deleted(); + static const int kDeletedFieldNumber = 3; + inline ::google::protobuf::uint64 deleted(int index) const; + inline void set_deleted(int index, ::google::protobuf::uint64 value); + inline void add_deleted(::google::protobuf::uint64 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& + deleted() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* + mutable_deleted(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ProcedureStoreTracker.TrackerNode) + private: + inline void set_has_start_id(); + inline void clear_has_start_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 start_id_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > updated_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > deleted_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Procedure_2eproto(); + friend void protobuf_AssignDesc_Procedure_2eproto(); + friend void protobuf_ShutdownFile_Procedure_2eproto(); + + void InitAsDefaultInstance(); + static ProcedureStoreTracker_TrackerNode* default_instance_; +}; +// ------------------------------------------------------------------- + +class ProcedureStoreTracker : public ::google::protobuf::Message { + public: + ProcedureStoreTracker(); + virtual ~ProcedureStoreTracker(); + + ProcedureStoreTracker(const ProcedureStoreTracker& from); + + inline ProcedureStoreTracker& operator=(const ProcedureStoreTracker& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ProcedureStoreTracker& default_instance(); + + void Swap(ProcedureStoreTracker* other); + + // implements Message ---------------------------------------------- + + ProcedureStoreTracker* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ProcedureStoreTracker& from); + void MergeFrom(const ProcedureStoreTracker& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef ProcedureStoreTracker_TrackerNode TrackerNode; + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1; + inline int node_size() const; + inline void clear_node(); + static const int kNodeFieldNumber = 1; + inline const ::hbase::pb::ProcedureStoreTracker_TrackerNode& node(int index) const; + inline ::hbase::pb::ProcedureStoreTracker_TrackerNode* mutable_node(int index); + inline ::hbase::pb::ProcedureStoreTracker_TrackerNode* add_node(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ProcedureStoreTracker_TrackerNode >& + node() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ProcedureStoreTracker_TrackerNode >* + mutable_node(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ProcedureStoreTracker) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ProcedureStoreTracker_TrackerNode > node_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_Procedure_2eproto(); + friend void protobuf_AssignDesc_Procedure_2eproto(); + friend void protobuf_ShutdownFile_Procedure_2eproto(); + + void InitAsDefaultInstance(); + static ProcedureStoreTracker* default_instance_; +}; +// ------------------------------------------------------------------- + +class ProcedureWALEntry : public ::google::protobuf::Message { + public: + ProcedureWALEntry(); + virtual ~ProcedureWALEntry(); + + ProcedureWALEntry(const ProcedureWALEntry& from); + + inline ProcedureWALEntry& operator=(const ProcedureWALEntry& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ProcedureWALEntry& default_instance(); + + void Swap(ProcedureWALEntry* other); + + // implements Message ---------------------------------------------- + + ProcedureWALEntry* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ProcedureWALEntry& from); + void MergeFrom(const ProcedureWALEntry& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef ProcedureWALEntry_Type Type; + static const Type PROCEDURE_WAL_EOF = ProcedureWALEntry_Type_PROCEDURE_WAL_EOF; + static const Type PROCEDURE_WAL_INIT = ProcedureWALEntry_Type_PROCEDURE_WAL_INIT; + static const Type PROCEDURE_WAL_INSERT = ProcedureWALEntry_Type_PROCEDURE_WAL_INSERT; + static const Type PROCEDURE_WAL_UPDATE = ProcedureWALEntry_Type_PROCEDURE_WAL_UPDATE; + static const Type PROCEDURE_WAL_DELETE = ProcedureWALEntry_Type_PROCEDURE_WAL_DELETE; + static const Type PROCEDURE_WAL_COMPACT = ProcedureWALEntry_Type_PROCEDURE_WAL_COMPACT; + static inline bool Type_IsValid(int value) { + return ProcedureWALEntry_Type_IsValid(value); + } + static const Type Type_MIN = + ProcedureWALEntry_Type_Type_MIN; + static const Type Type_MAX = + ProcedureWALEntry_Type_Type_MAX; + static const int Type_ARRAYSIZE = + ProcedureWALEntry_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Type_descriptor() { + return ProcedureWALEntry_Type_descriptor(); + } + static inline const ::std::string& Type_Name(Type value) { + return ProcedureWALEntry_Type_Name(value); + } + static inline bool Type_Parse(const ::std::string& name, + Type* value) { + return ProcedureWALEntry_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ProcedureWALEntry.Type type = 1; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 1; + inline ::hbase::pb::ProcedureWALEntry_Type type() const; + inline void set_type(::hbase::pb::ProcedureWALEntry_Type value); + + // repeated .hbase.pb.Procedure procedure = 2; + inline int procedure_size() const; + inline void clear_procedure(); + static const int kProcedureFieldNumber = 2; + inline const ::hbase::pb::Procedure& procedure(int index) const; + inline ::hbase::pb::Procedure* mutable_procedure(int index); + inline ::hbase::pb::Procedure* add_procedure(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure >& + procedure() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure >* + mutable_procedure(); + + // optional uint64 proc_id = 3; + inline bool has_proc_id() const; + inline void clear_proc_id(); + static const int kProcIdFieldNumber = 3; + inline ::google::protobuf::uint64 proc_id() const; + inline void set_proc_id(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ProcedureWALEntry) + private: + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_proc_id(); + inline void clear_has_proc_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure > procedure_; + ::google::protobuf::uint64 proc_id_; + int type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Procedure_2eproto(); + friend void protobuf_AssignDesc_Procedure_2eproto(); + friend void protobuf_ShutdownFile_Procedure_2eproto(); + + void InitAsDefaultInstance(); + static ProcedureWALEntry* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// Procedure + +// required string class_name = 1; +inline bool Procedure::has_class_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Procedure::set_has_class_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void Procedure::clear_has_class_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Procedure::clear_class_name() { + if (class_name_ != &::google::protobuf::internal::kEmptyString) { + class_name_->clear(); + } + clear_has_class_name(); +} +inline const ::std::string& Procedure::class_name() const { + return *class_name_; +} +inline void Procedure::set_class_name(const ::std::string& value) { + set_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + class_name_ = new ::std::string; + } + class_name_->assign(value); +} +inline void Procedure::set_class_name(const char* value) { + set_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + class_name_ = new ::std::string; + } + class_name_->assign(value); +} +inline void Procedure::set_class_name(const char* value, size_t size) { + set_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + class_name_ = new ::std::string; + } + class_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Procedure::mutable_class_name() { + set_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + class_name_ = new ::std::string; + } + return class_name_; +} +inline ::std::string* Procedure::release_class_name() { + clear_has_class_name(); + if (class_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = class_name_; + class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Procedure::set_allocated_class_name(::std::string* class_name) { + if (class_name_ != &::google::protobuf::internal::kEmptyString) { + delete class_name_; + } + if (class_name) { + set_has_class_name(); + class_name_ = class_name; + } else { + clear_has_class_name(); + class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 parent_id = 2; +inline bool Procedure::has_parent_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Procedure::set_has_parent_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void Procedure::clear_has_parent_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Procedure::clear_parent_id() { + parent_id_ = GOOGLE_ULONGLONG(0); + clear_has_parent_id(); +} +inline ::google::protobuf::uint64 Procedure::parent_id() const { + return parent_id_; +} +inline void Procedure::set_parent_id(::google::protobuf::uint64 value) { + set_has_parent_id(); + parent_id_ = value; +} + +// required uint64 proc_id = 3; +inline bool Procedure::has_proc_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Procedure::set_has_proc_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void Procedure::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Procedure::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 Procedure::proc_id() const { + return proc_id_; +} +inline void Procedure::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + +// required uint64 start_time = 4; +inline bool Procedure::has_start_time() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Procedure::set_has_start_time() { + _has_bits_[0] |= 0x00000008u; +} +inline void Procedure::clear_has_start_time() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Procedure::clear_start_time() { + start_time_ = GOOGLE_ULONGLONG(0); + clear_has_start_time(); +} +inline ::google::protobuf::uint64 Procedure::start_time() const { + return start_time_; +} +inline void Procedure::set_start_time(::google::protobuf::uint64 value) { + set_has_start_time(); + start_time_ = value; +} + +// optional string owner = 5; +inline bool Procedure::has_owner() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Procedure::set_has_owner() { + _has_bits_[0] |= 0x00000010u; +} +inline void Procedure::clear_has_owner() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Procedure::clear_owner() { + if (owner_ != &::google::protobuf::internal::kEmptyString) { + owner_->clear(); + } + clear_has_owner(); +} +inline const ::std::string& Procedure::owner() const { + return *owner_; +} +inline void Procedure::set_owner(const ::std::string& value) { + set_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + owner_ = new ::std::string; + } + owner_->assign(value); +} +inline void Procedure::set_owner(const char* value) { + set_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + owner_ = new ::std::string; + } + owner_->assign(value); +} +inline void Procedure::set_owner(const char* value, size_t size) { + set_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + owner_ = new ::std::string; + } + owner_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Procedure::mutable_owner() { + set_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + owner_ = new ::std::string; + } + return owner_; +} +inline ::std::string* Procedure::release_owner() { + clear_has_owner(); + if (owner_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = owner_; + owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Procedure::set_allocated_owner(::std::string* owner) { + if (owner_ != &::google::protobuf::internal::kEmptyString) { + delete owner_; + } + if (owner) { + set_has_owner(); + owner_ = owner; + } else { + clear_has_owner(); + owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required .hbase.pb.ProcedureState state = 6; +inline bool Procedure::has_state() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void Procedure::set_has_state() { + _has_bits_[0] |= 0x00000020u; +} +inline void Procedure::clear_has_state() { + _has_bits_[0] &= ~0x00000020u; +} +inline void Procedure::clear_state() { + state_ = 1; + clear_has_state(); +} +inline ::hbase::pb::ProcedureState Procedure::state() const { + return static_cast< ::hbase::pb::ProcedureState >(state_); +} +inline void Procedure::set_state(::hbase::pb::ProcedureState value) { + assert(::hbase::pb::ProcedureState_IsValid(value)); + set_has_state(); + state_ = value; +} + +// repeated uint32 stack_id = 7; +inline int Procedure::stack_id_size() const { + return stack_id_.size(); +} +inline void Procedure::clear_stack_id() { + stack_id_.Clear(); +} +inline ::google::protobuf::uint32 Procedure::stack_id(int index) const { + return stack_id_.Get(index); +} +inline void Procedure::set_stack_id(int index, ::google::protobuf::uint32 value) { + stack_id_.Set(index, value); +} +inline void Procedure::add_stack_id(::google::protobuf::uint32 value) { + stack_id_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +Procedure::stack_id() const { + return stack_id_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +Procedure::mutable_stack_id() { + return &stack_id_; +} + +// required uint64 last_update = 8; +inline bool Procedure::has_last_update() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void Procedure::set_has_last_update() { + _has_bits_[0] |= 0x00000080u; +} +inline void Procedure::clear_has_last_update() { + _has_bits_[0] &= ~0x00000080u; +} +inline void Procedure::clear_last_update() { + last_update_ = GOOGLE_ULONGLONG(0); + clear_has_last_update(); +} +inline ::google::protobuf::uint64 Procedure::last_update() const { + return last_update_; +} +inline void Procedure::set_last_update(::google::protobuf::uint64 value) { + set_has_last_update(); + last_update_ = value; +} + +// optional uint32 timeout = 9; +inline bool Procedure::has_timeout() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void Procedure::set_has_timeout() { + _has_bits_[0] |= 0x00000100u; +} +inline void Procedure::clear_has_timeout() { + _has_bits_[0] &= ~0x00000100u; +} +inline void Procedure::clear_timeout() { + timeout_ = 0u; + clear_has_timeout(); +} +inline ::google::protobuf::uint32 Procedure::timeout() const { + return timeout_; +} +inline void Procedure::set_timeout(::google::protobuf::uint32 value) { + set_has_timeout(); + timeout_ = value; +} + +// optional .hbase.pb.ForeignExceptionMessage exception = 10; +inline bool Procedure::has_exception() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void Procedure::set_has_exception() { + _has_bits_[0] |= 0x00000200u; +} +inline void Procedure::clear_has_exception() { + _has_bits_[0] &= ~0x00000200u; +} +inline void Procedure::clear_exception() { + if (exception_ != NULL) exception_->::hbase::pb::ForeignExceptionMessage::Clear(); + clear_has_exception(); +} +inline const ::hbase::pb::ForeignExceptionMessage& Procedure::exception() const { + return exception_ != NULL ? *exception_ : *default_instance_->exception_; +} +inline ::hbase::pb::ForeignExceptionMessage* Procedure::mutable_exception() { + set_has_exception(); + if (exception_ == NULL) exception_ = new ::hbase::pb::ForeignExceptionMessage; + return exception_; +} +inline ::hbase::pb::ForeignExceptionMessage* Procedure::release_exception() { + clear_has_exception(); + ::hbase::pb::ForeignExceptionMessage* temp = exception_; + exception_ = NULL; + return temp; +} +inline void Procedure::set_allocated_exception(::hbase::pb::ForeignExceptionMessage* exception) { + delete exception_; + exception_ = exception; + if (exception) { + set_has_exception(); + } else { + clear_has_exception(); + } +} + +// optional bytes result = 11; +inline bool Procedure::has_result() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void Procedure::set_has_result() { + _has_bits_[0] |= 0x00000400u; +} +inline void Procedure::clear_has_result() { + _has_bits_[0] &= ~0x00000400u; +} +inline void Procedure::clear_result() { + if (result_ != &::google::protobuf::internal::kEmptyString) { + result_->clear(); + } + clear_has_result(); +} +inline const ::std::string& Procedure::result() const { + return *result_; +} +inline void Procedure::set_result(const ::std::string& value) { + set_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + result_ = new ::std::string; + } + result_->assign(value); +} +inline void Procedure::set_result(const char* value) { + set_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + result_ = new ::std::string; + } + result_->assign(value); +} +inline void Procedure::set_result(const void* value, size_t size) { + set_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + result_ = new ::std::string; + } + result_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Procedure::mutable_result() { + set_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + result_ = new ::std::string; + } + return result_; +} +inline ::std::string* Procedure::release_result() { + clear_has_result(); + if (result_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = result_; + result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Procedure::set_allocated_result(::std::string* result) { + if (result_ != &::google::protobuf::internal::kEmptyString) { + delete result_; + } + if (result) { + set_has_result(); + result_ = result; + } else { + clear_has_result(); + result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes state_data = 12; +inline bool Procedure::has_state_data() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void Procedure::set_has_state_data() { + _has_bits_[0] |= 0x00000800u; +} +inline void Procedure::clear_has_state_data() { + _has_bits_[0] &= ~0x00000800u; +} +inline void Procedure::clear_state_data() { + if (state_data_ != &::google::protobuf::internal::kEmptyString) { + state_data_->clear(); + } + clear_has_state_data(); +} +inline const ::std::string& Procedure::state_data() const { + return *state_data_; +} +inline void Procedure::set_state_data(const ::std::string& value) { + set_has_state_data(); + if (state_data_ == &::google::protobuf::internal::kEmptyString) { + state_data_ = new ::std::string; + } + state_data_->assign(value); +} +inline void Procedure::set_state_data(const char* value) { + set_has_state_data(); + if (state_data_ == &::google::protobuf::internal::kEmptyString) { + state_data_ = new ::std::string; + } + state_data_->assign(value); +} +inline void Procedure::set_state_data(const void* value, size_t size) { + set_has_state_data(); + if (state_data_ == &::google::protobuf::internal::kEmptyString) { + state_data_ = new ::std::string; + } + state_data_->assign(reinterpret_cast(value), size); +} +inline ::std::string* Procedure::mutable_state_data() { + set_has_state_data(); + if (state_data_ == &::google::protobuf::internal::kEmptyString) { + state_data_ = new ::std::string; + } + return state_data_; +} +inline ::std::string* Procedure::release_state_data() { + clear_has_state_data(); + if (state_data_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = state_data_; + state_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void Procedure::set_allocated_state_data(::std::string* state_data) { + if (state_data_ != &::google::protobuf::internal::kEmptyString) { + delete state_data_; + } + if (state_data) { + set_has_state_data(); + state_data_ = state_data; + } else { + clear_has_state_data(); + state_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 nonce_group = 13 [default = 0]; +inline bool Procedure::has_nonce_group() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void Procedure::set_has_nonce_group() { + _has_bits_[0] |= 0x00001000u; +} +inline void Procedure::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00001000u; +} +inline void Procedure::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 Procedure::nonce_group() const { + return nonce_group_; +} +inline void Procedure::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 14 [default = 0]; +inline bool Procedure::has_nonce() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void Procedure::set_has_nonce() { + _has_bits_[0] |= 0x00002000u; +} +inline void Procedure::clear_has_nonce() { + _has_bits_[0] &= ~0x00002000u; +} +inline void Procedure::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 Procedure::nonce() const { + return nonce_; +} +inline void Procedure::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// SequentialProcedureData + +// required bool executed = 1; +inline bool SequentialProcedureData::has_executed() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SequentialProcedureData::set_has_executed() { + _has_bits_[0] |= 0x00000001u; +} +inline void SequentialProcedureData::clear_has_executed() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SequentialProcedureData::clear_executed() { + executed_ = false; + clear_has_executed(); +} +inline bool SequentialProcedureData::executed() const { + return executed_; +} +inline void SequentialProcedureData::set_executed(bool value) { + set_has_executed(); + executed_ = value; +} + +// ------------------------------------------------------------------- + +// StateMachineProcedureData + +// repeated uint32 state = 1; +inline int StateMachineProcedureData::state_size() const { + return state_.size(); +} +inline void StateMachineProcedureData::clear_state() { + state_.Clear(); +} +inline ::google::protobuf::uint32 StateMachineProcedureData::state(int index) const { + return state_.Get(index); +} +inline void StateMachineProcedureData::set_state(int index, ::google::protobuf::uint32 value) { + state_.Set(index, value); +} +inline void StateMachineProcedureData::add_state(::google::protobuf::uint32 value) { + state_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +StateMachineProcedureData::state() const { + return state_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +StateMachineProcedureData::mutable_state() { + return &state_; +} + +// ------------------------------------------------------------------- + +// ProcedureWALHeader + +// required uint32 version = 1; +inline bool ProcedureWALHeader::has_version() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ProcedureWALHeader::set_has_version() { + _has_bits_[0] |= 0x00000001u; +} +inline void ProcedureWALHeader::clear_has_version() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ProcedureWALHeader::clear_version() { + version_ = 0u; + clear_has_version(); +} +inline ::google::protobuf::uint32 ProcedureWALHeader::version() const { + return version_; +} +inline void ProcedureWALHeader::set_version(::google::protobuf::uint32 value) { + set_has_version(); + version_ = value; +} + +// required uint32 type = 2; +inline bool ProcedureWALHeader::has_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ProcedureWALHeader::set_has_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void ProcedureWALHeader::clear_has_type() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ProcedureWALHeader::clear_type() { + type_ = 0u; + clear_has_type(); +} +inline ::google::protobuf::uint32 ProcedureWALHeader::type() const { + return type_; +} +inline void ProcedureWALHeader::set_type(::google::protobuf::uint32 value) { + set_has_type(); + type_ = value; +} + +// required uint64 log_id = 3; +inline bool ProcedureWALHeader::has_log_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ProcedureWALHeader::set_has_log_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void ProcedureWALHeader::clear_has_log_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ProcedureWALHeader::clear_log_id() { + log_id_ = GOOGLE_ULONGLONG(0); + clear_has_log_id(); +} +inline ::google::protobuf::uint64 ProcedureWALHeader::log_id() const { + return log_id_; +} +inline void ProcedureWALHeader::set_log_id(::google::protobuf::uint64 value) { + set_has_log_id(); + log_id_ = value; +} + +// required uint64 min_proc_id = 4; +inline bool ProcedureWALHeader::has_min_proc_id() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ProcedureWALHeader::set_has_min_proc_id() { + _has_bits_[0] |= 0x00000008u; +} +inline void ProcedureWALHeader::clear_has_min_proc_id() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ProcedureWALHeader::clear_min_proc_id() { + min_proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_min_proc_id(); +} +inline ::google::protobuf::uint64 ProcedureWALHeader::min_proc_id() const { + return min_proc_id_; +} +inline void ProcedureWALHeader::set_min_proc_id(::google::protobuf::uint64 value) { + set_has_min_proc_id(); + min_proc_id_ = value; +} + +// ------------------------------------------------------------------- + +// ProcedureWALTrailer + +// required uint32 version = 1; +inline bool ProcedureWALTrailer::has_version() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ProcedureWALTrailer::set_has_version() { + _has_bits_[0] |= 0x00000001u; +} +inline void ProcedureWALTrailer::clear_has_version() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ProcedureWALTrailer::clear_version() { + version_ = 0u; + clear_has_version(); +} +inline ::google::protobuf::uint32 ProcedureWALTrailer::version() const { + return version_; +} +inline void ProcedureWALTrailer::set_version(::google::protobuf::uint32 value) { + set_has_version(); + version_ = value; +} + +// required uint64 tracker_pos = 2; +inline bool ProcedureWALTrailer::has_tracker_pos() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ProcedureWALTrailer::set_has_tracker_pos() { + _has_bits_[0] |= 0x00000002u; +} +inline void ProcedureWALTrailer::clear_has_tracker_pos() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ProcedureWALTrailer::clear_tracker_pos() { + tracker_pos_ = GOOGLE_ULONGLONG(0); + clear_has_tracker_pos(); +} +inline ::google::protobuf::uint64 ProcedureWALTrailer::tracker_pos() const { + return tracker_pos_; +} +inline void ProcedureWALTrailer::set_tracker_pos(::google::protobuf::uint64 value) { + set_has_tracker_pos(); + tracker_pos_ = value; +} + +// ------------------------------------------------------------------- + +// ProcedureStoreTracker_TrackerNode + +// required uint64 start_id = 1; +inline bool ProcedureStoreTracker_TrackerNode::has_start_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ProcedureStoreTracker_TrackerNode::set_has_start_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void ProcedureStoreTracker_TrackerNode::clear_has_start_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ProcedureStoreTracker_TrackerNode::clear_start_id() { + start_id_ = GOOGLE_ULONGLONG(0); + clear_has_start_id(); +} +inline ::google::protobuf::uint64 ProcedureStoreTracker_TrackerNode::start_id() const { + return start_id_; +} +inline void ProcedureStoreTracker_TrackerNode::set_start_id(::google::protobuf::uint64 value) { + set_has_start_id(); + start_id_ = value; +} + +// repeated uint64 updated = 2; +inline int ProcedureStoreTracker_TrackerNode::updated_size() const { + return updated_.size(); +} +inline void ProcedureStoreTracker_TrackerNode::clear_updated() { + updated_.Clear(); +} +inline ::google::protobuf::uint64 ProcedureStoreTracker_TrackerNode::updated(int index) const { + return updated_.Get(index); +} +inline void ProcedureStoreTracker_TrackerNode::set_updated(int index, ::google::protobuf::uint64 value) { + updated_.Set(index, value); +} +inline void ProcedureStoreTracker_TrackerNode::add_updated(::google::protobuf::uint64 value) { + updated_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& +ProcedureStoreTracker_TrackerNode::updated() const { + return updated_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* +ProcedureStoreTracker_TrackerNode::mutable_updated() { + return &updated_; +} + +// repeated uint64 deleted = 3; +inline int ProcedureStoreTracker_TrackerNode::deleted_size() const { + return deleted_.size(); +} +inline void ProcedureStoreTracker_TrackerNode::clear_deleted() { + deleted_.Clear(); +} +inline ::google::protobuf::uint64 ProcedureStoreTracker_TrackerNode::deleted(int index) const { + return deleted_.Get(index); +} +inline void ProcedureStoreTracker_TrackerNode::set_deleted(int index, ::google::protobuf::uint64 value) { + deleted_.Set(index, value); +} +inline void ProcedureStoreTracker_TrackerNode::add_deleted(::google::protobuf::uint64 value) { + deleted_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& +ProcedureStoreTracker_TrackerNode::deleted() const { + return deleted_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* +ProcedureStoreTracker_TrackerNode::mutable_deleted() { + return &deleted_; +} + +// ------------------------------------------------------------------- + +// ProcedureStoreTracker + +// repeated .hbase.pb.ProcedureStoreTracker.TrackerNode node = 1; +inline int ProcedureStoreTracker::node_size() const { + return node_.size(); +} +inline void ProcedureStoreTracker::clear_node() { + node_.Clear(); +} +inline const ::hbase::pb::ProcedureStoreTracker_TrackerNode& ProcedureStoreTracker::node(int index) const { + return node_.Get(index); +} +inline ::hbase::pb::ProcedureStoreTracker_TrackerNode* ProcedureStoreTracker::mutable_node(int index) { + return node_.Mutable(index); +} +inline ::hbase::pb::ProcedureStoreTracker_TrackerNode* ProcedureStoreTracker::add_node() { + return node_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ProcedureStoreTracker_TrackerNode >& +ProcedureStoreTracker::node() const { + return node_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ProcedureStoreTracker_TrackerNode >* +ProcedureStoreTracker::mutable_node() { + return &node_; +} + +// ------------------------------------------------------------------- + +// ProcedureWALEntry + +// required .hbase.pb.ProcedureWALEntry.Type type = 1; +inline bool ProcedureWALEntry::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ProcedureWALEntry::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void ProcedureWALEntry::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ProcedureWALEntry::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hbase::pb::ProcedureWALEntry_Type ProcedureWALEntry::type() const { + return static_cast< ::hbase::pb::ProcedureWALEntry_Type >(type_); +} +inline void ProcedureWALEntry::set_type(::hbase::pb::ProcedureWALEntry_Type value) { + assert(::hbase::pb::ProcedureWALEntry_Type_IsValid(value)); + set_has_type(); + type_ = value; +} + +// repeated .hbase.pb.Procedure procedure = 2; +inline int ProcedureWALEntry::procedure_size() const { + return procedure_.size(); +} +inline void ProcedureWALEntry::clear_procedure() { + procedure_.Clear(); +} +inline const ::hbase::pb::Procedure& ProcedureWALEntry::procedure(int index) const { + return procedure_.Get(index); +} +inline ::hbase::pb::Procedure* ProcedureWALEntry::mutable_procedure(int index) { + return procedure_.Mutable(index); +} +inline ::hbase::pb::Procedure* ProcedureWALEntry::add_procedure() { + return procedure_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure >& +ProcedureWALEntry::procedure() const { + return procedure_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::Procedure >* +ProcedureWALEntry::mutable_procedure() { + return &procedure_; +} + +// optional uint64 proc_id = 3; +inline bool ProcedureWALEntry::has_proc_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ProcedureWALEntry::set_has_proc_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void ProcedureWALEntry::clear_has_proc_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ProcedureWALEntry::clear_proc_id() { + proc_id_ = GOOGLE_ULONGLONG(0); + clear_has_proc_id(); +} +inline ::google::protobuf::uint64 ProcedureWALEntry::proc_id() const { + return proc_id_; +} +inline void ProcedureWALEntry::set_proc_id(::google::protobuf::uint64 value) { + set_has_proc_id(); + proc_id_ = value; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ProcedureWALEntry_Type>() { + return ::hbase::pb::ProcedureWALEntry_Type_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ProcedureState>() { + return ::hbase::pb::ProcedureState_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Procedure_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Quota.pb.cc b/hbase-native-client/src/rpc/generated/Quota.pb.cc new file mode 100644 index 0000000..d07b991 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Quota.pb.cc @@ -0,0 +1,1747 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Quota.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Quota.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* TimedQuota_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TimedQuota_reflection_ = NULL; +const ::google::protobuf::Descriptor* Throttle_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Throttle_reflection_ = NULL; +const ::google::protobuf::Descriptor* ThrottleRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ThrottleRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* Quotas_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Quotas_reflection_ = NULL; +const ::google::protobuf::Descriptor* QuotaUsage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + QuotaUsage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* QuotaScope_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* ThrottleType_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* QuotaType_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Quota_2eproto() { + protobuf_AddDesc_Quota_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Quota.proto"); + GOOGLE_CHECK(file != NULL); + TimedQuota_descriptor_ = file->message_type(0); + static const int TimedQuota_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimedQuota, time_unit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimedQuota, soft_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimedQuota, share_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimedQuota, scope_), + }; + TimedQuota_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TimedQuota_descriptor_, + TimedQuota::default_instance_, + TimedQuota_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimedQuota, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimedQuota, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TimedQuota)); + Throttle_descriptor_ = file->message_type(1); + static const int Throttle_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Throttle, req_num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Throttle, req_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Throttle, write_num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Throttle, write_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Throttle, read_num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Throttle, read_size_), + }; + Throttle_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Throttle_descriptor_, + Throttle::default_instance_, + Throttle_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Throttle, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Throttle, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Throttle)); + ThrottleRequest_descriptor_ = file->message_type(2); + static const int ThrottleRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThrottleRequest, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThrottleRequest, timed_quota_), + }; + ThrottleRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ThrottleRequest_descriptor_, + ThrottleRequest::default_instance_, + ThrottleRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThrottleRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThrottleRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ThrottleRequest)); + Quotas_descriptor_ = file->message_type(3); + static const int Quotas_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Quotas, bypass_globals_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Quotas, throttle_), + }; + Quotas_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Quotas_descriptor_, + Quotas::default_instance_, + Quotas_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Quotas, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Quotas, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Quotas)); + QuotaUsage_descriptor_ = file->message_type(4); + static const int QuotaUsage_offsets_[1] = { + }; + QuotaUsage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + QuotaUsage_descriptor_, + QuotaUsage::default_instance_, + QuotaUsage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QuotaUsage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QuotaUsage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(QuotaUsage)); + QuotaScope_descriptor_ = file->enum_type(0); + ThrottleType_descriptor_ = file->enum_type(1); + QuotaType_descriptor_ = file->enum_type(2); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Quota_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TimedQuota_descriptor_, &TimedQuota::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Throttle_descriptor_, &Throttle::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ThrottleRequest_descriptor_, &ThrottleRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Quotas_descriptor_, &Quotas::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + QuotaUsage_descriptor_, &QuotaUsage::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Quota_2eproto() { + delete TimedQuota::default_instance_; + delete TimedQuota_reflection_; + delete Throttle::default_instance_; + delete Throttle_reflection_; + delete ThrottleRequest::default_instance_; + delete ThrottleRequest_reflection_; + delete Quotas::default_instance_; + delete Quotas_reflection_; + delete QuotaUsage::default_instance_; + delete QuotaUsage_reflection_; +} + +void protobuf_AddDesc_Quota_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\013Quota.proto\022\010hbase.pb\032\013HBase.proto\"\204\001\n" + "\nTimedQuota\022%\n\ttime_unit\030\001 \002(\0162\022.hbase.p" + "b.TimeUnit\022\022\n\nsoft_limit\030\002 \001(\004\022\r\n\005share\030" + "\003 \001(\002\022,\n\005scope\030\004 \001(\0162\024.hbase.pb.QuotaSco" + "pe:\007MACHINE\"\375\001\n\010Throttle\022%\n\007req_num\030\001 \001(" + "\0132\024.hbase.pb.TimedQuota\022&\n\010req_size\030\002 \001(" + "\0132\024.hbase.pb.TimedQuota\022\'\n\twrite_num\030\003 \001" + "(\0132\024.hbase.pb.TimedQuota\022(\n\nwrite_size\030\004" + " \001(\0132\024.hbase.pb.TimedQuota\022&\n\010read_num\030\005" + " \001(\0132\024.hbase.pb.TimedQuota\022\'\n\tread_size\030" + "\006 \001(\0132\024.hbase.pb.TimedQuota\"b\n\017ThrottleR" + "equest\022$\n\004type\030\001 \001(\0162\026.hbase.pb.Throttle" + "Type\022)\n\013timed_quota\030\002 \001(\0132\024.hbase.pb.Tim" + "edQuota\"M\n\006Quotas\022\035\n\016bypass_globals\030\001 \001(" + "\010:\005false\022$\n\010throttle\030\002 \001(\0132\022.hbase.pb.Th" + "rottle\"\014\n\nQuotaUsage*&\n\nQuotaScope\022\013\n\007CL" + "USTER\020\001\022\013\n\007MACHINE\020\002*v\n\014ThrottleType\022\022\n\016" + "REQUEST_NUMBER\020\001\022\020\n\014REQUEST_SIZE\020\002\022\020\n\014WR" + "ITE_NUMBER\020\003\022\016\n\nWRITE_SIZE\020\004\022\017\n\013READ_NUM" + "BER\020\005\022\r\n\tREAD_SIZE\020\006*\031\n\tQuotaType\022\014\n\010THR" + "OTTLE\020\001BA\n*org.apache.hadoop.hbase.proto" + "buf.generatedB\013QuotaProtosH\001\210\001\001\240\001\001", 874); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Quota.proto", &protobuf_RegisterTypes); + TimedQuota::default_instance_ = new TimedQuota(); + Throttle::default_instance_ = new Throttle(); + ThrottleRequest::default_instance_ = new ThrottleRequest(); + Quotas::default_instance_ = new Quotas(); + QuotaUsage::default_instance_ = new QuotaUsage(); + TimedQuota::default_instance_->InitAsDefaultInstance(); + Throttle::default_instance_->InitAsDefaultInstance(); + ThrottleRequest::default_instance_->InitAsDefaultInstance(); + Quotas::default_instance_->InitAsDefaultInstance(); + QuotaUsage::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Quota_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Quota_2eproto { + StaticDescriptorInitializer_Quota_2eproto() { + protobuf_AddDesc_Quota_2eproto(); + } +} static_descriptor_initializer_Quota_2eproto_; +const ::google::protobuf::EnumDescriptor* QuotaScope_descriptor() { + protobuf_AssignDescriptorsOnce(); + return QuotaScope_descriptor_; +} +bool QuotaScope_IsValid(int value) { + switch(value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* ThrottleType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ThrottleType_descriptor_; +} +bool ThrottleType_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* QuotaType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return QuotaType_descriptor_; +} +bool QuotaType_IsValid(int value) { + switch(value) { + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TimedQuota::kTimeUnitFieldNumber; +const int TimedQuota::kSoftLimitFieldNumber; +const int TimedQuota::kShareFieldNumber; +const int TimedQuota::kScopeFieldNumber; +#endif // !_MSC_VER + +TimedQuota::TimedQuota() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TimedQuota::InitAsDefaultInstance() { +} + +TimedQuota::TimedQuota(const TimedQuota& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TimedQuota::SharedCtor() { + _cached_size_ = 0; + time_unit_ = 1; + soft_limit_ = GOOGLE_ULONGLONG(0); + share_ = 0; + scope_ = 2; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TimedQuota::~TimedQuota() { + SharedDtor(); +} + +void TimedQuota::SharedDtor() { + if (this != default_instance_) { + } +} + +void TimedQuota::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TimedQuota::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TimedQuota_descriptor_; +} + +const TimedQuota& TimedQuota::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Quota_2eproto(); + return *default_instance_; +} + +TimedQuota* TimedQuota::default_instance_ = NULL; + +TimedQuota* TimedQuota::New() const { + return new TimedQuota; +} + +void TimedQuota::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + time_unit_ = 1; + soft_limit_ = GOOGLE_ULONGLONG(0); + share_ = 0; + scope_ = 2; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TimedQuota::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TimeUnit time_unit = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::TimeUnit_IsValid(value)) { + set_time_unit(static_cast< ::hbase::pb::TimeUnit >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_soft_limit; + break; + } + + // optional uint64 soft_limit = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_soft_limit: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &soft_limit_))); + set_has_soft_limit(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(29)) goto parse_share; + break; + } + + // optional float share = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { + parse_share: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &share_))); + set_has_share(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_scope; + break; + } + + // optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_scope: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::QuotaScope_IsValid(value)) { + set_scope(static_cast< ::hbase::pb::QuotaScope >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TimedQuota::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TimeUnit time_unit = 1; + if (has_time_unit()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->time_unit(), output); + } + + // optional uint64 soft_limit = 2; + if (has_soft_limit()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->soft_limit(), output); + } + + // optional float share = 3; + if (has_share()) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->share(), output); + } + + // optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE]; + if (has_scope()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->scope(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TimedQuota::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TimeUnit time_unit = 1; + if (has_time_unit()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->time_unit(), target); + } + + // optional uint64 soft_limit = 2; + if (has_soft_limit()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->soft_limit(), target); + } + + // optional float share = 3; + if (has_share()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->share(), target); + } + + // optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE]; + if (has_scope()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->scope(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TimedQuota::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TimeUnit time_unit = 1; + if (has_time_unit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->time_unit()); + } + + // optional uint64 soft_limit = 2; + if (has_soft_limit()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->soft_limit()); + } + + // optional float share = 3; + if (has_share()) { + total_size += 1 + 4; + } + + // optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE]; + if (has_scope()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scope()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TimedQuota::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TimedQuota* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TimedQuota::MergeFrom(const TimedQuota& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_time_unit()) { + set_time_unit(from.time_unit()); + } + if (from.has_soft_limit()) { + set_soft_limit(from.soft_limit()); + } + if (from.has_share()) { + set_share(from.share()); + } + if (from.has_scope()) { + set_scope(from.scope()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TimedQuota::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TimedQuota::CopyFrom(const TimedQuota& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TimedQuota::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void TimedQuota::Swap(TimedQuota* other) { + if (other != this) { + std::swap(time_unit_, other->time_unit_); + std::swap(soft_limit_, other->soft_limit_); + std::swap(share_, other->share_); + std::swap(scope_, other->scope_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TimedQuota::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TimedQuota_descriptor_; + metadata.reflection = TimedQuota_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Throttle::kReqNumFieldNumber; +const int Throttle::kReqSizeFieldNumber; +const int Throttle::kWriteNumFieldNumber; +const int Throttle::kWriteSizeFieldNumber; +const int Throttle::kReadNumFieldNumber; +const int Throttle::kReadSizeFieldNumber; +#endif // !_MSC_VER + +Throttle::Throttle() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Throttle::InitAsDefaultInstance() { + req_num_ = const_cast< ::hbase::pb::TimedQuota*>(&::hbase::pb::TimedQuota::default_instance()); + req_size_ = const_cast< ::hbase::pb::TimedQuota*>(&::hbase::pb::TimedQuota::default_instance()); + write_num_ = const_cast< ::hbase::pb::TimedQuota*>(&::hbase::pb::TimedQuota::default_instance()); + write_size_ = const_cast< ::hbase::pb::TimedQuota*>(&::hbase::pb::TimedQuota::default_instance()); + read_num_ = const_cast< ::hbase::pb::TimedQuota*>(&::hbase::pb::TimedQuota::default_instance()); + read_size_ = const_cast< ::hbase::pb::TimedQuota*>(&::hbase::pb::TimedQuota::default_instance()); +} + +Throttle::Throttle(const Throttle& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Throttle::SharedCtor() { + _cached_size_ = 0; + req_num_ = NULL; + req_size_ = NULL; + write_num_ = NULL; + write_size_ = NULL; + read_num_ = NULL; + read_size_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Throttle::~Throttle() { + SharedDtor(); +} + +void Throttle::SharedDtor() { + if (this != default_instance_) { + delete req_num_; + delete req_size_; + delete write_num_; + delete write_size_; + delete read_num_; + delete read_size_; + } +} + +void Throttle::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Throttle::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Throttle_descriptor_; +} + +const Throttle& Throttle::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Quota_2eproto(); + return *default_instance_; +} + +Throttle* Throttle::default_instance_ = NULL; + +Throttle* Throttle::New() const { + return new Throttle; +} + +void Throttle::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_req_num()) { + if (req_num_ != NULL) req_num_->::hbase::pb::TimedQuota::Clear(); + } + if (has_req_size()) { + if (req_size_ != NULL) req_size_->::hbase::pb::TimedQuota::Clear(); + } + if (has_write_num()) { + if (write_num_ != NULL) write_num_->::hbase::pb::TimedQuota::Clear(); + } + if (has_write_size()) { + if (write_size_ != NULL) write_size_->::hbase::pb::TimedQuota::Clear(); + } + if (has_read_num()) { + if (read_num_ != NULL) read_num_->::hbase::pb::TimedQuota::Clear(); + } + if (has_read_size()) { + if (read_size_ != NULL) read_size_->::hbase::pb::TimedQuota::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Throttle::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.TimedQuota req_num = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_req_num())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_req_size; + break; + } + + // optional .hbase.pb.TimedQuota req_size = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_req_size: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_req_size())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_write_num; + break; + } + + // optional .hbase.pb.TimedQuota write_num = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_write_num: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_write_num())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_write_size; + break; + } + + // optional .hbase.pb.TimedQuota write_size = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_write_size: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_write_size())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_read_num; + break; + } + + // optional .hbase.pb.TimedQuota read_num = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_read_num: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_read_num())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_read_size; + break; + } + + // optional .hbase.pb.TimedQuota read_size = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_read_size: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_read_size())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Throttle::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.TimedQuota req_num = 1; + if (has_req_num()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->req_num(), output); + } + + // optional .hbase.pb.TimedQuota req_size = 2; + if (has_req_size()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->req_size(), output); + } + + // optional .hbase.pb.TimedQuota write_num = 3; + if (has_write_num()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->write_num(), output); + } + + // optional .hbase.pb.TimedQuota write_size = 4; + if (has_write_size()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->write_size(), output); + } + + // optional .hbase.pb.TimedQuota read_num = 5; + if (has_read_num()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->read_num(), output); + } + + // optional .hbase.pb.TimedQuota read_size = 6; + if (has_read_size()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->read_size(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Throttle::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.TimedQuota req_num = 1; + if (has_req_num()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->req_num(), target); + } + + // optional .hbase.pb.TimedQuota req_size = 2; + if (has_req_size()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->req_size(), target); + } + + // optional .hbase.pb.TimedQuota write_num = 3; + if (has_write_num()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->write_num(), target); + } + + // optional .hbase.pb.TimedQuota write_size = 4; + if (has_write_size()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->write_size(), target); + } + + // optional .hbase.pb.TimedQuota read_num = 5; + if (has_read_num()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->read_num(), target); + } + + // optional .hbase.pb.TimedQuota read_size = 6; + if (has_read_size()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->read_size(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Throttle::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.TimedQuota req_num = 1; + if (has_req_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->req_num()); + } + + // optional .hbase.pb.TimedQuota req_size = 2; + if (has_req_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->req_size()); + } + + // optional .hbase.pb.TimedQuota write_num = 3; + if (has_write_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->write_num()); + } + + // optional .hbase.pb.TimedQuota write_size = 4; + if (has_write_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->write_size()); + } + + // optional .hbase.pb.TimedQuota read_num = 5; + if (has_read_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->read_num()); + } + + // optional .hbase.pb.TimedQuota read_size = 6; + if (has_read_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->read_size()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Throttle::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Throttle* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Throttle::MergeFrom(const Throttle& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_req_num()) { + mutable_req_num()->::hbase::pb::TimedQuota::MergeFrom(from.req_num()); + } + if (from.has_req_size()) { + mutable_req_size()->::hbase::pb::TimedQuota::MergeFrom(from.req_size()); + } + if (from.has_write_num()) { + mutable_write_num()->::hbase::pb::TimedQuota::MergeFrom(from.write_num()); + } + if (from.has_write_size()) { + mutable_write_size()->::hbase::pb::TimedQuota::MergeFrom(from.write_size()); + } + if (from.has_read_num()) { + mutable_read_num()->::hbase::pb::TimedQuota::MergeFrom(from.read_num()); + } + if (from.has_read_size()) { + mutable_read_size()->::hbase::pb::TimedQuota::MergeFrom(from.read_size()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Throttle::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Throttle::CopyFrom(const Throttle& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Throttle::IsInitialized() const { + + if (has_req_num()) { + if (!this->req_num().IsInitialized()) return false; + } + if (has_req_size()) { + if (!this->req_size().IsInitialized()) return false; + } + if (has_write_num()) { + if (!this->write_num().IsInitialized()) return false; + } + if (has_write_size()) { + if (!this->write_size().IsInitialized()) return false; + } + if (has_read_num()) { + if (!this->read_num().IsInitialized()) return false; + } + if (has_read_size()) { + if (!this->read_size().IsInitialized()) return false; + } + return true; +} + +void Throttle::Swap(Throttle* other) { + if (other != this) { + std::swap(req_num_, other->req_num_); + std::swap(req_size_, other->req_size_); + std::swap(write_num_, other->write_num_); + std::swap(write_size_, other->write_size_); + std::swap(read_num_, other->read_num_); + std::swap(read_size_, other->read_size_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Throttle::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Throttle_descriptor_; + metadata.reflection = Throttle_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ThrottleRequest::kTypeFieldNumber; +const int ThrottleRequest::kTimedQuotaFieldNumber; +#endif // !_MSC_VER + +ThrottleRequest::ThrottleRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ThrottleRequest::InitAsDefaultInstance() { + timed_quota_ = const_cast< ::hbase::pb::TimedQuota*>(&::hbase::pb::TimedQuota::default_instance()); +} + +ThrottleRequest::ThrottleRequest(const ThrottleRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ThrottleRequest::SharedCtor() { + _cached_size_ = 0; + type_ = 1; + timed_quota_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ThrottleRequest::~ThrottleRequest() { + SharedDtor(); +} + +void ThrottleRequest::SharedDtor() { + if (this != default_instance_) { + delete timed_quota_; + } +} + +void ThrottleRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ThrottleRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ThrottleRequest_descriptor_; +} + +const ThrottleRequest& ThrottleRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Quota_2eproto(); + return *default_instance_; +} + +ThrottleRequest* ThrottleRequest::default_instance_ = NULL; + +ThrottleRequest* ThrottleRequest::New() const { + return new ThrottleRequest; +} + +void ThrottleRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + type_ = 1; + if (has_timed_quota()) { + if (timed_quota_ != NULL) timed_quota_->::hbase::pb::TimedQuota::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ThrottleRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.ThrottleType type = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::ThrottleType_IsValid(value)) { + set_type(static_cast< ::hbase::pb::ThrottleType >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_timed_quota; + break; + } + + // optional .hbase.pb.TimedQuota timed_quota = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_timed_quota: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_timed_quota())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ThrottleRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.ThrottleType type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // optional .hbase.pb.TimedQuota timed_quota = 2; + if (has_timed_quota()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->timed_quota(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ThrottleRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.ThrottleType type = 1; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // optional .hbase.pb.TimedQuota timed_quota = 2; + if (has_timed_quota()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->timed_quota(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ThrottleRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.ThrottleType type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // optional .hbase.pb.TimedQuota timed_quota = 2; + if (has_timed_quota()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->timed_quota()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ThrottleRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ThrottleRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ThrottleRequest::MergeFrom(const ThrottleRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_timed_quota()) { + mutable_timed_quota()->::hbase::pb::TimedQuota::MergeFrom(from.timed_quota()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ThrottleRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ThrottleRequest::CopyFrom(const ThrottleRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ThrottleRequest::IsInitialized() const { + + if (has_timed_quota()) { + if (!this->timed_quota().IsInitialized()) return false; + } + return true; +} + +void ThrottleRequest::Swap(ThrottleRequest* other) { + if (other != this) { + std::swap(type_, other->type_); + std::swap(timed_quota_, other->timed_quota_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ThrottleRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ThrottleRequest_descriptor_; + metadata.reflection = ThrottleRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Quotas::kBypassGlobalsFieldNumber; +const int Quotas::kThrottleFieldNumber; +#endif // !_MSC_VER + +Quotas::Quotas() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Quotas::InitAsDefaultInstance() { + throttle_ = const_cast< ::hbase::pb::Throttle*>(&::hbase::pb::Throttle::default_instance()); +} + +Quotas::Quotas(const Quotas& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Quotas::SharedCtor() { + _cached_size_ = 0; + bypass_globals_ = false; + throttle_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Quotas::~Quotas() { + SharedDtor(); +} + +void Quotas::SharedDtor() { + if (this != default_instance_) { + delete throttle_; + } +} + +void Quotas::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Quotas::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Quotas_descriptor_; +} + +const Quotas& Quotas::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Quota_2eproto(); + return *default_instance_; +} + +Quotas* Quotas::default_instance_ = NULL; + +Quotas* Quotas::New() const { + return new Quotas; +} + +void Quotas::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + bypass_globals_ = false; + if (has_throttle()) { + if (throttle_ != NULL) throttle_->::hbase::pb::Throttle::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Quotas::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool bypass_globals = 1 [default = false]; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bypass_globals_))); + set_has_bypass_globals(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_throttle; + break; + } + + // optional .hbase.pb.Throttle throttle = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_throttle: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_throttle())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Quotas::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool bypass_globals = 1 [default = false]; + if (has_bypass_globals()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->bypass_globals(), output); + } + + // optional .hbase.pb.Throttle throttle = 2; + if (has_throttle()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->throttle(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Quotas::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool bypass_globals = 1 [default = false]; + if (has_bypass_globals()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->bypass_globals(), target); + } + + // optional .hbase.pb.Throttle throttle = 2; + if (has_throttle()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->throttle(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Quotas::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool bypass_globals = 1 [default = false]; + if (has_bypass_globals()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.Throttle throttle = 2; + if (has_throttle()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->throttle()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Quotas::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Quotas* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Quotas::MergeFrom(const Quotas& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_bypass_globals()) { + set_bypass_globals(from.bypass_globals()); + } + if (from.has_throttle()) { + mutable_throttle()->::hbase::pb::Throttle::MergeFrom(from.throttle()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Quotas::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Quotas::CopyFrom(const Quotas& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Quotas::IsInitialized() const { + + if (has_throttle()) { + if (!this->throttle().IsInitialized()) return false; + } + return true; +} + +void Quotas::Swap(Quotas* other) { + if (other != this) { + std::swap(bypass_globals_, other->bypass_globals_); + std::swap(throttle_, other->throttle_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Quotas::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Quotas_descriptor_; + metadata.reflection = Quotas_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +QuotaUsage::QuotaUsage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void QuotaUsage::InitAsDefaultInstance() { +} + +QuotaUsage::QuotaUsage(const QuotaUsage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void QuotaUsage::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +QuotaUsage::~QuotaUsage() { + SharedDtor(); +} + +void QuotaUsage::SharedDtor() { + if (this != default_instance_) { + } +} + +void QuotaUsage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* QuotaUsage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return QuotaUsage_descriptor_; +} + +const QuotaUsage& QuotaUsage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Quota_2eproto(); + return *default_instance_; +} + +QuotaUsage* QuotaUsage::default_instance_ = NULL; + +QuotaUsage* QuotaUsage::New() const { + return new QuotaUsage; +} + +void QuotaUsage::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool QuotaUsage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void QuotaUsage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* QuotaUsage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int QuotaUsage::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void QuotaUsage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const QuotaUsage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void QuotaUsage::MergeFrom(const QuotaUsage& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void QuotaUsage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QuotaUsage::CopyFrom(const QuotaUsage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QuotaUsage::IsInitialized() const { + + return true; +} + +void QuotaUsage::Swap(QuotaUsage* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata QuotaUsage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = QuotaUsage_descriptor_; + metadata.reflection = QuotaUsage_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Quota.pb.h b/hbase-native-client/src/rpc/generated/Quota.pb.h new file mode 100644 index 0000000..bd04a5f --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Quota.pb.h @@ -0,0 +1,1112 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Quota.proto + +#ifndef PROTOBUF_Quota_2eproto__INCLUDED +#define PROTOBUF_Quota_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Quota_2eproto(); +void protobuf_AssignDesc_Quota_2eproto(); +void protobuf_ShutdownFile_Quota_2eproto(); + +class TimedQuota; +class Throttle; +class ThrottleRequest; +class Quotas; +class QuotaUsage; + +enum QuotaScope { + CLUSTER = 1, + MACHINE = 2 +}; +bool QuotaScope_IsValid(int value); +const QuotaScope QuotaScope_MIN = CLUSTER; +const QuotaScope QuotaScope_MAX = MACHINE; +const int QuotaScope_ARRAYSIZE = QuotaScope_MAX + 1; + +const ::google::protobuf::EnumDescriptor* QuotaScope_descriptor(); +inline const ::std::string& QuotaScope_Name(QuotaScope value) { + return ::google::protobuf::internal::NameOfEnum( + QuotaScope_descriptor(), value); +} +inline bool QuotaScope_Parse( + const ::std::string& name, QuotaScope* value) { + return ::google::protobuf::internal::ParseNamedEnum( + QuotaScope_descriptor(), name, value); +} +enum ThrottleType { + REQUEST_NUMBER = 1, + REQUEST_SIZE = 2, + WRITE_NUMBER = 3, + WRITE_SIZE = 4, + READ_NUMBER = 5, + READ_SIZE = 6 +}; +bool ThrottleType_IsValid(int value); +const ThrottleType ThrottleType_MIN = REQUEST_NUMBER; +const ThrottleType ThrottleType_MAX = READ_SIZE; +const int ThrottleType_ARRAYSIZE = ThrottleType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ThrottleType_descriptor(); +inline const ::std::string& ThrottleType_Name(ThrottleType value) { + return ::google::protobuf::internal::NameOfEnum( + ThrottleType_descriptor(), value); +} +inline bool ThrottleType_Parse( + const ::std::string& name, ThrottleType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ThrottleType_descriptor(), name, value); +} +enum QuotaType { + THROTTLE = 1 +}; +bool QuotaType_IsValid(int value); +const QuotaType QuotaType_MIN = THROTTLE; +const QuotaType QuotaType_MAX = THROTTLE; +const int QuotaType_ARRAYSIZE = QuotaType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* QuotaType_descriptor(); +inline const ::std::string& QuotaType_Name(QuotaType value) { + return ::google::protobuf::internal::NameOfEnum( + QuotaType_descriptor(), value); +} +inline bool QuotaType_Parse( + const ::std::string& name, QuotaType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + QuotaType_descriptor(), name, value); +} +// =================================================================== + +class TimedQuota : public ::google::protobuf::Message { + public: + TimedQuota(); + virtual ~TimedQuota(); + + TimedQuota(const TimedQuota& from); + + inline TimedQuota& operator=(const TimedQuota& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TimedQuota& default_instance(); + + void Swap(TimedQuota* other); + + // implements Message ---------------------------------------------- + + TimedQuota* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TimedQuota& from); + void MergeFrom(const TimedQuota& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TimeUnit time_unit = 1; + inline bool has_time_unit() const; + inline void clear_time_unit(); + static const int kTimeUnitFieldNumber = 1; + inline ::hbase::pb::TimeUnit time_unit() const; + inline void set_time_unit(::hbase::pb::TimeUnit value); + + // optional uint64 soft_limit = 2; + inline bool has_soft_limit() const; + inline void clear_soft_limit(); + static const int kSoftLimitFieldNumber = 2; + inline ::google::protobuf::uint64 soft_limit() const; + inline void set_soft_limit(::google::protobuf::uint64 value); + + // optional float share = 3; + inline bool has_share() const; + inline void clear_share(); + static const int kShareFieldNumber = 3; + inline float share() const; + inline void set_share(float value); + + // optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE]; + inline bool has_scope() const; + inline void clear_scope(); + static const int kScopeFieldNumber = 4; + inline ::hbase::pb::QuotaScope scope() const; + inline void set_scope(::hbase::pb::QuotaScope value); + + // @@protoc_insertion_point(class_scope:hbase.pb.TimedQuota) + private: + inline void set_has_time_unit(); + inline void clear_has_time_unit(); + inline void set_has_soft_limit(); + inline void clear_has_soft_limit(); + inline void set_has_share(); + inline void clear_has_share(); + inline void set_has_scope(); + inline void clear_has_scope(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 soft_limit_; + int time_unit_; + float share_; + int scope_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Quota_2eproto(); + friend void protobuf_AssignDesc_Quota_2eproto(); + friend void protobuf_ShutdownFile_Quota_2eproto(); + + void InitAsDefaultInstance(); + static TimedQuota* default_instance_; +}; +// ------------------------------------------------------------------- + +class Throttle : public ::google::protobuf::Message { + public: + Throttle(); + virtual ~Throttle(); + + Throttle(const Throttle& from); + + inline Throttle& operator=(const Throttle& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Throttle& default_instance(); + + void Swap(Throttle* other); + + // implements Message ---------------------------------------------- + + Throttle* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Throttle& from); + void MergeFrom(const Throttle& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.TimedQuota req_num = 1; + inline bool has_req_num() const; + inline void clear_req_num(); + static const int kReqNumFieldNumber = 1; + inline const ::hbase::pb::TimedQuota& req_num() const; + inline ::hbase::pb::TimedQuota* mutable_req_num(); + inline ::hbase::pb::TimedQuota* release_req_num(); + inline void set_allocated_req_num(::hbase::pb::TimedQuota* req_num); + + // optional .hbase.pb.TimedQuota req_size = 2; + inline bool has_req_size() const; + inline void clear_req_size(); + static const int kReqSizeFieldNumber = 2; + inline const ::hbase::pb::TimedQuota& req_size() const; + inline ::hbase::pb::TimedQuota* mutable_req_size(); + inline ::hbase::pb::TimedQuota* release_req_size(); + inline void set_allocated_req_size(::hbase::pb::TimedQuota* req_size); + + // optional .hbase.pb.TimedQuota write_num = 3; + inline bool has_write_num() const; + inline void clear_write_num(); + static const int kWriteNumFieldNumber = 3; + inline const ::hbase::pb::TimedQuota& write_num() const; + inline ::hbase::pb::TimedQuota* mutable_write_num(); + inline ::hbase::pb::TimedQuota* release_write_num(); + inline void set_allocated_write_num(::hbase::pb::TimedQuota* write_num); + + // optional .hbase.pb.TimedQuota write_size = 4; + inline bool has_write_size() const; + inline void clear_write_size(); + static const int kWriteSizeFieldNumber = 4; + inline const ::hbase::pb::TimedQuota& write_size() const; + inline ::hbase::pb::TimedQuota* mutable_write_size(); + inline ::hbase::pb::TimedQuota* release_write_size(); + inline void set_allocated_write_size(::hbase::pb::TimedQuota* write_size); + + // optional .hbase.pb.TimedQuota read_num = 5; + inline bool has_read_num() const; + inline void clear_read_num(); + static const int kReadNumFieldNumber = 5; + inline const ::hbase::pb::TimedQuota& read_num() const; + inline ::hbase::pb::TimedQuota* mutable_read_num(); + inline ::hbase::pb::TimedQuota* release_read_num(); + inline void set_allocated_read_num(::hbase::pb::TimedQuota* read_num); + + // optional .hbase.pb.TimedQuota read_size = 6; + inline bool has_read_size() const; + inline void clear_read_size(); + static const int kReadSizeFieldNumber = 6; + inline const ::hbase::pb::TimedQuota& read_size() const; + inline ::hbase::pb::TimedQuota* mutable_read_size(); + inline ::hbase::pb::TimedQuota* release_read_size(); + inline void set_allocated_read_size(::hbase::pb::TimedQuota* read_size); + + // @@protoc_insertion_point(class_scope:hbase.pb.Throttle) + private: + inline void set_has_req_num(); + inline void clear_has_req_num(); + inline void set_has_req_size(); + inline void clear_has_req_size(); + inline void set_has_write_num(); + inline void clear_has_write_num(); + inline void set_has_write_size(); + inline void clear_has_write_size(); + inline void set_has_read_num(); + inline void clear_has_read_num(); + inline void set_has_read_size(); + inline void clear_has_read_size(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TimedQuota* req_num_; + ::hbase::pb::TimedQuota* req_size_; + ::hbase::pb::TimedQuota* write_num_; + ::hbase::pb::TimedQuota* write_size_; + ::hbase::pb::TimedQuota* read_num_; + ::hbase::pb::TimedQuota* read_size_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_Quota_2eproto(); + friend void protobuf_AssignDesc_Quota_2eproto(); + friend void protobuf_ShutdownFile_Quota_2eproto(); + + void InitAsDefaultInstance(); + static Throttle* default_instance_; +}; +// ------------------------------------------------------------------- + +class ThrottleRequest : public ::google::protobuf::Message { + public: + ThrottleRequest(); + virtual ~ThrottleRequest(); + + ThrottleRequest(const ThrottleRequest& from); + + inline ThrottleRequest& operator=(const ThrottleRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ThrottleRequest& default_instance(); + + void Swap(ThrottleRequest* other); + + // implements Message ---------------------------------------------- + + ThrottleRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ThrottleRequest& from); + void MergeFrom(const ThrottleRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.ThrottleType type = 1; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 1; + inline ::hbase::pb::ThrottleType type() const; + inline void set_type(::hbase::pb::ThrottleType value); + + // optional .hbase.pb.TimedQuota timed_quota = 2; + inline bool has_timed_quota() const; + inline void clear_timed_quota(); + static const int kTimedQuotaFieldNumber = 2; + inline const ::hbase::pb::TimedQuota& timed_quota() const; + inline ::hbase::pb::TimedQuota* mutable_timed_quota(); + inline ::hbase::pb::TimedQuota* release_timed_quota(); + inline void set_allocated_timed_quota(::hbase::pb::TimedQuota* timed_quota); + + // @@protoc_insertion_point(class_scope:hbase.pb.ThrottleRequest) + private: + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_timed_quota(); + inline void clear_has_timed_quota(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TimedQuota* timed_quota_; + int type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Quota_2eproto(); + friend void protobuf_AssignDesc_Quota_2eproto(); + friend void protobuf_ShutdownFile_Quota_2eproto(); + + void InitAsDefaultInstance(); + static ThrottleRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class Quotas : public ::google::protobuf::Message { + public: + Quotas(); + virtual ~Quotas(); + + Quotas(const Quotas& from); + + inline Quotas& operator=(const Quotas& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Quotas& default_instance(); + + void Swap(Quotas* other); + + // implements Message ---------------------------------------------- + + Quotas* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Quotas& from); + void MergeFrom(const Quotas& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool bypass_globals = 1 [default = false]; + inline bool has_bypass_globals() const; + inline void clear_bypass_globals(); + static const int kBypassGlobalsFieldNumber = 1; + inline bool bypass_globals() const; + inline void set_bypass_globals(bool value); + + // optional .hbase.pb.Throttle throttle = 2; + inline bool has_throttle() const; + inline void clear_throttle(); + static const int kThrottleFieldNumber = 2; + inline const ::hbase::pb::Throttle& throttle() const; + inline ::hbase::pb::Throttle* mutable_throttle(); + inline ::hbase::pb::Throttle* release_throttle(); + inline void set_allocated_throttle(::hbase::pb::Throttle* throttle); + + // @@protoc_insertion_point(class_scope:hbase.pb.Quotas) + private: + inline void set_has_bypass_globals(); + inline void clear_has_bypass_globals(); + inline void set_has_throttle(); + inline void clear_has_throttle(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::Throttle* throttle_; + bool bypass_globals_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Quota_2eproto(); + friend void protobuf_AssignDesc_Quota_2eproto(); + friend void protobuf_ShutdownFile_Quota_2eproto(); + + void InitAsDefaultInstance(); + static Quotas* default_instance_; +}; +// ------------------------------------------------------------------- + +class QuotaUsage : public ::google::protobuf::Message { + public: + QuotaUsage(); + virtual ~QuotaUsage(); + + QuotaUsage(const QuotaUsage& from); + + inline QuotaUsage& operator=(const QuotaUsage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const QuotaUsage& default_instance(); + + void Swap(QuotaUsage* other); + + // implements Message ---------------------------------------------- + + QuotaUsage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const QuotaUsage& from); + void MergeFrom(const QuotaUsage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.QuotaUsage) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_Quota_2eproto(); + friend void protobuf_AssignDesc_Quota_2eproto(); + friend void protobuf_ShutdownFile_Quota_2eproto(); + + void InitAsDefaultInstance(); + static QuotaUsage* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// TimedQuota + +// required .hbase.pb.TimeUnit time_unit = 1; +inline bool TimedQuota::has_time_unit() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TimedQuota::set_has_time_unit() { + _has_bits_[0] |= 0x00000001u; +} +inline void TimedQuota::clear_has_time_unit() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TimedQuota::clear_time_unit() { + time_unit_ = 1; + clear_has_time_unit(); +} +inline ::hbase::pb::TimeUnit TimedQuota::time_unit() const { + return static_cast< ::hbase::pb::TimeUnit >(time_unit_); +} +inline void TimedQuota::set_time_unit(::hbase::pb::TimeUnit value) { + assert(::hbase::pb::TimeUnit_IsValid(value)); + set_has_time_unit(); + time_unit_ = value; +} + +// optional uint64 soft_limit = 2; +inline bool TimedQuota::has_soft_limit() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TimedQuota::set_has_soft_limit() { + _has_bits_[0] |= 0x00000002u; +} +inline void TimedQuota::clear_has_soft_limit() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TimedQuota::clear_soft_limit() { + soft_limit_ = GOOGLE_ULONGLONG(0); + clear_has_soft_limit(); +} +inline ::google::protobuf::uint64 TimedQuota::soft_limit() const { + return soft_limit_; +} +inline void TimedQuota::set_soft_limit(::google::protobuf::uint64 value) { + set_has_soft_limit(); + soft_limit_ = value; +} + +// optional float share = 3; +inline bool TimedQuota::has_share() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TimedQuota::set_has_share() { + _has_bits_[0] |= 0x00000004u; +} +inline void TimedQuota::clear_has_share() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TimedQuota::clear_share() { + share_ = 0; + clear_has_share(); +} +inline float TimedQuota::share() const { + return share_; +} +inline void TimedQuota::set_share(float value) { + set_has_share(); + share_ = value; +} + +// optional .hbase.pb.QuotaScope scope = 4 [default = MACHINE]; +inline bool TimedQuota::has_scope() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TimedQuota::set_has_scope() { + _has_bits_[0] |= 0x00000008u; +} +inline void TimedQuota::clear_has_scope() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TimedQuota::clear_scope() { + scope_ = 2; + clear_has_scope(); +} +inline ::hbase::pb::QuotaScope TimedQuota::scope() const { + return static_cast< ::hbase::pb::QuotaScope >(scope_); +} +inline void TimedQuota::set_scope(::hbase::pb::QuotaScope value) { + assert(::hbase::pb::QuotaScope_IsValid(value)); + set_has_scope(); + scope_ = value; +} + +// ------------------------------------------------------------------- + +// Throttle + +// optional .hbase.pb.TimedQuota req_num = 1; +inline bool Throttle::has_req_num() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Throttle::set_has_req_num() { + _has_bits_[0] |= 0x00000001u; +} +inline void Throttle::clear_has_req_num() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Throttle::clear_req_num() { + if (req_num_ != NULL) req_num_->::hbase::pb::TimedQuota::Clear(); + clear_has_req_num(); +} +inline const ::hbase::pb::TimedQuota& Throttle::req_num() const { + return req_num_ != NULL ? *req_num_ : *default_instance_->req_num_; +} +inline ::hbase::pb::TimedQuota* Throttle::mutable_req_num() { + set_has_req_num(); + if (req_num_ == NULL) req_num_ = new ::hbase::pb::TimedQuota; + return req_num_; +} +inline ::hbase::pb::TimedQuota* Throttle::release_req_num() { + clear_has_req_num(); + ::hbase::pb::TimedQuota* temp = req_num_; + req_num_ = NULL; + return temp; +} +inline void Throttle::set_allocated_req_num(::hbase::pb::TimedQuota* req_num) { + delete req_num_; + req_num_ = req_num; + if (req_num) { + set_has_req_num(); + } else { + clear_has_req_num(); + } +} + +// optional .hbase.pb.TimedQuota req_size = 2; +inline bool Throttle::has_req_size() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Throttle::set_has_req_size() { + _has_bits_[0] |= 0x00000002u; +} +inline void Throttle::clear_has_req_size() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Throttle::clear_req_size() { + if (req_size_ != NULL) req_size_->::hbase::pb::TimedQuota::Clear(); + clear_has_req_size(); +} +inline const ::hbase::pb::TimedQuota& Throttle::req_size() const { + return req_size_ != NULL ? *req_size_ : *default_instance_->req_size_; +} +inline ::hbase::pb::TimedQuota* Throttle::mutable_req_size() { + set_has_req_size(); + if (req_size_ == NULL) req_size_ = new ::hbase::pb::TimedQuota; + return req_size_; +} +inline ::hbase::pb::TimedQuota* Throttle::release_req_size() { + clear_has_req_size(); + ::hbase::pb::TimedQuota* temp = req_size_; + req_size_ = NULL; + return temp; +} +inline void Throttle::set_allocated_req_size(::hbase::pb::TimedQuota* req_size) { + delete req_size_; + req_size_ = req_size; + if (req_size) { + set_has_req_size(); + } else { + clear_has_req_size(); + } +} + +// optional .hbase.pb.TimedQuota write_num = 3; +inline bool Throttle::has_write_num() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Throttle::set_has_write_num() { + _has_bits_[0] |= 0x00000004u; +} +inline void Throttle::clear_has_write_num() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Throttle::clear_write_num() { + if (write_num_ != NULL) write_num_->::hbase::pb::TimedQuota::Clear(); + clear_has_write_num(); +} +inline const ::hbase::pb::TimedQuota& Throttle::write_num() const { + return write_num_ != NULL ? *write_num_ : *default_instance_->write_num_; +} +inline ::hbase::pb::TimedQuota* Throttle::mutable_write_num() { + set_has_write_num(); + if (write_num_ == NULL) write_num_ = new ::hbase::pb::TimedQuota; + return write_num_; +} +inline ::hbase::pb::TimedQuota* Throttle::release_write_num() { + clear_has_write_num(); + ::hbase::pb::TimedQuota* temp = write_num_; + write_num_ = NULL; + return temp; +} +inline void Throttle::set_allocated_write_num(::hbase::pb::TimedQuota* write_num) { + delete write_num_; + write_num_ = write_num; + if (write_num) { + set_has_write_num(); + } else { + clear_has_write_num(); + } +} + +// optional .hbase.pb.TimedQuota write_size = 4; +inline bool Throttle::has_write_size() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void Throttle::set_has_write_size() { + _has_bits_[0] |= 0x00000008u; +} +inline void Throttle::clear_has_write_size() { + _has_bits_[0] &= ~0x00000008u; +} +inline void Throttle::clear_write_size() { + if (write_size_ != NULL) write_size_->::hbase::pb::TimedQuota::Clear(); + clear_has_write_size(); +} +inline const ::hbase::pb::TimedQuota& Throttle::write_size() const { + return write_size_ != NULL ? *write_size_ : *default_instance_->write_size_; +} +inline ::hbase::pb::TimedQuota* Throttle::mutable_write_size() { + set_has_write_size(); + if (write_size_ == NULL) write_size_ = new ::hbase::pb::TimedQuota; + return write_size_; +} +inline ::hbase::pb::TimedQuota* Throttle::release_write_size() { + clear_has_write_size(); + ::hbase::pb::TimedQuota* temp = write_size_; + write_size_ = NULL; + return temp; +} +inline void Throttle::set_allocated_write_size(::hbase::pb::TimedQuota* write_size) { + delete write_size_; + write_size_ = write_size; + if (write_size) { + set_has_write_size(); + } else { + clear_has_write_size(); + } +} + +// optional .hbase.pb.TimedQuota read_num = 5; +inline bool Throttle::has_read_num() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void Throttle::set_has_read_num() { + _has_bits_[0] |= 0x00000010u; +} +inline void Throttle::clear_has_read_num() { + _has_bits_[0] &= ~0x00000010u; +} +inline void Throttle::clear_read_num() { + if (read_num_ != NULL) read_num_->::hbase::pb::TimedQuota::Clear(); + clear_has_read_num(); +} +inline const ::hbase::pb::TimedQuota& Throttle::read_num() const { + return read_num_ != NULL ? *read_num_ : *default_instance_->read_num_; +} +inline ::hbase::pb::TimedQuota* Throttle::mutable_read_num() { + set_has_read_num(); + if (read_num_ == NULL) read_num_ = new ::hbase::pb::TimedQuota; + return read_num_; +} +inline ::hbase::pb::TimedQuota* Throttle::release_read_num() { + clear_has_read_num(); + ::hbase::pb::TimedQuota* temp = read_num_; + read_num_ = NULL; + return temp; +} +inline void Throttle::set_allocated_read_num(::hbase::pb::TimedQuota* read_num) { + delete read_num_; + read_num_ = read_num; + if (read_num) { + set_has_read_num(); + } else { + clear_has_read_num(); + } +} + +// optional .hbase.pb.TimedQuota read_size = 6; +inline bool Throttle::has_read_size() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void Throttle::set_has_read_size() { + _has_bits_[0] |= 0x00000020u; +} +inline void Throttle::clear_has_read_size() { + _has_bits_[0] &= ~0x00000020u; +} +inline void Throttle::clear_read_size() { + if (read_size_ != NULL) read_size_->::hbase::pb::TimedQuota::Clear(); + clear_has_read_size(); +} +inline const ::hbase::pb::TimedQuota& Throttle::read_size() const { + return read_size_ != NULL ? *read_size_ : *default_instance_->read_size_; +} +inline ::hbase::pb::TimedQuota* Throttle::mutable_read_size() { + set_has_read_size(); + if (read_size_ == NULL) read_size_ = new ::hbase::pb::TimedQuota; + return read_size_; +} +inline ::hbase::pb::TimedQuota* Throttle::release_read_size() { + clear_has_read_size(); + ::hbase::pb::TimedQuota* temp = read_size_; + read_size_ = NULL; + return temp; +} +inline void Throttle::set_allocated_read_size(::hbase::pb::TimedQuota* read_size) { + delete read_size_; + read_size_ = read_size; + if (read_size) { + set_has_read_size(); + } else { + clear_has_read_size(); + } +} + +// ------------------------------------------------------------------- + +// ThrottleRequest + +// optional .hbase.pb.ThrottleType type = 1; +inline bool ThrottleRequest::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ThrottleRequest::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void ThrottleRequest::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ThrottleRequest::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hbase::pb::ThrottleType ThrottleRequest::type() const { + return static_cast< ::hbase::pb::ThrottleType >(type_); +} +inline void ThrottleRequest::set_type(::hbase::pb::ThrottleType value) { + assert(::hbase::pb::ThrottleType_IsValid(value)); + set_has_type(); + type_ = value; +} + +// optional .hbase.pb.TimedQuota timed_quota = 2; +inline bool ThrottleRequest::has_timed_quota() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ThrottleRequest::set_has_timed_quota() { + _has_bits_[0] |= 0x00000002u; +} +inline void ThrottleRequest::clear_has_timed_quota() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ThrottleRequest::clear_timed_quota() { + if (timed_quota_ != NULL) timed_quota_->::hbase::pb::TimedQuota::Clear(); + clear_has_timed_quota(); +} +inline const ::hbase::pb::TimedQuota& ThrottleRequest::timed_quota() const { + return timed_quota_ != NULL ? *timed_quota_ : *default_instance_->timed_quota_; +} +inline ::hbase::pb::TimedQuota* ThrottleRequest::mutable_timed_quota() { + set_has_timed_quota(); + if (timed_quota_ == NULL) timed_quota_ = new ::hbase::pb::TimedQuota; + return timed_quota_; +} +inline ::hbase::pb::TimedQuota* ThrottleRequest::release_timed_quota() { + clear_has_timed_quota(); + ::hbase::pb::TimedQuota* temp = timed_quota_; + timed_quota_ = NULL; + return temp; +} +inline void ThrottleRequest::set_allocated_timed_quota(::hbase::pb::TimedQuota* timed_quota) { + delete timed_quota_; + timed_quota_ = timed_quota; + if (timed_quota) { + set_has_timed_quota(); + } else { + clear_has_timed_quota(); + } +} + +// ------------------------------------------------------------------- + +// Quotas + +// optional bool bypass_globals = 1 [default = false]; +inline bool Quotas::has_bypass_globals() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Quotas::set_has_bypass_globals() { + _has_bits_[0] |= 0x00000001u; +} +inline void Quotas::clear_has_bypass_globals() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Quotas::clear_bypass_globals() { + bypass_globals_ = false; + clear_has_bypass_globals(); +} +inline bool Quotas::bypass_globals() const { + return bypass_globals_; +} +inline void Quotas::set_bypass_globals(bool value) { + set_has_bypass_globals(); + bypass_globals_ = value; +} + +// optional .hbase.pb.Throttle throttle = 2; +inline bool Quotas::has_throttle() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Quotas::set_has_throttle() { + _has_bits_[0] |= 0x00000002u; +} +inline void Quotas::clear_has_throttle() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Quotas::clear_throttle() { + if (throttle_ != NULL) throttle_->::hbase::pb::Throttle::Clear(); + clear_has_throttle(); +} +inline const ::hbase::pb::Throttle& Quotas::throttle() const { + return throttle_ != NULL ? *throttle_ : *default_instance_->throttle_; +} +inline ::hbase::pb::Throttle* Quotas::mutable_throttle() { + set_has_throttle(); + if (throttle_ == NULL) throttle_ = new ::hbase::pb::Throttle; + return throttle_; +} +inline ::hbase::pb::Throttle* Quotas::release_throttle() { + clear_has_throttle(); + ::hbase::pb::Throttle* temp = throttle_; + throttle_ = NULL; + return temp; +} +inline void Quotas::set_allocated_throttle(::hbase::pb::Throttle* throttle) { + delete throttle_; + throttle_ = throttle; + if (throttle) { + set_has_throttle(); + } else { + clear_has_throttle(); + } +} + +// ------------------------------------------------------------------- + +// QuotaUsage + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::QuotaScope>() { + return ::hbase::pb::QuotaScope_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ThrottleType>() { + return ::hbase::pb::ThrottleType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::QuotaType>() { + return ::hbase::pb::QuotaType_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Quota_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/RPC.pb.cc b/hbase-native-client/src/rpc/generated/RPC.pb.cc new file mode 100644 index 0000000..311cd09 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RPC.pb.cc @@ -0,0 +1,2335 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RPC.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "RPC.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* UserInformation_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UserInformation_reflection_ = NULL; +const ::google::protobuf::Descriptor* ConnectionHeader_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ConnectionHeader_reflection_ = NULL; +const ::google::protobuf::Descriptor* CellBlockMeta_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CellBlockMeta_reflection_ = NULL; +const ::google::protobuf::Descriptor* ExceptionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ExceptionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* RequestHeader_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RequestHeader_reflection_ = NULL; +const ::google::protobuf::Descriptor* ResponseHeader_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ResponseHeader_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_RPC_2eproto() { + protobuf_AddDesc_RPC_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "RPC.proto"); + GOOGLE_CHECK(file != NULL); + UserInformation_descriptor_ = file->message_type(0); + static const int UserInformation_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserInformation, effective_user_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserInformation, real_user_), + }; + UserInformation_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UserInformation_descriptor_, + UserInformation::default_instance_, + UserInformation_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserInformation, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserInformation, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UserInformation)); + ConnectionHeader_descriptor_ = file->message_type(1); + static const int ConnectionHeader_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConnectionHeader, user_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConnectionHeader, service_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConnectionHeader, cell_block_codec_class_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConnectionHeader, cell_block_compressor_class_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConnectionHeader, version_info_), + }; + ConnectionHeader_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ConnectionHeader_descriptor_, + ConnectionHeader::default_instance_, + ConnectionHeader_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConnectionHeader, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConnectionHeader, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ConnectionHeader)); + CellBlockMeta_descriptor_ = file->message_type(2); + static const int CellBlockMeta_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellBlockMeta, length_), + }; + CellBlockMeta_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CellBlockMeta_descriptor_, + CellBlockMeta::default_instance_, + CellBlockMeta_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellBlockMeta, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellBlockMeta, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CellBlockMeta)); + ExceptionResponse_descriptor_ = file->message_type(3); + static const int ExceptionResponse_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionResponse, exception_class_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionResponse, stack_trace_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionResponse, hostname_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionResponse, port_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionResponse, do_not_retry_), + }; + ExceptionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ExceptionResponse_descriptor_, + ExceptionResponse::default_instance_, + ExceptionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ExceptionResponse)); + RequestHeader_descriptor_ = file->message_type(4); + static const int RequestHeader_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestHeader, call_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestHeader, trace_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestHeader, method_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestHeader, request_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestHeader, cell_block_meta_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestHeader, priority_), + }; + RequestHeader_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RequestHeader_descriptor_, + RequestHeader::default_instance_, + RequestHeader_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestHeader, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestHeader, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RequestHeader)); + ResponseHeader_descriptor_ = file->message_type(5); + static const int ResponseHeader_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseHeader, call_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseHeader, exception_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseHeader, cell_block_meta_), + }; + ResponseHeader_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ResponseHeader_descriptor_, + ResponseHeader::default_instance_, + ResponseHeader_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseHeader, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResponseHeader, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ResponseHeader)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_RPC_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UserInformation_descriptor_, &UserInformation::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ConnectionHeader_descriptor_, &ConnectionHeader::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CellBlockMeta_descriptor_, &CellBlockMeta::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ExceptionResponse_descriptor_, &ExceptionResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RequestHeader_descriptor_, &RequestHeader::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ResponseHeader_descriptor_, &ResponseHeader::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_RPC_2eproto() { + delete UserInformation::default_instance_; + delete UserInformation_reflection_; + delete ConnectionHeader::default_instance_; + delete ConnectionHeader_reflection_; + delete CellBlockMeta::default_instance_; + delete CellBlockMeta_reflection_; + delete ExceptionResponse::default_instance_; + delete ExceptionResponse_reflection_; + delete RequestHeader::default_instance_; + delete RequestHeader_reflection_; + delete ResponseHeader::default_instance_; + delete ResponseHeader_reflection_; +} + +void protobuf_AddDesc_RPC_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_Tracing_2eproto(); + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\tRPC.proto\022\010hbase.pb\032\rTracing.proto\032\013HB" + "ase.proto\"<\n\017UserInformation\022\026\n\016effectiv" + "e_user\030\001 \002(\t\022\021\n\treal_user\030\002 \001(\t\"\310\001\n\020Conn" + "ectionHeader\022,\n\tuser_info\030\001 \001(\0132\031.hbase." + "pb.UserInformation\022\024\n\014service_name\030\002 \001(\t" + "\022\036\n\026cell_block_codec_class\030\003 \001(\t\022#\n\033cell" + "_block_compressor_class\030\004 \001(\t\022+\n\014version" + "_info\030\005 \001(\0132\025.hbase.pb.VersionInfo\"\037\n\rCe" + "llBlockMeta\022\016\n\006length\030\001 \001(\r\"|\n\021Exception" + "Response\022\034\n\024exception_class_name\030\001 \001(\t\022\023" + "\n\013stack_trace\030\002 \001(\t\022\020\n\010hostname\030\003 \001(\t\022\014\n" + "\004port\030\004 \001(\005\022\024\n\014do_not_retry\030\005 \001(\010\"\270\001\n\rRe" + "questHeader\022\017\n\007call_id\030\001 \001(\r\022&\n\ntrace_in" + "fo\030\002 \001(\0132\022.hbase.pb.RPCTInfo\022\023\n\013method_n" + "ame\030\003 \001(\t\022\025\n\rrequest_param\030\004 \001(\010\0220\n\017cell" + "_block_meta\030\005 \001(\0132\027.hbase.pb.CellBlockMe" + "ta\022\020\n\010priority\030\006 \001(\r\"\203\001\n\016ResponseHeader\022" + "\017\n\007call_id\030\001 \001(\r\022.\n\texception\030\002 \001(\0132\033.hb" + "ase.pb.ExceptionResponse\0220\n\017cell_block_m" + "eta\030\003 \001(\0132\027.hbase.pb.CellBlockMetaB<\n*or" + "g.apache.hadoop.hbase.protobuf.generated" + "B\tRPCProtosH\001\240\001\001", 856); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "RPC.proto", &protobuf_RegisterTypes); + UserInformation::default_instance_ = new UserInformation(); + ConnectionHeader::default_instance_ = new ConnectionHeader(); + CellBlockMeta::default_instance_ = new CellBlockMeta(); + ExceptionResponse::default_instance_ = new ExceptionResponse(); + RequestHeader::default_instance_ = new RequestHeader(); + ResponseHeader::default_instance_ = new ResponseHeader(); + UserInformation::default_instance_->InitAsDefaultInstance(); + ConnectionHeader::default_instance_->InitAsDefaultInstance(); + CellBlockMeta::default_instance_->InitAsDefaultInstance(); + ExceptionResponse::default_instance_->InitAsDefaultInstance(); + RequestHeader::default_instance_->InitAsDefaultInstance(); + ResponseHeader::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_RPC_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_RPC_2eproto { + StaticDescriptorInitializer_RPC_2eproto() { + protobuf_AddDesc_RPC_2eproto(); + } +} static_descriptor_initializer_RPC_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int UserInformation::kEffectiveUserFieldNumber; +const int UserInformation::kRealUserFieldNumber; +#endif // !_MSC_VER + +UserInformation::UserInformation() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UserInformation::InitAsDefaultInstance() { +} + +UserInformation::UserInformation(const UserInformation& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UserInformation::SharedCtor() { + _cached_size_ = 0; + effective_user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + real_user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UserInformation::~UserInformation() { + SharedDtor(); +} + +void UserInformation::SharedDtor() { + if (effective_user_ != &::google::protobuf::internal::kEmptyString) { + delete effective_user_; + } + if (real_user_ != &::google::protobuf::internal::kEmptyString) { + delete real_user_; + } + if (this != default_instance_) { + } +} + +void UserInformation::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UserInformation::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UserInformation_descriptor_; +} + +const UserInformation& UserInformation::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RPC_2eproto(); + return *default_instance_; +} + +UserInformation* UserInformation::default_instance_ = NULL; + +UserInformation* UserInformation::New() const { + return new UserInformation; +} + +void UserInformation::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_effective_user()) { + if (effective_user_ != &::google::protobuf::internal::kEmptyString) { + effective_user_->clear(); + } + } + if (has_real_user()) { + if (real_user_ != &::google::protobuf::internal::kEmptyString) { + real_user_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UserInformation::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string effective_user = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_effective_user())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->effective_user().data(), this->effective_user().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_real_user; + break; + } + + // optional string real_user = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_real_user: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_real_user())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->real_user().data(), this->real_user().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UserInformation::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string effective_user = 1; + if (has_effective_user()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->effective_user().data(), this->effective_user().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->effective_user(), output); + } + + // optional string real_user = 2; + if (has_real_user()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->real_user().data(), this->real_user().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->real_user(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UserInformation::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string effective_user = 1; + if (has_effective_user()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->effective_user().data(), this->effective_user().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->effective_user(), target); + } + + // optional string real_user = 2; + if (has_real_user()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->real_user().data(), this->real_user().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->real_user(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UserInformation::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string effective_user = 1; + if (has_effective_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->effective_user()); + } + + // optional string real_user = 2; + if (has_real_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->real_user()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UserInformation::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UserInformation* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UserInformation::MergeFrom(const UserInformation& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_effective_user()) { + set_effective_user(from.effective_user()); + } + if (from.has_real_user()) { + set_real_user(from.real_user()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UserInformation::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UserInformation::CopyFrom(const UserInformation& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UserInformation::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void UserInformation::Swap(UserInformation* other) { + if (other != this) { + std::swap(effective_user_, other->effective_user_); + std::swap(real_user_, other->real_user_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UserInformation::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UserInformation_descriptor_; + metadata.reflection = UserInformation_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ConnectionHeader::kUserInfoFieldNumber; +const int ConnectionHeader::kServiceNameFieldNumber; +const int ConnectionHeader::kCellBlockCodecClassFieldNumber; +const int ConnectionHeader::kCellBlockCompressorClassFieldNumber; +const int ConnectionHeader::kVersionInfoFieldNumber; +#endif // !_MSC_VER + +ConnectionHeader::ConnectionHeader() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ConnectionHeader::InitAsDefaultInstance() { + user_info_ = const_cast< ::hbase::pb::UserInformation*>(&::hbase::pb::UserInformation::default_instance()); + version_info_ = const_cast< ::hbase::pb::VersionInfo*>(&::hbase::pb::VersionInfo::default_instance()); +} + +ConnectionHeader::ConnectionHeader(const ConnectionHeader& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ConnectionHeader::SharedCtor() { + _cached_size_ = 0; + user_info_ = NULL; + service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + cell_block_codec_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + cell_block_compressor_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + version_info_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ConnectionHeader::~ConnectionHeader() { + SharedDtor(); +} + +void ConnectionHeader::SharedDtor() { + if (service_name_ != &::google::protobuf::internal::kEmptyString) { + delete service_name_; + } + if (cell_block_codec_class_ != &::google::protobuf::internal::kEmptyString) { + delete cell_block_codec_class_; + } + if (cell_block_compressor_class_ != &::google::protobuf::internal::kEmptyString) { + delete cell_block_compressor_class_; + } + if (this != default_instance_) { + delete user_info_; + delete version_info_; + } +} + +void ConnectionHeader::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ConnectionHeader::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ConnectionHeader_descriptor_; +} + +const ConnectionHeader& ConnectionHeader::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RPC_2eproto(); + return *default_instance_; +} + +ConnectionHeader* ConnectionHeader::default_instance_ = NULL; + +ConnectionHeader* ConnectionHeader::New() const { + return new ConnectionHeader; +} + +void ConnectionHeader::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user_info()) { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + } + if (has_service_name()) { + if (service_name_ != &::google::protobuf::internal::kEmptyString) { + service_name_->clear(); + } + } + if (has_cell_block_codec_class()) { + if (cell_block_codec_class_ != &::google::protobuf::internal::kEmptyString) { + cell_block_codec_class_->clear(); + } + } + if (has_cell_block_compressor_class()) { + if (cell_block_compressor_class_ != &::google::protobuf::internal::kEmptyString) { + cell_block_compressor_class_->clear(); + } + } + if (has_version_info()) { + if (version_info_ != NULL) version_info_->::hbase::pb::VersionInfo::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ConnectionHeader::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.UserInformation user_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_user_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_service_name; + break; + } + + // optional string service_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_service_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_service_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service_name().data(), this->service_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_cell_block_codec_class; + break; + } + + // optional string cell_block_codec_class = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cell_block_codec_class: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cell_block_codec_class())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_block_codec_class().data(), this->cell_block_codec_class().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_cell_block_compressor_class; + break; + } + + // optional string cell_block_compressor_class = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cell_block_compressor_class: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cell_block_compressor_class())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_block_compressor_class().data(), this->cell_block_compressor_class().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_version_info; + break; + } + + // optional .hbase.pb.VersionInfo version_info = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_version_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_version_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ConnectionHeader::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->user_info(), output); + } + + // optional string service_name = 2; + if (has_service_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service_name().data(), this->service_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->service_name(), output); + } + + // optional string cell_block_codec_class = 3; + if (has_cell_block_codec_class()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_block_codec_class().data(), this->cell_block_codec_class().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->cell_block_codec_class(), output); + } + + // optional string cell_block_compressor_class = 4; + if (has_cell_block_compressor_class()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_block_compressor_class().data(), this->cell_block_compressor_class().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->cell_block_compressor_class(), output); + } + + // optional .hbase.pb.VersionInfo version_info = 5; + if (has_version_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->version_info(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ConnectionHeader::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->user_info(), target); + } + + // optional string service_name = 2; + if (has_service_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service_name().data(), this->service_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->service_name(), target); + } + + // optional string cell_block_codec_class = 3; + if (has_cell_block_codec_class()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_block_codec_class().data(), this->cell_block_codec_class().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->cell_block_codec_class(), target); + } + + // optional string cell_block_compressor_class = 4; + if (has_cell_block_compressor_class()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_block_compressor_class().data(), this->cell_block_compressor_class().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->cell_block_compressor_class(), target); + } + + // optional .hbase.pb.VersionInfo version_info = 5; + if (has_version_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->version_info(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ConnectionHeader::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.UserInformation user_info = 1; + if (has_user_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->user_info()); + } + + // optional string service_name = 2; + if (has_service_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->service_name()); + } + + // optional string cell_block_codec_class = 3; + if (has_cell_block_codec_class()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cell_block_codec_class()); + } + + // optional string cell_block_compressor_class = 4; + if (has_cell_block_compressor_class()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cell_block_compressor_class()); + } + + // optional .hbase.pb.VersionInfo version_info = 5; + if (has_version_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->version_info()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ConnectionHeader::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ConnectionHeader* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ConnectionHeader::MergeFrom(const ConnectionHeader& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user_info()) { + mutable_user_info()->::hbase::pb::UserInformation::MergeFrom(from.user_info()); + } + if (from.has_service_name()) { + set_service_name(from.service_name()); + } + if (from.has_cell_block_codec_class()) { + set_cell_block_codec_class(from.cell_block_codec_class()); + } + if (from.has_cell_block_compressor_class()) { + set_cell_block_compressor_class(from.cell_block_compressor_class()); + } + if (from.has_version_info()) { + mutable_version_info()->::hbase::pb::VersionInfo::MergeFrom(from.version_info()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ConnectionHeader::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConnectionHeader::CopyFrom(const ConnectionHeader& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConnectionHeader::IsInitialized() const { + + if (has_user_info()) { + if (!this->user_info().IsInitialized()) return false; + } + if (has_version_info()) { + if (!this->version_info().IsInitialized()) return false; + } + return true; +} + +void ConnectionHeader::Swap(ConnectionHeader* other) { + if (other != this) { + std::swap(user_info_, other->user_info_); + std::swap(service_name_, other->service_name_); + std::swap(cell_block_codec_class_, other->cell_block_codec_class_); + std::swap(cell_block_compressor_class_, other->cell_block_compressor_class_); + std::swap(version_info_, other->version_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ConnectionHeader::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ConnectionHeader_descriptor_; + metadata.reflection = ConnectionHeader_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CellBlockMeta::kLengthFieldNumber; +#endif // !_MSC_VER + +CellBlockMeta::CellBlockMeta() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CellBlockMeta::InitAsDefaultInstance() { +} + +CellBlockMeta::CellBlockMeta(const CellBlockMeta& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CellBlockMeta::SharedCtor() { + _cached_size_ = 0; + length_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CellBlockMeta::~CellBlockMeta() { + SharedDtor(); +} + +void CellBlockMeta::SharedDtor() { + if (this != default_instance_) { + } +} + +void CellBlockMeta::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CellBlockMeta::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CellBlockMeta_descriptor_; +} + +const CellBlockMeta& CellBlockMeta::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RPC_2eproto(); + return *default_instance_; +} + +CellBlockMeta* CellBlockMeta::default_instance_ = NULL; + +CellBlockMeta* CellBlockMeta::New() const { + return new CellBlockMeta; +} + +void CellBlockMeta::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + length_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CellBlockMeta::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 length = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &length_))); + set_has_length(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CellBlockMeta::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 length = 1; + if (has_length()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->length(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CellBlockMeta::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 length = 1; + if (has_length()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->length(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CellBlockMeta::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 length = 1; + if (has_length()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->length()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CellBlockMeta::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CellBlockMeta* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CellBlockMeta::MergeFrom(const CellBlockMeta& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_length()) { + set_length(from.length()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CellBlockMeta::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CellBlockMeta::CopyFrom(const CellBlockMeta& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CellBlockMeta::IsInitialized() const { + + return true; +} + +void CellBlockMeta::Swap(CellBlockMeta* other) { + if (other != this) { + std::swap(length_, other->length_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CellBlockMeta::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CellBlockMeta_descriptor_; + metadata.reflection = CellBlockMeta_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ExceptionResponse::kExceptionClassNameFieldNumber; +const int ExceptionResponse::kStackTraceFieldNumber; +const int ExceptionResponse::kHostnameFieldNumber; +const int ExceptionResponse::kPortFieldNumber; +const int ExceptionResponse::kDoNotRetryFieldNumber; +#endif // !_MSC_VER + +ExceptionResponse::ExceptionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ExceptionResponse::InitAsDefaultInstance() { +} + +ExceptionResponse::ExceptionResponse(const ExceptionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ExceptionResponse::SharedCtor() { + _cached_size_ = 0; + exception_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + stack_trace_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + port_ = 0; + do_not_retry_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ExceptionResponse::~ExceptionResponse() { + SharedDtor(); +} + +void ExceptionResponse::SharedDtor() { + if (exception_class_name_ != &::google::protobuf::internal::kEmptyString) { + delete exception_class_name_; + } + if (stack_trace_ != &::google::protobuf::internal::kEmptyString) { + delete stack_trace_; + } + if (hostname_ != &::google::protobuf::internal::kEmptyString) { + delete hostname_; + } + if (this != default_instance_) { + } +} + +void ExceptionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExceptionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ExceptionResponse_descriptor_; +} + +const ExceptionResponse& ExceptionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RPC_2eproto(); + return *default_instance_; +} + +ExceptionResponse* ExceptionResponse::default_instance_ = NULL; + +ExceptionResponse* ExceptionResponse::New() const { + return new ExceptionResponse; +} + +void ExceptionResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_exception_class_name()) { + if (exception_class_name_ != &::google::protobuf::internal::kEmptyString) { + exception_class_name_->clear(); + } + } + if (has_stack_trace()) { + if (stack_trace_ != &::google::protobuf::internal::kEmptyString) { + stack_trace_->clear(); + } + } + if (has_hostname()) { + if (hostname_ != &::google::protobuf::internal::kEmptyString) { + hostname_->clear(); + } + } + port_ = 0; + do_not_retry_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ExceptionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string exception_class_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_exception_class_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->exception_class_name().data(), this->exception_class_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_stack_trace; + break; + } + + // optional string stack_trace = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_stack_trace: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_stack_trace())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->stack_trace().data(), this->stack_trace().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_hostname; + break; + } + + // optional string hostname = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_hostname: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_hostname())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->hostname().data(), this->hostname().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_port; + break; + } + + // optional int32 port = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_port: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &port_))); + set_has_port(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_do_not_retry; + break; + } + + // optional bool do_not_retry = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_do_not_retry: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &do_not_retry_))); + set_has_do_not_retry(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ExceptionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string exception_class_name = 1; + if (has_exception_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->exception_class_name().data(), this->exception_class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->exception_class_name(), output); + } + + // optional string stack_trace = 2; + if (has_stack_trace()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->stack_trace().data(), this->stack_trace().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->stack_trace(), output); + } + + // optional string hostname = 3; + if (has_hostname()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->hostname().data(), this->hostname().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->hostname(), output); + } + + // optional int32 port = 4; + if (has_port()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->port(), output); + } + + // optional bool do_not_retry = 5; + if (has_do_not_retry()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->do_not_retry(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ExceptionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string exception_class_name = 1; + if (has_exception_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->exception_class_name().data(), this->exception_class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->exception_class_name(), target); + } + + // optional string stack_trace = 2; + if (has_stack_trace()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->stack_trace().data(), this->stack_trace().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->stack_trace(), target); + } + + // optional string hostname = 3; + if (has_hostname()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->hostname().data(), this->hostname().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->hostname(), target); + } + + // optional int32 port = 4; + if (has_port()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->port(), target); + } + + // optional bool do_not_retry = 5; + if (has_do_not_retry()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->do_not_retry(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ExceptionResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string exception_class_name = 1; + if (has_exception_class_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->exception_class_name()); + } + + // optional string stack_trace = 2; + if (has_stack_trace()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->stack_trace()); + } + + // optional string hostname = 3; + if (has_hostname()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->hostname()); + } + + // optional int32 port = 4; + if (has_port()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->port()); + } + + // optional bool do_not_retry = 5; + if (has_do_not_retry()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExceptionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ExceptionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ExceptionResponse::MergeFrom(const ExceptionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_exception_class_name()) { + set_exception_class_name(from.exception_class_name()); + } + if (from.has_stack_trace()) { + set_stack_trace(from.stack_trace()); + } + if (from.has_hostname()) { + set_hostname(from.hostname()); + } + if (from.has_port()) { + set_port(from.port()); + } + if (from.has_do_not_retry()) { + set_do_not_retry(from.do_not_retry()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ExceptionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExceptionResponse::CopyFrom(const ExceptionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExceptionResponse::IsInitialized() const { + + return true; +} + +void ExceptionResponse::Swap(ExceptionResponse* other) { + if (other != this) { + std::swap(exception_class_name_, other->exception_class_name_); + std::swap(stack_trace_, other->stack_trace_); + std::swap(hostname_, other->hostname_); + std::swap(port_, other->port_); + std::swap(do_not_retry_, other->do_not_retry_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ExceptionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ExceptionResponse_descriptor_; + metadata.reflection = ExceptionResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RequestHeader::kCallIdFieldNumber; +const int RequestHeader::kTraceInfoFieldNumber; +const int RequestHeader::kMethodNameFieldNumber; +const int RequestHeader::kRequestParamFieldNumber; +const int RequestHeader::kCellBlockMetaFieldNumber; +const int RequestHeader::kPriorityFieldNumber; +#endif // !_MSC_VER + +RequestHeader::RequestHeader() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RequestHeader::InitAsDefaultInstance() { + trace_info_ = const_cast< ::hbase::pb::RPCTInfo*>(&::hbase::pb::RPCTInfo::default_instance()); + cell_block_meta_ = const_cast< ::hbase::pb::CellBlockMeta*>(&::hbase::pb::CellBlockMeta::default_instance()); +} + +RequestHeader::RequestHeader(const RequestHeader& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RequestHeader::SharedCtor() { + _cached_size_ = 0; + call_id_ = 0u; + trace_info_ = NULL; + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + request_param_ = false; + cell_block_meta_ = NULL; + priority_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RequestHeader::~RequestHeader() { + SharedDtor(); +} + +void RequestHeader::SharedDtor() { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + delete method_name_; + } + if (this != default_instance_) { + delete trace_info_; + delete cell_block_meta_; + } +} + +void RequestHeader::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RequestHeader::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RequestHeader_descriptor_; +} + +const RequestHeader& RequestHeader::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RPC_2eproto(); + return *default_instance_; +} + +RequestHeader* RequestHeader::default_instance_ = NULL; + +RequestHeader* RequestHeader::New() const { + return new RequestHeader; +} + +void RequestHeader::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + call_id_ = 0u; + if (has_trace_info()) { + if (trace_info_ != NULL) trace_info_->::hbase::pb::RPCTInfo::Clear(); + } + if (has_method_name()) { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + method_name_->clear(); + } + } + request_param_ = false; + if (has_cell_block_meta()) { + if (cell_block_meta_ != NULL) cell_block_meta_->::hbase::pb::CellBlockMeta::Clear(); + } + priority_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RequestHeader::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 call_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &call_id_))); + set_has_call_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_trace_info; + break; + } + + // optional .hbase.pb.RPCTInfo trace_info = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_trace_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_trace_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_method_name; + break; + } + + // optional string method_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_method_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_method_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_request_param; + break; + } + + // optional bool request_param = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_request_param: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &request_param_))); + set_has_request_param(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_cell_block_meta; + break; + } + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cell_block_meta: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_cell_block_meta())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_priority; + break; + } + + // optional uint32 priority = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_priority: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &priority_))); + set_has_priority(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RequestHeader::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 call_id = 1; + if (has_call_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->call_id(), output); + } + + // optional .hbase.pb.RPCTInfo trace_info = 2; + if (has_trace_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->trace_info(), output); + } + + // optional string method_name = 3; + if (has_method_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->method_name(), output); + } + + // optional bool request_param = 4; + if (has_request_param()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->request_param(), output); + } + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 5; + if (has_cell_block_meta()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->cell_block_meta(), output); + } + + // optional uint32 priority = 6; + if (has_priority()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->priority(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RequestHeader::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 call_id = 1; + if (has_call_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->call_id(), target); + } + + // optional .hbase.pb.RPCTInfo trace_info = 2; + if (has_trace_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->trace_info(), target); + } + + // optional string method_name = 3; + if (has_method_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->method_name().data(), this->method_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->method_name(), target); + } + + // optional bool request_param = 4; + if (has_request_param()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->request_param(), target); + } + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 5; + if (has_cell_block_meta()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->cell_block_meta(), target); + } + + // optional uint32 priority = 6; + if (has_priority()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->priority(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RequestHeader::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 call_id = 1; + if (has_call_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->call_id()); + } + + // optional .hbase.pb.RPCTInfo trace_info = 2; + if (has_trace_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->trace_info()); + } + + // optional string method_name = 3; + if (has_method_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->method_name()); + } + + // optional bool request_param = 4; + if (has_request_param()) { + total_size += 1 + 1; + } + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 5; + if (has_cell_block_meta()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cell_block_meta()); + } + + // optional uint32 priority = 6; + if (has_priority()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->priority()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RequestHeader::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RequestHeader* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RequestHeader::MergeFrom(const RequestHeader& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_call_id()) { + set_call_id(from.call_id()); + } + if (from.has_trace_info()) { + mutable_trace_info()->::hbase::pb::RPCTInfo::MergeFrom(from.trace_info()); + } + if (from.has_method_name()) { + set_method_name(from.method_name()); + } + if (from.has_request_param()) { + set_request_param(from.request_param()); + } + if (from.has_cell_block_meta()) { + mutable_cell_block_meta()->::hbase::pb::CellBlockMeta::MergeFrom(from.cell_block_meta()); + } + if (from.has_priority()) { + set_priority(from.priority()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RequestHeader::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RequestHeader::CopyFrom(const RequestHeader& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RequestHeader::IsInitialized() const { + + return true; +} + +void RequestHeader::Swap(RequestHeader* other) { + if (other != this) { + std::swap(call_id_, other->call_id_); + std::swap(trace_info_, other->trace_info_); + std::swap(method_name_, other->method_name_); + std::swap(request_param_, other->request_param_); + std::swap(cell_block_meta_, other->cell_block_meta_); + std::swap(priority_, other->priority_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RequestHeader::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RequestHeader_descriptor_; + metadata.reflection = RequestHeader_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ResponseHeader::kCallIdFieldNumber; +const int ResponseHeader::kExceptionFieldNumber; +const int ResponseHeader::kCellBlockMetaFieldNumber; +#endif // !_MSC_VER + +ResponseHeader::ResponseHeader() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ResponseHeader::InitAsDefaultInstance() { + exception_ = const_cast< ::hbase::pb::ExceptionResponse*>(&::hbase::pb::ExceptionResponse::default_instance()); + cell_block_meta_ = const_cast< ::hbase::pb::CellBlockMeta*>(&::hbase::pb::CellBlockMeta::default_instance()); +} + +ResponseHeader::ResponseHeader(const ResponseHeader& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ResponseHeader::SharedCtor() { + _cached_size_ = 0; + call_id_ = 0u; + exception_ = NULL; + cell_block_meta_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ResponseHeader::~ResponseHeader() { + SharedDtor(); +} + +void ResponseHeader::SharedDtor() { + if (this != default_instance_) { + delete exception_; + delete cell_block_meta_; + } +} + +void ResponseHeader::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ResponseHeader::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ResponseHeader_descriptor_; +} + +const ResponseHeader& ResponseHeader::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RPC_2eproto(); + return *default_instance_; +} + +ResponseHeader* ResponseHeader::default_instance_ = NULL; + +ResponseHeader* ResponseHeader::New() const { + return new ResponseHeader; +} + +void ResponseHeader::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + call_id_ = 0u; + if (has_exception()) { + if (exception_ != NULL) exception_->::hbase::pb::ExceptionResponse::Clear(); + } + if (has_cell_block_meta()) { + if (cell_block_meta_ != NULL) cell_block_meta_->::hbase::pb::CellBlockMeta::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ResponseHeader::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 call_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &call_id_))); + set_has_call_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_exception; + break; + } + + // optional .hbase.pb.ExceptionResponse exception = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_exception: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_exception())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_cell_block_meta; + break; + } + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cell_block_meta: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_cell_block_meta())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ResponseHeader::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 call_id = 1; + if (has_call_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->call_id(), output); + } + + // optional .hbase.pb.ExceptionResponse exception = 2; + if (has_exception()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->exception(), output); + } + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 3; + if (has_cell_block_meta()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->cell_block_meta(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ResponseHeader::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 call_id = 1; + if (has_call_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->call_id(), target); + } + + // optional .hbase.pb.ExceptionResponse exception = 2; + if (has_exception()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->exception(), target); + } + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 3; + if (has_cell_block_meta()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->cell_block_meta(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ResponseHeader::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 call_id = 1; + if (has_call_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->call_id()); + } + + // optional .hbase.pb.ExceptionResponse exception = 2; + if (has_exception()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->exception()); + } + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 3; + if (has_cell_block_meta()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cell_block_meta()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ResponseHeader::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ResponseHeader* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ResponseHeader::MergeFrom(const ResponseHeader& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_call_id()) { + set_call_id(from.call_id()); + } + if (from.has_exception()) { + mutable_exception()->::hbase::pb::ExceptionResponse::MergeFrom(from.exception()); + } + if (from.has_cell_block_meta()) { + mutable_cell_block_meta()->::hbase::pb::CellBlockMeta::MergeFrom(from.cell_block_meta()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ResponseHeader::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResponseHeader::CopyFrom(const ResponseHeader& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResponseHeader::IsInitialized() const { + + return true; +} + +void ResponseHeader::Swap(ResponseHeader* other) { + if (other != this) { + std::swap(call_id_, other->call_id_); + std::swap(exception_, other->exception_); + std::swap(cell_block_meta_, other->cell_block_meta_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ResponseHeader::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ResponseHeader_descriptor_; + metadata.reflection = ResponseHeader_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/RPC.pb.h b/hbase-native-client/src/rpc/generated/RPC.pb.h new file mode 100644 index 0000000..995e3cd --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RPC.pb.h @@ -0,0 +1,1811 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RPC.proto + +#ifndef PROTOBUF_RPC_2eproto__INCLUDED +#define PROTOBUF_RPC_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "Tracing.pb.h" +#include "HBase.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_RPC_2eproto(); +void protobuf_AssignDesc_RPC_2eproto(); +void protobuf_ShutdownFile_RPC_2eproto(); + +class UserInformation; +class ConnectionHeader; +class CellBlockMeta; +class ExceptionResponse; +class RequestHeader; +class ResponseHeader; + +// =================================================================== + +class UserInformation : public ::google::protobuf::Message { + public: + UserInformation(); + virtual ~UserInformation(); + + UserInformation(const UserInformation& from); + + inline UserInformation& operator=(const UserInformation& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UserInformation& default_instance(); + + void Swap(UserInformation* other); + + // implements Message ---------------------------------------------- + + UserInformation* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UserInformation& from); + void MergeFrom(const UserInformation& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string effective_user = 1; + inline bool has_effective_user() const; + inline void clear_effective_user(); + static const int kEffectiveUserFieldNumber = 1; + inline const ::std::string& effective_user() const; + inline void set_effective_user(const ::std::string& value); + inline void set_effective_user(const char* value); + inline void set_effective_user(const char* value, size_t size); + inline ::std::string* mutable_effective_user(); + inline ::std::string* release_effective_user(); + inline void set_allocated_effective_user(::std::string* effective_user); + + // optional string real_user = 2; + inline bool has_real_user() const; + inline void clear_real_user(); + static const int kRealUserFieldNumber = 2; + inline const ::std::string& real_user() const; + inline void set_real_user(const ::std::string& value); + inline void set_real_user(const char* value); + inline void set_real_user(const char* value, size_t size); + inline ::std::string* mutable_real_user(); + inline ::std::string* release_real_user(); + inline void set_allocated_real_user(::std::string* real_user); + + // @@protoc_insertion_point(class_scope:hbase.pb.UserInformation) + private: + inline void set_has_effective_user(); + inline void clear_has_effective_user(); + inline void set_has_real_user(); + inline void clear_has_real_user(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* effective_user_; + ::std::string* real_user_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_RPC_2eproto(); + friend void protobuf_AssignDesc_RPC_2eproto(); + friend void protobuf_ShutdownFile_RPC_2eproto(); + + void InitAsDefaultInstance(); + static UserInformation* default_instance_; +}; +// ------------------------------------------------------------------- + +class ConnectionHeader : public ::google::protobuf::Message { + public: + ConnectionHeader(); + virtual ~ConnectionHeader(); + + ConnectionHeader(const ConnectionHeader& from); + + inline ConnectionHeader& operator=(const ConnectionHeader& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ConnectionHeader& default_instance(); + + void Swap(ConnectionHeader* other); + + // implements Message ---------------------------------------------- + + ConnectionHeader* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ConnectionHeader& from); + void MergeFrom(const ConnectionHeader& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.UserInformation user_info = 1; + inline bool has_user_info() const; + inline void clear_user_info(); + static const int kUserInfoFieldNumber = 1; + inline const ::hbase::pb::UserInformation& user_info() const; + inline ::hbase::pb::UserInformation* mutable_user_info(); + inline ::hbase::pb::UserInformation* release_user_info(); + inline void set_allocated_user_info(::hbase::pb::UserInformation* user_info); + + // optional string service_name = 2; + inline bool has_service_name() const; + inline void clear_service_name(); + static const int kServiceNameFieldNumber = 2; + inline const ::std::string& service_name() const; + inline void set_service_name(const ::std::string& value); + inline void set_service_name(const char* value); + inline void set_service_name(const char* value, size_t size); + inline ::std::string* mutable_service_name(); + inline ::std::string* release_service_name(); + inline void set_allocated_service_name(::std::string* service_name); + + // optional string cell_block_codec_class = 3; + inline bool has_cell_block_codec_class() const; + inline void clear_cell_block_codec_class(); + static const int kCellBlockCodecClassFieldNumber = 3; + inline const ::std::string& cell_block_codec_class() const; + inline void set_cell_block_codec_class(const ::std::string& value); + inline void set_cell_block_codec_class(const char* value); + inline void set_cell_block_codec_class(const char* value, size_t size); + inline ::std::string* mutable_cell_block_codec_class(); + inline ::std::string* release_cell_block_codec_class(); + inline void set_allocated_cell_block_codec_class(::std::string* cell_block_codec_class); + + // optional string cell_block_compressor_class = 4; + inline bool has_cell_block_compressor_class() const; + inline void clear_cell_block_compressor_class(); + static const int kCellBlockCompressorClassFieldNumber = 4; + inline const ::std::string& cell_block_compressor_class() const; + inline void set_cell_block_compressor_class(const ::std::string& value); + inline void set_cell_block_compressor_class(const char* value); + inline void set_cell_block_compressor_class(const char* value, size_t size); + inline ::std::string* mutable_cell_block_compressor_class(); + inline ::std::string* release_cell_block_compressor_class(); + inline void set_allocated_cell_block_compressor_class(::std::string* cell_block_compressor_class); + + // optional .hbase.pb.VersionInfo version_info = 5; + inline bool has_version_info() const; + inline void clear_version_info(); + static const int kVersionInfoFieldNumber = 5; + inline const ::hbase::pb::VersionInfo& version_info() const; + inline ::hbase::pb::VersionInfo* mutable_version_info(); + inline ::hbase::pb::VersionInfo* release_version_info(); + inline void set_allocated_version_info(::hbase::pb::VersionInfo* version_info); + + // @@protoc_insertion_point(class_scope:hbase.pb.ConnectionHeader) + private: + inline void set_has_user_info(); + inline void clear_has_user_info(); + inline void set_has_service_name(); + inline void clear_has_service_name(); + inline void set_has_cell_block_codec_class(); + inline void clear_has_cell_block_codec_class(); + inline void set_has_cell_block_compressor_class(); + inline void clear_has_cell_block_compressor_class(); + inline void set_has_version_info(); + inline void clear_has_version_info(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::UserInformation* user_info_; + ::std::string* service_name_; + ::std::string* cell_block_codec_class_; + ::std::string* cell_block_compressor_class_; + ::hbase::pb::VersionInfo* version_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_RPC_2eproto(); + friend void protobuf_AssignDesc_RPC_2eproto(); + friend void protobuf_ShutdownFile_RPC_2eproto(); + + void InitAsDefaultInstance(); + static ConnectionHeader* default_instance_; +}; +// ------------------------------------------------------------------- + +class CellBlockMeta : public ::google::protobuf::Message { + public: + CellBlockMeta(); + virtual ~CellBlockMeta(); + + CellBlockMeta(const CellBlockMeta& from); + + inline CellBlockMeta& operator=(const CellBlockMeta& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CellBlockMeta& default_instance(); + + void Swap(CellBlockMeta* other); + + // implements Message ---------------------------------------------- + + CellBlockMeta* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CellBlockMeta& from); + void MergeFrom(const CellBlockMeta& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 length = 1; + inline bool has_length() const; + inline void clear_length(); + static const int kLengthFieldNumber = 1; + inline ::google::protobuf::uint32 length() const; + inline void set_length(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.CellBlockMeta) + private: + inline void set_has_length(); + inline void clear_has_length(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 length_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RPC_2eproto(); + friend void protobuf_AssignDesc_RPC_2eproto(); + friend void protobuf_ShutdownFile_RPC_2eproto(); + + void InitAsDefaultInstance(); + static CellBlockMeta* default_instance_; +}; +// ------------------------------------------------------------------- + +class ExceptionResponse : public ::google::protobuf::Message { + public: + ExceptionResponse(); + virtual ~ExceptionResponse(); + + ExceptionResponse(const ExceptionResponse& from); + + inline ExceptionResponse& operator=(const ExceptionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ExceptionResponse& default_instance(); + + void Swap(ExceptionResponse* other); + + // implements Message ---------------------------------------------- + + ExceptionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ExceptionResponse& from); + void MergeFrom(const ExceptionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string exception_class_name = 1; + inline bool has_exception_class_name() const; + inline void clear_exception_class_name(); + static const int kExceptionClassNameFieldNumber = 1; + inline const ::std::string& exception_class_name() const; + inline void set_exception_class_name(const ::std::string& value); + inline void set_exception_class_name(const char* value); + inline void set_exception_class_name(const char* value, size_t size); + inline ::std::string* mutable_exception_class_name(); + inline ::std::string* release_exception_class_name(); + inline void set_allocated_exception_class_name(::std::string* exception_class_name); + + // optional string stack_trace = 2; + inline bool has_stack_trace() const; + inline void clear_stack_trace(); + static const int kStackTraceFieldNumber = 2; + inline const ::std::string& stack_trace() const; + inline void set_stack_trace(const ::std::string& value); + inline void set_stack_trace(const char* value); + inline void set_stack_trace(const char* value, size_t size); + inline ::std::string* mutable_stack_trace(); + inline ::std::string* release_stack_trace(); + inline void set_allocated_stack_trace(::std::string* stack_trace); + + // optional string hostname = 3; + inline bool has_hostname() const; + inline void clear_hostname(); + static const int kHostnameFieldNumber = 3; + inline const ::std::string& hostname() const; + inline void set_hostname(const ::std::string& value); + inline void set_hostname(const char* value); + inline void set_hostname(const char* value, size_t size); + inline ::std::string* mutable_hostname(); + inline ::std::string* release_hostname(); + inline void set_allocated_hostname(::std::string* hostname); + + // optional int32 port = 4; + inline bool has_port() const; + inline void clear_port(); + static const int kPortFieldNumber = 4; + inline ::google::protobuf::int32 port() const; + inline void set_port(::google::protobuf::int32 value); + + // optional bool do_not_retry = 5; + inline bool has_do_not_retry() const; + inline void clear_do_not_retry(); + static const int kDoNotRetryFieldNumber = 5; + inline bool do_not_retry() const; + inline void set_do_not_retry(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ExceptionResponse) + private: + inline void set_has_exception_class_name(); + inline void clear_has_exception_class_name(); + inline void set_has_stack_trace(); + inline void clear_has_stack_trace(); + inline void set_has_hostname(); + inline void clear_has_hostname(); + inline void set_has_port(); + inline void clear_has_port(); + inline void set_has_do_not_retry(); + inline void clear_has_do_not_retry(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* exception_class_name_; + ::std::string* stack_trace_; + ::std::string* hostname_; + ::google::protobuf::int32 port_; + bool do_not_retry_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_RPC_2eproto(); + friend void protobuf_AssignDesc_RPC_2eproto(); + friend void protobuf_ShutdownFile_RPC_2eproto(); + + void InitAsDefaultInstance(); + static ExceptionResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class RequestHeader : public ::google::protobuf::Message { + public: + RequestHeader(); + virtual ~RequestHeader(); + + RequestHeader(const RequestHeader& from); + + inline RequestHeader& operator=(const RequestHeader& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RequestHeader& default_instance(); + + void Swap(RequestHeader* other); + + // implements Message ---------------------------------------------- + + RequestHeader* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RequestHeader& from); + void MergeFrom(const RequestHeader& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 call_id = 1; + inline bool has_call_id() const; + inline void clear_call_id(); + static const int kCallIdFieldNumber = 1; + inline ::google::protobuf::uint32 call_id() const; + inline void set_call_id(::google::protobuf::uint32 value); + + // optional .hbase.pb.RPCTInfo trace_info = 2; + inline bool has_trace_info() const; + inline void clear_trace_info(); + static const int kTraceInfoFieldNumber = 2; + inline const ::hbase::pb::RPCTInfo& trace_info() const; + inline ::hbase::pb::RPCTInfo* mutable_trace_info(); + inline ::hbase::pb::RPCTInfo* release_trace_info(); + inline void set_allocated_trace_info(::hbase::pb::RPCTInfo* trace_info); + + // optional string method_name = 3; + inline bool has_method_name() const; + inline void clear_method_name(); + static const int kMethodNameFieldNumber = 3; + inline const ::std::string& method_name() const; + inline void set_method_name(const ::std::string& value); + inline void set_method_name(const char* value); + inline void set_method_name(const char* value, size_t size); + inline ::std::string* mutable_method_name(); + inline ::std::string* release_method_name(); + inline void set_allocated_method_name(::std::string* method_name); + + // optional bool request_param = 4; + inline bool has_request_param() const; + inline void clear_request_param(); + static const int kRequestParamFieldNumber = 4; + inline bool request_param() const; + inline void set_request_param(bool value); + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 5; + inline bool has_cell_block_meta() const; + inline void clear_cell_block_meta(); + static const int kCellBlockMetaFieldNumber = 5; + inline const ::hbase::pb::CellBlockMeta& cell_block_meta() const; + inline ::hbase::pb::CellBlockMeta* mutable_cell_block_meta(); + inline ::hbase::pb::CellBlockMeta* release_cell_block_meta(); + inline void set_allocated_cell_block_meta(::hbase::pb::CellBlockMeta* cell_block_meta); + + // optional uint32 priority = 6; + inline bool has_priority() const; + inline void clear_priority(); + static const int kPriorityFieldNumber = 6; + inline ::google::protobuf::uint32 priority() const; + inline void set_priority(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RequestHeader) + private: + inline void set_has_call_id(); + inline void clear_has_call_id(); + inline void set_has_trace_info(); + inline void clear_has_trace_info(); + inline void set_has_method_name(); + inline void clear_has_method_name(); + inline void set_has_request_param(); + inline void clear_has_request_param(); + inline void set_has_cell_block_meta(); + inline void clear_has_cell_block_meta(); + inline void set_has_priority(); + inline void clear_has_priority(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RPCTInfo* trace_info_; + ::google::protobuf::uint32 call_id_; + bool request_param_; + ::std::string* method_name_; + ::hbase::pb::CellBlockMeta* cell_block_meta_; + ::google::protobuf::uint32 priority_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_RPC_2eproto(); + friend void protobuf_AssignDesc_RPC_2eproto(); + friend void protobuf_ShutdownFile_RPC_2eproto(); + + void InitAsDefaultInstance(); + static RequestHeader* default_instance_; +}; +// ------------------------------------------------------------------- + +class ResponseHeader : public ::google::protobuf::Message { + public: + ResponseHeader(); + virtual ~ResponseHeader(); + + ResponseHeader(const ResponseHeader& from); + + inline ResponseHeader& operator=(const ResponseHeader& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ResponseHeader& default_instance(); + + void Swap(ResponseHeader* other); + + // implements Message ---------------------------------------------- + + ResponseHeader* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ResponseHeader& from); + void MergeFrom(const ResponseHeader& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 call_id = 1; + inline bool has_call_id() const; + inline void clear_call_id(); + static const int kCallIdFieldNumber = 1; + inline ::google::protobuf::uint32 call_id() const; + inline void set_call_id(::google::protobuf::uint32 value); + + // optional .hbase.pb.ExceptionResponse exception = 2; + inline bool has_exception() const; + inline void clear_exception(); + static const int kExceptionFieldNumber = 2; + inline const ::hbase::pb::ExceptionResponse& exception() const; + inline ::hbase::pb::ExceptionResponse* mutable_exception(); + inline ::hbase::pb::ExceptionResponse* release_exception(); + inline void set_allocated_exception(::hbase::pb::ExceptionResponse* exception); + + // optional .hbase.pb.CellBlockMeta cell_block_meta = 3; + inline bool has_cell_block_meta() const; + inline void clear_cell_block_meta(); + static const int kCellBlockMetaFieldNumber = 3; + inline const ::hbase::pb::CellBlockMeta& cell_block_meta() const; + inline ::hbase::pb::CellBlockMeta* mutable_cell_block_meta(); + inline ::hbase::pb::CellBlockMeta* release_cell_block_meta(); + inline void set_allocated_cell_block_meta(::hbase::pb::CellBlockMeta* cell_block_meta); + + // @@protoc_insertion_point(class_scope:hbase.pb.ResponseHeader) + private: + inline void set_has_call_id(); + inline void clear_has_call_id(); + inline void set_has_exception(); + inline void clear_has_exception(); + inline void set_has_cell_block_meta(); + inline void clear_has_cell_block_meta(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ExceptionResponse* exception_; + ::hbase::pb::CellBlockMeta* cell_block_meta_; + ::google::protobuf::uint32 call_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_RPC_2eproto(); + friend void protobuf_AssignDesc_RPC_2eproto(); + friend void protobuf_ShutdownFile_RPC_2eproto(); + + void InitAsDefaultInstance(); + static ResponseHeader* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// UserInformation + +// required string effective_user = 1; +inline bool UserInformation::has_effective_user() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UserInformation::set_has_effective_user() { + _has_bits_[0] |= 0x00000001u; +} +inline void UserInformation::clear_has_effective_user() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UserInformation::clear_effective_user() { + if (effective_user_ != &::google::protobuf::internal::kEmptyString) { + effective_user_->clear(); + } + clear_has_effective_user(); +} +inline const ::std::string& UserInformation::effective_user() const { + return *effective_user_; +} +inline void UserInformation::set_effective_user(const ::std::string& value) { + set_has_effective_user(); + if (effective_user_ == &::google::protobuf::internal::kEmptyString) { + effective_user_ = new ::std::string; + } + effective_user_->assign(value); +} +inline void UserInformation::set_effective_user(const char* value) { + set_has_effective_user(); + if (effective_user_ == &::google::protobuf::internal::kEmptyString) { + effective_user_ = new ::std::string; + } + effective_user_->assign(value); +} +inline void UserInformation::set_effective_user(const char* value, size_t size) { + set_has_effective_user(); + if (effective_user_ == &::google::protobuf::internal::kEmptyString) { + effective_user_ = new ::std::string; + } + effective_user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* UserInformation::mutable_effective_user() { + set_has_effective_user(); + if (effective_user_ == &::google::protobuf::internal::kEmptyString) { + effective_user_ = new ::std::string; + } + return effective_user_; +} +inline ::std::string* UserInformation::release_effective_user() { + clear_has_effective_user(); + if (effective_user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = effective_user_; + effective_user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void UserInformation::set_allocated_effective_user(::std::string* effective_user) { + if (effective_user_ != &::google::protobuf::internal::kEmptyString) { + delete effective_user_; + } + if (effective_user) { + set_has_effective_user(); + effective_user_ = effective_user; + } else { + clear_has_effective_user(); + effective_user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string real_user = 2; +inline bool UserInformation::has_real_user() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void UserInformation::set_has_real_user() { + _has_bits_[0] |= 0x00000002u; +} +inline void UserInformation::clear_has_real_user() { + _has_bits_[0] &= ~0x00000002u; +} +inline void UserInformation::clear_real_user() { + if (real_user_ != &::google::protobuf::internal::kEmptyString) { + real_user_->clear(); + } + clear_has_real_user(); +} +inline const ::std::string& UserInformation::real_user() const { + return *real_user_; +} +inline void UserInformation::set_real_user(const ::std::string& value) { + set_has_real_user(); + if (real_user_ == &::google::protobuf::internal::kEmptyString) { + real_user_ = new ::std::string; + } + real_user_->assign(value); +} +inline void UserInformation::set_real_user(const char* value) { + set_has_real_user(); + if (real_user_ == &::google::protobuf::internal::kEmptyString) { + real_user_ = new ::std::string; + } + real_user_->assign(value); +} +inline void UserInformation::set_real_user(const char* value, size_t size) { + set_has_real_user(); + if (real_user_ == &::google::protobuf::internal::kEmptyString) { + real_user_ = new ::std::string; + } + real_user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* UserInformation::mutable_real_user() { + set_has_real_user(); + if (real_user_ == &::google::protobuf::internal::kEmptyString) { + real_user_ = new ::std::string; + } + return real_user_; +} +inline ::std::string* UserInformation::release_real_user() { + clear_has_real_user(); + if (real_user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = real_user_; + real_user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void UserInformation::set_allocated_real_user(::std::string* real_user) { + if (real_user_ != &::google::protobuf::internal::kEmptyString) { + delete real_user_; + } + if (real_user) { + set_has_real_user(); + real_user_ = real_user; + } else { + clear_has_real_user(); + real_user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ConnectionHeader + +// optional .hbase.pb.UserInformation user_info = 1; +inline bool ConnectionHeader::has_user_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ConnectionHeader::set_has_user_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void ConnectionHeader::clear_has_user_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ConnectionHeader::clear_user_info() { + if (user_info_ != NULL) user_info_->::hbase::pb::UserInformation::Clear(); + clear_has_user_info(); +} +inline const ::hbase::pb::UserInformation& ConnectionHeader::user_info() const { + return user_info_ != NULL ? *user_info_ : *default_instance_->user_info_; +} +inline ::hbase::pb::UserInformation* ConnectionHeader::mutable_user_info() { + set_has_user_info(); + if (user_info_ == NULL) user_info_ = new ::hbase::pb::UserInformation; + return user_info_; +} +inline ::hbase::pb::UserInformation* ConnectionHeader::release_user_info() { + clear_has_user_info(); + ::hbase::pb::UserInformation* temp = user_info_; + user_info_ = NULL; + return temp; +} +inline void ConnectionHeader::set_allocated_user_info(::hbase::pb::UserInformation* user_info) { + delete user_info_; + user_info_ = user_info; + if (user_info) { + set_has_user_info(); + } else { + clear_has_user_info(); + } +} + +// optional string service_name = 2; +inline bool ConnectionHeader::has_service_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ConnectionHeader::set_has_service_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void ConnectionHeader::clear_has_service_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ConnectionHeader::clear_service_name() { + if (service_name_ != &::google::protobuf::internal::kEmptyString) { + service_name_->clear(); + } + clear_has_service_name(); +} +inline const ::std::string& ConnectionHeader::service_name() const { + return *service_name_; +} +inline void ConnectionHeader::set_service_name(const ::std::string& value) { + set_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + service_name_ = new ::std::string; + } + service_name_->assign(value); +} +inline void ConnectionHeader::set_service_name(const char* value) { + set_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + service_name_ = new ::std::string; + } + service_name_->assign(value); +} +inline void ConnectionHeader::set_service_name(const char* value, size_t size) { + set_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + service_name_ = new ::std::string; + } + service_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ConnectionHeader::mutable_service_name() { + set_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + service_name_ = new ::std::string; + } + return service_name_; +} +inline ::std::string* ConnectionHeader::release_service_name() { + clear_has_service_name(); + if (service_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = service_name_; + service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ConnectionHeader::set_allocated_service_name(::std::string* service_name) { + if (service_name_ != &::google::protobuf::internal::kEmptyString) { + delete service_name_; + } + if (service_name) { + set_has_service_name(); + service_name_ = service_name; + } else { + clear_has_service_name(); + service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string cell_block_codec_class = 3; +inline bool ConnectionHeader::has_cell_block_codec_class() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ConnectionHeader::set_has_cell_block_codec_class() { + _has_bits_[0] |= 0x00000004u; +} +inline void ConnectionHeader::clear_has_cell_block_codec_class() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ConnectionHeader::clear_cell_block_codec_class() { + if (cell_block_codec_class_ != &::google::protobuf::internal::kEmptyString) { + cell_block_codec_class_->clear(); + } + clear_has_cell_block_codec_class(); +} +inline const ::std::string& ConnectionHeader::cell_block_codec_class() const { + return *cell_block_codec_class_; +} +inline void ConnectionHeader::set_cell_block_codec_class(const ::std::string& value) { + set_has_cell_block_codec_class(); + if (cell_block_codec_class_ == &::google::protobuf::internal::kEmptyString) { + cell_block_codec_class_ = new ::std::string; + } + cell_block_codec_class_->assign(value); +} +inline void ConnectionHeader::set_cell_block_codec_class(const char* value) { + set_has_cell_block_codec_class(); + if (cell_block_codec_class_ == &::google::protobuf::internal::kEmptyString) { + cell_block_codec_class_ = new ::std::string; + } + cell_block_codec_class_->assign(value); +} +inline void ConnectionHeader::set_cell_block_codec_class(const char* value, size_t size) { + set_has_cell_block_codec_class(); + if (cell_block_codec_class_ == &::google::protobuf::internal::kEmptyString) { + cell_block_codec_class_ = new ::std::string; + } + cell_block_codec_class_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ConnectionHeader::mutable_cell_block_codec_class() { + set_has_cell_block_codec_class(); + if (cell_block_codec_class_ == &::google::protobuf::internal::kEmptyString) { + cell_block_codec_class_ = new ::std::string; + } + return cell_block_codec_class_; +} +inline ::std::string* ConnectionHeader::release_cell_block_codec_class() { + clear_has_cell_block_codec_class(); + if (cell_block_codec_class_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = cell_block_codec_class_; + cell_block_codec_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ConnectionHeader::set_allocated_cell_block_codec_class(::std::string* cell_block_codec_class) { + if (cell_block_codec_class_ != &::google::protobuf::internal::kEmptyString) { + delete cell_block_codec_class_; + } + if (cell_block_codec_class) { + set_has_cell_block_codec_class(); + cell_block_codec_class_ = cell_block_codec_class; + } else { + clear_has_cell_block_codec_class(); + cell_block_codec_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string cell_block_compressor_class = 4; +inline bool ConnectionHeader::has_cell_block_compressor_class() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ConnectionHeader::set_has_cell_block_compressor_class() { + _has_bits_[0] |= 0x00000008u; +} +inline void ConnectionHeader::clear_has_cell_block_compressor_class() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ConnectionHeader::clear_cell_block_compressor_class() { + if (cell_block_compressor_class_ != &::google::protobuf::internal::kEmptyString) { + cell_block_compressor_class_->clear(); + } + clear_has_cell_block_compressor_class(); +} +inline const ::std::string& ConnectionHeader::cell_block_compressor_class() const { + return *cell_block_compressor_class_; +} +inline void ConnectionHeader::set_cell_block_compressor_class(const ::std::string& value) { + set_has_cell_block_compressor_class(); + if (cell_block_compressor_class_ == &::google::protobuf::internal::kEmptyString) { + cell_block_compressor_class_ = new ::std::string; + } + cell_block_compressor_class_->assign(value); +} +inline void ConnectionHeader::set_cell_block_compressor_class(const char* value) { + set_has_cell_block_compressor_class(); + if (cell_block_compressor_class_ == &::google::protobuf::internal::kEmptyString) { + cell_block_compressor_class_ = new ::std::string; + } + cell_block_compressor_class_->assign(value); +} +inline void ConnectionHeader::set_cell_block_compressor_class(const char* value, size_t size) { + set_has_cell_block_compressor_class(); + if (cell_block_compressor_class_ == &::google::protobuf::internal::kEmptyString) { + cell_block_compressor_class_ = new ::std::string; + } + cell_block_compressor_class_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ConnectionHeader::mutable_cell_block_compressor_class() { + set_has_cell_block_compressor_class(); + if (cell_block_compressor_class_ == &::google::protobuf::internal::kEmptyString) { + cell_block_compressor_class_ = new ::std::string; + } + return cell_block_compressor_class_; +} +inline ::std::string* ConnectionHeader::release_cell_block_compressor_class() { + clear_has_cell_block_compressor_class(); + if (cell_block_compressor_class_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = cell_block_compressor_class_; + cell_block_compressor_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ConnectionHeader::set_allocated_cell_block_compressor_class(::std::string* cell_block_compressor_class) { + if (cell_block_compressor_class_ != &::google::protobuf::internal::kEmptyString) { + delete cell_block_compressor_class_; + } + if (cell_block_compressor_class) { + set_has_cell_block_compressor_class(); + cell_block_compressor_class_ = cell_block_compressor_class; + } else { + clear_has_cell_block_compressor_class(); + cell_block_compressor_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.VersionInfo version_info = 5; +inline bool ConnectionHeader::has_version_info() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ConnectionHeader::set_has_version_info() { + _has_bits_[0] |= 0x00000010u; +} +inline void ConnectionHeader::clear_has_version_info() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ConnectionHeader::clear_version_info() { + if (version_info_ != NULL) version_info_->::hbase::pb::VersionInfo::Clear(); + clear_has_version_info(); +} +inline const ::hbase::pb::VersionInfo& ConnectionHeader::version_info() const { + return version_info_ != NULL ? *version_info_ : *default_instance_->version_info_; +} +inline ::hbase::pb::VersionInfo* ConnectionHeader::mutable_version_info() { + set_has_version_info(); + if (version_info_ == NULL) version_info_ = new ::hbase::pb::VersionInfo; + return version_info_; +} +inline ::hbase::pb::VersionInfo* ConnectionHeader::release_version_info() { + clear_has_version_info(); + ::hbase::pb::VersionInfo* temp = version_info_; + version_info_ = NULL; + return temp; +} +inline void ConnectionHeader::set_allocated_version_info(::hbase::pb::VersionInfo* version_info) { + delete version_info_; + version_info_ = version_info; + if (version_info) { + set_has_version_info(); + } else { + clear_has_version_info(); + } +} + +// ------------------------------------------------------------------- + +// CellBlockMeta + +// optional uint32 length = 1; +inline bool CellBlockMeta::has_length() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CellBlockMeta::set_has_length() { + _has_bits_[0] |= 0x00000001u; +} +inline void CellBlockMeta::clear_has_length() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CellBlockMeta::clear_length() { + length_ = 0u; + clear_has_length(); +} +inline ::google::protobuf::uint32 CellBlockMeta::length() const { + return length_; +} +inline void CellBlockMeta::set_length(::google::protobuf::uint32 value) { + set_has_length(); + length_ = value; +} + +// ------------------------------------------------------------------- + +// ExceptionResponse + +// optional string exception_class_name = 1; +inline bool ExceptionResponse::has_exception_class_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ExceptionResponse::set_has_exception_class_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ExceptionResponse::clear_has_exception_class_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ExceptionResponse::clear_exception_class_name() { + if (exception_class_name_ != &::google::protobuf::internal::kEmptyString) { + exception_class_name_->clear(); + } + clear_has_exception_class_name(); +} +inline const ::std::string& ExceptionResponse::exception_class_name() const { + return *exception_class_name_; +} +inline void ExceptionResponse::set_exception_class_name(const ::std::string& value) { + set_has_exception_class_name(); + if (exception_class_name_ == &::google::protobuf::internal::kEmptyString) { + exception_class_name_ = new ::std::string; + } + exception_class_name_->assign(value); +} +inline void ExceptionResponse::set_exception_class_name(const char* value) { + set_has_exception_class_name(); + if (exception_class_name_ == &::google::protobuf::internal::kEmptyString) { + exception_class_name_ = new ::std::string; + } + exception_class_name_->assign(value); +} +inline void ExceptionResponse::set_exception_class_name(const char* value, size_t size) { + set_has_exception_class_name(); + if (exception_class_name_ == &::google::protobuf::internal::kEmptyString) { + exception_class_name_ = new ::std::string; + } + exception_class_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ExceptionResponse::mutable_exception_class_name() { + set_has_exception_class_name(); + if (exception_class_name_ == &::google::protobuf::internal::kEmptyString) { + exception_class_name_ = new ::std::string; + } + return exception_class_name_; +} +inline ::std::string* ExceptionResponse::release_exception_class_name() { + clear_has_exception_class_name(); + if (exception_class_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = exception_class_name_; + exception_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ExceptionResponse::set_allocated_exception_class_name(::std::string* exception_class_name) { + if (exception_class_name_ != &::google::protobuf::internal::kEmptyString) { + delete exception_class_name_; + } + if (exception_class_name) { + set_has_exception_class_name(); + exception_class_name_ = exception_class_name; + } else { + clear_has_exception_class_name(); + exception_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string stack_trace = 2; +inline bool ExceptionResponse::has_stack_trace() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ExceptionResponse::set_has_stack_trace() { + _has_bits_[0] |= 0x00000002u; +} +inline void ExceptionResponse::clear_has_stack_trace() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ExceptionResponse::clear_stack_trace() { + if (stack_trace_ != &::google::protobuf::internal::kEmptyString) { + stack_trace_->clear(); + } + clear_has_stack_trace(); +} +inline const ::std::string& ExceptionResponse::stack_trace() const { + return *stack_trace_; +} +inline void ExceptionResponse::set_stack_trace(const ::std::string& value) { + set_has_stack_trace(); + if (stack_trace_ == &::google::protobuf::internal::kEmptyString) { + stack_trace_ = new ::std::string; + } + stack_trace_->assign(value); +} +inline void ExceptionResponse::set_stack_trace(const char* value) { + set_has_stack_trace(); + if (stack_trace_ == &::google::protobuf::internal::kEmptyString) { + stack_trace_ = new ::std::string; + } + stack_trace_->assign(value); +} +inline void ExceptionResponse::set_stack_trace(const char* value, size_t size) { + set_has_stack_trace(); + if (stack_trace_ == &::google::protobuf::internal::kEmptyString) { + stack_trace_ = new ::std::string; + } + stack_trace_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ExceptionResponse::mutable_stack_trace() { + set_has_stack_trace(); + if (stack_trace_ == &::google::protobuf::internal::kEmptyString) { + stack_trace_ = new ::std::string; + } + return stack_trace_; +} +inline ::std::string* ExceptionResponse::release_stack_trace() { + clear_has_stack_trace(); + if (stack_trace_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = stack_trace_; + stack_trace_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ExceptionResponse::set_allocated_stack_trace(::std::string* stack_trace) { + if (stack_trace_ != &::google::protobuf::internal::kEmptyString) { + delete stack_trace_; + } + if (stack_trace) { + set_has_stack_trace(); + stack_trace_ = stack_trace; + } else { + clear_has_stack_trace(); + stack_trace_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string hostname = 3; +inline bool ExceptionResponse::has_hostname() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ExceptionResponse::set_has_hostname() { + _has_bits_[0] |= 0x00000004u; +} +inline void ExceptionResponse::clear_has_hostname() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ExceptionResponse::clear_hostname() { + if (hostname_ != &::google::protobuf::internal::kEmptyString) { + hostname_->clear(); + } + clear_has_hostname(); +} +inline const ::std::string& ExceptionResponse::hostname() const { + return *hostname_; +} +inline void ExceptionResponse::set_hostname(const ::std::string& value) { + set_has_hostname(); + if (hostname_ == &::google::protobuf::internal::kEmptyString) { + hostname_ = new ::std::string; + } + hostname_->assign(value); +} +inline void ExceptionResponse::set_hostname(const char* value) { + set_has_hostname(); + if (hostname_ == &::google::protobuf::internal::kEmptyString) { + hostname_ = new ::std::string; + } + hostname_->assign(value); +} +inline void ExceptionResponse::set_hostname(const char* value, size_t size) { + set_has_hostname(); + if (hostname_ == &::google::protobuf::internal::kEmptyString) { + hostname_ = new ::std::string; + } + hostname_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ExceptionResponse::mutable_hostname() { + set_has_hostname(); + if (hostname_ == &::google::protobuf::internal::kEmptyString) { + hostname_ = new ::std::string; + } + return hostname_; +} +inline ::std::string* ExceptionResponse::release_hostname() { + clear_has_hostname(); + if (hostname_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = hostname_; + hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ExceptionResponse::set_allocated_hostname(::std::string* hostname) { + if (hostname_ != &::google::protobuf::internal::kEmptyString) { + delete hostname_; + } + if (hostname) { + set_has_hostname(); + hostname_ = hostname; + } else { + clear_has_hostname(); + hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional int32 port = 4; +inline bool ExceptionResponse::has_port() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ExceptionResponse::set_has_port() { + _has_bits_[0] |= 0x00000008u; +} +inline void ExceptionResponse::clear_has_port() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ExceptionResponse::clear_port() { + port_ = 0; + clear_has_port(); +} +inline ::google::protobuf::int32 ExceptionResponse::port() const { + return port_; +} +inline void ExceptionResponse::set_port(::google::protobuf::int32 value) { + set_has_port(); + port_ = value; +} + +// optional bool do_not_retry = 5; +inline bool ExceptionResponse::has_do_not_retry() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ExceptionResponse::set_has_do_not_retry() { + _has_bits_[0] |= 0x00000010u; +} +inline void ExceptionResponse::clear_has_do_not_retry() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ExceptionResponse::clear_do_not_retry() { + do_not_retry_ = false; + clear_has_do_not_retry(); +} +inline bool ExceptionResponse::do_not_retry() const { + return do_not_retry_; +} +inline void ExceptionResponse::set_do_not_retry(bool value) { + set_has_do_not_retry(); + do_not_retry_ = value; +} + +// ------------------------------------------------------------------- + +// RequestHeader + +// optional uint32 call_id = 1; +inline bool RequestHeader::has_call_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RequestHeader::set_has_call_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void RequestHeader::clear_has_call_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RequestHeader::clear_call_id() { + call_id_ = 0u; + clear_has_call_id(); +} +inline ::google::protobuf::uint32 RequestHeader::call_id() const { + return call_id_; +} +inline void RequestHeader::set_call_id(::google::protobuf::uint32 value) { + set_has_call_id(); + call_id_ = value; +} + +// optional .hbase.pb.RPCTInfo trace_info = 2; +inline bool RequestHeader::has_trace_info() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RequestHeader::set_has_trace_info() { + _has_bits_[0] |= 0x00000002u; +} +inline void RequestHeader::clear_has_trace_info() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RequestHeader::clear_trace_info() { + if (trace_info_ != NULL) trace_info_->::hbase::pb::RPCTInfo::Clear(); + clear_has_trace_info(); +} +inline const ::hbase::pb::RPCTInfo& RequestHeader::trace_info() const { + return trace_info_ != NULL ? *trace_info_ : *default_instance_->trace_info_; +} +inline ::hbase::pb::RPCTInfo* RequestHeader::mutable_trace_info() { + set_has_trace_info(); + if (trace_info_ == NULL) trace_info_ = new ::hbase::pb::RPCTInfo; + return trace_info_; +} +inline ::hbase::pb::RPCTInfo* RequestHeader::release_trace_info() { + clear_has_trace_info(); + ::hbase::pb::RPCTInfo* temp = trace_info_; + trace_info_ = NULL; + return temp; +} +inline void RequestHeader::set_allocated_trace_info(::hbase::pb::RPCTInfo* trace_info) { + delete trace_info_; + trace_info_ = trace_info; + if (trace_info) { + set_has_trace_info(); + } else { + clear_has_trace_info(); + } +} + +// optional string method_name = 3; +inline bool RequestHeader::has_method_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RequestHeader::set_has_method_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void RequestHeader::clear_has_method_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RequestHeader::clear_method_name() { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + method_name_->clear(); + } + clear_has_method_name(); +} +inline const ::std::string& RequestHeader::method_name() const { + return *method_name_; +} +inline void RequestHeader::set_method_name(const ::std::string& value) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(value); +} +inline void RequestHeader::set_method_name(const char* value) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(value); +} +inline void RequestHeader::set_method_name(const char* value, size_t size) { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + method_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RequestHeader::mutable_method_name() { + set_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + method_name_ = new ::std::string; + } + return method_name_; +} +inline ::std::string* RequestHeader::release_method_name() { + clear_has_method_name(); + if (method_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = method_name_; + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RequestHeader::set_allocated_method_name(::std::string* method_name) { + if (method_name_ != &::google::protobuf::internal::kEmptyString) { + delete method_name_; + } + if (method_name) { + set_has_method_name(); + method_name_ = method_name; + } else { + clear_has_method_name(); + method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool request_param = 4; +inline bool RequestHeader::has_request_param() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RequestHeader::set_has_request_param() { + _has_bits_[0] |= 0x00000008u; +} +inline void RequestHeader::clear_has_request_param() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RequestHeader::clear_request_param() { + request_param_ = false; + clear_has_request_param(); +} +inline bool RequestHeader::request_param() const { + return request_param_; +} +inline void RequestHeader::set_request_param(bool value) { + set_has_request_param(); + request_param_ = value; +} + +// optional .hbase.pb.CellBlockMeta cell_block_meta = 5; +inline bool RequestHeader::has_cell_block_meta() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void RequestHeader::set_has_cell_block_meta() { + _has_bits_[0] |= 0x00000010u; +} +inline void RequestHeader::clear_has_cell_block_meta() { + _has_bits_[0] &= ~0x00000010u; +} +inline void RequestHeader::clear_cell_block_meta() { + if (cell_block_meta_ != NULL) cell_block_meta_->::hbase::pb::CellBlockMeta::Clear(); + clear_has_cell_block_meta(); +} +inline const ::hbase::pb::CellBlockMeta& RequestHeader::cell_block_meta() const { + return cell_block_meta_ != NULL ? *cell_block_meta_ : *default_instance_->cell_block_meta_; +} +inline ::hbase::pb::CellBlockMeta* RequestHeader::mutable_cell_block_meta() { + set_has_cell_block_meta(); + if (cell_block_meta_ == NULL) cell_block_meta_ = new ::hbase::pb::CellBlockMeta; + return cell_block_meta_; +} +inline ::hbase::pb::CellBlockMeta* RequestHeader::release_cell_block_meta() { + clear_has_cell_block_meta(); + ::hbase::pb::CellBlockMeta* temp = cell_block_meta_; + cell_block_meta_ = NULL; + return temp; +} +inline void RequestHeader::set_allocated_cell_block_meta(::hbase::pb::CellBlockMeta* cell_block_meta) { + delete cell_block_meta_; + cell_block_meta_ = cell_block_meta; + if (cell_block_meta) { + set_has_cell_block_meta(); + } else { + clear_has_cell_block_meta(); + } +} + +// optional uint32 priority = 6; +inline bool RequestHeader::has_priority() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void RequestHeader::set_has_priority() { + _has_bits_[0] |= 0x00000020u; +} +inline void RequestHeader::clear_has_priority() { + _has_bits_[0] &= ~0x00000020u; +} +inline void RequestHeader::clear_priority() { + priority_ = 0u; + clear_has_priority(); +} +inline ::google::protobuf::uint32 RequestHeader::priority() const { + return priority_; +} +inline void RequestHeader::set_priority(::google::protobuf::uint32 value) { + set_has_priority(); + priority_ = value; +} + +// ------------------------------------------------------------------- + +// ResponseHeader + +// optional uint32 call_id = 1; +inline bool ResponseHeader::has_call_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ResponseHeader::set_has_call_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void ResponseHeader::clear_has_call_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ResponseHeader::clear_call_id() { + call_id_ = 0u; + clear_has_call_id(); +} +inline ::google::protobuf::uint32 ResponseHeader::call_id() const { + return call_id_; +} +inline void ResponseHeader::set_call_id(::google::protobuf::uint32 value) { + set_has_call_id(); + call_id_ = value; +} + +// optional .hbase.pb.ExceptionResponse exception = 2; +inline bool ResponseHeader::has_exception() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ResponseHeader::set_has_exception() { + _has_bits_[0] |= 0x00000002u; +} +inline void ResponseHeader::clear_has_exception() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ResponseHeader::clear_exception() { + if (exception_ != NULL) exception_->::hbase::pb::ExceptionResponse::Clear(); + clear_has_exception(); +} +inline const ::hbase::pb::ExceptionResponse& ResponseHeader::exception() const { + return exception_ != NULL ? *exception_ : *default_instance_->exception_; +} +inline ::hbase::pb::ExceptionResponse* ResponseHeader::mutable_exception() { + set_has_exception(); + if (exception_ == NULL) exception_ = new ::hbase::pb::ExceptionResponse; + return exception_; +} +inline ::hbase::pb::ExceptionResponse* ResponseHeader::release_exception() { + clear_has_exception(); + ::hbase::pb::ExceptionResponse* temp = exception_; + exception_ = NULL; + return temp; +} +inline void ResponseHeader::set_allocated_exception(::hbase::pb::ExceptionResponse* exception) { + delete exception_; + exception_ = exception; + if (exception) { + set_has_exception(); + } else { + clear_has_exception(); + } +} + +// optional .hbase.pb.CellBlockMeta cell_block_meta = 3; +inline bool ResponseHeader::has_cell_block_meta() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ResponseHeader::set_has_cell_block_meta() { + _has_bits_[0] |= 0x00000004u; +} +inline void ResponseHeader::clear_has_cell_block_meta() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ResponseHeader::clear_cell_block_meta() { + if (cell_block_meta_ != NULL) cell_block_meta_->::hbase::pb::CellBlockMeta::Clear(); + clear_has_cell_block_meta(); +} +inline const ::hbase::pb::CellBlockMeta& ResponseHeader::cell_block_meta() const { + return cell_block_meta_ != NULL ? *cell_block_meta_ : *default_instance_->cell_block_meta_; +} +inline ::hbase::pb::CellBlockMeta* ResponseHeader::mutable_cell_block_meta() { + set_has_cell_block_meta(); + if (cell_block_meta_ == NULL) cell_block_meta_ = new ::hbase::pb::CellBlockMeta; + return cell_block_meta_; +} +inline ::hbase::pb::CellBlockMeta* ResponseHeader::release_cell_block_meta() { + clear_has_cell_block_meta(); + ::hbase::pb::CellBlockMeta* temp = cell_block_meta_; + cell_block_meta_ = NULL; + return temp; +} +inline void ResponseHeader::set_allocated_cell_block_meta(::hbase::pb::CellBlockMeta* cell_block_meta) { + delete cell_block_meta_; + cell_block_meta_ = cell_block_meta; + if (cell_block_meta) { + set_has_cell_block_meta(); + } else { + clear_has_cell_block_meta(); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_RPC_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/RSGroup.pb.cc b/hbase-native-client/src/rpc/generated/RSGroup.pb.cc new file mode 100644 index 0000000..caf844c --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RSGroup.pb.cc @@ -0,0 +1,422 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RSGroup.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "RSGroup.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* RSGroupInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RSGroupInfo_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_RSGroup_2eproto() { + protobuf_AddDesc_RSGroup_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "RSGroup.proto"); + GOOGLE_CHECK(file != NULL); + RSGroupInfo_descriptor_ = file->message_type(0); + static const int RSGroupInfo_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RSGroupInfo, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RSGroupInfo, servers_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RSGroupInfo, tables_), + }; + RSGroupInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RSGroupInfo_descriptor_, + RSGroupInfo::default_instance_, + RSGroupInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RSGroupInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RSGroupInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RSGroupInfo)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_RSGroup_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RSGroupInfo_descriptor_, &RSGroupInfo::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_RSGroup_2eproto() { + delete RSGroupInfo::default_instance_; + delete RSGroupInfo_reflection_; +} + +void protobuf_AddDesc_RSGroup_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\rRSGroup.proto\022\010hbase.pb\032\013HBase.proto\"g" + "\n\013RSGroupInfo\022\014\n\004name\030\001 \002(\t\022%\n\007servers\030\004" + " \003(\0132\024.hbase.pb.ServerName\022#\n\006tables\030\003 \003" + "(\0132\023.hbase.pb.TableNameBC\n*org.apache.ha" + "doop.hbase.protobuf.generatedB\rRSGroupPr" + "otosH\001\210\001\001\240\001\001", 212); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "RSGroup.proto", &protobuf_RegisterTypes); + RSGroupInfo::default_instance_ = new RSGroupInfo(); + RSGroupInfo::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_RSGroup_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_RSGroup_2eproto { + StaticDescriptorInitializer_RSGroup_2eproto() { + protobuf_AddDesc_RSGroup_2eproto(); + } +} static_descriptor_initializer_RSGroup_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int RSGroupInfo::kNameFieldNumber; +const int RSGroupInfo::kServersFieldNumber; +const int RSGroupInfo::kTablesFieldNumber; +#endif // !_MSC_VER + +RSGroupInfo::RSGroupInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RSGroupInfo::InitAsDefaultInstance() { +} + +RSGroupInfo::RSGroupInfo(const RSGroupInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RSGroupInfo::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RSGroupInfo::~RSGroupInfo() { + SharedDtor(); +} + +void RSGroupInfo::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (this != default_instance_) { + } +} + +void RSGroupInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RSGroupInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RSGroupInfo_descriptor_; +} + +const RSGroupInfo& RSGroupInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroup_2eproto(); + return *default_instance_; +} + +RSGroupInfo* RSGroupInfo::default_instance_ = NULL; + +RSGroupInfo* RSGroupInfo::New() const { + return new RSGroupInfo; +} + +void RSGroupInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + } + servers_.Clear(); + tables_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RSGroupInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_tables; + break; + } + + // repeated .hbase.pb.TableName tables = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_tables: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_tables())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_tables; + if (input->ExpectTag(34)) goto parse_servers; + break; + } + + // repeated .hbase.pb.ServerName servers = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_servers: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_servers())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_servers; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RSGroupInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + // repeated .hbase.pb.TableName tables = 3; + for (int i = 0; i < this->tables_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->tables(i), output); + } + + // repeated .hbase.pb.ServerName servers = 4; + for (int i = 0; i < this->servers_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->servers(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RSGroupInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // repeated .hbase.pb.TableName tables = 3; + for (int i = 0; i < this->tables_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->tables(i), target); + } + + // repeated .hbase.pb.ServerName servers = 4; + for (int i = 0; i < this->servers_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->servers(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RSGroupInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + } + // repeated .hbase.pb.ServerName servers = 4; + total_size += 1 * this->servers_size(); + for (int i = 0; i < this->servers_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->servers(i)); + } + + // repeated .hbase.pb.TableName tables = 3; + total_size += 1 * this->tables_size(); + for (int i = 0; i < this->tables_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->tables(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RSGroupInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RSGroupInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RSGroupInfo::MergeFrom(const RSGroupInfo& from) { + GOOGLE_CHECK_NE(&from, this); + servers_.MergeFrom(from.servers_); + tables_.MergeFrom(from.tables_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RSGroupInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RSGroupInfo::CopyFrom(const RSGroupInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RSGroupInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < servers_size(); i++) { + if (!this->servers(i).IsInitialized()) return false; + } + for (int i = 0; i < tables_size(); i++) { + if (!this->tables(i).IsInitialized()) return false; + } + return true; +} + +void RSGroupInfo::Swap(RSGroupInfo* other) { + if (other != this) { + std::swap(name_, other->name_); + servers_.Swap(&other->servers_); + tables_.Swap(&other->tables_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RSGroupInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RSGroupInfo_descriptor_; + metadata.reflection = RSGroupInfo_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/RSGroup.pb.h b/hbase-native-client/src/rpc/generated/RSGroup.pb.h new file mode 100644 index 0000000..0f118f3d --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RSGroup.pb.h @@ -0,0 +1,297 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RSGroup.proto + +#ifndef PROTOBUF_RSGroup_2eproto__INCLUDED +#define PROTOBUF_RSGroup_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "HBase.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_RSGroup_2eproto(); +void protobuf_AssignDesc_RSGroup_2eproto(); +void protobuf_ShutdownFile_RSGroup_2eproto(); + +class RSGroupInfo; + +// =================================================================== + +class RSGroupInfo : public ::google::protobuf::Message { + public: + RSGroupInfo(); + virtual ~RSGroupInfo(); + + RSGroupInfo(const RSGroupInfo& from); + + inline RSGroupInfo& operator=(const RSGroupInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RSGroupInfo& default_instance(); + + void Swap(RSGroupInfo* other); + + // implements Message ---------------------------------------------- + + RSGroupInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RSGroupInfo& from); + void MergeFrom(const RSGroupInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // repeated .hbase.pb.ServerName servers = 4; + inline int servers_size() const; + inline void clear_servers(); + static const int kServersFieldNumber = 4; + inline const ::hbase::pb::ServerName& servers(int index) const; + inline ::hbase::pb::ServerName* mutable_servers(int index); + inline ::hbase::pb::ServerName* add_servers(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& + servers() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* + mutable_servers(); + + // repeated .hbase.pb.TableName tables = 3; + inline int tables_size() const; + inline void clear_tables(); + static const int kTablesFieldNumber = 3; + inline const ::hbase::pb::TableName& tables(int index) const; + inline ::hbase::pb::TableName* mutable_tables(int index); + inline ::hbase::pb::TableName* add_tables(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& + tables() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* + mutable_tables(); + + // @@protoc_insertion_point(class_scope:hbase.pb.RSGroupInfo) + private: + inline void set_has_name(); + inline void clear_has_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName > servers_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName > tables_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroup_2eproto(); + friend void protobuf_AssignDesc_RSGroup_2eproto(); + friend void protobuf_ShutdownFile_RSGroup_2eproto(); + + void InitAsDefaultInstance(); + static RSGroupInfo* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// RSGroupInfo + +// required string name = 1; +inline bool RSGroupInfo::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RSGroupInfo::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void RSGroupInfo::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RSGroupInfo::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& RSGroupInfo::name() const { + return *name_; +} +inline void RSGroupInfo::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void RSGroupInfo::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void RSGroupInfo::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RSGroupInfo::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* RSGroupInfo::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RSGroupInfo::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.ServerName servers = 4; +inline int RSGroupInfo::servers_size() const { + return servers_.size(); +} +inline void RSGroupInfo::clear_servers() { + servers_.Clear(); +} +inline const ::hbase::pb::ServerName& RSGroupInfo::servers(int index) const { + return servers_.Get(index); +} +inline ::hbase::pb::ServerName* RSGroupInfo::mutable_servers(int index) { + return servers_.Mutable(index); +} +inline ::hbase::pb::ServerName* RSGroupInfo::add_servers() { + return servers_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& +RSGroupInfo::servers() const { + return servers_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* +RSGroupInfo::mutable_servers() { + return &servers_; +} + +// repeated .hbase.pb.TableName tables = 3; +inline int RSGroupInfo::tables_size() const { + return tables_.size(); +} +inline void RSGroupInfo::clear_tables() { + tables_.Clear(); +} +inline const ::hbase::pb::TableName& RSGroupInfo::tables(int index) const { + return tables_.Get(index); +} +inline ::hbase::pb::TableName* RSGroupInfo::mutable_tables(int index) { + return tables_.Mutable(index); +} +inline ::hbase::pb::TableName* RSGroupInfo::add_tables() { + return tables_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& +RSGroupInfo::tables() const { + return tables_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* +RSGroupInfo::mutable_tables() { + return &tables_; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_RSGroup_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/RSGroupAdmin.pb.cc b/hbase-native-client/src/rpc/generated/RSGroupAdmin.pb.cc new file mode 100644 index 0000000..8f301b0 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RSGroupAdmin.pb.cc @@ -0,0 +1,4756 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RSGroupAdmin.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "RSGroupAdmin.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* ListTablesOfRSGroupRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListTablesOfRSGroupRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListTablesOfRSGroupResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListTablesOfRSGroupResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetRSGroupInfoRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRSGroupInfoRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetRSGroupInfoResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRSGroupInfoResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetRSGroupInfoOfTableRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRSGroupInfoOfTableRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetRSGroupInfoOfTableResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRSGroupInfoOfTableResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* MoveServersRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MoveServersRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MoveServersResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MoveServersResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* MoveTablesRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MoveTablesRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* MoveTablesResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MoveTablesResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* AddRSGroupRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AddRSGroupRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* AddRSGroupResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AddRSGroupResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* RemoveRSGroupRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RemoveRSGroupRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* RemoveRSGroupResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RemoveRSGroupResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* BalanceRSGroupRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BalanceRSGroupRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* BalanceRSGroupResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BalanceRSGroupResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListRSGroupInfosRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListRSGroupInfosRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListRSGroupInfosResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListRSGroupInfosResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetRSGroupInfoOfServerRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRSGroupInfoOfServerRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetRSGroupInfoOfServerResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetRSGroupInfoOfServerResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_RSGroupAdmin_2eproto() { + protobuf_AddDesc_RSGroupAdmin_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "RSGroupAdmin.proto"); + GOOGLE_CHECK(file != NULL); + ListTablesOfRSGroupRequest_descriptor_ = file->message_type(0); + static const int ListTablesOfRSGroupRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTablesOfRSGroupRequest, r_s_group_name_), + }; + ListTablesOfRSGroupRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListTablesOfRSGroupRequest_descriptor_, + ListTablesOfRSGroupRequest::default_instance_, + ListTablesOfRSGroupRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTablesOfRSGroupRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTablesOfRSGroupRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListTablesOfRSGroupRequest)); + ListTablesOfRSGroupResponse_descriptor_ = file->message_type(1); + static const int ListTablesOfRSGroupResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTablesOfRSGroupResponse, table_name_), + }; + ListTablesOfRSGroupResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListTablesOfRSGroupResponse_descriptor_, + ListTablesOfRSGroupResponse::default_instance_, + ListTablesOfRSGroupResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTablesOfRSGroupResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListTablesOfRSGroupResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListTablesOfRSGroupResponse)); + GetRSGroupInfoRequest_descriptor_ = file->message_type(2); + static const int GetRSGroupInfoRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoRequest, r_s_group_name_), + }; + GetRSGroupInfoRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRSGroupInfoRequest_descriptor_, + GetRSGroupInfoRequest::default_instance_, + GetRSGroupInfoRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRSGroupInfoRequest)); + GetRSGroupInfoResponse_descriptor_ = file->message_type(3); + static const int GetRSGroupInfoResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoResponse, r_s_group_info_), + }; + GetRSGroupInfoResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRSGroupInfoResponse_descriptor_, + GetRSGroupInfoResponse::default_instance_, + GetRSGroupInfoResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRSGroupInfoResponse)); + GetRSGroupInfoOfTableRequest_descriptor_ = file->message_type(4); + static const int GetRSGroupInfoOfTableRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfTableRequest, table_name_), + }; + GetRSGroupInfoOfTableRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRSGroupInfoOfTableRequest_descriptor_, + GetRSGroupInfoOfTableRequest::default_instance_, + GetRSGroupInfoOfTableRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfTableRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfTableRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRSGroupInfoOfTableRequest)); + GetRSGroupInfoOfTableResponse_descriptor_ = file->message_type(5); + static const int GetRSGroupInfoOfTableResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfTableResponse, r_s_group_info_), + }; + GetRSGroupInfoOfTableResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRSGroupInfoOfTableResponse_descriptor_, + GetRSGroupInfoOfTableResponse::default_instance_, + GetRSGroupInfoOfTableResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfTableResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfTableResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRSGroupInfoOfTableResponse)); + MoveServersRequest_descriptor_ = file->message_type(6); + static const int MoveServersRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveServersRequest, target_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveServersRequest, servers_), + }; + MoveServersRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MoveServersRequest_descriptor_, + MoveServersRequest::default_instance_, + MoveServersRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveServersRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveServersRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MoveServersRequest)); + MoveServersResponse_descriptor_ = file->message_type(7); + static const int MoveServersResponse_offsets_[1] = { + }; + MoveServersResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MoveServersResponse_descriptor_, + MoveServersResponse::default_instance_, + MoveServersResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveServersResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveServersResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MoveServersResponse)); + MoveTablesRequest_descriptor_ = file->message_type(8); + static const int MoveTablesRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveTablesRequest, target_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveTablesRequest, table_name_), + }; + MoveTablesRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MoveTablesRequest_descriptor_, + MoveTablesRequest::default_instance_, + MoveTablesRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveTablesRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveTablesRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MoveTablesRequest)); + MoveTablesResponse_descriptor_ = file->message_type(9); + static const int MoveTablesResponse_offsets_[1] = { + }; + MoveTablesResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MoveTablesResponse_descriptor_, + MoveTablesResponse::default_instance_, + MoveTablesResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveTablesResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MoveTablesResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MoveTablesResponse)); + AddRSGroupRequest_descriptor_ = file->message_type(10); + static const int AddRSGroupRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddRSGroupRequest, r_s_group_name_), + }; + AddRSGroupRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AddRSGroupRequest_descriptor_, + AddRSGroupRequest::default_instance_, + AddRSGroupRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddRSGroupRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddRSGroupRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AddRSGroupRequest)); + AddRSGroupResponse_descriptor_ = file->message_type(11); + static const int AddRSGroupResponse_offsets_[1] = { + }; + AddRSGroupResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AddRSGroupResponse_descriptor_, + AddRSGroupResponse::default_instance_, + AddRSGroupResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddRSGroupResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddRSGroupResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AddRSGroupResponse)); + RemoveRSGroupRequest_descriptor_ = file->message_type(12); + static const int RemoveRSGroupRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemoveRSGroupRequest, r_s_group_name_), + }; + RemoveRSGroupRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RemoveRSGroupRequest_descriptor_, + RemoveRSGroupRequest::default_instance_, + RemoveRSGroupRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemoveRSGroupRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemoveRSGroupRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RemoveRSGroupRequest)); + RemoveRSGroupResponse_descriptor_ = file->message_type(13); + static const int RemoveRSGroupResponse_offsets_[1] = { + }; + RemoveRSGroupResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RemoveRSGroupResponse_descriptor_, + RemoveRSGroupResponse::default_instance_, + RemoveRSGroupResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemoveRSGroupResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemoveRSGroupResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RemoveRSGroupResponse)); + BalanceRSGroupRequest_descriptor_ = file->message_type(14); + static const int BalanceRSGroupRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRSGroupRequest, r_s_group_name_), + }; + BalanceRSGroupRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BalanceRSGroupRequest_descriptor_, + BalanceRSGroupRequest::default_instance_, + BalanceRSGroupRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRSGroupRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRSGroupRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BalanceRSGroupRequest)); + BalanceRSGroupResponse_descriptor_ = file->message_type(15); + static const int BalanceRSGroupResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRSGroupResponse, balanceran_), + }; + BalanceRSGroupResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BalanceRSGroupResponse_descriptor_, + BalanceRSGroupResponse::default_instance_, + BalanceRSGroupResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRSGroupResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BalanceRSGroupResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BalanceRSGroupResponse)); + ListRSGroupInfosRequest_descriptor_ = file->message_type(16); + static const int ListRSGroupInfosRequest_offsets_[1] = { + }; + ListRSGroupInfosRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListRSGroupInfosRequest_descriptor_, + ListRSGroupInfosRequest::default_instance_, + ListRSGroupInfosRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListRSGroupInfosRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListRSGroupInfosRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListRSGroupInfosRequest)); + ListRSGroupInfosResponse_descriptor_ = file->message_type(17); + static const int ListRSGroupInfosResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListRSGroupInfosResponse, r_s_group_info_), + }; + ListRSGroupInfosResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListRSGroupInfosResponse_descriptor_, + ListRSGroupInfosResponse::default_instance_, + ListRSGroupInfosResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListRSGroupInfosResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListRSGroupInfosResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListRSGroupInfosResponse)); + GetRSGroupInfoOfServerRequest_descriptor_ = file->message_type(18); + static const int GetRSGroupInfoOfServerRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfServerRequest, server_), + }; + GetRSGroupInfoOfServerRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRSGroupInfoOfServerRequest_descriptor_, + GetRSGroupInfoOfServerRequest::default_instance_, + GetRSGroupInfoOfServerRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfServerRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfServerRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRSGroupInfoOfServerRequest)); + GetRSGroupInfoOfServerResponse_descriptor_ = file->message_type(19); + static const int GetRSGroupInfoOfServerResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfServerResponse, r_s_group_info_), + }; + GetRSGroupInfoOfServerResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetRSGroupInfoOfServerResponse_descriptor_, + GetRSGroupInfoOfServerResponse::default_instance_, + GetRSGroupInfoOfServerResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfServerResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetRSGroupInfoOfServerResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetRSGroupInfoOfServerResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_RSGroupAdmin_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListTablesOfRSGroupRequest_descriptor_, &ListTablesOfRSGroupRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListTablesOfRSGroupResponse_descriptor_, &ListTablesOfRSGroupResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRSGroupInfoRequest_descriptor_, &GetRSGroupInfoRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRSGroupInfoResponse_descriptor_, &GetRSGroupInfoResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRSGroupInfoOfTableRequest_descriptor_, &GetRSGroupInfoOfTableRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRSGroupInfoOfTableResponse_descriptor_, &GetRSGroupInfoOfTableResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MoveServersRequest_descriptor_, &MoveServersRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MoveServersResponse_descriptor_, &MoveServersResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MoveTablesRequest_descriptor_, &MoveTablesRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MoveTablesResponse_descriptor_, &MoveTablesResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AddRSGroupRequest_descriptor_, &AddRSGroupRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AddRSGroupResponse_descriptor_, &AddRSGroupResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RemoveRSGroupRequest_descriptor_, &RemoveRSGroupRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RemoveRSGroupResponse_descriptor_, &RemoveRSGroupResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BalanceRSGroupRequest_descriptor_, &BalanceRSGroupRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BalanceRSGroupResponse_descriptor_, &BalanceRSGroupResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListRSGroupInfosRequest_descriptor_, &ListRSGroupInfosRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListRSGroupInfosResponse_descriptor_, &ListRSGroupInfosResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRSGroupInfoOfServerRequest_descriptor_, &GetRSGroupInfoOfServerRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetRSGroupInfoOfServerResponse_descriptor_, &GetRSGroupInfoOfServerResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_RSGroupAdmin_2eproto() { + delete ListTablesOfRSGroupRequest::default_instance_; + delete ListTablesOfRSGroupRequest_reflection_; + delete ListTablesOfRSGroupResponse::default_instance_; + delete ListTablesOfRSGroupResponse_reflection_; + delete GetRSGroupInfoRequest::default_instance_; + delete GetRSGroupInfoRequest_reflection_; + delete GetRSGroupInfoResponse::default_instance_; + delete GetRSGroupInfoResponse_reflection_; + delete GetRSGroupInfoOfTableRequest::default_instance_; + delete GetRSGroupInfoOfTableRequest_reflection_; + delete GetRSGroupInfoOfTableResponse::default_instance_; + delete GetRSGroupInfoOfTableResponse_reflection_; + delete MoveServersRequest::default_instance_; + delete MoveServersRequest_reflection_; + delete MoveServersResponse::default_instance_; + delete MoveServersResponse_reflection_; + delete MoveTablesRequest::default_instance_; + delete MoveTablesRequest_reflection_; + delete MoveTablesResponse::default_instance_; + delete MoveTablesResponse_reflection_; + delete AddRSGroupRequest::default_instance_; + delete AddRSGroupRequest_reflection_; + delete AddRSGroupResponse::default_instance_; + delete AddRSGroupResponse_reflection_; + delete RemoveRSGroupRequest::default_instance_; + delete RemoveRSGroupRequest_reflection_; + delete RemoveRSGroupResponse::default_instance_; + delete RemoveRSGroupResponse_reflection_; + delete BalanceRSGroupRequest::default_instance_; + delete BalanceRSGroupRequest_reflection_; + delete BalanceRSGroupResponse::default_instance_; + delete BalanceRSGroupResponse_reflection_; + delete ListRSGroupInfosRequest::default_instance_; + delete ListRSGroupInfosRequest_reflection_; + delete ListRSGroupInfosResponse::default_instance_; + delete ListRSGroupInfosResponse_reflection_; + delete GetRSGroupInfoOfServerRequest::default_instance_; + delete GetRSGroupInfoOfServerRequest_reflection_; + delete GetRSGroupInfoOfServerResponse::default_instance_; + delete GetRSGroupInfoOfServerResponse_reflection_; +} + +void protobuf_AddDesc_RSGroupAdmin_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_RSGroup_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\022RSGroupAdmin.proto\022\010hbase.pb\032\013HBase.pr" + "oto\032\rRSGroup.proto\"4\n\032ListTablesOfRSGrou" + "pRequest\022\026\n\016r_s_group_name\030\001 \002(\t\"F\n\033List" + "TablesOfRSGroupResponse\022\'\n\ntable_name\030\001 " + "\003(\0132\023.hbase.pb.TableName\"/\n\025GetRSGroupIn" + "foRequest\022\026\n\016r_s_group_name\030\001 \002(\t\"G\n\026Get" + "RSGroupInfoResponse\022-\n\016r_s_group_info\030\001 " + "\001(\0132\025.hbase.pb.RSGroupInfo\"G\n\034GetRSGroup" + "InfoOfTableRequest\022\'\n\ntable_name\030\001 \002(\0132\023" + ".hbase.pb.TableName\"N\n\035GetRSGroupInfoOfT" + "ableResponse\022-\n\016r_s_group_info\030\001 \001(\0132\025.h" + "base.pb.RSGroupInfo\"Q\n\022MoveServersReques" + "t\022\024\n\014target_group\030\001 \002(\t\022%\n\007servers\030\003 \003(\013" + "2\024.hbase.pb.ServerName\"\025\n\023MoveServersRes" + "ponse\"R\n\021MoveTablesRequest\022\024\n\014target_gro" + "up\030\001 \002(\t\022\'\n\ntable_name\030\002 \003(\0132\023.hbase.pb." + "TableName\"\024\n\022MoveTablesResponse\"+\n\021AddRS" + "GroupRequest\022\026\n\016r_s_group_name\030\001 \002(\t\"\024\n\022" + "AddRSGroupResponse\".\n\024RemoveRSGroupReque" + "st\022\026\n\016r_s_group_name\030\001 \002(\t\"\027\n\025RemoveRSGr" + "oupResponse\"/\n\025BalanceRSGroupRequest\022\026\n\016" + "r_s_group_name\030\001 \002(\t\",\n\026BalanceRSGroupRe" + "sponse\022\022\n\nbalanceRan\030\001 \002(\010\"\031\n\027ListRSGrou" + "pInfosRequest\"I\n\030ListRSGroupInfosRespons" + "e\022-\n\016r_s_group_info\030\001 \003(\0132\025.hbase.pb.RSG" + "roupInfo\"E\n\035GetRSGroupInfoOfServerReques" + "t\022$\n\006server\030\002 \002(\0132\024.hbase.pb.ServerName\"" + "O\n\036GetRSGroupInfoOfServerResponse\022-\n\016r_s" + "_group_info\030\001 \001(\0132\025.hbase.pb.RSGroupInfo" + "2\241\006\n\023RSGroupAdminService\022S\n\016GetRSGroupIn" + "fo\022\037.hbase.pb.GetRSGroupInfoRequest\032 .hb" + "ase.pb.GetRSGroupInfoResponse\022h\n\025GetRSGr" + "oupInfoOfTable\022&.hbase.pb.GetRSGroupInfo" + "OfTableRequest\032\'.hbase.pb.GetRSGroupInfo" + "OfTableResponse\022k\n\026GetRSGroupInfoOfServe" + "r\022\'.hbase.pb.GetRSGroupInfoOfServerReque" + "st\032(.hbase.pb.GetRSGroupInfoOfServerResp" + "onse\022J\n\013MoveServers\022\034.hbase.pb.MoveServe" + "rsRequest\032\035.hbase.pb.MoveServersResponse" + "\022G\n\nMoveTables\022\033.hbase.pb.MoveTablesRequ" + "est\032\034.hbase.pb.MoveTablesResponse\022G\n\nAdd" + "RSGroup\022\033.hbase.pb.AddRSGroupRequest\032\034.h" + "base.pb.AddRSGroupResponse\022P\n\rRemoveRSGr" + "oup\022\036.hbase.pb.RemoveRSGroupRequest\032\037.hb" + "ase.pb.RemoveRSGroupResponse\022S\n\016BalanceR" + "SGroup\022\037.hbase.pb.BalanceRSGroupRequest\032" + " .hbase.pb.BalanceRSGroupResponse\022Y\n\020Lis" + "tRSGroupInfos\022!.hbase.pb.ListRSGroupInfo" + "sRequest\032\".hbase.pb.ListRSGroupInfosResp" + "onseBH\n*org.apache.hadoop.hbase.protobuf" + ".generatedB\022RSGroupAdminProtosH\001\210\001\001\240\001\001", 2038); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "RSGroupAdmin.proto", &protobuf_RegisterTypes); + ListTablesOfRSGroupRequest::default_instance_ = new ListTablesOfRSGroupRequest(); + ListTablesOfRSGroupResponse::default_instance_ = new ListTablesOfRSGroupResponse(); + GetRSGroupInfoRequest::default_instance_ = new GetRSGroupInfoRequest(); + GetRSGroupInfoResponse::default_instance_ = new GetRSGroupInfoResponse(); + GetRSGroupInfoOfTableRequest::default_instance_ = new GetRSGroupInfoOfTableRequest(); + GetRSGroupInfoOfTableResponse::default_instance_ = new GetRSGroupInfoOfTableResponse(); + MoveServersRequest::default_instance_ = new MoveServersRequest(); + MoveServersResponse::default_instance_ = new MoveServersResponse(); + MoveTablesRequest::default_instance_ = new MoveTablesRequest(); + MoveTablesResponse::default_instance_ = new MoveTablesResponse(); + AddRSGroupRequest::default_instance_ = new AddRSGroupRequest(); + AddRSGroupResponse::default_instance_ = new AddRSGroupResponse(); + RemoveRSGroupRequest::default_instance_ = new RemoveRSGroupRequest(); + RemoveRSGroupResponse::default_instance_ = new RemoveRSGroupResponse(); + BalanceRSGroupRequest::default_instance_ = new BalanceRSGroupRequest(); + BalanceRSGroupResponse::default_instance_ = new BalanceRSGroupResponse(); + ListRSGroupInfosRequest::default_instance_ = new ListRSGroupInfosRequest(); + ListRSGroupInfosResponse::default_instance_ = new ListRSGroupInfosResponse(); + GetRSGroupInfoOfServerRequest::default_instance_ = new GetRSGroupInfoOfServerRequest(); + GetRSGroupInfoOfServerResponse::default_instance_ = new GetRSGroupInfoOfServerResponse(); + ListTablesOfRSGroupRequest::default_instance_->InitAsDefaultInstance(); + ListTablesOfRSGroupResponse::default_instance_->InitAsDefaultInstance(); + GetRSGroupInfoRequest::default_instance_->InitAsDefaultInstance(); + GetRSGroupInfoResponse::default_instance_->InitAsDefaultInstance(); + GetRSGroupInfoOfTableRequest::default_instance_->InitAsDefaultInstance(); + GetRSGroupInfoOfTableResponse::default_instance_->InitAsDefaultInstance(); + MoveServersRequest::default_instance_->InitAsDefaultInstance(); + MoveServersResponse::default_instance_->InitAsDefaultInstance(); + MoveTablesRequest::default_instance_->InitAsDefaultInstance(); + MoveTablesResponse::default_instance_->InitAsDefaultInstance(); + AddRSGroupRequest::default_instance_->InitAsDefaultInstance(); + AddRSGroupResponse::default_instance_->InitAsDefaultInstance(); + RemoveRSGroupRequest::default_instance_->InitAsDefaultInstance(); + RemoveRSGroupResponse::default_instance_->InitAsDefaultInstance(); + BalanceRSGroupRequest::default_instance_->InitAsDefaultInstance(); + BalanceRSGroupResponse::default_instance_->InitAsDefaultInstance(); + ListRSGroupInfosRequest::default_instance_->InitAsDefaultInstance(); + ListRSGroupInfosResponse::default_instance_->InitAsDefaultInstance(); + GetRSGroupInfoOfServerRequest::default_instance_->InitAsDefaultInstance(); + GetRSGroupInfoOfServerResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_RSGroupAdmin_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_RSGroupAdmin_2eproto { + StaticDescriptorInitializer_RSGroupAdmin_2eproto() { + protobuf_AddDesc_RSGroupAdmin_2eproto(); + } +} static_descriptor_initializer_RSGroupAdmin_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int ListTablesOfRSGroupRequest::kRSGroupNameFieldNumber; +#endif // !_MSC_VER + +ListTablesOfRSGroupRequest::ListTablesOfRSGroupRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListTablesOfRSGroupRequest::InitAsDefaultInstance() { +} + +ListTablesOfRSGroupRequest::ListTablesOfRSGroupRequest(const ListTablesOfRSGroupRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListTablesOfRSGroupRequest::SharedCtor() { + _cached_size_ = 0; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListTablesOfRSGroupRequest::~ListTablesOfRSGroupRequest() { + SharedDtor(); +} + +void ListTablesOfRSGroupRequest::SharedDtor() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (this != default_instance_) { + } +} + +void ListTablesOfRSGroupRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListTablesOfRSGroupRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListTablesOfRSGroupRequest_descriptor_; +} + +const ListTablesOfRSGroupRequest& ListTablesOfRSGroupRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +ListTablesOfRSGroupRequest* ListTablesOfRSGroupRequest::default_instance_ = NULL; + +ListTablesOfRSGroupRequest* ListTablesOfRSGroupRequest::New() const { + return new ListTablesOfRSGroupRequest; +} + +void ListTablesOfRSGroupRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_r_s_group_name()) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListTablesOfRSGroupRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string r_s_group_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_r_s_group_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListTablesOfRSGroupRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->r_s_group_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListTablesOfRSGroupRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->r_s_group_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListTablesOfRSGroupRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->r_s_group_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListTablesOfRSGroupRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListTablesOfRSGroupRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListTablesOfRSGroupRequest::MergeFrom(const ListTablesOfRSGroupRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_r_s_group_name()) { + set_r_s_group_name(from.r_s_group_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListTablesOfRSGroupRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListTablesOfRSGroupRequest::CopyFrom(const ListTablesOfRSGroupRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListTablesOfRSGroupRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ListTablesOfRSGroupRequest::Swap(ListTablesOfRSGroupRequest* other) { + if (other != this) { + std::swap(r_s_group_name_, other->r_s_group_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListTablesOfRSGroupRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListTablesOfRSGroupRequest_descriptor_; + metadata.reflection = ListTablesOfRSGroupRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListTablesOfRSGroupResponse::kTableNameFieldNumber; +#endif // !_MSC_VER + +ListTablesOfRSGroupResponse::ListTablesOfRSGroupResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListTablesOfRSGroupResponse::InitAsDefaultInstance() { +} + +ListTablesOfRSGroupResponse::ListTablesOfRSGroupResponse(const ListTablesOfRSGroupResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListTablesOfRSGroupResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListTablesOfRSGroupResponse::~ListTablesOfRSGroupResponse() { + SharedDtor(); +} + +void ListTablesOfRSGroupResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListTablesOfRSGroupResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListTablesOfRSGroupResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListTablesOfRSGroupResponse_descriptor_; +} + +const ListTablesOfRSGroupResponse& ListTablesOfRSGroupResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +ListTablesOfRSGroupResponse* ListTablesOfRSGroupResponse::default_instance_ = NULL; + +ListTablesOfRSGroupResponse* ListTablesOfRSGroupResponse::New() const { + return new ListTablesOfRSGroupResponse; +} + +void ListTablesOfRSGroupResponse::Clear() { + table_name_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListTablesOfRSGroupResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_table_name; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListTablesOfRSGroupResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.TableName table_name = 1; + for (int i = 0; i < this->table_name_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListTablesOfRSGroupResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.TableName table_name = 1; + for (int i = 0; i < this->table_name_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListTablesOfRSGroupResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.TableName table_name = 1; + total_size += 1 * this->table_name_size(); + for (int i = 0; i < this->table_name_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListTablesOfRSGroupResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListTablesOfRSGroupResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListTablesOfRSGroupResponse::MergeFrom(const ListTablesOfRSGroupResponse& from) { + GOOGLE_CHECK_NE(&from, this); + table_name_.MergeFrom(from.table_name_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListTablesOfRSGroupResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListTablesOfRSGroupResponse::CopyFrom(const ListTablesOfRSGroupResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListTablesOfRSGroupResponse::IsInitialized() const { + + for (int i = 0; i < table_name_size(); i++) { + if (!this->table_name(i).IsInitialized()) return false; + } + return true; +} + +void ListTablesOfRSGroupResponse::Swap(ListTablesOfRSGroupResponse* other) { + if (other != this) { + table_name_.Swap(&other->table_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListTablesOfRSGroupResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListTablesOfRSGroupResponse_descriptor_; + metadata.reflection = ListTablesOfRSGroupResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetRSGroupInfoRequest::kRSGroupNameFieldNumber; +#endif // !_MSC_VER + +GetRSGroupInfoRequest::GetRSGroupInfoRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRSGroupInfoRequest::InitAsDefaultInstance() { +} + +GetRSGroupInfoRequest::GetRSGroupInfoRequest(const GetRSGroupInfoRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRSGroupInfoRequest::SharedCtor() { + _cached_size_ = 0; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRSGroupInfoRequest::~GetRSGroupInfoRequest() { + SharedDtor(); +} + +void GetRSGroupInfoRequest::SharedDtor() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (this != default_instance_) { + } +} + +void GetRSGroupInfoRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRSGroupInfoRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRSGroupInfoRequest_descriptor_; +} + +const GetRSGroupInfoRequest& GetRSGroupInfoRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +GetRSGroupInfoRequest* GetRSGroupInfoRequest::default_instance_ = NULL; + +GetRSGroupInfoRequest* GetRSGroupInfoRequest::New() const { + return new GetRSGroupInfoRequest; +} + +void GetRSGroupInfoRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_r_s_group_name()) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRSGroupInfoRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string r_s_group_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_r_s_group_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRSGroupInfoRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->r_s_group_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRSGroupInfoRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->r_s_group_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRSGroupInfoRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->r_s_group_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRSGroupInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRSGroupInfoRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRSGroupInfoRequest::MergeFrom(const GetRSGroupInfoRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_r_s_group_name()) { + set_r_s_group_name(from.r_s_group_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRSGroupInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRSGroupInfoRequest::CopyFrom(const GetRSGroupInfoRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRSGroupInfoRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void GetRSGroupInfoRequest::Swap(GetRSGroupInfoRequest* other) { + if (other != this) { + std::swap(r_s_group_name_, other->r_s_group_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRSGroupInfoRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRSGroupInfoRequest_descriptor_; + metadata.reflection = GetRSGroupInfoRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetRSGroupInfoResponse::kRSGroupInfoFieldNumber; +#endif // !_MSC_VER + +GetRSGroupInfoResponse::GetRSGroupInfoResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRSGroupInfoResponse::InitAsDefaultInstance() { + r_s_group_info_ = const_cast< ::hbase::pb::RSGroupInfo*>(&::hbase::pb::RSGroupInfo::default_instance()); +} + +GetRSGroupInfoResponse::GetRSGroupInfoResponse(const GetRSGroupInfoResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRSGroupInfoResponse::SharedCtor() { + _cached_size_ = 0; + r_s_group_info_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRSGroupInfoResponse::~GetRSGroupInfoResponse() { + SharedDtor(); +} + +void GetRSGroupInfoResponse::SharedDtor() { + if (this != default_instance_) { + delete r_s_group_info_; + } +} + +void GetRSGroupInfoResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRSGroupInfoResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRSGroupInfoResponse_descriptor_; +} + +const GetRSGroupInfoResponse& GetRSGroupInfoResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +GetRSGroupInfoResponse* GetRSGroupInfoResponse::default_instance_ = NULL; + +GetRSGroupInfoResponse* GetRSGroupInfoResponse::New() const { + return new GetRSGroupInfoResponse; +} + +void GetRSGroupInfoResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_r_s_group_info()) { + if (r_s_group_info_ != NULL) r_s_group_info_->::hbase::pb::RSGroupInfo::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRSGroupInfoResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_r_s_group_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRSGroupInfoResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->r_s_group_info(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRSGroupInfoResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->r_s_group_info(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRSGroupInfoResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->r_s_group_info()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRSGroupInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRSGroupInfoResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRSGroupInfoResponse::MergeFrom(const GetRSGroupInfoResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_r_s_group_info()) { + mutable_r_s_group_info()->::hbase::pb::RSGroupInfo::MergeFrom(from.r_s_group_info()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRSGroupInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRSGroupInfoResponse::CopyFrom(const GetRSGroupInfoResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRSGroupInfoResponse::IsInitialized() const { + + if (has_r_s_group_info()) { + if (!this->r_s_group_info().IsInitialized()) return false; + } + return true; +} + +void GetRSGroupInfoResponse::Swap(GetRSGroupInfoResponse* other) { + if (other != this) { + std::swap(r_s_group_info_, other->r_s_group_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRSGroupInfoResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRSGroupInfoResponse_descriptor_; + metadata.reflection = GetRSGroupInfoResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetRSGroupInfoOfTableRequest::kTableNameFieldNumber; +#endif // !_MSC_VER + +GetRSGroupInfoOfTableRequest::GetRSGroupInfoOfTableRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRSGroupInfoOfTableRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +GetRSGroupInfoOfTableRequest::GetRSGroupInfoOfTableRequest(const GetRSGroupInfoOfTableRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRSGroupInfoOfTableRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRSGroupInfoOfTableRequest::~GetRSGroupInfoOfTableRequest() { + SharedDtor(); +} + +void GetRSGroupInfoOfTableRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void GetRSGroupInfoOfTableRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRSGroupInfoOfTableRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRSGroupInfoOfTableRequest_descriptor_; +} + +const GetRSGroupInfoOfTableRequest& GetRSGroupInfoOfTableRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +GetRSGroupInfoOfTableRequest* GetRSGroupInfoOfTableRequest::default_instance_ = NULL; + +GetRSGroupInfoOfTableRequest* GetRSGroupInfoOfTableRequest::New() const { + return new GetRSGroupInfoOfTableRequest; +} + +void GetRSGroupInfoOfTableRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRSGroupInfoOfTableRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRSGroupInfoOfTableRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRSGroupInfoOfTableRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRSGroupInfoOfTableRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRSGroupInfoOfTableRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRSGroupInfoOfTableRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRSGroupInfoOfTableRequest::MergeFrom(const GetRSGroupInfoOfTableRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRSGroupInfoOfTableRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRSGroupInfoOfTableRequest::CopyFrom(const GetRSGroupInfoOfTableRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRSGroupInfoOfTableRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void GetRSGroupInfoOfTableRequest::Swap(GetRSGroupInfoOfTableRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRSGroupInfoOfTableRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRSGroupInfoOfTableRequest_descriptor_; + metadata.reflection = GetRSGroupInfoOfTableRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetRSGroupInfoOfTableResponse::kRSGroupInfoFieldNumber; +#endif // !_MSC_VER + +GetRSGroupInfoOfTableResponse::GetRSGroupInfoOfTableResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRSGroupInfoOfTableResponse::InitAsDefaultInstance() { + r_s_group_info_ = const_cast< ::hbase::pb::RSGroupInfo*>(&::hbase::pb::RSGroupInfo::default_instance()); +} + +GetRSGroupInfoOfTableResponse::GetRSGroupInfoOfTableResponse(const GetRSGroupInfoOfTableResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRSGroupInfoOfTableResponse::SharedCtor() { + _cached_size_ = 0; + r_s_group_info_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRSGroupInfoOfTableResponse::~GetRSGroupInfoOfTableResponse() { + SharedDtor(); +} + +void GetRSGroupInfoOfTableResponse::SharedDtor() { + if (this != default_instance_) { + delete r_s_group_info_; + } +} + +void GetRSGroupInfoOfTableResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRSGroupInfoOfTableResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRSGroupInfoOfTableResponse_descriptor_; +} + +const GetRSGroupInfoOfTableResponse& GetRSGroupInfoOfTableResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +GetRSGroupInfoOfTableResponse* GetRSGroupInfoOfTableResponse::default_instance_ = NULL; + +GetRSGroupInfoOfTableResponse* GetRSGroupInfoOfTableResponse::New() const { + return new GetRSGroupInfoOfTableResponse; +} + +void GetRSGroupInfoOfTableResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_r_s_group_info()) { + if (r_s_group_info_ != NULL) r_s_group_info_->::hbase::pb::RSGroupInfo::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRSGroupInfoOfTableResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_r_s_group_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRSGroupInfoOfTableResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->r_s_group_info(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRSGroupInfoOfTableResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->r_s_group_info(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRSGroupInfoOfTableResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->r_s_group_info()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRSGroupInfoOfTableResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRSGroupInfoOfTableResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRSGroupInfoOfTableResponse::MergeFrom(const GetRSGroupInfoOfTableResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_r_s_group_info()) { + mutable_r_s_group_info()->::hbase::pb::RSGroupInfo::MergeFrom(from.r_s_group_info()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRSGroupInfoOfTableResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRSGroupInfoOfTableResponse::CopyFrom(const GetRSGroupInfoOfTableResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRSGroupInfoOfTableResponse::IsInitialized() const { + + if (has_r_s_group_info()) { + if (!this->r_s_group_info().IsInitialized()) return false; + } + return true; +} + +void GetRSGroupInfoOfTableResponse::Swap(GetRSGroupInfoOfTableResponse* other) { + if (other != this) { + std::swap(r_s_group_info_, other->r_s_group_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRSGroupInfoOfTableResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRSGroupInfoOfTableResponse_descriptor_; + metadata.reflection = GetRSGroupInfoOfTableResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MoveServersRequest::kTargetGroupFieldNumber; +const int MoveServersRequest::kServersFieldNumber; +#endif // !_MSC_VER + +MoveServersRequest::MoveServersRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MoveServersRequest::InitAsDefaultInstance() { +} + +MoveServersRequest::MoveServersRequest(const MoveServersRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MoveServersRequest::SharedCtor() { + _cached_size_ = 0; + target_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MoveServersRequest::~MoveServersRequest() { + SharedDtor(); +} + +void MoveServersRequest::SharedDtor() { + if (target_group_ != &::google::protobuf::internal::kEmptyString) { + delete target_group_; + } + if (this != default_instance_) { + } +} + +void MoveServersRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MoveServersRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MoveServersRequest_descriptor_; +} + +const MoveServersRequest& MoveServersRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +MoveServersRequest* MoveServersRequest::default_instance_ = NULL; + +MoveServersRequest* MoveServersRequest::New() const { + return new MoveServersRequest; +} + +void MoveServersRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_target_group()) { + if (target_group_ != &::google::protobuf::internal::kEmptyString) { + target_group_->clear(); + } + } + } + servers_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MoveServersRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string target_group = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_target_group())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->target_group().data(), this->target_group().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_servers; + break; + } + + // repeated .hbase.pb.ServerName servers = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_servers: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_servers())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_servers; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MoveServersRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string target_group = 1; + if (has_target_group()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->target_group().data(), this->target_group().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->target_group(), output); + } + + // repeated .hbase.pb.ServerName servers = 3; + for (int i = 0; i < this->servers_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->servers(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MoveServersRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string target_group = 1; + if (has_target_group()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->target_group().data(), this->target_group().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->target_group(), target); + } + + // repeated .hbase.pb.ServerName servers = 3; + for (int i = 0; i < this->servers_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->servers(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MoveServersRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string target_group = 1; + if (has_target_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->target_group()); + } + + } + // repeated .hbase.pb.ServerName servers = 3; + total_size += 1 * this->servers_size(); + for (int i = 0; i < this->servers_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->servers(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MoveServersRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MoveServersRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MoveServersRequest::MergeFrom(const MoveServersRequest& from) { + GOOGLE_CHECK_NE(&from, this); + servers_.MergeFrom(from.servers_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_target_group()) { + set_target_group(from.target_group()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MoveServersRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoveServersRequest::CopyFrom(const MoveServersRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveServersRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < servers_size(); i++) { + if (!this->servers(i).IsInitialized()) return false; + } + return true; +} + +void MoveServersRequest::Swap(MoveServersRequest* other) { + if (other != this) { + std::swap(target_group_, other->target_group_); + servers_.Swap(&other->servers_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MoveServersRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MoveServersRequest_descriptor_; + metadata.reflection = MoveServersRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +MoveServersResponse::MoveServersResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MoveServersResponse::InitAsDefaultInstance() { +} + +MoveServersResponse::MoveServersResponse(const MoveServersResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MoveServersResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MoveServersResponse::~MoveServersResponse() { + SharedDtor(); +} + +void MoveServersResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void MoveServersResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MoveServersResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MoveServersResponse_descriptor_; +} + +const MoveServersResponse& MoveServersResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +MoveServersResponse* MoveServersResponse::default_instance_ = NULL; + +MoveServersResponse* MoveServersResponse::New() const { + return new MoveServersResponse; +} + +void MoveServersResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MoveServersResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void MoveServersResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MoveServersResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MoveServersResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MoveServersResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MoveServersResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MoveServersResponse::MergeFrom(const MoveServersResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MoveServersResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoveServersResponse::CopyFrom(const MoveServersResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveServersResponse::IsInitialized() const { + + return true; +} + +void MoveServersResponse::Swap(MoveServersResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MoveServersResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MoveServersResponse_descriptor_; + metadata.reflection = MoveServersResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MoveTablesRequest::kTargetGroupFieldNumber; +const int MoveTablesRequest::kTableNameFieldNumber; +#endif // !_MSC_VER + +MoveTablesRequest::MoveTablesRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MoveTablesRequest::InitAsDefaultInstance() { +} + +MoveTablesRequest::MoveTablesRequest(const MoveTablesRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MoveTablesRequest::SharedCtor() { + _cached_size_ = 0; + target_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MoveTablesRequest::~MoveTablesRequest() { + SharedDtor(); +} + +void MoveTablesRequest::SharedDtor() { + if (target_group_ != &::google::protobuf::internal::kEmptyString) { + delete target_group_; + } + if (this != default_instance_) { + } +} + +void MoveTablesRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MoveTablesRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MoveTablesRequest_descriptor_; +} + +const MoveTablesRequest& MoveTablesRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +MoveTablesRequest* MoveTablesRequest::default_instance_ = NULL; + +MoveTablesRequest* MoveTablesRequest::New() const { + return new MoveTablesRequest; +} + +void MoveTablesRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_target_group()) { + if (target_group_ != &::google::protobuf::internal::kEmptyString) { + target_group_->clear(); + } + } + } + table_name_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MoveTablesRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string target_group = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_target_group())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->target_group().data(), this->target_group().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // repeated .hbase.pb.TableName table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MoveTablesRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string target_group = 1; + if (has_target_group()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->target_group().data(), this->target_group().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->target_group(), output); + } + + // repeated .hbase.pb.TableName table_name = 2; + for (int i = 0; i < this->table_name_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->table_name(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MoveTablesRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string target_group = 1; + if (has_target_group()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->target_group().data(), this->target_group().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->target_group(), target); + } + + // repeated .hbase.pb.TableName table_name = 2; + for (int i = 0; i < this->table_name_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->table_name(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MoveTablesRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string target_group = 1; + if (has_target_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->target_group()); + } + + } + // repeated .hbase.pb.TableName table_name = 2; + total_size += 1 * this->table_name_size(); + for (int i = 0; i < this->table_name_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MoveTablesRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MoveTablesRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MoveTablesRequest::MergeFrom(const MoveTablesRequest& from) { + GOOGLE_CHECK_NE(&from, this); + table_name_.MergeFrom(from.table_name_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_target_group()) { + set_target_group(from.target_group()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MoveTablesRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoveTablesRequest::CopyFrom(const MoveTablesRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveTablesRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < table_name_size(); i++) { + if (!this->table_name(i).IsInitialized()) return false; + } + return true; +} + +void MoveTablesRequest::Swap(MoveTablesRequest* other) { + if (other != this) { + std::swap(target_group_, other->target_group_); + table_name_.Swap(&other->table_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MoveTablesRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MoveTablesRequest_descriptor_; + metadata.reflection = MoveTablesRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +MoveTablesResponse::MoveTablesResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MoveTablesResponse::InitAsDefaultInstance() { +} + +MoveTablesResponse::MoveTablesResponse(const MoveTablesResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MoveTablesResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MoveTablesResponse::~MoveTablesResponse() { + SharedDtor(); +} + +void MoveTablesResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void MoveTablesResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MoveTablesResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MoveTablesResponse_descriptor_; +} + +const MoveTablesResponse& MoveTablesResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +MoveTablesResponse* MoveTablesResponse::default_instance_ = NULL; + +MoveTablesResponse* MoveTablesResponse::New() const { + return new MoveTablesResponse; +} + +void MoveTablesResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MoveTablesResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void MoveTablesResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MoveTablesResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MoveTablesResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MoveTablesResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MoveTablesResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MoveTablesResponse::MergeFrom(const MoveTablesResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MoveTablesResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MoveTablesResponse::CopyFrom(const MoveTablesResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveTablesResponse::IsInitialized() const { + + return true; +} + +void MoveTablesResponse::Swap(MoveTablesResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MoveTablesResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MoveTablesResponse_descriptor_; + metadata.reflection = MoveTablesResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AddRSGroupRequest::kRSGroupNameFieldNumber; +#endif // !_MSC_VER + +AddRSGroupRequest::AddRSGroupRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AddRSGroupRequest::InitAsDefaultInstance() { +} + +AddRSGroupRequest::AddRSGroupRequest(const AddRSGroupRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AddRSGroupRequest::SharedCtor() { + _cached_size_ = 0; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AddRSGroupRequest::~AddRSGroupRequest() { + SharedDtor(); +} + +void AddRSGroupRequest::SharedDtor() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (this != default_instance_) { + } +} + +void AddRSGroupRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AddRSGroupRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AddRSGroupRequest_descriptor_; +} + +const AddRSGroupRequest& AddRSGroupRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +AddRSGroupRequest* AddRSGroupRequest::default_instance_ = NULL; + +AddRSGroupRequest* AddRSGroupRequest::New() const { + return new AddRSGroupRequest; +} + +void AddRSGroupRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_r_s_group_name()) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AddRSGroupRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string r_s_group_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_r_s_group_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AddRSGroupRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->r_s_group_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AddRSGroupRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->r_s_group_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AddRSGroupRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->r_s_group_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AddRSGroupRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AddRSGroupRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AddRSGroupRequest::MergeFrom(const AddRSGroupRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_r_s_group_name()) { + set_r_s_group_name(from.r_s_group_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AddRSGroupRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddRSGroupRequest::CopyFrom(const AddRSGroupRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddRSGroupRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void AddRSGroupRequest::Swap(AddRSGroupRequest* other) { + if (other != this) { + std::swap(r_s_group_name_, other->r_s_group_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AddRSGroupRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AddRSGroupRequest_descriptor_; + metadata.reflection = AddRSGroupRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +AddRSGroupResponse::AddRSGroupResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AddRSGroupResponse::InitAsDefaultInstance() { +} + +AddRSGroupResponse::AddRSGroupResponse(const AddRSGroupResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AddRSGroupResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AddRSGroupResponse::~AddRSGroupResponse() { + SharedDtor(); +} + +void AddRSGroupResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void AddRSGroupResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AddRSGroupResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AddRSGroupResponse_descriptor_; +} + +const AddRSGroupResponse& AddRSGroupResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +AddRSGroupResponse* AddRSGroupResponse::default_instance_ = NULL; + +AddRSGroupResponse* AddRSGroupResponse::New() const { + return new AddRSGroupResponse; +} + +void AddRSGroupResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AddRSGroupResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void AddRSGroupResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AddRSGroupResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AddRSGroupResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AddRSGroupResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AddRSGroupResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AddRSGroupResponse::MergeFrom(const AddRSGroupResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AddRSGroupResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddRSGroupResponse::CopyFrom(const AddRSGroupResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddRSGroupResponse::IsInitialized() const { + + return true; +} + +void AddRSGroupResponse::Swap(AddRSGroupResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AddRSGroupResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AddRSGroupResponse_descriptor_; + metadata.reflection = AddRSGroupResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RemoveRSGroupRequest::kRSGroupNameFieldNumber; +#endif // !_MSC_VER + +RemoveRSGroupRequest::RemoveRSGroupRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RemoveRSGroupRequest::InitAsDefaultInstance() { +} + +RemoveRSGroupRequest::RemoveRSGroupRequest(const RemoveRSGroupRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RemoveRSGroupRequest::SharedCtor() { + _cached_size_ = 0; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RemoveRSGroupRequest::~RemoveRSGroupRequest() { + SharedDtor(); +} + +void RemoveRSGroupRequest::SharedDtor() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (this != default_instance_) { + } +} + +void RemoveRSGroupRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RemoveRSGroupRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RemoveRSGroupRequest_descriptor_; +} + +const RemoveRSGroupRequest& RemoveRSGroupRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +RemoveRSGroupRequest* RemoveRSGroupRequest::default_instance_ = NULL; + +RemoveRSGroupRequest* RemoveRSGroupRequest::New() const { + return new RemoveRSGroupRequest; +} + +void RemoveRSGroupRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_r_s_group_name()) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RemoveRSGroupRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string r_s_group_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_r_s_group_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RemoveRSGroupRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->r_s_group_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RemoveRSGroupRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->r_s_group_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RemoveRSGroupRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->r_s_group_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RemoveRSGroupRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RemoveRSGroupRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RemoveRSGroupRequest::MergeFrom(const RemoveRSGroupRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_r_s_group_name()) { + set_r_s_group_name(from.r_s_group_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RemoveRSGroupRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RemoveRSGroupRequest::CopyFrom(const RemoveRSGroupRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoveRSGroupRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void RemoveRSGroupRequest::Swap(RemoveRSGroupRequest* other) { + if (other != this) { + std::swap(r_s_group_name_, other->r_s_group_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RemoveRSGroupRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RemoveRSGroupRequest_descriptor_; + metadata.reflection = RemoveRSGroupRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +RemoveRSGroupResponse::RemoveRSGroupResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RemoveRSGroupResponse::InitAsDefaultInstance() { +} + +RemoveRSGroupResponse::RemoveRSGroupResponse(const RemoveRSGroupResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RemoveRSGroupResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RemoveRSGroupResponse::~RemoveRSGroupResponse() { + SharedDtor(); +} + +void RemoveRSGroupResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void RemoveRSGroupResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RemoveRSGroupResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RemoveRSGroupResponse_descriptor_; +} + +const RemoveRSGroupResponse& RemoveRSGroupResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +RemoveRSGroupResponse* RemoveRSGroupResponse::default_instance_ = NULL; + +RemoveRSGroupResponse* RemoveRSGroupResponse::New() const { + return new RemoveRSGroupResponse; +} + +void RemoveRSGroupResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RemoveRSGroupResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void RemoveRSGroupResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RemoveRSGroupResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RemoveRSGroupResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RemoveRSGroupResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RemoveRSGroupResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RemoveRSGroupResponse::MergeFrom(const RemoveRSGroupResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RemoveRSGroupResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RemoveRSGroupResponse::CopyFrom(const RemoveRSGroupResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemoveRSGroupResponse::IsInitialized() const { + + return true; +} + +void RemoveRSGroupResponse::Swap(RemoveRSGroupResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RemoveRSGroupResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RemoveRSGroupResponse_descriptor_; + metadata.reflection = RemoveRSGroupResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BalanceRSGroupRequest::kRSGroupNameFieldNumber; +#endif // !_MSC_VER + +BalanceRSGroupRequest::BalanceRSGroupRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BalanceRSGroupRequest::InitAsDefaultInstance() { +} + +BalanceRSGroupRequest::BalanceRSGroupRequest(const BalanceRSGroupRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BalanceRSGroupRequest::SharedCtor() { + _cached_size_ = 0; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BalanceRSGroupRequest::~BalanceRSGroupRequest() { + SharedDtor(); +} + +void BalanceRSGroupRequest::SharedDtor() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (this != default_instance_) { + } +} + +void BalanceRSGroupRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BalanceRSGroupRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BalanceRSGroupRequest_descriptor_; +} + +const BalanceRSGroupRequest& BalanceRSGroupRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +BalanceRSGroupRequest* BalanceRSGroupRequest::default_instance_ = NULL; + +BalanceRSGroupRequest* BalanceRSGroupRequest::New() const { + return new BalanceRSGroupRequest; +} + +void BalanceRSGroupRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_r_s_group_name()) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BalanceRSGroupRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string r_s_group_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_r_s_group_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BalanceRSGroupRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->r_s_group_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BalanceRSGroupRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->r_s_group_name().data(), this->r_s_group_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->r_s_group_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BalanceRSGroupRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string r_s_group_name = 1; + if (has_r_s_group_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->r_s_group_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BalanceRSGroupRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BalanceRSGroupRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BalanceRSGroupRequest::MergeFrom(const BalanceRSGroupRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_r_s_group_name()) { + set_r_s_group_name(from.r_s_group_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BalanceRSGroupRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BalanceRSGroupRequest::CopyFrom(const BalanceRSGroupRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BalanceRSGroupRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void BalanceRSGroupRequest::Swap(BalanceRSGroupRequest* other) { + if (other != this) { + std::swap(r_s_group_name_, other->r_s_group_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BalanceRSGroupRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BalanceRSGroupRequest_descriptor_; + metadata.reflection = BalanceRSGroupRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BalanceRSGroupResponse::kBalanceRanFieldNumber; +#endif // !_MSC_VER + +BalanceRSGroupResponse::BalanceRSGroupResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BalanceRSGroupResponse::InitAsDefaultInstance() { +} + +BalanceRSGroupResponse::BalanceRSGroupResponse(const BalanceRSGroupResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BalanceRSGroupResponse::SharedCtor() { + _cached_size_ = 0; + balanceran_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BalanceRSGroupResponse::~BalanceRSGroupResponse() { + SharedDtor(); +} + +void BalanceRSGroupResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void BalanceRSGroupResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BalanceRSGroupResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BalanceRSGroupResponse_descriptor_; +} + +const BalanceRSGroupResponse& BalanceRSGroupResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +BalanceRSGroupResponse* BalanceRSGroupResponse::default_instance_ = NULL; + +BalanceRSGroupResponse* BalanceRSGroupResponse::New() const { + return new BalanceRSGroupResponse; +} + +void BalanceRSGroupResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + balanceran_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BalanceRSGroupResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool balanceRan = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &balanceran_))); + set_has_balanceran(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BalanceRSGroupResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool balanceRan = 1; + if (has_balanceran()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->balanceran(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BalanceRSGroupResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool balanceRan = 1; + if (has_balanceran()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->balanceran(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BalanceRSGroupResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool balanceRan = 1; + if (has_balanceran()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BalanceRSGroupResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BalanceRSGroupResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BalanceRSGroupResponse::MergeFrom(const BalanceRSGroupResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_balanceran()) { + set_balanceran(from.balanceran()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BalanceRSGroupResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BalanceRSGroupResponse::CopyFrom(const BalanceRSGroupResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BalanceRSGroupResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void BalanceRSGroupResponse::Swap(BalanceRSGroupResponse* other) { + if (other != this) { + std::swap(balanceran_, other->balanceran_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BalanceRSGroupResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BalanceRSGroupResponse_descriptor_; + metadata.reflection = BalanceRSGroupResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ListRSGroupInfosRequest::ListRSGroupInfosRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListRSGroupInfosRequest::InitAsDefaultInstance() { +} + +ListRSGroupInfosRequest::ListRSGroupInfosRequest(const ListRSGroupInfosRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListRSGroupInfosRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListRSGroupInfosRequest::~ListRSGroupInfosRequest() { + SharedDtor(); +} + +void ListRSGroupInfosRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListRSGroupInfosRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListRSGroupInfosRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListRSGroupInfosRequest_descriptor_; +} + +const ListRSGroupInfosRequest& ListRSGroupInfosRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +ListRSGroupInfosRequest* ListRSGroupInfosRequest::default_instance_ = NULL; + +ListRSGroupInfosRequest* ListRSGroupInfosRequest::New() const { + return new ListRSGroupInfosRequest; +} + +void ListRSGroupInfosRequest::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListRSGroupInfosRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ListRSGroupInfosRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListRSGroupInfosRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListRSGroupInfosRequest::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListRSGroupInfosRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListRSGroupInfosRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListRSGroupInfosRequest::MergeFrom(const ListRSGroupInfosRequest& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListRSGroupInfosRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListRSGroupInfosRequest::CopyFrom(const ListRSGroupInfosRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListRSGroupInfosRequest::IsInitialized() const { + + return true; +} + +void ListRSGroupInfosRequest::Swap(ListRSGroupInfosRequest* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListRSGroupInfosRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListRSGroupInfosRequest_descriptor_; + metadata.reflection = ListRSGroupInfosRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListRSGroupInfosResponse::kRSGroupInfoFieldNumber; +#endif // !_MSC_VER + +ListRSGroupInfosResponse::ListRSGroupInfosResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListRSGroupInfosResponse::InitAsDefaultInstance() { +} + +ListRSGroupInfosResponse::ListRSGroupInfosResponse(const ListRSGroupInfosResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListRSGroupInfosResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListRSGroupInfosResponse::~ListRSGroupInfosResponse() { + SharedDtor(); +} + +void ListRSGroupInfosResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListRSGroupInfosResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListRSGroupInfosResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListRSGroupInfosResponse_descriptor_; +} + +const ListRSGroupInfosResponse& ListRSGroupInfosResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +ListRSGroupInfosResponse* ListRSGroupInfosResponse::default_instance_ = NULL; + +ListRSGroupInfosResponse* ListRSGroupInfosResponse::New() const { + return new ListRSGroupInfosResponse; +} + +void ListRSGroupInfosResponse::Clear() { + r_s_group_info_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListRSGroupInfosResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.RSGroupInfo r_s_group_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_r_s_group_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_r_s_group_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_r_s_group_info; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListRSGroupInfosResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.RSGroupInfo r_s_group_info = 1; + for (int i = 0; i < this->r_s_group_info_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->r_s_group_info(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListRSGroupInfosResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.RSGroupInfo r_s_group_info = 1; + for (int i = 0; i < this->r_s_group_info_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->r_s_group_info(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListRSGroupInfosResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.RSGroupInfo r_s_group_info = 1; + total_size += 1 * this->r_s_group_info_size(); + for (int i = 0; i < this->r_s_group_info_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->r_s_group_info(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListRSGroupInfosResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListRSGroupInfosResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListRSGroupInfosResponse::MergeFrom(const ListRSGroupInfosResponse& from) { + GOOGLE_CHECK_NE(&from, this); + r_s_group_info_.MergeFrom(from.r_s_group_info_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListRSGroupInfosResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListRSGroupInfosResponse::CopyFrom(const ListRSGroupInfosResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListRSGroupInfosResponse::IsInitialized() const { + + for (int i = 0; i < r_s_group_info_size(); i++) { + if (!this->r_s_group_info(i).IsInitialized()) return false; + } + return true; +} + +void ListRSGroupInfosResponse::Swap(ListRSGroupInfosResponse* other) { + if (other != this) { + r_s_group_info_.Swap(&other->r_s_group_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListRSGroupInfosResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListRSGroupInfosResponse_descriptor_; + metadata.reflection = ListRSGroupInfosResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetRSGroupInfoOfServerRequest::kServerFieldNumber; +#endif // !_MSC_VER + +GetRSGroupInfoOfServerRequest::GetRSGroupInfoOfServerRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRSGroupInfoOfServerRequest::InitAsDefaultInstance() { + server_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +GetRSGroupInfoOfServerRequest::GetRSGroupInfoOfServerRequest(const GetRSGroupInfoOfServerRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRSGroupInfoOfServerRequest::SharedCtor() { + _cached_size_ = 0; + server_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRSGroupInfoOfServerRequest::~GetRSGroupInfoOfServerRequest() { + SharedDtor(); +} + +void GetRSGroupInfoOfServerRequest::SharedDtor() { + if (this != default_instance_) { + delete server_; + } +} + +void GetRSGroupInfoOfServerRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRSGroupInfoOfServerRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRSGroupInfoOfServerRequest_descriptor_; +} + +const GetRSGroupInfoOfServerRequest& GetRSGroupInfoOfServerRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +GetRSGroupInfoOfServerRequest* GetRSGroupInfoOfServerRequest::default_instance_ = NULL; + +GetRSGroupInfoOfServerRequest* GetRSGroupInfoOfServerRequest::New() const { + return new GetRSGroupInfoOfServerRequest; +} + +void GetRSGroupInfoOfServerRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server()) { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRSGroupInfoOfServerRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName server = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRSGroupInfoOfServerRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName server = 2; + if (has_server()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->server(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRSGroupInfoOfServerRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName server = 2; + if (has_server()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->server(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRSGroupInfoOfServerRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName server = 2; + if (has_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRSGroupInfoOfServerRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRSGroupInfoOfServerRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRSGroupInfoOfServerRequest::MergeFrom(const GetRSGroupInfoOfServerRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server()) { + mutable_server()->::hbase::pb::ServerName::MergeFrom(from.server()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRSGroupInfoOfServerRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRSGroupInfoOfServerRequest::CopyFrom(const GetRSGroupInfoOfServerRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRSGroupInfoOfServerRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_server()) { + if (!this->server().IsInitialized()) return false; + } + return true; +} + +void GetRSGroupInfoOfServerRequest::Swap(GetRSGroupInfoOfServerRequest* other) { + if (other != this) { + std::swap(server_, other->server_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRSGroupInfoOfServerRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRSGroupInfoOfServerRequest_descriptor_; + metadata.reflection = GetRSGroupInfoOfServerRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetRSGroupInfoOfServerResponse::kRSGroupInfoFieldNumber; +#endif // !_MSC_VER + +GetRSGroupInfoOfServerResponse::GetRSGroupInfoOfServerResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetRSGroupInfoOfServerResponse::InitAsDefaultInstance() { + r_s_group_info_ = const_cast< ::hbase::pb::RSGroupInfo*>(&::hbase::pb::RSGroupInfo::default_instance()); +} + +GetRSGroupInfoOfServerResponse::GetRSGroupInfoOfServerResponse(const GetRSGroupInfoOfServerResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetRSGroupInfoOfServerResponse::SharedCtor() { + _cached_size_ = 0; + r_s_group_info_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetRSGroupInfoOfServerResponse::~GetRSGroupInfoOfServerResponse() { + SharedDtor(); +} + +void GetRSGroupInfoOfServerResponse::SharedDtor() { + if (this != default_instance_) { + delete r_s_group_info_; + } +} + +void GetRSGroupInfoOfServerResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetRSGroupInfoOfServerResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetRSGroupInfoOfServerResponse_descriptor_; +} + +const GetRSGroupInfoOfServerResponse& GetRSGroupInfoOfServerResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RSGroupAdmin_2eproto(); + return *default_instance_; +} + +GetRSGroupInfoOfServerResponse* GetRSGroupInfoOfServerResponse::default_instance_ = NULL; + +GetRSGroupInfoOfServerResponse* GetRSGroupInfoOfServerResponse::New() const { + return new GetRSGroupInfoOfServerResponse; +} + +void GetRSGroupInfoOfServerResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_r_s_group_info()) { + if (r_s_group_info_ != NULL) r_s_group_info_->::hbase::pb::RSGroupInfo::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetRSGroupInfoOfServerResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_r_s_group_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetRSGroupInfoOfServerResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->r_s_group_info(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetRSGroupInfoOfServerResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->r_s_group_info(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetRSGroupInfoOfServerResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + if (has_r_s_group_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->r_s_group_info()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetRSGroupInfoOfServerResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetRSGroupInfoOfServerResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetRSGroupInfoOfServerResponse::MergeFrom(const GetRSGroupInfoOfServerResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_r_s_group_info()) { + mutable_r_s_group_info()->::hbase::pb::RSGroupInfo::MergeFrom(from.r_s_group_info()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetRSGroupInfoOfServerResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetRSGroupInfoOfServerResponse::CopyFrom(const GetRSGroupInfoOfServerResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetRSGroupInfoOfServerResponse::IsInitialized() const { + + if (has_r_s_group_info()) { + if (!this->r_s_group_info().IsInitialized()) return false; + } + return true; +} + +void GetRSGroupInfoOfServerResponse::Swap(GetRSGroupInfoOfServerResponse* other) { + if (other != this) { + std::swap(r_s_group_info_, other->r_s_group_info_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetRSGroupInfoOfServerResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetRSGroupInfoOfServerResponse_descriptor_; + metadata.reflection = GetRSGroupInfoOfServerResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/RSGroupAdmin.pb.h b/hbase-native-client/src/rpc/generated/RSGroupAdmin.pb.h new file mode 100644 index 0000000..9780cf7 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RSGroupAdmin.pb.h @@ -0,0 +1,2629 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RSGroupAdmin.proto + +#ifndef PROTOBUF_RSGroupAdmin_2eproto__INCLUDED +#define PROTOBUF_RSGroupAdmin_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "RSGroup.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_RSGroupAdmin_2eproto(); +void protobuf_AssignDesc_RSGroupAdmin_2eproto(); +void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + +class ListTablesOfRSGroupRequest; +class ListTablesOfRSGroupResponse; +class GetRSGroupInfoRequest; +class GetRSGroupInfoResponse; +class GetRSGroupInfoOfTableRequest; +class GetRSGroupInfoOfTableResponse; +class MoveServersRequest; +class MoveServersResponse; +class MoveTablesRequest; +class MoveTablesResponse; +class AddRSGroupRequest; +class AddRSGroupResponse; +class RemoveRSGroupRequest; +class RemoveRSGroupResponse; +class BalanceRSGroupRequest; +class BalanceRSGroupResponse; +class ListRSGroupInfosRequest; +class ListRSGroupInfosResponse; +class GetRSGroupInfoOfServerRequest; +class GetRSGroupInfoOfServerResponse; + +// =================================================================== + +class ListTablesOfRSGroupRequest : public ::google::protobuf::Message { + public: + ListTablesOfRSGroupRequest(); + virtual ~ListTablesOfRSGroupRequest(); + + ListTablesOfRSGroupRequest(const ListTablesOfRSGroupRequest& from); + + inline ListTablesOfRSGroupRequest& operator=(const ListTablesOfRSGroupRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListTablesOfRSGroupRequest& default_instance(); + + void Swap(ListTablesOfRSGroupRequest* other); + + // implements Message ---------------------------------------------- + + ListTablesOfRSGroupRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListTablesOfRSGroupRequest& from); + void MergeFrom(const ListTablesOfRSGroupRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string r_s_group_name = 1; + inline bool has_r_s_group_name() const; + inline void clear_r_s_group_name(); + static const int kRSGroupNameFieldNumber = 1; + inline const ::std::string& r_s_group_name() const; + inline void set_r_s_group_name(const ::std::string& value); + inline void set_r_s_group_name(const char* value); + inline void set_r_s_group_name(const char* value, size_t size); + inline ::std::string* mutable_r_s_group_name(); + inline ::std::string* release_r_s_group_name(); + inline void set_allocated_r_s_group_name(::std::string* r_s_group_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListTablesOfRSGroupRequest) + private: + inline void set_has_r_s_group_name(); + inline void clear_has_r_s_group_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* r_s_group_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static ListTablesOfRSGroupRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListTablesOfRSGroupResponse : public ::google::protobuf::Message { + public: + ListTablesOfRSGroupResponse(); + virtual ~ListTablesOfRSGroupResponse(); + + ListTablesOfRSGroupResponse(const ListTablesOfRSGroupResponse& from); + + inline ListTablesOfRSGroupResponse& operator=(const ListTablesOfRSGroupResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListTablesOfRSGroupResponse& default_instance(); + + void Swap(ListTablesOfRSGroupResponse* other); + + // implements Message ---------------------------------------------- + + ListTablesOfRSGroupResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListTablesOfRSGroupResponse& from); + void MergeFrom(const ListTablesOfRSGroupResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.TableName table_name = 1; + inline int table_name_size() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name(int index) const; + inline ::hbase::pb::TableName* mutable_table_name(int index); + inline ::hbase::pb::TableName* add_table_name(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& + table_name() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* + mutable_table_name(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListTablesOfRSGroupResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName > table_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static ListTablesOfRSGroupResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetRSGroupInfoRequest : public ::google::protobuf::Message { + public: + GetRSGroupInfoRequest(); + virtual ~GetRSGroupInfoRequest(); + + GetRSGroupInfoRequest(const GetRSGroupInfoRequest& from); + + inline GetRSGroupInfoRequest& operator=(const GetRSGroupInfoRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRSGroupInfoRequest& default_instance(); + + void Swap(GetRSGroupInfoRequest* other); + + // implements Message ---------------------------------------------- + + GetRSGroupInfoRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRSGroupInfoRequest& from); + void MergeFrom(const GetRSGroupInfoRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string r_s_group_name = 1; + inline bool has_r_s_group_name() const; + inline void clear_r_s_group_name(); + static const int kRSGroupNameFieldNumber = 1; + inline const ::std::string& r_s_group_name() const; + inline void set_r_s_group_name(const ::std::string& value); + inline void set_r_s_group_name(const char* value); + inline void set_r_s_group_name(const char* value, size_t size); + inline ::std::string* mutable_r_s_group_name(); + inline ::std::string* release_r_s_group_name(); + inline void set_allocated_r_s_group_name(::std::string* r_s_group_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRSGroupInfoRequest) + private: + inline void set_has_r_s_group_name(); + inline void clear_has_r_s_group_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* r_s_group_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static GetRSGroupInfoRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetRSGroupInfoResponse : public ::google::protobuf::Message { + public: + GetRSGroupInfoResponse(); + virtual ~GetRSGroupInfoResponse(); + + GetRSGroupInfoResponse(const GetRSGroupInfoResponse& from); + + inline GetRSGroupInfoResponse& operator=(const GetRSGroupInfoResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRSGroupInfoResponse& default_instance(); + + void Swap(GetRSGroupInfoResponse* other); + + // implements Message ---------------------------------------------- + + GetRSGroupInfoResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRSGroupInfoResponse& from); + void MergeFrom(const GetRSGroupInfoResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + inline bool has_r_s_group_info() const; + inline void clear_r_s_group_info(); + static const int kRSGroupInfoFieldNumber = 1; + inline const ::hbase::pb::RSGroupInfo& r_s_group_info() const; + inline ::hbase::pb::RSGroupInfo* mutable_r_s_group_info(); + inline ::hbase::pb::RSGroupInfo* release_r_s_group_info(); + inline void set_allocated_r_s_group_info(::hbase::pb::RSGroupInfo* r_s_group_info); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRSGroupInfoResponse) + private: + inline void set_has_r_s_group_info(); + inline void clear_has_r_s_group_info(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RSGroupInfo* r_s_group_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static GetRSGroupInfoResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetRSGroupInfoOfTableRequest : public ::google::protobuf::Message { + public: + GetRSGroupInfoOfTableRequest(); + virtual ~GetRSGroupInfoOfTableRequest(); + + GetRSGroupInfoOfTableRequest(const GetRSGroupInfoOfTableRequest& from); + + inline GetRSGroupInfoOfTableRequest& operator=(const GetRSGroupInfoOfTableRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRSGroupInfoOfTableRequest& default_instance(); + + void Swap(GetRSGroupInfoOfTableRequest* other); + + // implements Message ---------------------------------------------- + + GetRSGroupInfoOfTableRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRSGroupInfoOfTableRequest& from); + void MergeFrom(const GetRSGroupInfoOfTableRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRSGroupInfoOfTableRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static GetRSGroupInfoOfTableRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetRSGroupInfoOfTableResponse : public ::google::protobuf::Message { + public: + GetRSGroupInfoOfTableResponse(); + virtual ~GetRSGroupInfoOfTableResponse(); + + GetRSGroupInfoOfTableResponse(const GetRSGroupInfoOfTableResponse& from); + + inline GetRSGroupInfoOfTableResponse& operator=(const GetRSGroupInfoOfTableResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRSGroupInfoOfTableResponse& default_instance(); + + void Swap(GetRSGroupInfoOfTableResponse* other); + + // implements Message ---------------------------------------------- + + GetRSGroupInfoOfTableResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRSGroupInfoOfTableResponse& from); + void MergeFrom(const GetRSGroupInfoOfTableResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + inline bool has_r_s_group_info() const; + inline void clear_r_s_group_info(); + static const int kRSGroupInfoFieldNumber = 1; + inline const ::hbase::pb::RSGroupInfo& r_s_group_info() const; + inline ::hbase::pb::RSGroupInfo* mutable_r_s_group_info(); + inline ::hbase::pb::RSGroupInfo* release_r_s_group_info(); + inline void set_allocated_r_s_group_info(::hbase::pb::RSGroupInfo* r_s_group_info); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRSGroupInfoOfTableResponse) + private: + inline void set_has_r_s_group_info(); + inline void clear_has_r_s_group_info(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RSGroupInfo* r_s_group_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static GetRSGroupInfoOfTableResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class MoveServersRequest : public ::google::protobuf::Message { + public: + MoveServersRequest(); + virtual ~MoveServersRequest(); + + MoveServersRequest(const MoveServersRequest& from); + + inline MoveServersRequest& operator=(const MoveServersRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoveServersRequest& default_instance(); + + void Swap(MoveServersRequest* other); + + // implements Message ---------------------------------------------- + + MoveServersRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MoveServersRequest& from); + void MergeFrom(const MoveServersRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string target_group = 1; + inline bool has_target_group() const; + inline void clear_target_group(); + static const int kTargetGroupFieldNumber = 1; + inline const ::std::string& target_group() const; + inline void set_target_group(const ::std::string& value); + inline void set_target_group(const char* value); + inline void set_target_group(const char* value, size_t size); + inline ::std::string* mutable_target_group(); + inline ::std::string* release_target_group(); + inline void set_allocated_target_group(::std::string* target_group); + + // repeated .hbase.pb.ServerName servers = 3; + inline int servers_size() const; + inline void clear_servers(); + static const int kServersFieldNumber = 3; + inline const ::hbase::pb::ServerName& servers(int index) const; + inline ::hbase::pb::ServerName* mutable_servers(int index); + inline ::hbase::pb::ServerName* add_servers(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& + servers() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* + mutable_servers(); + + // @@protoc_insertion_point(class_scope:hbase.pb.MoveServersRequest) + private: + inline void set_has_target_group(); + inline void clear_has_target_group(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* target_group_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName > servers_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static MoveServersRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MoveServersResponse : public ::google::protobuf::Message { + public: + MoveServersResponse(); + virtual ~MoveServersResponse(); + + MoveServersResponse(const MoveServersResponse& from); + + inline MoveServersResponse& operator=(const MoveServersResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoveServersResponse& default_instance(); + + void Swap(MoveServersResponse* other); + + // implements Message ---------------------------------------------- + + MoveServersResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MoveServersResponse& from); + void MergeFrom(const MoveServersResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.MoveServersResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static MoveServersResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class MoveTablesRequest : public ::google::protobuf::Message { + public: + MoveTablesRequest(); + virtual ~MoveTablesRequest(); + + MoveTablesRequest(const MoveTablesRequest& from); + + inline MoveTablesRequest& operator=(const MoveTablesRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoveTablesRequest& default_instance(); + + void Swap(MoveTablesRequest* other); + + // implements Message ---------------------------------------------- + + MoveTablesRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MoveTablesRequest& from); + void MergeFrom(const MoveTablesRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string target_group = 1; + inline bool has_target_group() const; + inline void clear_target_group(); + static const int kTargetGroupFieldNumber = 1; + inline const ::std::string& target_group() const; + inline void set_target_group(const ::std::string& value); + inline void set_target_group(const char* value); + inline void set_target_group(const char* value, size_t size); + inline ::std::string* mutable_target_group(); + inline ::std::string* release_target_group(); + inline void set_allocated_target_group(::std::string* target_group); + + // repeated .hbase.pb.TableName table_name = 2; + inline int table_name_size() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::hbase::pb::TableName& table_name(int index) const; + inline ::hbase::pb::TableName* mutable_table_name(int index); + inline ::hbase::pb::TableName* add_table_name(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& + table_name() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* + mutable_table_name(); + + // @@protoc_insertion_point(class_scope:hbase.pb.MoveTablesRequest) + private: + inline void set_has_target_group(); + inline void clear_has_target_group(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* target_group_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName > table_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static MoveTablesRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class MoveTablesResponse : public ::google::protobuf::Message { + public: + MoveTablesResponse(); + virtual ~MoveTablesResponse(); + + MoveTablesResponse(const MoveTablesResponse& from); + + inline MoveTablesResponse& operator=(const MoveTablesResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MoveTablesResponse& default_instance(); + + void Swap(MoveTablesResponse* other); + + // implements Message ---------------------------------------------- + + MoveTablesResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MoveTablesResponse& from); + void MergeFrom(const MoveTablesResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.MoveTablesResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static MoveTablesResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class AddRSGroupRequest : public ::google::protobuf::Message { + public: + AddRSGroupRequest(); + virtual ~AddRSGroupRequest(); + + AddRSGroupRequest(const AddRSGroupRequest& from); + + inline AddRSGroupRequest& operator=(const AddRSGroupRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AddRSGroupRequest& default_instance(); + + void Swap(AddRSGroupRequest* other); + + // implements Message ---------------------------------------------- + + AddRSGroupRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AddRSGroupRequest& from); + void MergeFrom(const AddRSGroupRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string r_s_group_name = 1; + inline bool has_r_s_group_name() const; + inline void clear_r_s_group_name(); + static const int kRSGroupNameFieldNumber = 1; + inline const ::std::string& r_s_group_name() const; + inline void set_r_s_group_name(const ::std::string& value); + inline void set_r_s_group_name(const char* value); + inline void set_r_s_group_name(const char* value, size_t size); + inline ::std::string* mutable_r_s_group_name(); + inline ::std::string* release_r_s_group_name(); + inline void set_allocated_r_s_group_name(::std::string* r_s_group_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.AddRSGroupRequest) + private: + inline void set_has_r_s_group_name(); + inline void clear_has_r_s_group_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* r_s_group_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static AddRSGroupRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class AddRSGroupResponse : public ::google::protobuf::Message { + public: + AddRSGroupResponse(); + virtual ~AddRSGroupResponse(); + + AddRSGroupResponse(const AddRSGroupResponse& from); + + inline AddRSGroupResponse& operator=(const AddRSGroupResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AddRSGroupResponse& default_instance(); + + void Swap(AddRSGroupResponse* other); + + // implements Message ---------------------------------------------- + + AddRSGroupResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AddRSGroupResponse& from); + void MergeFrom(const AddRSGroupResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.AddRSGroupResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static AddRSGroupResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class RemoveRSGroupRequest : public ::google::protobuf::Message { + public: + RemoveRSGroupRequest(); + virtual ~RemoveRSGroupRequest(); + + RemoveRSGroupRequest(const RemoveRSGroupRequest& from); + + inline RemoveRSGroupRequest& operator=(const RemoveRSGroupRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RemoveRSGroupRequest& default_instance(); + + void Swap(RemoveRSGroupRequest* other); + + // implements Message ---------------------------------------------- + + RemoveRSGroupRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RemoveRSGroupRequest& from); + void MergeFrom(const RemoveRSGroupRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string r_s_group_name = 1; + inline bool has_r_s_group_name() const; + inline void clear_r_s_group_name(); + static const int kRSGroupNameFieldNumber = 1; + inline const ::std::string& r_s_group_name() const; + inline void set_r_s_group_name(const ::std::string& value); + inline void set_r_s_group_name(const char* value); + inline void set_r_s_group_name(const char* value, size_t size); + inline ::std::string* mutable_r_s_group_name(); + inline ::std::string* release_r_s_group_name(); + inline void set_allocated_r_s_group_name(::std::string* r_s_group_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.RemoveRSGroupRequest) + private: + inline void set_has_r_s_group_name(); + inline void clear_has_r_s_group_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* r_s_group_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static RemoveRSGroupRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class RemoveRSGroupResponse : public ::google::protobuf::Message { + public: + RemoveRSGroupResponse(); + virtual ~RemoveRSGroupResponse(); + + RemoveRSGroupResponse(const RemoveRSGroupResponse& from); + + inline RemoveRSGroupResponse& operator=(const RemoveRSGroupResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RemoveRSGroupResponse& default_instance(); + + void Swap(RemoveRSGroupResponse* other); + + // implements Message ---------------------------------------------- + + RemoveRSGroupResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RemoveRSGroupResponse& from); + void MergeFrom(const RemoveRSGroupResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.RemoveRSGroupResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static RemoveRSGroupResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class BalanceRSGroupRequest : public ::google::protobuf::Message { + public: + BalanceRSGroupRequest(); + virtual ~BalanceRSGroupRequest(); + + BalanceRSGroupRequest(const BalanceRSGroupRequest& from); + + inline BalanceRSGroupRequest& operator=(const BalanceRSGroupRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BalanceRSGroupRequest& default_instance(); + + void Swap(BalanceRSGroupRequest* other); + + // implements Message ---------------------------------------------- + + BalanceRSGroupRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BalanceRSGroupRequest& from); + void MergeFrom(const BalanceRSGroupRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string r_s_group_name = 1; + inline bool has_r_s_group_name() const; + inline void clear_r_s_group_name(); + static const int kRSGroupNameFieldNumber = 1; + inline const ::std::string& r_s_group_name() const; + inline void set_r_s_group_name(const ::std::string& value); + inline void set_r_s_group_name(const char* value); + inline void set_r_s_group_name(const char* value, size_t size); + inline ::std::string* mutable_r_s_group_name(); + inline ::std::string* release_r_s_group_name(); + inline void set_allocated_r_s_group_name(::std::string* r_s_group_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.BalanceRSGroupRequest) + private: + inline void set_has_r_s_group_name(); + inline void clear_has_r_s_group_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* r_s_group_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static BalanceRSGroupRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class BalanceRSGroupResponse : public ::google::protobuf::Message { + public: + BalanceRSGroupResponse(); + virtual ~BalanceRSGroupResponse(); + + BalanceRSGroupResponse(const BalanceRSGroupResponse& from); + + inline BalanceRSGroupResponse& operator=(const BalanceRSGroupResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BalanceRSGroupResponse& default_instance(); + + void Swap(BalanceRSGroupResponse* other); + + // implements Message ---------------------------------------------- + + BalanceRSGroupResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BalanceRSGroupResponse& from); + void MergeFrom(const BalanceRSGroupResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool balanceRan = 1; + inline bool has_balanceran() const; + inline void clear_balanceran(); + static const int kBalanceRanFieldNumber = 1; + inline bool balanceran() const; + inline void set_balanceran(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.BalanceRSGroupResponse) + private: + inline void set_has_balanceran(); + inline void clear_has_balanceran(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool balanceran_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static BalanceRSGroupResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListRSGroupInfosRequest : public ::google::protobuf::Message { + public: + ListRSGroupInfosRequest(); + virtual ~ListRSGroupInfosRequest(); + + ListRSGroupInfosRequest(const ListRSGroupInfosRequest& from); + + inline ListRSGroupInfosRequest& operator=(const ListRSGroupInfosRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListRSGroupInfosRequest& default_instance(); + + void Swap(ListRSGroupInfosRequest* other); + + // implements Message ---------------------------------------------- + + ListRSGroupInfosRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListRSGroupInfosRequest& from); + void MergeFrom(const ListRSGroupInfosRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.ListRSGroupInfosRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static ListRSGroupInfosRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListRSGroupInfosResponse : public ::google::protobuf::Message { + public: + ListRSGroupInfosResponse(); + virtual ~ListRSGroupInfosResponse(); + + ListRSGroupInfosResponse(const ListRSGroupInfosResponse& from); + + inline ListRSGroupInfosResponse& operator=(const ListRSGroupInfosResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListRSGroupInfosResponse& default_instance(); + + void Swap(ListRSGroupInfosResponse* other); + + // implements Message ---------------------------------------------- + + ListRSGroupInfosResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListRSGroupInfosResponse& from); + void MergeFrom(const ListRSGroupInfosResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.RSGroupInfo r_s_group_info = 1; + inline int r_s_group_info_size() const; + inline void clear_r_s_group_info(); + static const int kRSGroupInfoFieldNumber = 1; + inline const ::hbase::pb::RSGroupInfo& r_s_group_info(int index) const; + inline ::hbase::pb::RSGroupInfo* mutable_r_s_group_info(int index); + inline ::hbase::pb::RSGroupInfo* add_r_s_group_info(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RSGroupInfo >& + r_s_group_info() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RSGroupInfo >* + mutable_r_s_group_info(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListRSGroupInfosResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RSGroupInfo > r_s_group_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static ListRSGroupInfosResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetRSGroupInfoOfServerRequest : public ::google::protobuf::Message { + public: + GetRSGroupInfoOfServerRequest(); + virtual ~GetRSGroupInfoOfServerRequest(); + + GetRSGroupInfoOfServerRequest(const GetRSGroupInfoOfServerRequest& from); + + inline GetRSGroupInfoOfServerRequest& operator=(const GetRSGroupInfoOfServerRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRSGroupInfoOfServerRequest& default_instance(); + + void Swap(GetRSGroupInfoOfServerRequest* other); + + // implements Message ---------------------------------------------- + + GetRSGroupInfoOfServerRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRSGroupInfoOfServerRequest& from); + void MergeFrom(const GetRSGroupInfoOfServerRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName server = 2; + inline bool has_server() const; + inline void clear_server(); + static const int kServerFieldNumber = 2; + inline const ::hbase::pb::ServerName& server() const; + inline ::hbase::pb::ServerName* mutable_server(); + inline ::hbase::pb::ServerName* release_server(); + inline void set_allocated_server(::hbase::pb::ServerName* server); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRSGroupInfoOfServerRequest) + private: + inline void set_has_server(); + inline void clear_has_server(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static GetRSGroupInfoOfServerRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetRSGroupInfoOfServerResponse : public ::google::protobuf::Message { + public: + GetRSGroupInfoOfServerResponse(); + virtual ~GetRSGroupInfoOfServerResponse(); + + GetRSGroupInfoOfServerResponse(const GetRSGroupInfoOfServerResponse& from); + + inline GetRSGroupInfoOfServerResponse& operator=(const GetRSGroupInfoOfServerResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetRSGroupInfoOfServerResponse& default_instance(); + + void Swap(GetRSGroupInfoOfServerResponse* other); + + // implements Message ---------------------------------------------- + + GetRSGroupInfoOfServerResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetRSGroupInfoOfServerResponse& from); + void MergeFrom(const GetRSGroupInfoOfServerResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.RSGroupInfo r_s_group_info = 1; + inline bool has_r_s_group_info() const; + inline void clear_r_s_group_info(); + static const int kRSGroupInfoFieldNumber = 1; + inline const ::hbase::pb::RSGroupInfo& r_s_group_info() const; + inline ::hbase::pb::RSGroupInfo* mutable_r_s_group_info(); + inline ::hbase::pb::RSGroupInfo* release_r_s_group_info(); + inline void set_allocated_r_s_group_info(::hbase::pb::RSGroupInfo* r_s_group_info); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetRSGroupInfoOfServerResponse) + private: + inline void set_has_r_s_group_info(); + inline void clear_has_r_s_group_info(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RSGroupInfo* r_s_group_info_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RSGroupAdmin_2eproto(); + friend void protobuf_AssignDesc_RSGroupAdmin_2eproto(); + friend void protobuf_ShutdownFile_RSGroupAdmin_2eproto(); + + void InitAsDefaultInstance(); + static GetRSGroupInfoOfServerResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// ListTablesOfRSGroupRequest + +// required string r_s_group_name = 1; +inline bool ListTablesOfRSGroupRequest::has_r_s_group_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ListTablesOfRSGroupRequest::set_has_r_s_group_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ListTablesOfRSGroupRequest::clear_has_r_s_group_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ListTablesOfRSGroupRequest::clear_r_s_group_name() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + clear_has_r_s_group_name(); +} +inline const ::std::string& ListTablesOfRSGroupRequest::r_s_group_name() const { + return *r_s_group_name_; +} +inline void ListTablesOfRSGroupRequest::set_r_s_group_name(const ::std::string& value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void ListTablesOfRSGroupRequest::set_r_s_group_name(const char* value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void ListTablesOfRSGroupRequest::set_r_s_group_name(const char* value, size_t size) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ListTablesOfRSGroupRequest::mutable_r_s_group_name() { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + return r_s_group_name_; +} +inline ::std::string* ListTablesOfRSGroupRequest::release_r_s_group_name() { + clear_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = r_s_group_name_; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ListTablesOfRSGroupRequest::set_allocated_r_s_group_name(::std::string* r_s_group_name) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (r_s_group_name) { + set_has_r_s_group_name(); + r_s_group_name_ = r_s_group_name; + } else { + clear_has_r_s_group_name(); + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ListTablesOfRSGroupResponse + +// repeated .hbase.pb.TableName table_name = 1; +inline int ListTablesOfRSGroupResponse::table_name_size() const { + return table_name_.size(); +} +inline void ListTablesOfRSGroupResponse::clear_table_name() { + table_name_.Clear(); +} +inline const ::hbase::pb::TableName& ListTablesOfRSGroupResponse::table_name(int index) const { + return table_name_.Get(index); +} +inline ::hbase::pb::TableName* ListTablesOfRSGroupResponse::mutable_table_name(int index) { + return table_name_.Mutable(index); +} +inline ::hbase::pb::TableName* ListTablesOfRSGroupResponse::add_table_name() { + return table_name_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& +ListTablesOfRSGroupResponse::table_name() const { + return table_name_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* +ListTablesOfRSGroupResponse::mutable_table_name() { + return &table_name_; +} + +// ------------------------------------------------------------------- + +// GetRSGroupInfoRequest + +// required string r_s_group_name = 1; +inline bool GetRSGroupInfoRequest::has_r_s_group_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRSGroupInfoRequest::set_has_r_s_group_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRSGroupInfoRequest::clear_has_r_s_group_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRSGroupInfoRequest::clear_r_s_group_name() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + clear_has_r_s_group_name(); +} +inline const ::std::string& GetRSGroupInfoRequest::r_s_group_name() const { + return *r_s_group_name_; +} +inline void GetRSGroupInfoRequest::set_r_s_group_name(const ::std::string& value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void GetRSGroupInfoRequest::set_r_s_group_name(const char* value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void GetRSGroupInfoRequest::set_r_s_group_name(const char* value, size_t size) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetRSGroupInfoRequest::mutable_r_s_group_name() { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + return r_s_group_name_; +} +inline ::std::string* GetRSGroupInfoRequest::release_r_s_group_name() { + clear_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = r_s_group_name_; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetRSGroupInfoRequest::set_allocated_r_s_group_name(::std::string* r_s_group_name) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (r_s_group_name) { + set_has_r_s_group_name(); + r_s_group_name_ = r_s_group_name; + } else { + clear_has_r_s_group_name(); + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// GetRSGroupInfoResponse + +// optional .hbase.pb.RSGroupInfo r_s_group_info = 1; +inline bool GetRSGroupInfoResponse::has_r_s_group_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRSGroupInfoResponse::set_has_r_s_group_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRSGroupInfoResponse::clear_has_r_s_group_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRSGroupInfoResponse::clear_r_s_group_info() { + if (r_s_group_info_ != NULL) r_s_group_info_->::hbase::pb::RSGroupInfo::Clear(); + clear_has_r_s_group_info(); +} +inline const ::hbase::pb::RSGroupInfo& GetRSGroupInfoResponse::r_s_group_info() const { + return r_s_group_info_ != NULL ? *r_s_group_info_ : *default_instance_->r_s_group_info_; +} +inline ::hbase::pb::RSGroupInfo* GetRSGroupInfoResponse::mutable_r_s_group_info() { + set_has_r_s_group_info(); + if (r_s_group_info_ == NULL) r_s_group_info_ = new ::hbase::pb::RSGroupInfo; + return r_s_group_info_; +} +inline ::hbase::pb::RSGroupInfo* GetRSGroupInfoResponse::release_r_s_group_info() { + clear_has_r_s_group_info(); + ::hbase::pb::RSGroupInfo* temp = r_s_group_info_; + r_s_group_info_ = NULL; + return temp; +} +inline void GetRSGroupInfoResponse::set_allocated_r_s_group_info(::hbase::pb::RSGroupInfo* r_s_group_info) { + delete r_s_group_info_; + r_s_group_info_ = r_s_group_info; + if (r_s_group_info) { + set_has_r_s_group_info(); + } else { + clear_has_r_s_group_info(); + } +} + +// ------------------------------------------------------------------- + +// GetRSGroupInfoOfTableRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool GetRSGroupInfoOfTableRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRSGroupInfoOfTableRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRSGroupInfoOfTableRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRSGroupInfoOfTableRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& GetRSGroupInfoOfTableRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* GetRSGroupInfoOfTableRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* GetRSGroupInfoOfTableRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void GetRSGroupInfoOfTableRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// ------------------------------------------------------------------- + +// GetRSGroupInfoOfTableResponse + +// optional .hbase.pb.RSGroupInfo r_s_group_info = 1; +inline bool GetRSGroupInfoOfTableResponse::has_r_s_group_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRSGroupInfoOfTableResponse::set_has_r_s_group_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRSGroupInfoOfTableResponse::clear_has_r_s_group_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRSGroupInfoOfTableResponse::clear_r_s_group_info() { + if (r_s_group_info_ != NULL) r_s_group_info_->::hbase::pb::RSGroupInfo::Clear(); + clear_has_r_s_group_info(); +} +inline const ::hbase::pb::RSGroupInfo& GetRSGroupInfoOfTableResponse::r_s_group_info() const { + return r_s_group_info_ != NULL ? *r_s_group_info_ : *default_instance_->r_s_group_info_; +} +inline ::hbase::pb::RSGroupInfo* GetRSGroupInfoOfTableResponse::mutable_r_s_group_info() { + set_has_r_s_group_info(); + if (r_s_group_info_ == NULL) r_s_group_info_ = new ::hbase::pb::RSGroupInfo; + return r_s_group_info_; +} +inline ::hbase::pb::RSGroupInfo* GetRSGroupInfoOfTableResponse::release_r_s_group_info() { + clear_has_r_s_group_info(); + ::hbase::pb::RSGroupInfo* temp = r_s_group_info_; + r_s_group_info_ = NULL; + return temp; +} +inline void GetRSGroupInfoOfTableResponse::set_allocated_r_s_group_info(::hbase::pb::RSGroupInfo* r_s_group_info) { + delete r_s_group_info_; + r_s_group_info_ = r_s_group_info; + if (r_s_group_info) { + set_has_r_s_group_info(); + } else { + clear_has_r_s_group_info(); + } +} + +// ------------------------------------------------------------------- + +// MoveServersRequest + +// required string target_group = 1; +inline bool MoveServersRequest::has_target_group() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoveServersRequest::set_has_target_group() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoveServersRequest::clear_has_target_group() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoveServersRequest::clear_target_group() { + if (target_group_ != &::google::protobuf::internal::kEmptyString) { + target_group_->clear(); + } + clear_has_target_group(); +} +inline const ::std::string& MoveServersRequest::target_group() const { + return *target_group_; +} +inline void MoveServersRequest::set_target_group(const ::std::string& value) { + set_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + target_group_ = new ::std::string; + } + target_group_->assign(value); +} +inline void MoveServersRequest::set_target_group(const char* value) { + set_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + target_group_ = new ::std::string; + } + target_group_->assign(value); +} +inline void MoveServersRequest::set_target_group(const char* value, size_t size) { + set_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + target_group_ = new ::std::string; + } + target_group_->assign(reinterpret_cast(value), size); +} +inline ::std::string* MoveServersRequest::mutable_target_group() { + set_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + target_group_ = new ::std::string; + } + return target_group_; +} +inline ::std::string* MoveServersRequest::release_target_group() { + clear_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = target_group_; + target_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void MoveServersRequest::set_allocated_target_group(::std::string* target_group) { + if (target_group_ != &::google::protobuf::internal::kEmptyString) { + delete target_group_; + } + if (target_group) { + set_has_target_group(); + target_group_ = target_group; + } else { + clear_has_target_group(); + target_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.ServerName servers = 3; +inline int MoveServersRequest::servers_size() const { + return servers_.size(); +} +inline void MoveServersRequest::clear_servers() { + servers_.Clear(); +} +inline const ::hbase::pb::ServerName& MoveServersRequest::servers(int index) const { + return servers_.Get(index); +} +inline ::hbase::pb::ServerName* MoveServersRequest::mutable_servers(int index) { + return servers_.Mutable(index); +} +inline ::hbase::pb::ServerName* MoveServersRequest::add_servers() { + return servers_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >& +MoveServersRequest::servers() const { + return servers_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::ServerName >* +MoveServersRequest::mutable_servers() { + return &servers_; +} + +// ------------------------------------------------------------------- + +// MoveServersResponse + +// ------------------------------------------------------------------- + +// MoveTablesRequest + +// required string target_group = 1; +inline bool MoveTablesRequest::has_target_group() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MoveTablesRequest::set_has_target_group() { + _has_bits_[0] |= 0x00000001u; +} +inline void MoveTablesRequest::clear_has_target_group() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MoveTablesRequest::clear_target_group() { + if (target_group_ != &::google::protobuf::internal::kEmptyString) { + target_group_->clear(); + } + clear_has_target_group(); +} +inline const ::std::string& MoveTablesRequest::target_group() const { + return *target_group_; +} +inline void MoveTablesRequest::set_target_group(const ::std::string& value) { + set_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + target_group_ = new ::std::string; + } + target_group_->assign(value); +} +inline void MoveTablesRequest::set_target_group(const char* value) { + set_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + target_group_ = new ::std::string; + } + target_group_->assign(value); +} +inline void MoveTablesRequest::set_target_group(const char* value, size_t size) { + set_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + target_group_ = new ::std::string; + } + target_group_->assign(reinterpret_cast(value), size); +} +inline ::std::string* MoveTablesRequest::mutable_target_group() { + set_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + target_group_ = new ::std::string; + } + return target_group_; +} +inline ::std::string* MoveTablesRequest::release_target_group() { + clear_has_target_group(); + if (target_group_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = target_group_; + target_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void MoveTablesRequest::set_allocated_target_group(::std::string* target_group) { + if (target_group_ != &::google::protobuf::internal::kEmptyString) { + delete target_group_; + } + if (target_group) { + set_has_target_group(); + target_group_ = target_group; + } else { + clear_has_target_group(); + target_group_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.TableName table_name = 2; +inline int MoveTablesRequest::table_name_size() const { + return table_name_.size(); +} +inline void MoveTablesRequest::clear_table_name() { + table_name_.Clear(); +} +inline const ::hbase::pb::TableName& MoveTablesRequest::table_name(int index) const { + return table_name_.Get(index); +} +inline ::hbase::pb::TableName* MoveTablesRequest::mutable_table_name(int index) { + return table_name_.Mutable(index); +} +inline ::hbase::pb::TableName* MoveTablesRequest::add_table_name() { + return table_name_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >& +MoveTablesRequest::table_name() const { + return table_name_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::TableName >* +MoveTablesRequest::mutable_table_name() { + return &table_name_; +} + +// ------------------------------------------------------------------- + +// MoveTablesResponse + +// ------------------------------------------------------------------- + +// AddRSGroupRequest + +// required string r_s_group_name = 1; +inline bool AddRSGroupRequest::has_r_s_group_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AddRSGroupRequest::set_has_r_s_group_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void AddRSGroupRequest::clear_has_r_s_group_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AddRSGroupRequest::clear_r_s_group_name() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + clear_has_r_s_group_name(); +} +inline const ::std::string& AddRSGroupRequest::r_s_group_name() const { + return *r_s_group_name_; +} +inline void AddRSGroupRequest::set_r_s_group_name(const ::std::string& value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void AddRSGroupRequest::set_r_s_group_name(const char* value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void AddRSGroupRequest::set_r_s_group_name(const char* value, size_t size) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AddRSGroupRequest::mutable_r_s_group_name() { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + return r_s_group_name_; +} +inline ::std::string* AddRSGroupRequest::release_r_s_group_name() { + clear_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = r_s_group_name_; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void AddRSGroupRequest::set_allocated_r_s_group_name(::std::string* r_s_group_name) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (r_s_group_name) { + set_has_r_s_group_name(); + r_s_group_name_ = r_s_group_name; + } else { + clear_has_r_s_group_name(); + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// AddRSGroupResponse + +// ------------------------------------------------------------------- + +// RemoveRSGroupRequest + +// required string r_s_group_name = 1; +inline bool RemoveRSGroupRequest::has_r_s_group_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RemoveRSGroupRequest::set_has_r_s_group_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void RemoveRSGroupRequest::clear_has_r_s_group_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RemoveRSGroupRequest::clear_r_s_group_name() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + clear_has_r_s_group_name(); +} +inline const ::std::string& RemoveRSGroupRequest::r_s_group_name() const { + return *r_s_group_name_; +} +inline void RemoveRSGroupRequest::set_r_s_group_name(const ::std::string& value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void RemoveRSGroupRequest::set_r_s_group_name(const char* value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void RemoveRSGroupRequest::set_r_s_group_name(const char* value, size_t size) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RemoveRSGroupRequest::mutable_r_s_group_name() { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + return r_s_group_name_; +} +inline ::std::string* RemoveRSGroupRequest::release_r_s_group_name() { + clear_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = r_s_group_name_; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RemoveRSGroupRequest::set_allocated_r_s_group_name(::std::string* r_s_group_name) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (r_s_group_name) { + set_has_r_s_group_name(); + r_s_group_name_ = r_s_group_name; + } else { + clear_has_r_s_group_name(); + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// RemoveRSGroupResponse + +// ------------------------------------------------------------------- + +// BalanceRSGroupRequest + +// required string r_s_group_name = 1; +inline bool BalanceRSGroupRequest::has_r_s_group_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BalanceRSGroupRequest::set_has_r_s_group_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void BalanceRSGroupRequest::clear_has_r_s_group_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BalanceRSGroupRequest::clear_r_s_group_name() { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + r_s_group_name_->clear(); + } + clear_has_r_s_group_name(); +} +inline const ::std::string& BalanceRSGroupRequest::r_s_group_name() const { + return *r_s_group_name_; +} +inline void BalanceRSGroupRequest::set_r_s_group_name(const ::std::string& value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void BalanceRSGroupRequest::set_r_s_group_name(const char* value) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(value); +} +inline void BalanceRSGroupRequest::set_r_s_group_name(const char* value, size_t size) { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + r_s_group_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* BalanceRSGroupRequest::mutable_r_s_group_name() { + set_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + r_s_group_name_ = new ::std::string; + } + return r_s_group_name_; +} +inline ::std::string* BalanceRSGroupRequest::release_r_s_group_name() { + clear_has_r_s_group_name(); + if (r_s_group_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = r_s_group_name_; + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void BalanceRSGroupRequest::set_allocated_r_s_group_name(::std::string* r_s_group_name) { + if (r_s_group_name_ != &::google::protobuf::internal::kEmptyString) { + delete r_s_group_name_; + } + if (r_s_group_name) { + set_has_r_s_group_name(); + r_s_group_name_ = r_s_group_name; + } else { + clear_has_r_s_group_name(); + r_s_group_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// BalanceRSGroupResponse + +// required bool balanceRan = 1; +inline bool BalanceRSGroupResponse::has_balanceran() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BalanceRSGroupResponse::set_has_balanceran() { + _has_bits_[0] |= 0x00000001u; +} +inline void BalanceRSGroupResponse::clear_has_balanceran() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BalanceRSGroupResponse::clear_balanceran() { + balanceran_ = false; + clear_has_balanceran(); +} +inline bool BalanceRSGroupResponse::balanceran() const { + return balanceran_; +} +inline void BalanceRSGroupResponse::set_balanceran(bool value) { + set_has_balanceran(); + balanceran_ = value; +} + +// ------------------------------------------------------------------- + +// ListRSGroupInfosRequest + +// ------------------------------------------------------------------- + +// ListRSGroupInfosResponse + +// repeated .hbase.pb.RSGroupInfo r_s_group_info = 1; +inline int ListRSGroupInfosResponse::r_s_group_info_size() const { + return r_s_group_info_.size(); +} +inline void ListRSGroupInfosResponse::clear_r_s_group_info() { + r_s_group_info_.Clear(); +} +inline const ::hbase::pb::RSGroupInfo& ListRSGroupInfosResponse::r_s_group_info(int index) const { + return r_s_group_info_.Get(index); +} +inline ::hbase::pb::RSGroupInfo* ListRSGroupInfosResponse::mutable_r_s_group_info(int index) { + return r_s_group_info_.Mutable(index); +} +inline ::hbase::pb::RSGroupInfo* ListRSGroupInfosResponse::add_r_s_group_info() { + return r_s_group_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RSGroupInfo >& +ListRSGroupInfosResponse::r_s_group_info() const { + return r_s_group_info_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RSGroupInfo >* +ListRSGroupInfosResponse::mutable_r_s_group_info() { + return &r_s_group_info_; +} + +// ------------------------------------------------------------------- + +// GetRSGroupInfoOfServerRequest + +// required .hbase.pb.ServerName server = 2; +inline bool GetRSGroupInfoOfServerRequest::has_server() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRSGroupInfoOfServerRequest::set_has_server() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRSGroupInfoOfServerRequest::clear_has_server() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRSGroupInfoOfServerRequest::clear_server() { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + clear_has_server(); +} +inline const ::hbase::pb::ServerName& GetRSGroupInfoOfServerRequest::server() const { + return server_ != NULL ? *server_ : *default_instance_->server_; +} +inline ::hbase::pb::ServerName* GetRSGroupInfoOfServerRequest::mutable_server() { + set_has_server(); + if (server_ == NULL) server_ = new ::hbase::pb::ServerName; + return server_; +} +inline ::hbase::pb::ServerName* GetRSGroupInfoOfServerRequest::release_server() { + clear_has_server(); + ::hbase::pb::ServerName* temp = server_; + server_ = NULL; + return temp; +} +inline void GetRSGroupInfoOfServerRequest::set_allocated_server(::hbase::pb::ServerName* server) { + delete server_; + server_ = server; + if (server) { + set_has_server(); + } else { + clear_has_server(); + } +} + +// ------------------------------------------------------------------- + +// GetRSGroupInfoOfServerResponse + +// optional .hbase.pb.RSGroupInfo r_s_group_info = 1; +inline bool GetRSGroupInfoOfServerResponse::has_r_s_group_info() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetRSGroupInfoOfServerResponse::set_has_r_s_group_info() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetRSGroupInfoOfServerResponse::clear_has_r_s_group_info() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetRSGroupInfoOfServerResponse::clear_r_s_group_info() { + if (r_s_group_info_ != NULL) r_s_group_info_->::hbase::pb::RSGroupInfo::Clear(); + clear_has_r_s_group_info(); +} +inline const ::hbase::pb::RSGroupInfo& GetRSGroupInfoOfServerResponse::r_s_group_info() const { + return r_s_group_info_ != NULL ? *r_s_group_info_ : *default_instance_->r_s_group_info_; +} +inline ::hbase::pb::RSGroupInfo* GetRSGroupInfoOfServerResponse::mutable_r_s_group_info() { + set_has_r_s_group_info(); + if (r_s_group_info_ == NULL) r_s_group_info_ = new ::hbase::pb::RSGroupInfo; + return r_s_group_info_; +} +inline ::hbase::pb::RSGroupInfo* GetRSGroupInfoOfServerResponse::release_r_s_group_info() { + clear_has_r_s_group_info(); + ::hbase::pb::RSGroupInfo* temp = r_s_group_info_; + r_s_group_info_ = NULL; + return temp; +} +inline void GetRSGroupInfoOfServerResponse::set_allocated_r_s_group_info(::hbase::pb::RSGroupInfo* r_s_group_info) { + delete r_s_group_info_; + r_s_group_info_ = r_s_group_info; + if (r_s_group_info) { + set_has_r_s_group_info(); + } else { + clear_has_r_s_group_info(); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_RSGroupAdmin_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/RegionNormalizer.pb.cc b/hbase-native-client/src/rpc/generated/RegionNormalizer.pb.cc new file mode 100644 index 0000000..3cd68e9 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RegionNormalizer.pb.cc @@ -0,0 +1,305 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionNormalizer.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "RegionNormalizer.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace { + +const ::google::protobuf::Descriptor* RegionNormalizerState_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionNormalizerState_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_RegionNormalizer_2eproto() { + protobuf_AddDesc_RegionNormalizer_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "RegionNormalizer.proto"); + GOOGLE_CHECK(file != NULL); + RegionNormalizerState_descriptor_ = file->message_type(0); + static const int RegionNormalizerState_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionNormalizerState, normalizer_on_), + }; + RegionNormalizerState_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionNormalizerState_descriptor_, + RegionNormalizerState::default_instance_, + RegionNormalizerState_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionNormalizerState, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionNormalizerState, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionNormalizerState)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_RegionNormalizer_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionNormalizerState_descriptor_, &RegionNormalizerState::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_RegionNormalizer_2eproto() { + delete RegionNormalizerState::default_instance_; + delete RegionNormalizerState_reflection_; +} + +void protobuf_AddDesc_RegionNormalizer_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\026RegionNormalizer.proto\".\n\025RegionNormal" + "izerState\022\025\n\rnormalizer_on\030\001 \001(\010BI\n*org." + "apache.hadoop.hbase.protobuf.generatedB\026" + "RegionNormalizerProtosH\001\240\001\001", 147); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "RegionNormalizer.proto", &protobuf_RegisterTypes); + RegionNormalizerState::default_instance_ = new RegionNormalizerState(); + RegionNormalizerState::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_RegionNormalizer_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_RegionNormalizer_2eproto { + StaticDescriptorInitializer_RegionNormalizer_2eproto() { + protobuf_AddDesc_RegionNormalizer_2eproto(); + } +} static_descriptor_initializer_RegionNormalizer_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int RegionNormalizerState::kNormalizerOnFieldNumber; +#endif // !_MSC_VER + +RegionNormalizerState::RegionNormalizerState() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionNormalizerState::InitAsDefaultInstance() { +} + +RegionNormalizerState::RegionNormalizerState(const RegionNormalizerState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionNormalizerState::SharedCtor() { + _cached_size_ = 0; + normalizer_on_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionNormalizerState::~RegionNormalizerState() { + SharedDtor(); +} + +void RegionNormalizerState::SharedDtor() { + if (this != default_instance_) { + } +} + +void RegionNormalizerState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionNormalizerState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionNormalizerState_descriptor_; +} + +const RegionNormalizerState& RegionNormalizerState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionNormalizer_2eproto(); + return *default_instance_; +} + +RegionNormalizerState* RegionNormalizerState::default_instance_ = NULL; + +RegionNormalizerState* RegionNormalizerState::New() const { + return new RegionNormalizerState; +} + +void RegionNormalizerState::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + normalizer_on_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionNormalizerState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool normalizer_on = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &normalizer_on_))); + set_has_normalizer_on(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionNormalizerState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool normalizer_on = 1; + if (has_normalizer_on()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->normalizer_on(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionNormalizerState::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool normalizer_on = 1; + if (has_normalizer_on()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->normalizer_on(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionNormalizerState::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool normalizer_on = 1; + if (has_normalizer_on()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionNormalizerState::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionNormalizerState* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionNormalizerState::MergeFrom(const RegionNormalizerState& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_normalizer_on()) { + set_normalizer_on(from.normalizer_on()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionNormalizerState::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionNormalizerState::CopyFrom(const RegionNormalizerState& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionNormalizerState::IsInitialized() const { + + return true; +} + +void RegionNormalizerState::Swap(RegionNormalizerState* other) { + if (other != this) { + std::swap(normalizer_on_, other->normalizer_on_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionNormalizerState::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionNormalizerState_descriptor_; + metadata.reflection = RegionNormalizerState_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/RegionNormalizer.pb.h b/hbase-native-client/src/rpc/generated/RegionNormalizer.pb.h new file mode 100644 index 0000000..40b1af6 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RegionNormalizer.pb.h @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionNormalizer.proto + +#ifndef PROTOBUF_RegionNormalizer_2eproto__INCLUDED +#define PROTOBUF_RegionNormalizer_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_RegionNormalizer_2eproto(); +void protobuf_AssignDesc_RegionNormalizer_2eproto(); +void protobuf_ShutdownFile_RegionNormalizer_2eproto(); + +class RegionNormalizerState; + +// =================================================================== + +class RegionNormalizerState : public ::google::protobuf::Message { + public: + RegionNormalizerState(); + virtual ~RegionNormalizerState(); + + RegionNormalizerState(const RegionNormalizerState& from); + + inline RegionNormalizerState& operator=(const RegionNormalizerState& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionNormalizerState& default_instance(); + + void Swap(RegionNormalizerState* other); + + // implements Message ---------------------------------------------- + + RegionNormalizerState* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionNormalizerState& from); + void MergeFrom(const RegionNormalizerState& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool normalizer_on = 1; + inline bool has_normalizer_on() const; + inline void clear_normalizer_on(); + static const int kNormalizerOnFieldNumber = 1; + inline bool normalizer_on() const; + inline void set_normalizer_on(bool value); + + // @@protoc_insertion_point(class_scope:RegionNormalizerState) + private: + inline void set_has_normalizer_on(); + inline void clear_has_normalizer_on(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool normalizer_on_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RegionNormalizer_2eproto(); + friend void protobuf_AssignDesc_RegionNormalizer_2eproto(); + friend void protobuf_ShutdownFile_RegionNormalizer_2eproto(); + + void InitAsDefaultInstance(); + static RegionNormalizerState* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// RegionNormalizerState + +// optional bool normalizer_on = 1; +inline bool RegionNormalizerState::has_normalizer_on() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionNormalizerState::set_has_normalizer_on() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionNormalizerState::clear_has_normalizer_on() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionNormalizerState::clear_normalizer_on() { + normalizer_on_ = false; + clear_has_normalizer_on(); +} +inline bool RegionNormalizerState::normalizer_on() const { + return normalizer_on_; +} +inline void RegionNormalizerState::set_normalizer_on(bool value) { + set_has_normalizer_on(); + normalizer_on_ = value; +} + + +// @@protoc_insertion_point(namespace_scope) + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_RegionNormalizer_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/RegionServerStatus.pb.cc b/hbase-native-client/src/rpc/generated/RegionServerStatus.pb.cc new file mode 100644 index 0000000..1bc64cd --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RegionServerStatus.pb.cc @@ -0,0 +1,3095 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionServerStatus.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "RegionServerStatus.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* RegionServerStartupRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionServerStartupRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionServerStartupResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionServerStartupResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionServerReportRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionServerReportRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionServerReportResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionServerReportResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReportRSFatalErrorRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportRSFatalErrorRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReportRSFatalErrorResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportRSFatalErrorResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetLastFlushedSequenceIdRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetLastFlushedSequenceIdRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetLastFlushedSequenceIdResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetLastFlushedSequenceIdResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionStateTransition_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionStateTransition_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* RegionStateTransition_TransitionCode_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ReportRegionStateTransitionRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportRegionStateTransitionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReportRegionStateTransitionResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportRegionStateTransitionResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_RegionServerStatus_2eproto() { + protobuf_AddDesc_RegionServerStatus_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "RegionServerStatus.proto"); + GOOGLE_CHECK(file != NULL); + RegionServerStartupRequest_descriptor_ = file->message_type(0); + static const int RegionServerStartupRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupRequest, port_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupRequest, server_start_code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupRequest, server_current_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupRequest, use_this_hostname_instead_), + }; + RegionServerStartupRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionServerStartupRequest_descriptor_, + RegionServerStartupRequest::default_instance_, + RegionServerStartupRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionServerStartupRequest)); + RegionServerStartupResponse_descriptor_ = file->message_type(1); + static const int RegionServerStartupResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupResponse, map_entries_), + }; + RegionServerStartupResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionServerStartupResponse_descriptor_, + RegionServerStartupResponse::default_instance_, + RegionServerStartupResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerStartupResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionServerStartupResponse)); + RegionServerReportRequest_descriptor_ = file->message_type(2); + static const int RegionServerReportRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerReportRequest, server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerReportRequest, load_), + }; + RegionServerReportRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionServerReportRequest_descriptor_, + RegionServerReportRequest::default_instance_, + RegionServerReportRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerReportRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerReportRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionServerReportRequest)); + RegionServerReportResponse_descriptor_ = file->message_type(3); + static const int RegionServerReportResponse_offsets_[1] = { + }; + RegionServerReportResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionServerReportResponse_descriptor_, + RegionServerReportResponse::default_instance_, + RegionServerReportResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerReportResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionServerReportResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionServerReportResponse)); + ReportRSFatalErrorRequest_descriptor_ = file->message_type(4); + static const int ReportRSFatalErrorRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRSFatalErrorRequest, server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRSFatalErrorRequest, error_message_), + }; + ReportRSFatalErrorRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportRSFatalErrorRequest_descriptor_, + ReportRSFatalErrorRequest::default_instance_, + ReportRSFatalErrorRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRSFatalErrorRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRSFatalErrorRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportRSFatalErrorRequest)); + ReportRSFatalErrorResponse_descriptor_ = file->message_type(5); + static const int ReportRSFatalErrorResponse_offsets_[1] = { + }; + ReportRSFatalErrorResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportRSFatalErrorResponse_descriptor_, + ReportRSFatalErrorResponse::default_instance_, + ReportRSFatalErrorResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRSFatalErrorResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRSFatalErrorResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportRSFatalErrorResponse)); + GetLastFlushedSequenceIdRequest_descriptor_ = file->message_type(6); + static const int GetLastFlushedSequenceIdRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLastFlushedSequenceIdRequest, region_name_), + }; + GetLastFlushedSequenceIdRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetLastFlushedSequenceIdRequest_descriptor_, + GetLastFlushedSequenceIdRequest::default_instance_, + GetLastFlushedSequenceIdRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLastFlushedSequenceIdRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLastFlushedSequenceIdRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetLastFlushedSequenceIdRequest)); + GetLastFlushedSequenceIdResponse_descriptor_ = file->message_type(7); + static const int GetLastFlushedSequenceIdResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLastFlushedSequenceIdResponse, last_flushed_sequence_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLastFlushedSequenceIdResponse, store_last_flushed_sequence_id_), + }; + GetLastFlushedSequenceIdResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetLastFlushedSequenceIdResponse_descriptor_, + GetLastFlushedSequenceIdResponse::default_instance_, + GetLastFlushedSequenceIdResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLastFlushedSequenceIdResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetLastFlushedSequenceIdResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetLastFlushedSequenceIdResponse)); + RegionStateTransition_descriptor_ = file->message_type(8); + static const int RegionStateTransition_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStateTransition, transition_code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStateTransition, region_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStateTransition, open_seq_num_), + }; + RegionStateTransition_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionStateTransition_descriptor_, + RegionStateTransition::default_instance_, + RegionStateTransition_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStateTransition, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionStateTransition, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionStateTransition)); + RegionStateTransition_TransitionCode_descriptor_ = RegionStateTransition_descriptor_->enum_type(0); + ReportRegionStateTransitionRequest_descriptor_ = file->message_type(9); + static const int ReportRegionStateTransitionRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRegionStateTransitionRequest, server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRegionStateTransitionRequest, transition_), + }; + ReportRegionStateTransitionRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportRegionStateTransitionRequest_descriptor_, + ReportRegionStateTransitionRequest::default_instance_, + ReportRegionStateTransitionRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRegionStateTransitionRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRegionStateTransitionRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportRegionStateTransitionRequest)); + ReportRegionStateTransitionResponse_descriptor_ = file->message_type(10); + static const int ReportRegionStateTransitionResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRegionStateTransitionResponse, error_message_), + }; + ReportRegionStateTransitionResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportRegionStateTransitionResponse_descriptor_, + ReportRegionStateTransitionResponse::default_instance_, + ReportRegionStateTransitionResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRegionStateTransitionResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportRegionStateTransitionResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportRegionStateTransitionResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_RegionServerStatus_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionServerStartupRequest_descriptor_, &RegionServerStartupRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionServerStartupResponse_descriptor_, &RegionServerStartupResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionServerReportRequest_descriptor_, &RegionServerReportRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionServerReportResponse_descriptor_, &RegionServerReportResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportRSFatalErrorRequest_descriptor_, &ReportRSFatalErrorRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportRSFatalErrorResponse_descriptor_, &ReportRSFatalErrorResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetLastFlushedSequenceIdRequest_descriptor_, &GetLastFlushedSequenceIdRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetLastFlushedSequenceIdResponse_descriptor_, &GetLastFlushedSequenceIdResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionStateTransition_descriptor_, &RegionStateTransition::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportRegionStateTransitionRequest_descriptor_, &ReportRegionStateTransitionRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportRegionStateTransitionResponse_descriptor_, &ReportRegionStateTransitionResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_RegionServerStatus_2eproto() { + delete RegionServerStartupRequest::default_instance_; + delete RegionServerStartupRequest_reflection_; + delete RegionServerStartupResponse::default_instance_; + delete RegionServerStartupResponse_reflection_; + delete RegionServerReportRequest::default_instance_; + delete RegionServerReportRequest_reflection_; + delete RegionServerReportResponse::default_instance_; + delete RegionServerReportResponse_reflection_; + delete ReportRSFatalErrorRequest::default_instance_; + delete ReportRSFatalErrorRequest_reflection_; + delete ReportRSFatalErrorResponse::default_instance_; + delete ReportRSFatalErrorResponse_reflection_; + delete GetLastFlushedSequenceIdRequest::default_instance_; + delete GetLastFlushedSequenceIdRequest_reflection_; + delete GetLastFlushedSequenceIdResponse::default_instance_; + delete GetLastFlushedSequenceIdResponse_reflection_; + delete RegionStateTransition::default_instance_; + delete RegionStateTransition_reflection_; + delete ReportRegionStateTransitionRequest::default_instance_; + delete ReportRegionStateTransitionRequest_reflection_; + delete ReportRegionStateTransitionResponse::default_instance_; + delete ReportRegionStateTransitionResponse_reflection_; +} + +void protobuf_AddDesc_RegionServerStatus_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_ClusterStatus_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\030RegionServerStatus.proto\022\010hbase.pb\032\013HB" + "ase.proto\032\023ClusterStatus.proto\"\205\001\n\032Regio" + "nServerStartupRequest\022\014\n\004port\030\001 \002(\r\022\031\n\021s" + "erver_start_code\030\002 \002(\004\022\033\n\023server_current" + "_time\030\003 \002(\004\022!\n\031use_this_hostname_instead" + "\030\004 \001(\t\"L\n\033RegionServerStartupResponse\022-\n" + "\013map_entries\030\001 \003(\0132\030.hbase.pb.NameString" + "Pair\"e\n\031RegionServerReportRequest\022$\n\006ser" + "ver\030\001 \002(\0132\024.hbase.pb.ServerName\022\"\n\004load\030" + "\002 \001(\0132\024.hbase.pb.ServerLoad\"\034\n\032RegionSer" + "verReportResponse\"X\n\031ReportRSFatalErrorR" + "equest\022$\n\006server\030\001 \002(\0132\024.hbase.pb.Server" + "Name\022\025\n\rerror_message\030\002 \002(\t\"\034\n\032ReportRSF" + "atalErrorResponse\"6\n\037GetLastFlushedSeque" + "nceIdRequest\022\023\n\013region_name\030\001 \002(\014\"\207\001\n Ge" + "tLastFlushedSequenceIdResponse\022 \n\030last_f" + "lushed_sequence_id\030\001 \002(\004\022A\n\036store_last_f" + "lushed_sequence_id\030\002 \003(\0132\031.hbase.pb.Stor" + "eSequenceId\"\344\002\n\025RegionStateTransition\022G\n" + "\017transition_code\030\001 \002(\0162..hbase.pb.Region" + "StateTransition.TransitionCode\022)\n\013region" + "_info\030\002 \003(\0132\024.hbase.pb.RegionInfo\022\024\n\014ope" + "n_seq_num\030\003 \001(\004\"\300\001\n\016TransitionCode\022\n\n\006OP" + "ENED\020\000\022\017\n\013FAILED_OPEN\020\001\022\n\n\006CLOSED\020\002\022\022\n\016R" + "EADY_TO_SPLIT\020\003\022\022\n\016READY_TO_MERGE\020\004\022\016\n\nS" + "PLIT_PONR\020\005\022\016\n\nMERGE_PONR\020\006\022\t\n\005SPLIT\020\007\022\n" + "\n\006MERGED\020\010\022\022\n\016SPLIT_REVERTED\020\t\022\022\n\016MERGE_" + "REVERTED\020\n\"\177\n\"ReportRegionStateTransitio" + "nRequest\022$\n\006server\030\001 \002(\0132\024.hbase.pb.Serv" + "erName\0223\n\ntransition\030\002 \003(\0132\037.hbase.pb.Re" + "gionStateTransition\"<\n#ReportRegionState" + "TransitionResponse\022\025\n\rerror_message\030\001 \001(" + "\t2\260\004\n\031RegionServerStatusService\022b\n\023Regio" + "nServerStartup\022$.hbase.pb.RegionServerSt" + "artupRequest\032%.hbase.pb.RegionServerStar" + "tupResponse\022_\n\022RegionServerReport\022#.hbas" + "e.pb.RegionServerReportRequest\032$.hbase.p" + "b.RegionServerReportResponse\022_\n\022ReportRS" + "FatalError\022#.hbase.pb.ReportRSFatalError" + "Request\032$.hbase.pb.ReportRSFatalErrorRes" + "ponse\022q\n\030GetLastFlushedSequenceId\022).hbas" + "e.pb.GetLastFlushedSequenceIdRequest\032*.h" + "base.pb.GetLastFlushedSequenceIdResponse" + "\022z\n\033ReportRegionStateTransition\022,.hbase." + "pb.ReportRegionStateTransitionRequest\032-." + "hbase.pb.ReportRegionStateTransitionResp" + "onseBN\n*org.apache.hadoop.hbase.protobuf" + ".generatedB\030RegionServerStatusProtosH\001\210\001" + "\001\240\001\001", 1924); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "RegionServerStatus.proto", &protobuf_RegisterTypes); + RegionServerStartupRequest::default_instance_ = new RegionServerStartupRequest(); + RegionServerStartupResponse::default_instance_ = new RegionServerStartupResponse(); + RegionServerReportRequest::default_instance_ = new RegionServerReportRequest(); + RegionServerReportResponse::default_instance_ = new RegionServerReportResponse(); + ReportRSFatalErrorRequest::default_instance_ = new ReportRSFatalErrorRequest(); + ReportRSFatalErrorResponse::default_instance_ = new ReportRSFatalErrorResponse(); + GetLastFlushedSequenceIdRequest::default_instance_ = new GetLastFlushedSequenceIdRequest(); + GetLastFlushedSequenceIdResponse::default_instance_ = new GetLastFlushedSequenceIdResponse(); + RegionStateTransition::default_instance_ = new RegionStateTransition(); + ReportRegionStateTransitionRequest::default_instance_ = new ReportRegionStateTransitionRequest(); + ReportRegionStateTransitionResponse::default_instance_ = new ReportRegionStateTransitionResponse(); + RegionServerStartupRequest::default_instance_->InitAsDefaultInstance(); + RegionServerStartupResponse::default_instance_->InitAsDefaultInstance(); + RegionServerReportRequest::default_instance_->InitAsDefaultInstance(); + RegionServerReportResponse::default_instance_->InitAsDefaultInstance(); + ReportRSFatalErrorRequest::default_instance_->InitAsDefaultInstance(); + ReportRSFatalErrorResponse::default_instance_->InitAsDefaultInstance(); + GetLastFlushedSequenceIdRequest::default_instance_->InitAsDefaultInstance(); + GetLastFlushedSequenceIdResponse::default_instance_->InitAsDefaultInstance(); + RegionStateTransition::default_instance_->InitAsDefaultInstance(); + ReportRegionStateTransitionRequest::default_instance_->InitAsDefaultInstance(); + ReportRegionStateTransitionResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_RegionServerStatus_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_RegionServerStatus_2eproto { + StaticDescriptorInitializer_RegionServerStatus_2eproto() { + protobuf_AddDesc_RegionServerStatus_2eproto(); + } +} static_descriptor_initializer_RegionServerStatus_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int RegionServerStartupRequest::kPortFieldNumber; +const int RegionServerStartupRequest::kServerStartCodeFieldNumber; +const int RegionServerStartupRequest::kServerCurrentTimeFieldNumber; +const int RegionServerStartupRequest::kUseThisHostnameInsteadFieldNumber; +#endif // !_MSC_VER + +RegionServerStartupRequest::RegionServerStartupRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionServerStartupRequest::InitAsDefaultInstance() { +} + +RegionServerStartupRequest::RegionServerStartupRequest(const RegionServerStartupRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionServerStartupRequest::SharedCtor() { + _cached_size_ = 0; + port_ = 0u; + server_start_code_ = GOOGLE_ULONGLONG(0); + server_current_time_ = GOOGLE_ULONGLONG(0); + use_this_hostname_instead_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionServerStartupRequest::~RegionServerStartupRequest() { + SharedDtor(); +} + +void RegionServerStartupRequest::SharedDtor() { + if (use_this_hostname_instead_ != &::google::protobuf::internal::kEmptyString) { + delete use_this_hostname_instead_; + } + if (this != default_instance_) { + } +} + +void RegionServerStartupRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionServerStartupRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionServerStartupRequest_descriptor_; +} + +const RegionServerStartupRequest& RegionServerStartupRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +RegionServerStartupRequest* RegionServerStartupRequest::default_instance_ = NULL; + +RegionServerStartupRequest* RegionServerStartupRequest::New() const { + return new RegionServerStartupRequest; +} + +void RegionServerStartupRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + port_ = 0u; + server_start_code_ = GOOGLE_ULONGLONG(0); + server_current_time_ = GOOGLE_ULONGLONG(0); + if (has_use_this_hostname_instead()) { + if (use_this_hostname_instead_ != &::google::protobuf::internal::kEmptyString) { + use_this_hostname_instead_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionServerStartupRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 port = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &port_))); + set_has_port(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_server_start_code; + break; + } + + // required uint64 server_start_code = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_server_start_code: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &server_start_code_))); + set_has_server_start_code(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_server_current_time; + break; + } + + // required uint64 server_current_time = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_server_current_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &server_current_time_))); + set_has_server_current_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_use_this_hostname_instead; + break; + } + + // optional string use_this_hostname_instead = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_use_this_hostname_instead: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_use_this_hostname_instead())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->use_this_hostname_instead().data(), this->use_this_hostname_instead().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionServerStartupRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 port = 1; + if (has_port()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->port(), output); + } + + // required uint64 server_start_code = 2; + if (has_server_start_code()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->server_start_code(), output); + } + + // required uint64 server_current_time = 3; + if (has_server_current_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->server_current_time(), output); + } + + // optional string use_this_hostname_instead = 4; + if (has_use_this_hostname_instead()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->use_this_hostname_instead().data(), this->use_this_hostname_instead().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->use_this_hostname_instead(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionServerStartupRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 port = 1; + if (has_port()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->port(), target); + } + + // required uint64 server_start_code = 2; + if (has_server_start_code()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->server_start_code(), target); + } + + // required uint64 server_current_time = 3; + if (has_server_current_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->server_current_time(), target); + } + + // optional string use_this_hostname_instead = 4; + if (has_use_this_hostname_instead()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->use_this_hostname_instead().data(), this->use_this_hostname_instead().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->use_this_hostname_instead(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionServerStartupRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 port = 1; + if (has_port()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->port()); + } + + // required uint64 server_start_code = 2; + if (has_server_start_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->server_start_code()); + } + + // required uint64 server_current_time = 3; + if (has_server_current_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->server_current_time()); + } + + // optional string use_this_hostname_instead = 4; + if (has_use_this_hostname_instead()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->use_this_hostname_instead()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionServerStartupRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionServerStartupRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionServerStartupRequest::MergeFrom(const RegionServerStartupRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_port()) { + set_port(from.port()); + } + if (from.has_server_start_code()) { + set_server_start_code(from.server_start_code()); + } + if (from.has_server_current_time()) { + set_server_current_time(from.server_current_time()); + } + if (from.has_use_this_hostname_instead()) { + set_use_this_hostname_instead(from.use_this_hostname_instead()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionServerStartupRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionServerStartupRequest::CopyFrom(const RegionServerStartupRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionServerStartupRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void RegionServerStartupRequest::Swap(RegionServerStartupRequest* other) { + if (other != this) { + std::swap(port_, other->port_); + std::swap(server_start_code_, other->server_start_code_); + std::swap(server_current_time_, other->server_current_time_); + std::swap(use_this_hostname_instead_, other->use_this_hostname_instead_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionServerStartupRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionServerStartupRequest_descriptor_; + metadata.reflection = RegionServerStartupRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionServerStartupResponse::kMapEntriesFieldNumber; +#endif // !_MSC_VER + +RegionServerStartupResponse::RegionServerStartupResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionServerStartupResponse::InitAsDefaultInstance() { +} + +RegionServerStartupResponse::RegionServerStartupResponse(const RegionServerStartupResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionServerStartupResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionServerStartupResponse::~RegionServerStartupResponse() { + SharedDtor(); +} + +void RegionServerStartupResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void RegionServerStartupResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionServerStartupResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionServerStartupResponse_descriptor_; +} + +const RegionServerStartupResponse& RegionServerStartupResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +RegionServerStartupResponse* RegionServerStartupResponse::default_instance_ = NULL; + +RegionServerStartupResponse* RegionServerStartupResponse::New() const { + return new RegionServerStartupResponse; +} + +void RegionServerStartupResponse::Clear() { + map_entries_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionServerStartupResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.NameStringPair map_entries = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_map_entries: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_map_entries())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_map_entries; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionServerStartupResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.NameStringPair map_entries = 1; + for (int i = 0; i < this->map_entries_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->map_entries(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionServerStartupResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.NameStringPair map_entries = 1; + for (int i = 0; i < this->map_entries_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->map_entries(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionServerStartupResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.NameStringPair map_entries = 1; + total_size += 1 * this->map_entries_size(); + for (int i = 0; i < this->map_entries_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->map_entries(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionServerStartupResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionServerStartupResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionServerStartupResponse::MergeFrom(const RegionServerStartupResponse& from) { + GOOGLE_CHECK_NE(&from, this); + map_entries_.MergeFrom(from.map_entries_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionServerStartupResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionServerStartupResponse::CopyFrom(const RegionServerStartupResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionServerStartupResponse::IsInitialized() const { + + for (int i = 0; i < map_entries_size(); i++) { + if (!this->map_entries(i).IsInitialized()) return false; + } + return true; +} + +void RegionServerStartupResponse::Swap(RegionServerStartupResponse* other) { + if (other != this) { + map_entries_.Swap(&other->map_entries_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionServerStartupResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionServerStartupResponse_descriptor_; + metadata.reflection = RegionServerStartupResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RegionServerReportRequest::kServerFieldNumber; +const int RegionServerReportRequest::kLoadFieldNumber; +#endif // !_MSC_VER + +RegionServerReportRequest::RegionServerReportRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionServerReportRequest::InitAsDefaultInstance() { + server_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); + load_ = const_cast< ::hbase::pb::ServerLoad*>(&::hbase::pb::ServerLoad::default_instance()); +} + +RegionServerReportRequest::RegionServerReportRequest(const RegionServerReportRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionServerReportRequest::SharedCtor() { + _cached_size_ = 0; + server_ = NULL; + load_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionServerReportRequest::~RegionServerReportRequest() { + SharedDtor(); +} + +void RegionServerReportRequest::SharedDtor() { + if (this != default_instance_) { + delete server_; + delete load_; + } +} + +void RegionServerReportRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionServerReportRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionServerReportRequest_descriptor_; +} + +const RegionServerReportRequest& RegionServerReportRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +RegionServerReportRequest* RegionServerReportRequest::default_instance_ = NULL; + +RegionServerReportRequest* RegionServerReportRequest::New() const { + return new RegionServerReportRequest; +} + +void RegionServerReportRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server()) { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + } + if (has_load()) { + if (load_ != NULL) load_->::hbase::pb::ServerLoad::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionServerReportRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName server = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_load; + break; + } + + // optional .hbase.pb.ServerLoad load = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_load: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_load())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionServerReportRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->server(), output); + } + + // optional .hbase.pb.ServerLoad load = 2; + if (has_load()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->load(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionServerReportRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->server(), target); + } + + // optional .hbase.pb.ServerLoad load = 2; + if (has_load()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->load(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionServerReportRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server()); + } + + // optional .hbase.pb.ServerLoad load = 2; + if (has_load()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->load()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionServerReportRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionServerReportRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionServerReportRequest::MergeFrom(const RegionServerReportRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server()) { + mutable_server()->::hbase::pb::ServerName::MergeFrom(from.server()); + } + if (from.has_load()) { + mutable_load()->::hbase::pb::ServerLoad::MergeFrom(from.load()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionServerReportRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionServerReportRequest::CopyFrom(const RegionServerReportRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionServerReportRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_server()) { + if (!this->server().IsInitialized()) return false; + } + if (has_load()) { + if (!this->load().IsInitialized()) return false; + } + return true; +} + +void RegionServerReportRequest::Swap(RegionServerReportRequest* other) { + if (other != this) { + std::swap(server_, other->server_); + std::swap(load_, other->load_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionServerReportRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionServerReportRequest_descriptor_; + metadata.reflection = RegionServerReportRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +RegionServerReportResponse::RegionServerReportResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionServerReportResponse::InitAsDefaultInstance() { +} + +RegionServerReportResponse::RegionServerReportResponse(const RegionServerReportResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionServerReportResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionServerReportResponse::~RegionServerReportResponse() { + SharedDtor(); +} + +void RegionServerReportResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void RegionServerReportResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionServerReportResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionServerReportResponse_descriptor_; +} + +const RegionServerReportResponse& RegionServerReportResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +RegionServerReportResponse* RegionServerReportResponse::default_instance_ = NULL; + +RegionServerReportResponse* RegionServerReportResponse::New() const { + return new RegionServerReportResponse; +} + +void RegionServerReportResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionServerReportResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void RegionServerReportResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionServerReportResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionServerReportResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionServerReportResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionServerReportResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionServerReportResponse::MergeFrom(const RegionServerReportResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionServerReportResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionServerReportResponse::CopyFrom(const RegionServerReportResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionServerReportResponse::IsInitialized() const { + + return true; +} + +void RegionServerReportResponse::Swap(RegionServerReportResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionServerReportResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionServerReportResponse_descriptor_; + metadata.reflection = RegionServerReportResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReportRSFatalErrorRequest::kServerFieldNumber; +const int ReportRSFatalErrorRequest::kErrorMessageFieldNumber; +#endif // !_MSC_VER + +ReportRSFatalErrorRequest::ReportRSFatalErrorRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReportRSFatalErrorRequest::InitAsDefaultInstance() { + server_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +ReportRSFatalErrorRequest::ReportRSFatalErrorRequest(const ReportRSFatalErrorRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReportRSFatalErrorRequest::SharedCtor() { + _cached_size_ = 0; + server_ = NULL; + error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReportRSFatalErrorRequest::~ReportRSFatalErrorRequest() { + SharedDtor(); +} + +void ReportRSFatalErrorRequest::SharedDtor() { + if (error_message_ != &::google::protobuf::internal::kEmptyString) { + delete error_message_; + } + if (this != default_instance_) { + delete server_; + } +} + +void ReportRSFatalErrorRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportRSFatalErrorRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportRSFatalErrorRequest_descriptor_; +} + +const ReportRSFatalErrorRequest& ReportRSFatalErrorRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +ReportRSFatalErrorRequest* ReportRSFatalErrorRequest::default_instance_ = NULL; + +ReportRSFatalErrorRequest* ReportRSFatalErrorRequest::New() const { + return new ReportRSFatalErrorRequest; +} + +void ReportRSFatalErrorRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server()) { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + } + if (has_error_message()) { + if (error_message_ != &::google::protobuf::internal::kEmptyString) { + error_message_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportRSFatalErrorRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName server = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_error_message; + break; + } + + // required string error_message = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_error_message: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_error_message())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->error_message().data(), this->error_message().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReportRSFatalErrorRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->server(), output); + } + + // required string error_message = 2; + if (has_error_message()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->error_message().data(), this->error_message().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->error_message(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReportRSFatalErrorRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->server(), target); + } + + // required string error_message = 2; + if (has_error_message()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->error_message().data(), this->error_message().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->error_message(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReportRSFatalErrorRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server()); + } + + // required string error_message = 2; + if (has_error_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->error_message()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportRSFatalErrorRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportRSFatalErrorRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportRSFatalErrorRequest::MergeFrom(const ReportRSFatalErrorRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server()) { + mutable_server()->::hbase::pb::ServerName::MergeFrom(from.server()); + } + if (from.has_error_message()) { + set_error_message(from.error_message()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportRSFatalErrorRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportRSFatalErrorRequest::CopyFrom(const ReportRSFatalErrorRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportRSFatalErrorRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_server()) { + if (!this->server().IsInitialized()) return false; + } + return true; +} + +void ReportRSFatalErrorRequest::Swap(ReportRSFatalErrorRequest* other) { + if (other != this) { + std::swap(server_, other->server_); + std::swap(error_message_, other->error_message_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportRSFatalErrorRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportRSFatalErrorRequest_descriptor_; + metadata.reflection = ReportRSFatalErrorRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ReportRSFatalErrorResponse::ReportRSFatalErrorResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReportRSFatalErrorResponse::InitAsDefaultInstance() { +} + +ReportRSFatalErrorResponse::ReportRSFatalErrorResponse(const ReportRSFatalErrorResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReportRSFatalErrorResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReportRSFatalErrorResponse::~ReportRSFatalErrorResponse() { + SharedDtor(); +} + +void ReportRSFatalErrorResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ReportRSFatalErrorResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportRSFatalErrorResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportRSFatalErrorResponse_descriptor_; +} + +const ReportRSFatalErrorResponse& ReportRSFatalErrorResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +ReportRSFatalErrorResponse* ReportRSFatalErrorResponse::default_instance_ = NULL; + +ReportRSFatalErrorResponse* ReportRSFatalErrorResponse::New() const { + return new ReportRSFatalErrorResponse; +} + +void ReportRSFatalErrorResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportRSFatalErrorResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ReportRSFatalErrorResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReportRSFatalErrorResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReportRSFatalErrorResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportRSFatalErrorResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportRSFatalErrorResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportRSFatalErrorResponse::MergeFrom(const ReportRSFatalErrorResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportRSFatalErrorResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportRSFatalErrorResponse::CopyFrom(const ReportRSFatalErrorResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportRSFatalErrorResponse::IsInitialized() const { + + return true; +} + +void ReportRSFatalErrorResponse::Swap(ReportRSFatalErrorResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportRSFatalErrorResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportRSFatalErrorResponse_descriptor_; + metadata.reflection = ReportRSFatalErrorResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetLastFlushedSequenceIdRequest::kRegionNameFieldNumber; +#endif // !_MSC_VER + +GetLastFlushedSequenceIdRequest::GetLastFlushedSequenceIdRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetLastFlushedSequenceIdRequest::InitAsDefaultInstance() { +} + +GetLastFlushedSequenceIdRequest::GetLastFlushedSequenceIdRequest(const GetLastFlushedSequenceIdRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetLastFlushedSequenceIdRequest::SharedCtor() { + _cached_size_ = 0; + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetLastFlushedSequenceIdRequest::~GetLastFlushedSequenceIdRequest() { + SharedDtor(); +} + +void GetLastFlushedSequenceIdRequest::SharedDtor() { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + delete region_name_; + } + if (this != default_instance_) { + } +} + +void GetLastFlushedSequenceIdRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetLastFlushedSequenceIdRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetLastFlushedSequenceIdRequest_descriptor_; +} + +const GetLastFlushedSequenceIdRequest& GetLastFlushedSequenceIdRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +GetLastFlushedSequenceIdRequest* GetLastFlushedSequenceIdRequest::default_instance_ = NULL; + +GetLastFlushedSequenceIdRequest* GetLastFlushedSequenceIdRequest::New() const { + return new GetLastFlushedSequenceIdRequest; +} + +void GetLastFlushedSequenceIdRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_region_name()) { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + region_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetLastFlushedSequenceIdRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes region_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetLastFlushedSequenceIdRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes region_name = 1; + if (has_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->region_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetLastFlushedSequenceIdRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes region_name = 1; + if (has_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->region_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetLastFlushedSequenceIdRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes region_name = 1; + if (has_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->region_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetLastFlushedSequenceIdRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetLastFlushedSequenceIdRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetLastFlushedSequenceIdRequest::MergeFrom(const GetLastFlushedSequenceIdRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_region_name()) { + set_region_name(from.region_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetLastFlushedSequenceIdRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetLastFlushedSequenceIdRequest::CopyFrom(const GetLastFlushedSequenceIdRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetLastFlushedSequenceIdRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void GetLastFlushedSequenceIdRequest::Swap(GetLastFlushedSequenceIdRequest* other) { + if (other != this) { + std::swap(region_name_, other->region_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetLastFlushedSequenceIdRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetLastFlushedSequenceIdRequest_descriptor_; + metadata.reflection = GetLastFlushedSequenceIdRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetLastFlushedSequenceIdResponse::kLastFlushedSequenceIdFieldNumber; +const int GetLastFlushedSequenceIdResponse::kStoreLastFlushedSequenceIdFieldNumber; +#endif // !_MSC_VER + +GetLastFlushedSequenceIdResponse::GetLastFlushedSequenceIdResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetLastFlushedSequenceIdResponse::InitAsDefaultInstance() { +} + +GetLastFlushedSequenceIdResponse::GetLastFlushedSequenceIdResponse(const GetLastFlushedSequenceIdResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetLastFlushedSequenceIdResponse::SharedCtor() { + _cached_size_ = 0; + last_flushed_sequence_id_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetLastFlushedSequenceIdResponse::~GetLastFlushedSequenceIdResponse() { + SharedDtor(); +} + +void GetLastFlushedSequenceIdResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void GetLastFlushedSequenceIdResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetLastFlushedSequenceIdResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetLastFlushedSequenceIdResponse_descriptor_; +} + +const GetLastFlushedSequenceIdResponse& GetLastFlushedSequenceIdResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +GetLastFlushedSequenceIdResponse* GetLastFlushedSequenceIdResponse::default_instance_ = NULL; + +GetLastFlushedSequenceIdResponse* GetLastFlushedSequenceIdResponse::New() const { + return new GetLastFlushedSequenceIdResponse; +} + +void GetLastFlushedSequenceIdResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + last_flushed_sequence_id_ = GOOGLE_ULONGLONG(0); + } + store_last_flushed_sequence_id_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetLastFlushedSequenceIdResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint64 last_flushed_sequence_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &last_flushed_sequence_id_))); + set_has_last_flushed_sequence_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_store_last_flushed_sequence_id; + break; + } + + // repeated .hbase.pb.StoreSequenceId store_last_flushed_sequence_id = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_last_flushed_sequence_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_store_last_flushed_sequence_id())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_store_last_flushed_sequence_id; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetLastFlushedSequenceIdResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint64 last_flushed_sequence_id = 1; + if (has_last_flushed_sequence_id()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->last_flushed_sequence_id(), output); + } + + // repeated .hbase.pb.StoreSequenceId store_last_flushed_sequence_id = 2; + for (int i = 0; i < this->store_last_flushed_sequence_id_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->store_last_flushed_sequence_id(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetLastFlushedSequenceIdResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint64 last_flushed_sequence_id = 1; + if (has_last_flushed_sequence_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->last_flushed_sequence_id(), target); + } + + // repeated .hbase.pb.StoreSequenceId store_last_flushed_sequence_id = 2; + for (int i = 0; i < this->store_last_flushed_sequence_id_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->store_last_flushed_sequence_id(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetLastFlushedSequenceIdResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint64 last_flushed_sequence_id = 1; + if (has_last_flushed_sequence_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->last_flushed_sequence_id()); + } + + } + // repeated .hbase.pb.StoreSequenceId store_last_flushed_sequence_id = 2; + total_size += 1 * this->store_last_flushed_sequence_id_size(); + for (int i = 0; i < this->store_last_flushed_sequence_id_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->store_last_flushed_sequence_id(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetLastFlushedSequenceIdResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetLastFlushedSequenceIdResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetLastFlushedSequenceIdResponse::MergeFrom(const GetLastFlushedSequenceIdResponse& from) { + GOOGLE_CHECK_NE(&from, this); + store_last_flushed_sequence_id_.MergeFrom(from.store_last_flushed_sequence_id_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_last_flushed_sequence_id()) { + set_last_flushed_sequence_id(from.last_flushed_sequence_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetLastFlushedSequenceIdResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetLastFlushedSequenceIdResponse::CopyFrom(const GetLastFlushedSequenceIdResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetLastFlushedSequenceIdResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < store_last_flushed_sequence_id_size(); i++) { + if (!this->store_last_flushed_sequence_id(i).IsInitialized()) return false; + } + return true; +} + +void GetLastFlushedSequenceIdResponse::Swap(GetLastFlushedSequenceIdResponse* other) { + if (other != this) { + std::swap(last_flushed_sequence_id_, other->last_flushed_sequence_id_); + store_last_flushed_sequence_id_.Swap(&other->store_last_flushed_sequence_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetLastFlushedSequenceIdResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetLastFlushedSequenceIdResponse_descriptor_; + metadata.reflection = GetLastFlushedSequenceIdResponse_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* RegionStateTransition_TransitionCode_descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionStateTransition_TransitionCode_descriptor_; +} +bool RegionStateTransition_TransitionCode_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const RegionStateTransition_TransitionCode RegionStateTransition::OPENED; +const RegionStateTransition_TransitionCode RegionStateTransition::FAILED_OPEN; +const RegionStateTransition_TransitionCode RegionStateTransition::CLOSED; +const RegionStateTransition_TransitionCode RegionStateTransition::READY_TO_SPLIT; +const RegionStateTransition_TransitionCode RegionStateTransition::READY_TO_MERGE; +const RegionStateTransition_TransitionCode RegionStateTransition::SPLIT_PONR; +const RegionStateTransition_TransitionCode RegionStateTransition::MERGE_PONR; +const RegionStateTransition_TransitionCode RegionStateTransition::SPLIT; +const RegionStateTransition_TransitionCode RegionStateTransition::MERGED; +const RegionStateTransition_TransitionCode RegionStateTransition::SPLIT_REVERTED; +const RegionStateTransition_TransitionCode RegionStateTransition::MERGE_REVERTED; +const RegionStateTransition_TransitionCode RegionStateTransition::TransitionCode_MIN; +const RegionStateTransition_TransitionCode RegionStateTransition::TransitionCode_MAX; +const int RegionStateTransition::TransitionCode_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int RegionStateTransition::kTransitionCodeFieldNumber; +const int RegionStateTransition::kRegionInfoFieldNumber; +const int RegionStateTransition::kOpenSeqNumFieldNumber; +#endif // !_MSC_VER + +RegionStateTransition::RegionStateTransition() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionStateTransition::InitAsDefaultInstance() { +} + +RegionStateTransition::RegionStateTransition(const RegionStateTransition& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionStateTransition::SharedCtor() { + _cached_size_ = 0; + transition_code_ = 0; + open_seq_num_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionStateTransition::~RegionStateTransition() { + SharedDtor(); +} + +void RegionStateTransition::SharedDtor() { + if (this != default_instance_) { + } +} + +void RegionStateTransition::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionStateTransition::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionStateTransition_descriptor_; +} + +const RegionStateTransition& RegionStateTransition::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +RegionStateTransition* RegionStateTransition::default_instance_ = NULL; + +RegionStateTransition* RegionStateTransition::New() const { + return new RegionStateTransition; +} + +void RegionStateTransition::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + transition_code_ = 0; + open_seq_num_ = GOOGLE_ULONGLONG(0); + } + region_info_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionStateTransition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionStateTransition.TransitionCode transition_code = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::RegionStateTransition_TransitionCode_IsValid(value)) { + set_transition_code(static_cast< ::hbase::pb::RegionStateTransition_TransitionCode >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_region_info; + break; + } + + // repeated .hbase.pb.RegionInfo region_info = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_region_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_region_info; + if (input->ExpectTag(24)) goto parse_open_seq_num; + break; + } + + // optional uint64 open_seq_num = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_open_seq_num: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &open_seq_num_))); + set_has_open_seq_num(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionStateTransition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionStateTransition.TransitionCode transition_code = 1; + if (has_transition_code()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->transition_code(), output); + } + + // repeated .hbase.pb.RegionInfo region_info = 2; + for (int i = 0; i < this->region_info_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->region_info(i), output); + } + + // optional uint64 open_seq_num = 3; + if (has_open_seq_num()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->open_seq_num(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionStateTransition::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionStateTransition.TransitionCode transition_code = 1; + if (has_transition_code()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->transition_code(), target); + } + + // repeated .hbase.pb.RegionInfo region_info = 2; + for (int i = 0; i < this->region_info_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->region_info(i), target); + } + + // optional uint64 open_seq_num = 3; + if (has_open_seq_num()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->open_seq_num(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionStateTransition::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionStateTransition.TransitionCode transition_code = 1; + if (has_transition_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->transition_code()); + } + + // optional uint64 open_seq_num = 3; + if (has_open_seq_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->open_seq_num()); + } + + } + // repeated .hbase.pb.RegionInfo region_info = 2; + total_size += 1 * this->region_info_size(); + for (int i = 0; i < this->region_info_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_info(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionStateTransition::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionStateTransition* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionStateTransition::MergeFrom(const RegionStateTransition& from) { + GOOGLE_CHECK_NE(&from, this); + region_info_.MergeFrom(from.region_info_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_transition_code()) { + set_transition_code(from.transition_code()); + } + if (from.has_open_seq_num()) { + set_open_seq_num(from.open_seq_num()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionStateTransition::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionStateTransition::CopyFrom(const RegionStateTransition& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionStateTransition::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < region_info_size(); i++) { + if (!this->region_info(i).IsInitialized()) return false; + } + return true; +} + +void RegionStateTransition::Swap(RegionStateTransition* other) { + if (other != this) { + std::swap(transition_code_, other->transition_code_); + region_info_.Swap(&other->region_info_); + std::swap(open_seq_num_, other->open_seq_num_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionStateTransition::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionStateTransition_descriptor_; + metadata.reflection = RegionStateTransition_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReportRegionStateTransitionRequest::kServerFieldNumber; +const int ReportRegionStateTransitionRequest::kTransitionFieldNumber; +#endif // !_MSC_VER + +ReportRegionStateTransitionRequest::ReportRegionStateTransitionRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReportRegionStateTransitionRequest::InitAsDefaultInstance() { + server_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +ReportRegionStateTransitionRequest::ReportRegionStateTransitionRequest(const ReportRegionStateTransitionRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReportRegionStateTransitionRequest::SharedCtor() { + _cached_size_ = 0; + server_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReportRegionStateTransitionRequest::~ReportRegionStateTransitionRequest() { + SharedDtor(); +} + +void ReportRegionStateTransitionRequest::SharedDtor() { + if (this != default_instance_) { + delete server_; + } +} + +void ReportRegionStateTransitionRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportRegionStateTransitionRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportRegionStateTransitionRequest_descriptor_; +} + +const ReportRegionStateTransitionRequest& ReportRegionStateTransitionRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +ReportRegionStateTransitionRequest* ReportRegionStateTransitionRequest::default_instance_ = NULL; + +ReportRegionStateTransitionRequest* ReportRegionStateTransitionRequest::New() const { + return new ReportRegionStateTransitionRequest; +} + +void ReportRegionStateTransitionRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server()) { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + } + } + transition_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportRegionStateTransitionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName server = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_transition; + break; + } + + // repeated .hbase.pb.RegionStateTransition transition = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_transition: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_transition())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_transition; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReportRegionStateTransitionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->server(), output); + } + + // repeated .hbase.pb.RegionStateTransition transition = 2; + for (int i = 0; i < this->transition_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->transition(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReportRegionStateTransitionRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->server(), target); + } + + // repeated .hbase.pb.RegionStateTransition transition = 2; + for (int i = 0; i < this->transition_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->transition(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReportRegionStateTransitionRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server()); + } + + } + // repeated .hbase.pb.RegionStateTransition transition = 2; + total_size += 1 * this->transition_size(); + for (int i = 0; i < this->transition_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->transition(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportRegionStateTransitionRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportRegionStateTransitionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportRegionStateTransitionRequest::MergeFrom(const ReportRegionStateTransitionRequest& from) { + GOOGLE_CHECK_NE(&from, this); + transition_.MergeFrom(from.transition_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server()) { + mutable_server()->::hbase::pb::ServerName::MergeFrom(from.server()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportRegionStateTransitionRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportRegionStateTransitionRequest::CopyFrom(const ReportRegionStateTransitionRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportRegionStateTransitionRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_server()) { + if (!this->server().IsInitialized()) return false; + } + for (int i = 0; i < transition_size(); i++) { + if (!this->transition(i).IsInitialized()) return false; + } + return true; +} + +void ReportRegionStateTransitionRequest::Swap(ReportRegionStateTransitionRequest* other) { + if (other != this) { + std::swap(server_, other->server_); + transition_.Swap(&other->transition_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportRegionStateTransitionRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportRegionStateTransitionRequest_descriptor_; + metadata.reflection = ReportRegionStateTransitionRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReportRegionStateTransitionResponse::kErrorMessageFieldNumber; +#endif // !_MSC_VER + +ReportRegionStateTransitionResponse::ReportRegionStateTransitionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReportRegionStateTransitionResponse::InitAsDefaultInstance() { +} + +ReportRegionStateTransitionResponse::ReportRegionStateTransitionResponse(const ReportRegionStateTransitionResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReportRegionStateTransitionResponse::SharedCtor() { + _cached_size_ = 0; + error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReportRegionStateTransitionResponse::~ReportRegionStateTransitionResponse() { + SharedDtor(); +} + +void ReportRegionStateTransitionResponse::SharedDtor() { + if (error_message_ != &::google::protobuf::internal::kEmptyString) { + delete error_message_; + } + if (this != default_instance_) { + } +} + +void ReportRegionStateTransitionResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportRegionStateTransitionResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportRegionStateTransitionResponse_descriptor_; +} + +const ReportRegionStateTransitionResponse& ReportRegionStateTransitionResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RegionServerStatus_2eproto(); + return *default_instance_; +} + +ReportRegionStateTransitionResponse* ReportRegionStateTransitionResponse::default_instance_ = NULL; + +ReportRegionStateTransitionResponse* ReportRegionStateTransitionResponse::New() const { + return new ReportRegionStateTransitionResponse; +} + +void ReportRegionStateTransitionResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_error_message()) { + if (error_message_ != &::google::protobuf::internal::kEmptyString) { + error_message_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportRegionStateTransitionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string error_message = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_error_message())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->error_message().data(), this->error_message().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReportRegionStateTransitionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string error_message = 1; + if (has_error_message()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->error_message().data(), this->error_message().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->error_message(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReportRegionStateTransitionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string error_message = 1; + if (has_error_message()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->error_message().data(), this->error_message().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->error_message(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReportRegionStateTransitionResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string error_message = 1; + if (has_error_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->error_message()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportRegionStateTransitionResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportRegionStateTransitionResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportRegionStateTransitionResponse::MergeFrom(const ReportRegionStateTransitionResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_error_message()) { + set_error_message(from.error_message()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportRegionStateTransitionResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportRegionStateTransitionResponse::CopyFrom(const ReportRegionStateTransitionResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportRegionStateTransitionResponse::IsInitialized() const { + + return true; +} + +void ReportRegionStateTransitionResponse::Swap(ReportRegionStateTransitionResponse* other) { + if (other != this) { + std::swap(error_message_, other->error_message_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportRegionStateTransitionResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportRegionStateTransitionResponse_descriptor_; + metadata.reflection = ReportRegionStateTransitionResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/RegionServerStatus.pb.h b/hbase-native-client/src/rpc/generated/RegionServerStatus.pb.h new file mode 100644 index 0000000..8212cca --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RegionServerStatus.pb.h @@ -0,0 +1,1858 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RegionServerStatus.proto + +#ifndef PROTOBUF_RegionServerStatus_2eproto__INCLUDED +#define PROTOBUF_RegionServerStatus_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "ClusterStatus.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_RegionServerStatus_2eproto(); +void protobuf_AssignDesc_RegionServerStatus_2eproto(); +void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + +class RegionServerStartupRequest; +class RegionServerStartupResponse; +class RegionServerReportRequest; +class RegionServerReportResponse; +class ReportRSFatalErrorRequest; +class ReportRSFatalErrorResponse; +class GetLastFlushedSequenceIdRequest; +class GetLastFlushedSequenceIdResponse; +class RegionStateTransition; +class ReportRegionStateTransitionRequest; +class ReportRegionStateTransitionResponse; + +enum RegionStateTransition_TransitionCode { + RegionStateTransition_TransitionCode_OPENED = 0, + RegionStateTransition_TransitionCode_FAILED_OPEN = 1, + RegionStateTransition_TransitionCode_CLOSED = 2, + RegionStateTransition_TransitionCode_READY_TO_SPLIT = 3, + RegionStateTransition_TransitionCode_READY_TO_MERGE = 4, + RegionStateTransition_TransitionCode_SPLIT_PONR = 5, + RegionStateTransition_TransitionCode_MERGE_PONR = 6, + RegionStateTransition_TransitionCode_SPLIT = 7, + RegionStateTransition_TransitionCode_MERGED = 8, + RegionStateTransition_TransitionCode_SPLIT_REVERTED = 9, + RegionStateTransition_TransitionCode_MERGE_REVERTED = 10 +}; +bool RegionStateTransition_TransitionCode_IsValid(int value); +const RegionStateTransition_TransitionCode RegionStateTransition_TransitionCode_TransitionCode_MIN = RegionStateTransition_TransitionCode_OPENED; +const RegionStateTransition_TransitionCode RegionStateTransition_TransitionCode_TransitionCode_MAX = RegionStateTransition_TransitionCode_MERGE_REVERTED; +const int RegionStateTransition_TransitionCode_TransitionCode_ARRAYSIZE = RegionStateTransition_TransitionCode_TransitionCode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RegionStateTransition_TransitionCode_descriptor(); +inline const ::std::string& RegionStateTransition_TransitionCode_Name(RegionStateTransition_TransitionCode value) { + return ::google::protobuf::internal::NameOfEnum( + RegionStateTransition_TransitionCode_descriptor(), value); +} +inline bool RegionStateTransition_TransitionCode_Parse( + const ::std::string& name, RegionStateTransition_TransitionCode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RegionStateTransition_TransitionCode_descriptor(), name, value); +} +// =================================================================== + +class RegionServerStartupRequest : public ::google::protobuf::Message { + public: + RegionServerStartupRequest(); + virtual ~RegionServerStartupRequest(); + + RegionServerStartupRequest(const RegionServerStartupRequest& from); + + inline RegionServerStartupRequest& operator=(const RegionServerStartupRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionServerStartupRequest& default_instance(); + + void Swap(RegionServerStartupRequest* other); + + // implements Message ---------------------------------------------- + + RegionServerStartupRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionServerStartupRequest& from); + void MergeFrom(const RegionServerStartupRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 port = 1; + inline bool has_port() const; + inline void clear_port(); + static const int kPortFieldNumber = 1; + inline ::google::protobuf::uint32 port() const; + inline void set_port(::google::protobuf::uint32 value); + + // required uint64 server_start_code = 2; + inline bool has_server_start_code() const; + inline void clear_server_start_code(); + static const int kServerStartCodeFieldNumber = 2; + inline ::google::protobuf::uint64 server_start_code() const; + inline void set_server_start_code(::google::protobuf::uint64 value); + + // required uint64 server_current_time = 3; + inline bool has_server_current_time() const; + inline void clear_server_current_time(); + static const int kServerCurrentTimeFieldNumber = 3; + inline ::google::protobuf::uint64 server_current_time() const; + inline void set_server_current_time(::google::protobuf::uint64 value); + + // optional string use_this_hostname_instead = 4; + inline bool has_use_this_hostname_instead() const; + inline void clear_use_this_hostname_instead(); + static const int kUseThisHostnameInsteadFieldNumber = 4; + inline const ::std::string& use_this_hostname_instead() const; + inline void set_use_this_hostname_instead(const ::std::string& value); + inline void set_use_this_hostname_instead(const char* value); + inline void set_use_this_hostname_instead(const char* value, size_t size); + inline ::std::string* mutable_use_this_hostname_instead(); + inline ::std::string* release_use_this_hostname_instead(); + inline void set_allocated_use_this_hostname_instead(::std::string* use_this_hostname_instead); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionServerStartupRequest) + private: + inline void set_has_port(); + inline void clear_has_port(); + inline void set_has_server_start_code(); + inline void clear_has_server_start_code(); + inline void set_has_server_current_time(); + inline void clear_has_server_current_time(); + inline void set_has_use_this_hostname_instead(); + inline void clear_has_use_this_hostname_instead(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 server_start_code_; + ::google::protobuf::uint64 server_current_time_; + ::std::string* use_this_hostname_instead_; + ::google::protobuf::uint32 port_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionServerStartupRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionServerStartupResponse : public ::google::protobuf::Message { + public: + RegionServerStartupResponse(); + virtual ~RegionServerStartupResponse(); + + RegionServerStartupResponse(const RegionServerStartupResponse& from); + + inline RegionServerStartupResponse& operator=(const RegionServerStartupResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionServerStartupResponse& default_instance(); + + void Swap(RegionServerStartupResponse* other); + + // implements Message ---------------------------------------------- + + RegionServerStartupResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionServerStartupResponse& from); + void MergeFrom(const RegionServerStartupResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.NameStringPair map_entries = 1; + inline int map_entries_size() const; + inline void clear_map_entries(); + static const int kMapEntriesFieldNumber = 1; + inline const ::hbase::pb::NameStringPair& map_entries(int index) const; + inline ::hbase::pb::NameStringPair* mutable_map_entries(int index); + inline ::hbase::pb::NameStringPair* add_map_entries(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& + map_entries() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* + mutable_map_entries(); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionServerStartupResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair > map_entries_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionServerStartupResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionServerReportRequest : public ::google::protobuf::Message { + public: + RegionServerReportRequest(); + virtual ~RegionServerReportRequest(); + + RegionServerReportRequest(const RegionServerReportRequest& from); + + inline RegionServerReportRequest& operator=(const RegionServerReportRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionServerReportRequest& default_instance(); + + void Swap(RegionServerReportRequest* other); + + // implements Message ---------------------------------------------- + + RegionServerReportRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionServerReportRequest& from); + void MergeFrom(const RegionServerReportRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName server = 1; + inline bool has_server() const; + inline void clear_server(); + static const int kServerFieldNumber = 1; + inline const ::hbase::pb::ServerName& server() const; + inline ::hbase::pb::ServerName* mutable_server(); + inline ::hbase::pb::ServerName* release_server(); + inline void set_allocated_server(::hbase::pb::ServerName* server); + + // optional .hbase.pb.ServerLoad load = 2; + inline bool has_load() const; + inline void clear_load(); + static const int kLoadFieldNumber = 2; + inline const ::hbase::pb::ServerLoad& load() const; + inline ::hbase::pb::ServerLoad* mutable_load(); + inline ::hbase::pb::ServerLoad* release_load(); + inline void set_allocated_load(::hbase::pb::ServerLoad* load); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionServerReportRequest) + private: + inline void set_has_server(); + inline void clear_has_server(); + inline void set_has_load(); + inline void clear_has_load(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_; + ::hbase::pb::ServerLoad* load_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionServerReportRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionServerReportResponse : public ::google::protobuf::Message { + public: + RegionServerReportResponse(); + virtual ~RegionServerReportResponse(); + + RegionServerReportResponse(const RegionServerReportResponse& from); + + inline RegionServerReportResponse& operator=(const RegionServerReportResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionServerReportResponse& default_instance(); + + void Swap(RegionServerReportResponse* other); + + // implements Message ---------------------------------------------- + + RegionServerReportResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionServerReportResponse& from); + void MergeFrom(const RegionServerReportResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionServerReportResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionServerReportResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReportRSFatalErrorRequest : public ::google::protobuf::Message { + public: + ReportRSFatalErrorRequest(); + virtual ~ReportRSFatalErrorRequest(); + + ReportRSFatalErrorRequest(const ReportRSFatalErrorRequest& from); + + inline ReportRSFatalErrorRequest& operator=(const ReportRSFatalErrorRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportRSFatalErrorRequest& default_instance(); + + void Swap(ReportRSFatalErrorRequest* other); + + // implements Message ---------------------------------------------- + + ReportRSFatalErrorRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportRSFatalErrorRequest& from); + void MergeFrom(const ReportRSFatalErrorRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName server = 1; + inline bool has_server() const; + inline void clear_server(); + static const int kServerFieldNumber = 1; + inline const ::hbase::pb::ServerName& server() const; + inline ::hbase::pb::ServerName* mutable_server(); + inline ::hbase::pb::ServerName* release_server(); + inline void set_allocated_server(::hbase::pb::ServerName* server); + + // required string error_message = 2; + inline bool has_error_message() const; + inline void clear_error_message(); + static const int kErrorMessageFieldNumber = 2; + inline const ::std::string& error_message() const; + inline void set_error_message(const ::std::string& value); + inline void set_error_message(const char* value); + inline void set_error_message(const char* value, size_t size); + inline ::std::string* mutable_error_message(); + inline ::std::string* release_error_message(); + inline void set_allocated_error_message(::std::string* error_message); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReportRSFatalErrorRequest) + private: + inline void set_has_server(); + inline void clear_has_server(); + inline void set_has_error_message(); + inline void clear_has_error_message(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_; + ::std::string* error_message_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static ReportRSFatalErrorRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReportRSFatalErrorResponse : public ::google::protobuf::Message { + public: + ReportRSFatalErrorResponse(); + virtual ~ReportRSFatalErrorResponse(); + + ReportRSFatalErrorResponse(const ReportRSFatalErrorResponse& from); + + inline ReportRSFatalErrorResponse& operator=(const ReportRSFatalErrorResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportRSFatalErrorResponse& default_instance(); + + void Swap(ReportRSFatalErrorResponse* other); + + // implements Message ---------------------------------------------- + + ReportRSFatalErrorResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportRSFatalErrorResponse& from); + void MergeFrom(const ReportRSFatalErrorResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.ReportRSFatalErrorResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static ReportRSFatalErrorResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetLastFlushedSequenceIdRequest : public ::google::protobuf::Message { + public: + GetLastFlushedSequenceIdRequest(); + virtual ~GetLastFlushedSequenceIdRequest(); + + GetLastFlushedSequenceIdRequest(const GetLastFlushedSequenceIdRequest& from); + + inline GetLastFlushedSequenceIdRequest& operator=(const GetLastFlushedSequenceIdRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetLastFlushedSequenceIdRequest& default_instance(); + + void Swap(GetLastFlushedSequenceIdRequest* other); + + // implements Message ---------------------------------------------- + + GetLastFlushedSequenceIdRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetLastFlushedSequenceIdRequest& from); + void MergeFrom(const GetLastFlushedSequenceIdRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes region_name = 1; + inline bool has_region_name() const; + inline void clear_region_name(); + static const int kRegionNameFieldNumber = 1; + inline const ::std::string& region_name() const; + inline void set_region_name(const ::std::string& value); + inline void set_region_name(const char* value); + inline void set_region_name(const void* value, size_t size); + inline ::std::string* mutable_region_name(); + inline ::std::string* release_region_name(); + inline void set_allocated_region_name(::std::string* region_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetLastFlushedSequenceIdRequest) + private: + inline void set_has_region_name(); + inline void clear_has_region_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* region_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static GetLastFlushedSequenceIdRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetLastFlushedSequenceIdResponse : public ::google::protobuf::Message { + public: + GetLastFlushedSequenceIdResponse(); + virtual ~GetLastFlushedSequenceIdResponse(); + + GetLastFlushedSequenceIdResponse(const GetLastFlushedSequenceIdResponse& from); + + inline GetLastFlushedSequenceIdResponse& operator=(const GetLastFlushedSequenceIdResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetLastFlushedSequenceIdResponse& default_instance(); + + void Swap(GetLastFlushedSequenceIdResponse* other); + + // implements Message ---------------------------------------------- + + GetLastFlushedSequenceIdResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetLastFlushedSequenceIdResponse& from); + void MergeFrom(const GetLastFlushedSequenceIdResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint64 last_flushed_sequence_id = 1; + inline bool has_last_flushed_sequence_id() const; + inline void clear_last_flushed_sequence_id(); + static const int kLastFlushedSequenceIdFieldNumber = 1; + inline ::google::protobuf::uint64 last_flushed_sequence_id() const; + inline void set_last_flushed_sequence_id(::google::protobuf::uint64 value); + + // repeated .hbase.pb.StoreSequenceId store_last_flushed_sequence_id = 2; + inline int store_last_flushed_sequence_id_size() const; + inline void clear_store_last_flushed_sequence_id(); + static const int kStoreLastFlushedSequenceIdFieldNumber = 2; + inline const ::hbase::pb::StoreSequenceId& store_last_flushed_sequence_id(int index) const; + inline ::hbase::pb::StoreSequenceId* mutable_store_last_flushed_sequence_id(int index); + inline ::hbase::pb::StoreSequenceId* add_store_last_flushed_sequence_id(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >& + store_last_flushed_sequence_id() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >* + mutable_store_last_flushed_sequence_id(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetLastFlushedSequenceIdResponse) + private: + inline void set_has_last_flushed_sequence_id(); + inline void clear_has_last_flushed_sequence_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint64 last_flushed_sequence_id_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId > store_last_flushed_sequence_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static GetLastFlushedSequenceIdResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionStateTransition : public ::google::protobuf::Message { + public: + RegionStateTransition(); + virtual ~RegionStateTransition(); + + RegionStateTransition(const RegionStateTransition& from); + + inline RegionStateTransition& operator=(const RegionStateTransition& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionStateTransition& default_instance(); + + void Swap(RegionStateTransition* other); + + // implements Message ---------------------------------------------- + + RegionStateTransition* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionStateTransition& from); + void MergeFrom(const RegionStateTransition& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef RegionStateTransition_TransitionCode TransitionCode; + static const TransitionCode OPENED = RegionStateTransition_TransitionCode_OPENED; + static const TransitionCode FAILED_OPEN = RegionStateTransition_TransitionCode_FAILED_OPEN; + static const TransitionCode CLOSED = RegionStateTransition_TransitionCode_CLOSED; + static const TransitionCode READY_TO_SPLIT = RegionStateTransition_TransitionCode_READY_TO_SPLIT; + static const TransitionCode READY_TO_MERGE = RegionStateTransition_TransitionCode_READY_TO_MERGE; + static const TransitionCode SPLIT_PONR = RegionStateTransition_TransitionCode_SPLIT_PONR; + static const TransitionCode MERGE_PONR = RegionStateTransition_TransitionCode_MERGE_PONR; + static const TransitionCode SPLIT = RegionStateTransition_TransitionCode_SPLIT; + static const TransitionCode MERGED = RegionStateTransition_TransitionCode_MERGED; + static const TransitionCode SPLIT_REVERTED = RegionStateTransition_TransitionCode_SPLIT_REVERTED; + static const TransitionCode MERGE_REVERTED = RegionStateTransition_TransitionCode_MERGE_REVERTED; + static inline bool TransitionCode_IsValid(int value) { + return RegionStateTransition_TransitionCode_IsValid(value); + } + static const TransitionCode TransitionCode_MIN = + RegionStateTransition_TransitionCode_TransitionCode_MIN; + static const TransitionCode TransitionCode_MAX = + RegionStateTransition_TransitionCode_TransitionCode_MAX; + static const int TransitionCode_ARRAYSIZE = + RegionStateTransition_TransitionCode_TransitionCode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + TransitionCode_descriptor() { + return RegionStateTransition_TransitionCode_descriptor(); + } + static inline const ::std::string& TransitionCode_Name(TransitionCode value) { + return RegionStateTransition_TransitionCode_Name(value); + } + static inline bool TransitionCode_Parse(const ::std::string& name, + TransitionCode* value) { + return RegionStateTransition_TransitionCode_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionStateTransition.TransitionCode transition_code = 1; + inline bool has_transition_code() const; + inline void clear_transition_code(); + static const int kTransitionCodeFieldNumber = 1; + inline ::hbase::pb::RegionStateTransition_TransitionCode transition_code() const; + inline void set_transition_code(::hbase::pb::RegionStateTransition_TransitionCode value); + + // repeated .hbase.pb.RegionInfo region_info = 2; + inline int region_info_size() const; + inline void clear_region_info(); + static const int kRegionInfoFieldNumber = 2; + inline const ::hbase::pb::RegionInfo& region_info(int index) const; + inline ::hbase::pb::RegionInfo* mutable_region_info(int index); + inline ::hbase::pb::RegionInfo* add_region_info(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& + region_info() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* + mutable_region_info(); + + // optional uint64 open_seq_num = 3; + inline bool has_open_seq_num() const; + inline void clear_open_seq_num(); + static const int kOpenSeqNumFieldNumber = 3; + inline ::google::protobuf::uint64 open_seq_num() const; + inline void set_open_seq_num(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionStateTransition) + private: + inline void set_has_transition_code(); + inline void clear_has_transition_code(); + inline void set_has_open_seq_num(); + inline void clear_has_open_seq_num(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo > region_info_; + ::google::protobuf::uint64 open_seq_num_; + int transition_code_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static RegionStateTransition* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReportRegionStateTransitionRequest : public ::google::protobuf::Message { + public: + ReportRegionStateTransitionRequest(); + virtual ~ReportRegionStateTransitionRequest(); + + ReportRegionStateTransitionRequest(const ReportRegionStateTransitionRequest& from); + + inline ReportRegionStateTransitionRequest& operator=(const ReportRegionStateTransitionRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportRegionStateTransitionRequest& default_instance(); + + void Swap(ReportRegionStateTransitionRequest* other); + + // implements Message ---------------------------------------------- + + ReportRegionStateTransitionRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportRegionStateTransitionRequest& from); + void MergeFrom(const ReportRegionStateTransitionRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName server = 1; + inline bool has_server() const; + inline void clear_server(); + static const int kServerFieldNumber = 1; + inline const ::hbase::pb::ServerName& server() const; + inline ::hbase::pb::ServerName* mutable_server(); + inline ::hbase::pb::ServerName* release_server(); + inline void set_allocated_server(::hbase::pb::ServerName* server); + + // repeated .hbase.pb.RegionStateTransition transition = 2; + inline int transition_size() const; + inline void clear_transition(); + static const int kTransitionFieldNumber = 2; + inline const ::hbase::pb::RegionStateTransition& transition(int index) const; + inline ::hbase::pb::RegionStateTransition* mutable_transition(int index); + inline ::hbase::pb::RegionStateTransition* add_transition(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionStateTransition >& + transition() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionStateTransition >* + mutable_transition(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReportRegionStateTransitionRequest) + private: + inline void set_has_server(); + inline void clear_has_server(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionStateTransition > transition_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static ReportRegionStateTransitionRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReportRegionStateTransitionResponse : public ::google::protobuf::Message { + public: + ReportRegionStateTransitionResponse(); + virtual ~ReportRegionStateTransitionResponse(); + + ReportRegionStateTransitionResponse(const ReportRegionStateTransitionResponse& from); + + inline ReportRegionStateTransitionResponse& operator=(const ReportRegionStateTransitionResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportRegionStateTransitionResponse& default_instance(); + + void Swap(ReportRegionStateTransitionResponse* other); + + // implements Message ---------------------------------------------- + + ReportRegionStateTransitionResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportRegionStateTransitionResponse& from); + void MergeFrom(const ReportRegionStateTransitionResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string error_message = 1; + inline bool has_error_message() const; + inline void clear_error_message(); + static const int kErrorMessageFieldNumber = 1; + inline const ::std::string& error_message() const; + inline void set_error_message(const ::std::string& value); + inline void set_error_message(const char* value); + inline void set_error_message(const char* value, size_t size); + inline ::std::string* mutable_error_message(); + inline ::std::string* release_error_message(); + inline void set_allocated_error_message(::std::string* error_message); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReportRegionStateTransitionResponse) + private: + inline void set_has_error_message(); + inline void clear_has_error_message(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* error_message_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RegionServerStatus_2eproto(); + friend void protobuf_AssignDesc_RegionServerStatus_2eproto(); + friend void protobuf_ShutdownFile_RegionServerStatus_2eproto(); + + void InitAsDefaultInstance(); + static ReportRegionStateTransitionResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// RegionServerStartupRequest + +// required uint32 port = 1; +inline bool RegionServerStartupRequest::has_port() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionServerStartupRequest::set_has_port() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionServerStartupRequest::clear_has_port() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionServerStartupRequest::clear_port() { + port_ = 0u; + clear_has_port(); +} +inline ::google::protobuf::uint32 RegionServerStartupRequest::port() const { + return port_; +} +inline void RegionServerStartupRequest::set_port(::google::protobuf::uint32 value) { + set_has_port(); + port_ = value; +} + +// required uint64 server_start_code = 2; +inline bool RegionServerStartupRequest::has_server_start_code() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionServerStartupRequest::set_has_server_start_code() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionServerStartupRequest::clear_has_server_start_code() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionServerStartupRequest::clear_server_start_code() { + server_start_code_ = GOOGLE_ULONGLONG(0); + clear_has_server_start_code(); +} +inline ::google::protobuf::uint64 RegionServerStartupRequest::server_start_code() const { + return server_start_code_; +} +inline void RegionServerStartupRequest::set_server_start_code(::google::protobuf::uint64 value) { + set_has_server_start_code(); + server_start_code_ = value; +} + +// required uint64 server_current_time = 3; +inline bool RegionServerStartupRequest::has_server_current_time() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RegionServerStartupRequest::set_has_server_current_time() { + _has_bits_[0] |= 0x00000004u; +} +inline void RegionServerStartupRequest::clear_has_server_current_time() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RegionServerStartupRequest::clear_server_current_time() { + server_current_time_ = GOOGLE_ULONGLONG(0); + clear_has_server_current_time(); +} +inline ::google::protobuf::uint64 RegionServerStartupRequest::server_current_time() const { + return server_current_time_; +} +inline void RegionServerStartupRequest::set_server_current_time(::google::protobuf::uint64 value) { + set_has_server_current_time(); + server_current_time_ = value; +} + +// optional string use_this_hostname_instead = 4; +inline bool RegionServerStartupRequest::has_use_this_hostname_instead() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RegionServerStartupRequest::set_has_use_this_hostname_instead() { + _has_bits_[0] |= 0x00000008u; +} +inline void RegionServerStartupRequest::clear_has_use_this_hostname_instead() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RegionServerStartupRequest::clear_use_this_hostname_instead() { + if (use_this_hostname_instead_ != &::google::protobuf::internal::kEmptyString) { + use_this_hostname_instead_->clear(); + } + clear_has_use_this_hostname_instead(); +} +inline const ::std::string& RegionServerStartupRequest::use_this_hostname_instead() const { + return *use_this_hostname_instead_; +} +inline void RegionServerStartupRequest::set_use_this_hostname_instead(const ::std::string& value) { + set_has_use_this_hostname_instead(); + if (use_this_hostname_instead_ == &::google::protobuf::internal::kEmptyString) { + use_this_hostname_instead_ = new ::std::string; + } + use_this_hostname_instead_->assign(value); +} +inline void RegionServerStartupRequest::set_use_this_hostname_instead(const char* value) { + set_has_use_this_hostname_instead(); + if (use_this_hostname_instead_ == &::google::protobuf::internal::kEmptyString) { + use_this_hostname_instead_ = new ::std::string; + } + use_this_hostname_instead_->assign(value); +} +inline void RegionServerStartupRequest::set_use_this_hostname_instead(const char* value, size_t size) { + set_has_use_this_hostname_instead(); + if (use_this_hostname_instead_ == &::google::protobuf::internal::kEmptyString) { + use_this_hostname_instead_ = new ::std::string; + } + use_this_hostname_instead_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegionServerStartupRequest::mutable_use_this_hostname_instead() { + set_has_use_this_hostname_instead(); + if (use_this_hostname_instead_ == &::google::protobuf::internal::kEmptyString) { + use_this_hostname_instead_ = new ::std::string; + } + return use_this_hostname_instead_; +} +inline ::std::string* RegionServerStartupRequest::release_use_this_hostname_instead() { + clear_has_use_this_hostname_instead(); + if (use_this_hostname_instead_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = use_this_hostname_instead_; + use_this_hostname_instead_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegionServerStartupRequest::set_allocated_use_this_hostname_instead(::std::string* use_this_hostname_instead) { + if (use_this_hostname_instead_ != &::google::protobuf::internal::kEmptyString) { + delete use_this_hostname_instead_; + } + if (use_this_hostname_instead) { + set_has_use_this_hostname_instead(); + use_this_hostname_instead_ = use_this_hostname_instead; + } else { + clear_has_use_this_hostname_instead(); + use_this_hostname_instead_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// RegionServerStartupResponse + +// repeated .hbase.pb.NameStringPair map_entries = 1; +inline int RegionServerStartupResponse::map_entries_size() const { + return map_entries_.size(); +} +inline void RegionServerStartupResponse::clear_map_entries() { + map_entries_.Clear(); +} +inline const ::hbase::pb::NameStringPair& RegionServerStartupResponse::map_entries(int index) const { + return map_entries_.Get(index); +} +inline ::hbase::pb::NameStringPair* RegionServerStartupResponse::mutable_map_entries(int index) { + return map_entries_.Mutable(index); +} +inline ::hbase::pb::NameStringPair* RegionServerStartupResponse::add_map_entries() { + return map_entries_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& +RegionServerStartupResponse::map_entries() const { + return map_entries_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* +RegionServerStartupResponse::mutable_map_entries() { + return &map_entries_; +} + +// ------------------------------------------------------------------- + +// RegionServerReportRequest + +// required .hbase.pb.ServerName server = 1; +inline bool RegionServerReportRequest::has_server() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionServerReportRequest::set_has_server() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionServerReportRequest::clear_has_server() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionServerReportRequest::clear_server() { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + clear_has_server(); +} +inline const ::hbase::pb::ServerName& RegionServerReportRequest::server() const { + return server_ != NULL ? *server_ : *default_instance_->server_; +} +inline ::hbase::pb::ServerName* RegionServerReportRequest::mutable_server() { + set_has_server(); + if (server_ == NULL) server_ = new ::hbase::pb::ServerName; + return server_; +} +inline ::hbase::pb::ServerName* RegionServerReportRequest::release_server() { + clear_has_server(); + ::hbase::pb::ServerName* temp = server_; + server_ = NULL; + return temp; +} +inline void RegionServerReportRequest::set_allocated_server(::hbase::pb::ServerName* server) { + delete server_; + server_ = server; + if (server) { + set_has_server(); + } else { + clear_has_server(); + } +} + +// optional .hbase.pb.ServerLoad load = 2; +inline bool RegionServerReportRequest::has_load() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionServerReportRequest::set_has_load() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionServerReportRequest::clear_has_load() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionServerReportRequest::clear_load() { + if (load_ != NULL) load_->::hbase::pb::ServerLoad::Clear(); + clear_has_load(); +} +inline const ::hbase::pb::ServerLoad& RegionServerReportRequest::load() const { + return load_ != NULL ? *load_ : *default_instance_->load_; +} +inline ::hbase::pb::ServerLoad* RegionServerReportRequest::mutable_load() { + set_has_load(); + if (load_ == NULL) load_ = new ::hbase::pb::ServerLoad; + return load_; +} +inline ::hbase::pb::ServerLoad* RegionServerReportRequest::release_load() { + clear_has_load(); + ::hbase::pb::ServerLoad* temp = load_; + load_ = NULL; + return temp; +} +inline void RegionServerReportRequest::set_allocated_load(::hbase::pb::ServerLoad* load) { + delete load_; + load_ = load; + if (load) { + set_has_load(); + } else { + clear_has_load(); + } +} + +// ------------------------------------------------------------------- + +// RegionServerReportResponse + +// ------------------------------------------------------------------- + +// ReportRSFatalErrorRequest + +// required .hbase.pb.ServerName server = 1; +inline bool ReportRSFatalErrorRequest::has_server() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReportRSFatalErrorRequest::set_has_server() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportRSFatalErrorRequest::clear_has_server() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReportRSFatalErrorRequest::clear_server() { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + clear_has_server(); +} +inline const ::hbase::pb::ServerName& ReportRSFatalErrorRequest::server() const { + return server_ != NULL ? *server_ : *default_instance_->server_; +} +inline ::hbase::pb::ServerName* ReportRSFatalErrorRequest::mutable_server() { + set_has_server(); + if (server_ == NULL) server_ = new ::hbase::pb::ServerName; + return server_; +} +inline ::hbase::pb::ServerName* ReportRSFatalErrorRequest::release_server() { + clear_has_server(); + ::hbase::pb::ServerName* temp = server_; + server_ = NULL; + return temp; +} +inline void ReportRSFatalErrorRequest::set_allocated_server(::hbase::pb::ServerName* server) { + delete server_; + server_ = server; + if (server) { + set_has_server(); + } else { + clear_has_server(); + } +} + +// required string error_message = 2; +inline bool ReportRSFatalErrorRequest::has_error_message() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ReportRSFatalErrorRequest::set_has_error_message() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReportRSFatalErrorRequest::clear_has_error_message() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ReportRSFatalErrorRequest::clear_error_message() { + if (error_message_ != &::google::protobuf::internal::kEmptyString) { + error_message_->clear(); + } + clear_has_error_message(); +} +inline const ::std::string& ReportRSFatalErrorRequest::error_message() const { + return *error_message_; +} +inline void ReportRSFatalErrorRequest::set_error_message(const ::std::string& value) { + set_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + error_message_ = new ::std::string; + } + error_message_->assign(value); +} +inline void ReportRSFatalErrorRequest::set_error_message(const char* value) { + set_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + error_message_ = new ::std::string; + } + error_message_->assign(value); +} +inline void ReportRSFatalErrorRequest::set_error_message(const char* value, size_t size) { + set_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + error_message_ = new ::std::string; + } + error_message_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReportRSFatalErrorRequest::mutable_error_message() { + set_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + error_message_ = new ::std::string; + } + return error_message_; +} +inline ::std::string* ReportRSFatalErrorRequest::release_error_message() { + clear_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = error_message_; + error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReportRSFatalErrorRequest::set_allocated_error_message(::std::string* error_message) { + if (error_message_ != &::google::protobuf::internal::kEmptyString) { + delete error_message_; + } + if (error_message) { + set_has_error_message(); + error_message_ = error_message; + } else { + clear_has_error_message(); + error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ReportRSFatalErrorResponse + +// ------------------------------------------------------------------- + +// GetLastFlushedSequenceIdRequest + +// required bytes region_name = 1; +inline bool GetLastFlushedSequenceIdRequest::has_region_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetLastFlushedSequenceIdRequest::set_has_region_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetLastFlushedSequenceIdRequest::clear_has_region_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetLastFlushedSequenceIdRequest::clear_region_name() { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + region_name_->clear(); + } + clear_has_region_name(); +} +inline const ::std::string& GetLastFlushedSequenceIdRequest::region_name() const { + return *region_name_; +} +inline void GetLastFlushedSequenceIdRequest::set_region_name(const ::std::string& value) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(value); +} +inline void GetLastFlushedSequenceIdRequest::set_region_name(const char* value) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(value); +} +inline void GetLastFlushedSequenceIdRequest::set_region_name(const void* value, size_t size) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetLastFlushedSequenceIdRequest::mutable_region_name() { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + return region_name_; +} +inline ::std::string* GetLastFlushedSequenceIdRequest::release_region_name() { + clear_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = region_name_; + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetLastFlushedSequenceIdRequest::set_allocated_region_name(::std::string* region_name) { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + delete region_name_; + } + if (region_name) { + set_has_region_name(); + region_name_ = region_name; + } else { + clear_has_region_name(); + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// GetLastFlushedSequenceIdResponse + +// required uint64 last_flushed_sequence_id = 1; +inline bool GetLastFlushedSequenceIdResponse::has_last_flushed_sequence_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetLastFlushedSequenceIdResponse::set_has_last_flushed_sequence_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetLastFlushedSequenceIdResponse::clear_has_last_flushed_sequence_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetLastFlushedSequenceIdResponse::clear_last_flushed_sequence_id() { + last_flushed_sequence_id_ = GOOGLE_ULONGLONG(0); + clear_has_last_flushed_sequence_id(); +} +inline ::google::protobuf::uint64 GetLastFlushedSequenceIdResponse::last_flushed_sequence_id() const { + return last_flushed_sequence_id_; +} +inline void GetLastFlushedSequenceIdResponse::set_last_flushed_sequence_id(::google::protobuf::uint64 value) { + set_has_last_flushed_sequence_id(); + last_flushed_sequence_id_ = value; +} + +// repeated .hbase.pb.StoreSequenceId store_last_flushed_sequence_id = 2; +inline int GetLastFlushedSequenceIdResponse::store_last_flushed_sequence_id_size() const { + return store_last_flushed_sequence_id_.size(); +} +inline void GetLastFlushedSequenceIdResponse::clear_store_last_flushed_sequence_id() { + store_last_flushed_sequence_id_.Clear(); +} +inline const ::hbase::pb::StoreSequenceId& GetLastFlushedSequenceIdResponse::store_last_flushed_sequence_id(int index) const { + return store_last_flushed_sequence_id_.Get(index); +} +inline ::hbase::pb::StoreSequenceId* GetLastFlushedSequenceIdResponse::mutable_store_last_flushed_sequence_id(int index) { + return store_last_flushed_sequence_id_.Mutable(index); +} +inline ::hbase::pb::StoreSequenceId* GetLastFlushedSequenceIdResponse::add_store_last_flushed_sequence_id() { + return store_last_flushed_sequence_id_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >& +GetLastFlushedSequenceIdResponse::store_last_flushed_sequence_id() const { + return store_last_flushed_sequence_id_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreSequenceId >* +GetLastFlushedSequenceIdResponse::mutable_store_last_flushed_sequence_id() { + return &store_last_flushed_sequence_id_; +} + +// ------------------------------------------------------------------- + +// RegionStateTransition + +// required .hbase.pb.RegionStateTransition.TransitionCode transition_code = 1; +inline bool RegionStateTransition::has_transition_code() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionStateTransition::set_has_transition_code() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionStateTransition::clear_has_transition_code() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionStateTransition::clear_transition_code() { + transition_code_ = 0; + clear_has_transition_code(); +} +inline ::hbase::pb::RegionStateTransition_TransitionCode RegionStateTransition::transition_code() const { + return static_cast< ::hbase::pb::RegionStateTransition_TransitionCode >(transition_code_); +} +inline void RegionStateTransition::set_transition_code(::hbase::pb::RegionStateTransition_TransitionCode value) { + assert(::hbase::pb::RegionStateTransition_TransitionCode_IsValid(value)); + set_has_transition_code(); + transition_code_ = value; +} + +// repeated .hbase.pb.RegionInfo region_info = 2; +inline int RegionStateTransition::region_info_size() const { + return region_info_.size(); +} +inline void RegionStateTransition::clear_region_info() { + region_info_.Clear(); +} +inline const ::hbase::pb::RegionInfo& RegionStateTransition::region_info(int index) const { + return region_info_.Get(index); +} +inline ::hbase::pb::RegionInfo* RegionStateTransition::mutable_region_info(int index) { + return region_info_.Mutable(index); +} +inline ::hbase::pb::RegionInfo* RegionStateTransition::add_region_info() { + return region_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >& +RegionStateTransition::region_info() const { + return region_info_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionInfo >* +RegionStateTransition::mutable_region_info() { + return ®ion_info_; +} + +// optional uint64 open_seq_num = 3; +inline bool RegionStateTransition::has_open_seq_num() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RegionStateTransition::set_has_open_seq_num() { + _has_bits_[0] |= 0x00000004u; +} +inline void RegionStateTransition::clear_has_open_seq_num() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RegionStateTransition::clear_open_seq_num() { + open_seq_num_ = GOOGLE_ULONGLONG(0); + clear_has_open_seq_num(); +} +inline ::google::protobuf::uint64 RegionStateTransition::open_seq_num() const { + return open_seq_num_; +} +inline void RegionStateTransition::set_open_seq_num(::google::protobuf::uint64 value) { + set_has_open_seq_num(); + open_seq_num_ = value; +} + +// ------------------------------------------------------------------- + +// ReportRegionStateTransitionRequest + +// required .hbase.pb.ServerName server = 1; +inline bool ReportRegionStateTransitionRequest::has_server() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReportRegionStateTransitionRequest::set_has_server() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportRegionStateTransitionRequest::clear_has_server() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReportRegionStateTransitionRequest::clear_server() { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + clear_has_server(); +} +inline const ::hbase::pb::ServerName& ReportRegionStateTransitionRequest::server() const { + return server_ != NULL ? *server_ : *default_instance_->server_; +} +inline ::hbase::pb::ServerName* ReportRegionStateTransitionRequest::mutable_server() { + set_has_server(); + if (server_ == NULL) server_ = new ::hbase::pb::ServerName; + return server_; +} +inline ::hbase::pb::ServerName* ReportRegionStateTransitionRequest::release_server() { + clear_has_server(); + ::hbase::pb::ServerName* temp = server_; + server_ = NULL; + return temp; +} +inline void ReportRegionStateTransitionRequest::set_allocated_server(::hbase::pb::ServerName* server) { + delete server_; + server_ = server; + if (server) { + set_has_server(); + } else { + clear_has_server(); + } +} + +// repeated .hbase.pb.RegionStateTransition transition = 2; +inline int ReportRegionStateTransitionRequest::transition_size() const { + return transition_.size(); +} +inline void ReportRegionStateTransitionRequest::clear_transition() { + transition_.Clear(); +} +inline const ::hbase::pb::RegionStateTransition& ReportRegionStateTransitionRequest::transition(int index) const { + return transition_.Get(index); +} +inline ::hbase::pb::RegionStateTransition* ReportRegionStateTransitionRequest::mutable_transition(int index) { + return transition_.Mutable(index); +} +inline ::hbase::pb::RegionStateTransition* ReportRegionStateTransitionRequest::add_transition() { + return transition_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionStateTransition >& +ReportRegionStateTransitionRequest::transition() const { + return transition_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionStateTransition >* +ReportRegionStateTransitionRequest::mutable_transition() { + return &transition_; +} + +// ------------------------------------------------------------------- + +// ReportRegionStateTransitionResponse + +// optional string error_message = 1; +inline bool ReportRegionStateTransitionResponse::has_error_message() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReportRegionStateTransitionResponse::set_has_error_message() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportRegionStateTransitionResponse::clear_has_error_message() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReportRegionStateTransitionResponse::clear_error_message() { + if (error_message_ != &::google::protobuf::internal::kEmptyString) { + error_message_->clear(); + } + clear_has_error_message(); +} +inline const ::std::string& ReportRegionStateTransitionResponse::error_message() const { + return *error_message_; +} +inline void ReportRegionStateTransitionResponse::set_error_message(const ::std::string& value) { + set_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + error_message_ = new ::std::string; + } + error_message_->assign(value); +} +inline void ReportRegionStateTransitionResponse::set_error_message(const char* value) { + set_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + error_message_ = new ::std::string; + } + error_message_->assign(value); +} +inline void ReportRegionStateTransitionResponse::set_error_message(const char* value, size_t size) { + set_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + error_message_ = new ::std::string; + } + error_message_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReportRegionStateTransitionResponse::mutable_error_message() { + set_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + error_message_ = new ::std::string; + } + return error_message_; +} +inline ::std::string* ReportRegionStateTransitionResponse::release_error_message() { + clear_has_error_message(); + if (error_message_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = error_message_; + error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReportRegionStateTransitionResponse::set_allocated_error_message(::std::string* error_message) { + if (error_message_ != &::google::protobuf::internal::kEmptyString) { + delete error_message_; + } + if (error_message) { + set_has_error_message(); + error_message_ = error_message; + } else { + clear_has_error_message(); + error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::RegionStateTransition_TransitionCode>() { + return ::hbase::pb::RegionStateTransition_TransitionCode_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_RegionServerStatus_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/RowProcessor.pb.cc b/hbase-native-client/src/rpc/generated/RowProcessor.pb.cc new file mode 100644 index 0000000..3f8d121 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RowProcessor.pb.cc @@ -0,0 +1,768 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RowProcessor.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "RowProcessor.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* ProcessRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ProcessRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ProcessResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ProcessResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_RowProcessor_2eproto() { + protobuf_AddDesc_RowProcessor_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "RowProcessor.proto"); + GOOGLE_CHECK(file != NULL); + ProcessRequest_descriptor_ = file->message_type(0); + static const int ProcessRequest_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessRequest, row_processor_class_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessRequest, row_processor_initializer_message_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessRequest, row_processor_initializer_message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessRequest, nonce_group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessRequest, nonce_), + }; + ProcessRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ProcessRequest_descriptor_, + ProcessRequest::default_instance_, + ProcessRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ProcessRequest)); + ProcessResponse_descriptor_ = file->message_type(1); + static const int ProcessResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessResponse, row_processor_result_), + }; + ProcessResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ProcessResponse_descriptor_, + ProcessResponse::default_instance_, + ProcessResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProcessResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ProcessResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_RowProcessor_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ProcessRequest_descriptor_, &ProcessRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ProcessResponse_descriptor_, &ProcessResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_RowProcessor_2eproto() { + delete ProcessRequest::default_instance_; + delete ProcessRequest_reflection_; + delete ProcessResponse::default_instance_; + delete ProcessResponse_reflection_; +} + +void protobuf_AddDesc_RowProcessor_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\022RowProcessor.proto\022\010hbase.pb\"\261\001\n\016Proce" + "ssRequest\022 \n\030row_processor_class_name\030\001 " + "\002(\t\022.\n&row_processor_initializer_message" + "_name\030\002 \001(\t\022)\n!row_processor_initializer" + "_message\030\003 \001(\014\022\023\n\013nonce_group\030\004 \001(\004\022\r\n\005n" + "once\030\005 \001(\004\"/\n\017ProcessResponse\022\034\n\024row_pro" + "cessor_result\030\001 \002(\0142U\n\023RowProcessorServi" + "ce\022>\n\007Process\022\030.hbase.pb.ProcessRequest\032" + "\031.hbase.pb.ProcessResponseBH\n*org.apache" + ".hadoop.hbase.protobuf.generatedB\022RowPro" + "cessorProtosH\001\210\001\001\240\001\001", 420); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "RowProcessor.proto", &protobuf_RegisterTypes); + ProcessRequest::default_instance_ = new ProcessRequest(); + ProcessResponse::default_instance_ = new ProcessResponse(); + ProcessRequest::default_instance_->InitAsDefaultInstance(); + ProcessResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_RowProcessor_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_RowProcessor_2eproto { + StaticDescriptorInitializer_RowProcessor_2eproto() { + protobuf_AddDesc_RowProcessor_2eproto(); + } +} static_descriptor_initializer_RowProcessor_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int ProcessRequest::kRowProcessorClassNameFieldNumber; +const int ProcessRequest::kRowProcessorInitializerMessageNameFieldNumber; +const int ProcessRequest::kRowProcessorInitializerMessageFieldNumber; +const int ProcessRequest::kNonceGroupFieldNumber; +const int ProcessRequest::kNonceFieldNumber; +#endif // !_MSC_VER + +ProcessRequest::ProcessRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ProcessRequest::InitAsDefaultInstance() { +} + +ProcessRequest::ProcessRequest(const ProcessRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ProcessRequest::SharedCtor() { + _cached_size_ = 0; + row_processor_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + row_processor_initializer_message_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + row_processor_initializer_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ProcessRequest::~ProcessRequest() { + SharedDtor(); +} + +void ProcessRequest::SharedDtor() { + if (row_processor_class_name_ != &::google::protobuf::internal::kEmptyString) { + delete row_processor_class_name_; + } + if (row_processor_initializer_message_name_ != &::google::protobuf::internal::kEmptyString) { + delete row_processor_initializer_message_name_; + } + if (row_processor_initializer_message_ != &::google::protobuf::internal::kEmptyString) { + delete row_processor_initializer_message_; + } + if (this != default_instance_) { + } +} + +void ProcessRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProcessRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcessRequest_descriptor_; +} + +const ProcessRequest& ProcessRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RowProcessor_2eproto(); + return *default_instance_; +} + +ProcessRequest* ProcessRequest::default_instance_ = NULL; + +ProcessRequest* ProcessRequest::New() const { + return new ProcessRequest; +} + +void ProcessRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_row_processor_class_name()) { + if (row_processor_class_name_ != &::google::protobuf::internal::kEmptyString) { + row_processor_class_name_->clear(); + } + } + if (has_row_processor_initializer_message_name()) { + if (row_processor_initializer_message_name_ != &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_name_->clear(); + } + } + if (has_row_processor_initializer_message()) { + if (row_processor_initializer_message_ != &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_->clear(); + } + } + nonce_group_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ProcessRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string row_processor_class_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_row_processor_class_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->row_processor_class_name().data(), this->row_processor_class_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_row_processor_initializer_message_name; + break; + } + + // optional string row_processor_initializer_message_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_row_processor_initializer_message_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_row_processor_initializer_message_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->row_processor_initializer_message_name().data(), this->row_processor_initializer_message_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_row_processor_initializer_message; + break; + } + + // optional bytes row_processor_initializer_message = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_row_processor_initializer_message: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_row_processor_initializer_message())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_nonce_group; + break; + } + + // optional uint64 nonce_group = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce_group: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_group_))); + set_has_nonce_group(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ProcessRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string row_processor_class_name = 1; + if (has_row_processor_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->row_processor_class_name().data(), this->row_processor_class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->row_processor_class_name(), output); + } + + // optional string row_processor_initializer_message_name = 2; + if (has_row_processor_initializer_message_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->row_processor_initializer_message_name().data(), this->row_processor_initializer_message_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->row_processor_initializer_message_name(), output); + } + + // optional bytes row_processor_initializer_message = 3; + if (has_row_processor_initializer_message()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->row_processor_initializer_message(), output); + } + + // optional uint64 nonce_group = 4; + if (has_nonce_group()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->nonce_group(), output); + } + + // optional uint64 nonce = 5; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->nonce(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ProcessRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string row_processor_class_name = 1; + if (has_row_processor_class_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->row_processor_class_name().data(), this->row_processor_class_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->row_processor_class_name(), target); + } + + // optional string row_processor_initializer_message_name = 2; + if (has_row_processor_initializer_message_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->row_processor_initializer_message_name().data(), this->row_processor_initializer_message_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->row_processor_initializer_message_name(), target); + } + + // optional bytes row_processor_initializer_message = 3; + if (has_row_processor_initializer_message()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->row_processor_initializer_message(), target); + } + + // optional uint64 nonce_group = 4; + if (has_nonce_group()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->nonce_group(), target); + } + + // optional uint64 nonce = 5; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->nonce(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ProcessRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string row_processor_class_name = 1; + if (has_row_processor_class_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->row_processor_class_name()); + } + + // optional string row_processor_initializer_message_name = 2; + if (has_row_processor_initializer_message_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->row_processor_initializer_message_name()); + } + + // optional bytes row_processor_initializer_message = 3; + if (has_row_processor_initializer_message()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->row_processor_initializer_message()); + } + + // optional uint64 nonce_group = 4; + if (has_nonce_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce_group()); + } + + // optional uint64 nonce = 5; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProcessRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ProcessRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ProcessRequest::MergeFrom(const ProcessRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_row_processor_class_name()) { + set_row_processor_class_name(from.row_processor_class_name()); + } + if (from.has_row_processor_initializer_message_name()) { + set_row_processor_initializer_message_name(from.row_processor_initializer_message_name()); + } + if (from.has_row_processor_initializer_message()) { + set_row_processor_initializer_message(from.row_processor_initializer_message()); + } + if (from.has_nonce_group()) { + set_nonce_group(from.nonce_group()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ProcessRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProcessRequest::CopyFrom(const ProcessRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcessRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ProcessRequest::Swap(ProcessRequest* other) { + if (other != this) { + std::swap(row_processor_class_name_, other->row_processor_class_name_); + std::swap(row_processor_initializer_message_name_, other->row_processor_initializer_message_name_); + std::swap(row_processor_initializer_message_, other->row_processor_initializer_message_); + std::swap(nonce_group_, other->nonce_group_); + std::swap(nonce_, other->nonce_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ProcessRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ProcessRequest_descriptor_; + metadata.reflection = ProcessRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ProcessResponse::kRowProcessorResultFieldNumber; +#endif // !_MSC_VER + +ProcessResponse::ProcessResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ProcessResponse::InitAsDefaultInstance() { +} + +ProcessResponse::ProcessResponse(const ProcessResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ProcessResponse::SharedCtor() { + _cached_size_ = 0; + row_processor_result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ProcessResponse::~ProcessResponse() { + SharedDtor(); +} + +void ProcessResponse::SharedDtor() { + if (row_processor_result_ != &::google::protobuf::internal::kEmptyString) { + delete row_processor_result_; + } + if (this != default_instance_) { + } +} + +void ProcessResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProcessResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ProcessResponse_descriptor_; +} + +const ProcessResponse& ProcessResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_RowProcessor_2eproto(); + return *default_instance_; +} + +ProcessResponse* ProcessResponse::default_instance_ = NULL; + +ProcessResponse* ProcessResponse::New() const { + return new ProcessResponse; +} + +void ProcessResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_row_processor_result()) { + if (row_processor_result_ != &::google::protobuf::internal::kEmptyString) { + row_processor_result_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ProcessResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes row_processor_result = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_row_processor_result())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ProcessResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes row_processor_result = 1; + if (has_row_processor_result()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->row_processor_result(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ProcessResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes row_processor_result = 1; + if (has_row_processor_result()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->row_processor_result(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ProcessResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes row_processor_result = 1; + if (has_row_processor_result()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->row_processor_result()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProcessResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ProcessResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ProcessResponse::MergeFrom(const ProcessResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_row_processor_result()) { + set_row_processor_result(from.row_processor_result()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ProcessResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProcessResponse::CopyFrom(const ProcessResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcessResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ProcessResponse::Swap(ProcessResponse* other) { + if (other != this) { + std::swap(row_processor_result_, other->row_processor_result_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ProcessResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ProcessResponse_descriptor_; + metadata.reflection = ProcessResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/RowProcessor.pb.h b/hbase-native-client/src/rpc/generated/RowProcessor.pb.h new file mode 100644 index 0000000..541b958 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/RowProcessor.pb.h @@ -0,0 +1,616 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: RowProcessor.proto + +#ifndef PROTOBUF_RowProcessor_2eproto__INCLUDED +#define PROTOBUF_RowProcessor_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_RowProcessor_2eproto(); +void protobuf_AssignDesc_RowProcessor_2eproto(); +void protobuf_ShutdownFile_RowProcessor_2eproto(); + +class ProcessRequest; +class ProcessResponse; + +// =================================================================== + +class ProcessRequest : public ::google::protobuf::Message { + public: + ProcessRequest(); + virtual ~ProcessRequest(); + + ProcessRequest(const ProcessRequest& from); + + inline ProcessRequest& operator=(const ProcessRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ProcessRequest& default_instance(); + + void Swap(ProcessRequest* other); + + // implements Message ---------------------------------------------- + + ProcessRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ProcessRequest& from); + void MergeFrom(const ProcessRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string row_processor_class_name = 1; + inline bool has_row_processor_class_name() const; + inline void clear_row_processor_class_name(); + static const int kRowProcessorClassNameFieldNumber = 1; + inline const ::std::string& row_processor_class_name() const; + inline void set_row_processor_class_name(const ::std::string& value); + inline void set_row_processor_class_name(const char* value); + inline void set_row_processor_class_name(const char* value, size_t size); + inline ::std::string* mutable_row_processor_class_name(); + inline ::std::string* release_row_processor_class_name(); + inline void set_allocated_row_processor_class_name(::std::string* row_processor_class_name); + + // optional string row_processor_initializer_message_name = 2; + inline bool has_row_processor_initializer_message_name() const; + inline void clear_row_processor_initializer_message_name(); + static const int kRowProcessorInitializerMessageNameFieldNumber = 2; + inline const ::std::string& row_processor_initializer_message_name() const; + inline void set_row_processor_initializer_message_name(const ::std::string& value); + inline void set_row_processor_initializer_message_name(const char* value); + inline void set_row_processor_initializer_message_name(const char* value, size_t size); + inline ::std::string* mutable_row_processor_initializer_message_name(); + inline ::std::string* release_row_processor_initializer_message_name(); + inline void set_allocated_row_processor_initializer_message_name(::std::string* row_processor_initializer_message_name); + + // optional bytes row_processor_initializer_message = 3; + inline bool has_row_processor_initializer_message() const; + inline void clear_row_processor_initializer_message(); + static const int kRowProcessorInitializerMessageFieldNumber = 3; + inline const ::std::string& row_processor_initializer_message() const; + inline void set_row_processor_initializer_message(const ::std::string& value); + inline void set_row_processor_initializer_message(const char* value); + inline void set_row_processor_initializer_message(const void* value, size_t size); + inline ::std::string* mutable_row_processor_initializer_message(); + inline ::std::string* release_row_processor_initializer_message(); + inline void set_allocated_row_processor_initializer_message(::std::string* row_processor_initializer_message); + + // optional uint64 nonce_group = 4; + inline bool has_nonce_group() const; + inline void clear_nonce_group(); + static const int kNonceGroupFieldNumber = 4; + inline ::google::protobuf::uint64 nonce_group() const; + inline void set_nonce_group(::google::protobuf::uint64 value); + + // optional uint64 nonce = 5; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 5; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ProcessRequest) + private: + inline void set_has_row_processor_class_name(); + inline void clear_has_row_processor_class_name(); + inline void set_has_row_processor_initializer_message_name(); + inline void clear_has_row_processor_initializer_message_name(); + inline void set_has_row_processor_initializer_message(); + inline void clear_has_row_processor_initializer_message(); + inline void set_has_nonce_group(); + inline void clear_has_nonce_group(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* row_processor_class_name_; + ::std::string* row_processor_initializer_message_name_; + ::std::string* row_processor_initializer_message_; + ::google::protobuf::uint64 nonce_group_; + ::google::protobuf::uint64 nonce_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_RowProcessor_2eproto(); + friend void protobuf_AssignDesc_RowProcessor_2eproto(); + friend void protobuf_ShutdownFile_RowProcessor_2eproto(); + + void InitAsDefaultInstance(); + static ProcessRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ProcessResponse : public ::google::protobuf::Message { + public: + ProcessResponse(); + virtual ~ProcessResponse(); + + ProcessResponse(const ProcessResponse& from); + + inline ProcessResponse& operator=(const ProcessResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ProcessResponse& default_instance(); + + void Swap(ProcessResponse* other); + + // implements Message ---------------------------------------------- + + ProcessResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ProcessResponse& from); + void MergeFrom(const ProcessResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes row_processor_result = 1; + inline bool has_row_processor_result() const; + inline void clear_row_processor_result(); + static const int kRowProcessorResultFieldNumber = 1; + inline const ::std::string& row_processor_result() const; + inline void set_row_processor_result(const ::std::string& value); + inline void set_row_processor_result(const char* value); + inline void set_row_processor_result(const void* value, size_t size); + inline ::std::string* mutable_row_processor_result(); + inline ::std::string* release_row_processor_result(); + inline void set_allocated_row_processor_result(::std::string* row_processor_result); + + // @@protoc_insertion_point(class_scope:hbase.pb.ProcessResponse) + private: + inline void set_has_row_processor_result(); + inline void clear_has_row_processor_result(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* row_processor_result_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_RowProcessor_2eproto(); + friend void protobuf_AssignDesc_RowProcessor_2eproto(); + friend void protobuf_ShutdownFile_RowProcessor_2eproto(); + + void InitAsDefaultInstance(); + static ProcessResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// ProcessRequest + +// required string row_processor_class_name = 1; +inline bool ProcessRequest::has_row_processor_class_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ProcessRequest::set_has_row_processor_class_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void ProcessRequest::clear_has_row_processor_class_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ProcessRequest::clear_row_processor_class_name() { + if (row_processor_class_name_ != &::google::protobuf::internal::kEmptyString) { + row_processor_class_name_->clear(); + } + clear_has_row_processor_class_name(); +} +inline const ::std::string& ProcessRequest::row_processor_class_name() const { + return *row_processor_class_name_; +} +inline void ProcessRequest::set_row_processor_class_name(const ::std::string& value) { + set_has_row_processor_class_name(); + if (row_processor_class_name_ == &::google::protobuf::internal::kEmptyString) { + row_processor_class_name_ = new ::std::string; + } + row_processor_class_name_->assign(value); +} +inline void ProcessRequest::set_row_processor_class_name(const char* value) { + set_has_row_processor_class_name(); + if (row_processor_class_name_ == &::google::protobuf::internal::kEmptyString) { + row_processor_class_name_ = new ::std::string; + } + row_processor_class_name_->assign(value); +} +inline void ProcessRequest::set_row_processor_class_name(const char* value, size_t size) { + set_has_row_processor_class_name(); + if (row_processor_class_name_ == &::google::protobuf::internal::kEmptyString) { + row_processor_class_name_ = new ::std::string; + } + row_processor_class_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ProcessRequest::mutable_row_processor_class_name() { + set_has_row_processor_class_name(); + if (row_processor_class_name_ == &::google::protobuf::internal::kEmptyString) { + row_processor_class_name_ = new ::std::string; + } + return row_processor_class_name_; +} +inline ::std::string* ProcessRequest::release_row_processor_class_name() { + clear_has_row_processor_class_name(); + if (row_processor_class_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_processor_class_name_; + row_processor_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ProcessRequest::set_allocated_row_processor_class_name(::std::string* row_processor_class_name) { + if (row_processor_class_name_ != &::google::protobuf::internal::kEmptyString) { + delete row_processor_class_name_; + } + if (row_processor_class_name) { + set_has_row_processor_class_name(); + row_processor_class_name_ = row_processor_class_name; + } else { + clear_has_row_processor_class_name(); + row_processor_class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string row_processor_initializer_message_name = 2; +inline bool ProcessRequest::has_row_processor_initializer_message_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ProcessRequest::set_has_row_processor_initializer_message_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void ProcessRequest::clear_has_row_processor_initializer_message_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ProcessRequest::clear_row_processor_initializer_message_name() { + if (row_processor_initializer_message_name_ != &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_name_->clear(); + } + clear_has_row_processor_initializer_message_name(); +} +inline const ::std::string& ProcessRequest::row_processor_initializer_message_name() const { + return *row_processor_initializer_message_name_; +} +inline void ProcessRequest::set_row_processor_initializer_message_name(const ::std::string& value) { + set_has_row_processor_initializer_message_name(); + if (row_processor_initializer_message_name_ == &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_name_ = new ::std::string; + } + row_processor_initializer_message_name_->assign(value); +} +inline void ProcessRequest::set_row_processor_initializer_message_name(const char* value) { + set_has_row_processor_initializer_message_name(); + if (row_processor_initializer_message_name_ == &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_name_ = new ::std::string; + } + row_processor_initializer_message_name_->assign(value); +} +inline void ProcessRequest::set_row_processor_initializer_message_name(const char* value, size_t size) { + set_has_row_processor_initializer_message_name(); + if (row_processor_initializer_message_name_ == &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_name_ = new ::std::string; + } + row_processor_initializer_message_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ProcessRequest::mutable_row_processor_initializer_message_name() { + set_has_row_processor_initializer_message_name(); + if (row_processor_initializer_message_name_ == &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_name_ = new ::std::string; + } + return row_processor_initializer_message_name_; +} +inline ::std::string* ProcessRequest::release_row_processor_initializer_message_name() { + clear_has_row_processor_initializer_message_name(); + if (row_processor_initializer_message_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_processor_initializer_message_name_; + row_processor_initializer_message_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ProcessRequest::set_allocated_row_processor_initializer_message_name(::std::string* row_processor_initializer_message_name) { + if (row_processor_initializer_message_name_ != &::google::protobuf::internal::kEmptyString) { + delete row_processor_initializer_message_name_; + } + if (row_processor_initializer_message_name) { + set_has_row_processor_initializer_message_name(); + row_processor_initializer_message_name_ = row_processor_initializer_message_name; + } else { + clear_has_row_processor_initializer_message_name(); + row_processor_initializer_message_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes row_processor_initializer_message = 3; +inline bool ProcessRequest::has_row_processor_initializer_message() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ProcessRequest::set_has_row_processor_initializer_message() { + _has_bits_[0] |= 0x00000004u; +} +inline void ProcessRequest::clear_has_row_processor_initializer_message() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ProcessRequest::clear_row_processor_initializer_message() { + if (row_processor_initializer_message_ != &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_->clear(); + } + clear_has_row_processor_initializer_message(); +} +inline const ::std::string& ProcessRequest::row_processor_initializer_message() const { + return *row_processor_initializer_message_; +} +inline void ProcessRequest::set_row_processor_initializer_message(const ::std::string& value) { + set_has_row_processor_initializer_message(); + if (row_processor_initializer_message_ == &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_ = new ::std::string; + } + row_processor_initializer_message_->assign(value); +} +inline void ProcessRequest::set_row_processor_initializer_message(const char* value) { + set_has_row_processor_initializer_message(); + if (row_processor_initializer_message_ == &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_ = new ::std::string; + } + row_processor_initializer_message_->assign(value); +} +inline void ProcessRequest::set_row_processor_initializer_message(const void* value, size_t size) { + set_has_row_processor_initializer_message(); + if (row_processor_initializer_message_ == &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_ = new ::std::string; + } + row_processor_initializer_message_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ProcessRequest::mutable_row_processor_initializer_message() { + set_has_row_processor_initializer_message(); + if (row_processor_initializer_message_ == &::google::protobuf::internal::kEmptyString) { + row_processor_initializer_message_ = new ::std::string; + } + return row_processor_initializer_message_; +} +inline ::std::string* ProcessRequest::release_row_processor_initializer_message() { + clear_has_row_processor_initializer_message(); + if (row_processor_initializer_message_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_processor_initializer_message_; + row_processor_initializer_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ProcessRequest::set_allocated_row_processor_initializer_message(::std::string* row_processor_initializer_message) { + if (row_processor_initializer_message_ != &::google::protobuf::internal::kEmptyString) { + delete row_processor_initializer_message_; + } + if (row_processor_initializer_message) { + set_has_row_processor_initializer_message(); + row_processor_initializer_message_ = row_processor_initializer_message; + } else { + clear_has_row_processor_initializer_message(); + row_processor_initializer_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 nonce_group = 4; +inline bool ProcessRequest::has_nonce_group() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ProcessRequest::set_has_nonce_group() { + _has_bits_[0] |= 0x00000008u; +} +inline void ProcessRequest::clear_has_nonce_group() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ProcessRequest::clear_nonce_group() { + nonce_group_ = GOOGLE_ULONGLONG(0); + clear_has_nonce_group(); +} +inline ::google::protobuf::uint64 ProcessRequest::nonce_group() const { + return nonce_group_; +} +inline void ProcessRequest::set_nonce_group(::google::protobuf::uint64 value) { + set_has_nonce_group(); + nonce_group_ = value; +} + +// optional uint64 nonce = 5; +inline bool ProcessRequest::has_nonce() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void ProcessRequest::set_has_nonce() { + _has_bits_[0] |= 0x00000010u; +} +inline void ProcessRequest::clear_has_nonce() { + _has_bits_[0] &= ~0x00000010u; +} +inline void ProcessRequest::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 ProcessRequest::nonce() const { + return nonce_; +} +inline void ProcessRequest::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// ------------------------------------------------------------------- + +// ProcessResponse + +// required bytes row_processor_result = 1; +inline bool ProcessResponse::has_row_processor_result() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ProcessResponse::set_has_row_processor_result() { + _has_bits_[0] |= 0x00000001u; +} +inline void ProcessResponse::clear_has_row_processor_result() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ProcessResponse::clear_row_processor_result() { + if (row_processor_result_ != &::google::protobuf::internal::kEmptyString) { + row_processor_result_->clear(); + } + clear_has_row_processor_result(); +} +inline const ::std::string& ProcessResponse::row_processor_result() const { + return *row_processor_result_; +} +inline void ProcessResponse::set_row_processor_result(const ::std::string& value) { + set_has_row_processor_result(); + if (row_processor_result_ == &::google::protobuf::internal::kEmptyString) { + row_processor_result_ = new ::std::string; + } + row_processor_result_->assign(value); +} +inline void ProcessResponse::set_row_processor_result(const char* value) { + set_has_row_processor_result(); + if (row_processor_result_ == &::google::protobuf::internal::kEmptyString) { + row_processor_result_ = new ::std::string; + } + row_processor_result_->assign(value); +} +inline void ProcessResponse::set_row_processor_result(const void* value, size_t size) { + set_has_row_processor_result(); + if (row_processor_result_ == &::google::protobuf::internal::kEmptyString) { + row_processor_result_ = new ::std::string; + } + row_processor_result_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ProcessResponse::mutable_row_processor_result() { + set_has_row_processor_result(); + if (row_processor_result_ == &::google::protobuf::internal::kEmptyString) { + row_processor_result_ = new ::std::string; + } + return row_processor_result_; +} +inline ::std::string* ProcessResponse::release_row_processor_result() { + clear_has_row_processor_result(); + if (row_processor_result_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = row_processor_result_; + row_processor_result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ProcessResponse::set_allocated_row_processor_result(::std::string* row_processor_result) { + if (row_processor_result_ != &::google::protobuf::internal::kEmptyString) { + delete row_processor_result_; + } + if (row_processor_result) { + set_has_row_processor_result(); + row_processor_result_ = row_processor_result; + } else { + clear_has_row_processor_result(); + row_processor_result_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_RowProcessor_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/SecureBulkLoad.pb.cc b/hbase-native-client/src/rpc/generated/SecureBulkLoad.pb.cc new file mode 100644 index 0000000..7ffa8a0 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/SecureBulkLoad.pb.cc @@ -0,0 +1,2039 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SecureBulkLoad.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "SecureBulkLoad.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* SecureBulkLoadHFilesRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SecureBulkLoadHFilesRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SecureBulkLoadHFilesResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SecureBulkLoadHFilesResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* DelegationToken_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DelegationToken_reflection_ = NULL; +const ::google::protobuf::Descriptor* PrepareBulkLoadRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PrepareBulkLoadRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* PrepareBulkLoadResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PrepareBulkLoadResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* CleanupBulkLoadRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CleanupBulkLoadRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* CleanupBulkLoadResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CleanupBulkLoadResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_SecureBulkLoad_2eproto() { + protobuf_AddDesc_SecureBulkLoad_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "SecureBulkLoad.proto"); + GOOGLE_CHECK(file != NULL); + SecureBulkLoadHFilesRequest_descriptor_ = file->message_type(0); + static const int SecureBulkLoadHFilesRequest_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesRequest, family_path_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesRequest, assign_seq_num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesRequest, fs_token_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesRequest, bulk_token_), + }; + SecureBulkLoadHFilesRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SecureBulkLoadHFilesRequest_descriptor_, + SecureBulkLoadHFilesRequest::default_instance_, + SecureBulkLoadHFilesRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SecureBulkLoadHFilesRequest)); + SecureBulkLoadHFilesResponse_descriptor_ = file->message_type(1); + static const int SecureBulkLoadHFilesResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesResponse, loaded_), + }; + SecureBulkLoadHFilesResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SecureBulkLoadHFilesResponse_descriptor_, + SecureBulkLoadHFilesResponse::default_instance_, + SecureBulkLoadHFilesResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SecureBulkLoadHFilesResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SecureBulkLoadHFilesResponse)); + DelegationToken_descriptor_ = file->message_type(2); + static const int DelegationToken_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DelegationToken, identifier_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DelegationToken, password_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DelegationToken, kind_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DelegationToken, service_), + }; + DelegationToken_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DelegationToken_descriptor_, + DelegationToken::default_instance_, + DelegationToken_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DelegationToken, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DelegationToken, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DelegationToken)); + PrepareBulkLoadRequest_descriptor_ = file->message_type(3); + static const int PrepareBulkLoadRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrepareBulkLoadRequest, table_name_), + }; + PrepareBulkLoadRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PrepareBulkLoadRequest_descriptor_, + PrepareBulkLoadRequest::default_instance_, + PrepareBulkLoadRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrepareBulkLoadRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrepareBulkLoadRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PrepareBulkLoadRequest)); + PrepareBulkLoadResponse_descriptor_ = file->message_type(4); + static const int PrepareBulkLoadResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrepareBulkLoadResponse, bulk_token_), + }; + PrepareBulkLoadResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PrepareBulkLoadResponse_descriptor_, + PrepareBulkLoadResponse::default_instance_, + PrepareBulkLoadResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrepareBulkLoadResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrepareBulkLoadResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PrepareBulkLoadResponse)); + CleanupBulkLoadRequest_descriptor_ = file->message_type(5); + static const int CleanupBulkLoadRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CleanupBulkLoadRequest, bulk_token_), + }; + CleanupBulkLoadRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CleanupBulkLoadRequest_descriptor_, + CleanupBulkLoadRequest::default_instance_, + CleanupBulkLoadRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CleanupBulkLoadRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CleanupBulkLoadRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CleanupBulkLoadRequest)); + CleanupBulkLoadResponse_descriptor_ = file->message_type(6); + static const int CleanupBulkLoadResponse_offsets_[1] = { + }; + CleanupBulkLoadResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CleanupBulkLoadResponse_descriptor_, + CleanupBulkLoadResponse::default_instance_, + CleanupBulkLoadResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CleanupBulkLoadResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CleanupBulkLoadResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CleanupBulkLoadResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_SecureBulkLoad_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SecureBulkLoadHFilesRequest_descriptor_, &SecureBulkLoadHFilesRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SecureBulkLoadHFilesResponse_descriptor_, &SecureBulkLoadHFilesResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DelegationToken_descriptor_, &DelegationToken::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PrepareBulkLoadRequest_descriptor_, &PrepareBulkLoadRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PrepareBulkLoadResponse_descriptor_, &PrepareBulkLoadResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CleanupBulkLoadRequest_descriptor_, &CleanupBulkLoadRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CleanupBulkLoadResponse_descriptor_, &CleanupBulkLoadResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_SecureBulkLoad_2eproto() { + delete SecureBulkLoadHFilesRequest::default_instance_; + delete SecureBulkLoadHFilesRequest_reflection_; + delete SecureBulkLoadHFilesResponse::default_instance_; + delete SecureBulkLoadHFilesResponse_reflection_; + delete DelegationToken::default_instance_; + delete DelegationToken_reflection_; + delete PrepareBulkLoadRequest::default_instance_; + delete PrepareBulkLoadRequest_reflection_; + delete PrepareBulkLoadResponse::default_instance_; + delete PrepareBulkLoadResponse_reflection_; + delete CleanupBulkLoadRequest::default_instance_; + delete CleanupBulkLoadRequest_reflection_; + delete CleanupBulkLoadResponse::default_instance_; + delete CleanupBulkLoadResponse_reflection_; +} + +void protobuf_AddDesc_SecureBulkLoad_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_Client_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\024SecureBulkLoad.proto\022\010hbase.pb\032\013HBase." + "proto\032\014Client.proto\"\266\001\n\033SecureBulkLoadHF" + "ilesRequest\022>\n\013family_path\030\001 \003(\0132).hbase" + ".pb.BulkLoadHFileRequest.FamilyPath\022\026\n\016a" + "ssign_seq_num\030\002 \001(\010\022+\n\010fs_token\030\003 \002(\0132\031." + "hbase.pb.DelegationToken\022\022\n\nbulk_token\030\004" + " \002(\t\".\n\034SecureBulkLoadHFilesResponse\022\016\n\006" + "loaded\030\001 \002(\010\"V\n\017DelegationToken\022\022\n\nident" + "ifier\030\001 \001(\014\022\020\n\010password\030\002 \001(\014\022\014\n\004kind\030\003 " + "\001(\t\022\017\n\007service\030\004 \001(\t\"A\n\026PrepareBulkLoadR" + "equest\022\'\n\ntable_name\030\001 \002(\0132\023.hbase.pb.Ta" + "bleName\"-\n\027PrepareBulkLoadResponse\022\022\n\nbu" + "lk_token\030\001 \002(\t\",\n\026CleanupBulkLoadRequest" + "\022\022\n\nbulk_token\030\001 \002(\t\"\031\n\027CleanupBulkLoadR" + "esponse2\256\002\n\025SecureBulkLoadService\022V\n\017Pre" + "pareBulkLoad\022 .hbase.pb.PrepareBulkLoadR" + "equest\032!.hbase.pb.PrepareBulkLoadRespons" + "e\022e\n\024SecureBulkLoadHFiles\022%.hbase.pb.Sec" + "ureBulkLoadHFilesRequest\032&.hbase.pb.Secu" + "reBulkLoadHFilesResponse\022V\n\017CleanupBulkL" + "oad\022 .hbase.pb.CleanupBulkLoadRequest\032!." + "hbase.pb.CleanupBulkLoadResponseBJ\n*org." + "apache.hadoop.hbase.protobuf.generatedB\024" + "SecureBulkLoadProtosH\001\210\001\001\240\001\001", 948); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "SecureBulkLoad.proto", &protobuf_RegisterTypes); + SecureBulkLoadHFilesRequest::default_instance_ = new SecureBulkLoadHFilesRequest(); + SecureBulkLoadHFilesResponse::default_instance_ = new SecureBulkLoadHFilesResponse(); + DelegationToken::default_instance_ = new DelegationToken(); + PrepareBulkLoadRequest::default_instance_ = new PrepareBulkLoadRequest(); + PrepareBulkLoadResponse::default_instance_ = new PrepareBulkLoadResponse(); + CleanupBulkLoadRequest::default_instance_ = new CleanupBulkLoadRequest(); + CleanupBulkLoadResponse::default_instance_ = new CleanupBulkLoadResponse(); + SecureBulkLoadHFilesRequest::default_instance_->InitAsDefaultInstance(); + SecureBulkLoadHFilesResponse::default_instance_->InitAsDefaultInstance(); + DelegationToken::default_instance_->InitAsDefaultInstance(); + PrepareBulkLoadRequest::default_instance_->InitAsDefaultInstance(); + PrepareBulkLoadResponse::default_instance_->InitAsDefaultInstance(); + CleanupBulkLoadRequest::default_instance_->InitAsDefaultInstance(); + CleanupBulkLoadResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_SecureBulkLoad_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_SecureBulkLoad_2eproto { + StaticDescriptorInitializer_SecureBulkLoad_2eproto() { + protobuf_AddDesc_SecureBulkLoad_2eproto(); + } +} static_descriptor_initializer_SecureBulkLoad_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int SecureBulkLoadHFilesRequest::kFamilyPathFieldNumber; +const int SecureBulkLoadHFilesRequest::kAssignSeqNumFieldNumber; +const int SecureBulkLoadHFilesRequest::kFsTokenFieldNumber; +const int SecureBulkLoadHFilesRequest::kBulkTokenFieldNumber; +#endif // !_MSC_VER + +SecureBulkLoadHFilesRequest::SecureBulkLoadHFilesRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SecureBulkLoadHFilesRequest::InitAsDefaultInstance() { + fs_token_ = const_cast< ::hbase::pb::DelegationToken*>(&::hbase::pb::DelegationToken::default_instance()); +} + +SecureBulkLoadHFilesRequest::SecureBulkLoadHFilesRequest(const SecureBulkLoadHFilesRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SecureBulkLoadHFilesRequest::SharedCtor() { + _cached_size_ = 0; + assign_seq_num_ = false; + fs_token_ = NULL; + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SecureBulkLoadHFilesRequest::~SecureBulkLoadHFilesRequest() { + SharedDtor(); +} + +void SecureBulkLoadHFilesRequest::SharedDtor() { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + delete bulk_token_; + } + if (this != default_instance_) { + delete fs_token_; + } +} + +void SecureBulkLoadHFilesRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SecureBulkLoadHFilesRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SecureBulkLoadHFilesRequest_descriptor_; +} + +const SecureBulkLoadHFilesRequest& SecureBulkLoadHFilesRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_SecureBulkLoad_2eproto(); + return *default_instance_; +} + +SecureBulkLoadHFilesRequest* SecureBulkLoadHFilesRequest::default_instance_ = NULL; + +SecureBulkLoadHFilesRequest* SecureBulkLoadHFilesRequest::New() const { + return new SecureBulkLoadHFilesRequest; +} + +void SecureBulkLoadHFilesRequest::Clear() { + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + assign_seq_num_ = false; + if (has_fs_token()) { + if (fs_token_ != NULL) fs_token_->::hbase::pb::DelegationToken::Clear(); + } + if (has_bulk_token()) { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + bulk_token_->clear(); + } + } + } + family_path_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SecureBulkLoadHFilesRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family_path: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_family_path())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_family_path; + if (input->ExpectTag(16)) goto parse_assign_seq_num; + break; + } + + // optional bool assign_seq_num = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_assign_seq_num: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &assign_seq_num_))); + set_has_assign_seq_num(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_fs_token; + break; + } + + // required .hbase.pb.DelegationToken fs_token = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_fs_token: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_fs_token())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_bulk_token; + break; + } + + // required string bulk_token = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_bulk_token: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_bulk_token())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SecureBulkLoadHFilesRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; + for (int i = 0; i < this->family_path_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->family_path(i), output); + } + + // optional bool assign_seq_num = 2; + if (has_assign_seq_num()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->assign_seq_num(), output); + } + + // required .hbase.pb.DelegationToken fs_token = 3; + if (has_fs_token()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->fs_token(), output); + } + + // required string bulk_token = 4; + if (has_bulk_token()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->bulk_token(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SecureBulkLoadHFilesRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; + for (int i = 0; i < this->family_path_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->family_path(i), target); + } + + // optional bool assign_seq_num = 2; + if (has_assign_seq_num()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->assign_seq_num(), target); + } + + // required .hbase.pb.DelegationToken fs_token = 3; + if (has_fs_token()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->fs_token(), target); + } + + // required string bulk_token = 4; + if (has_bulk_token()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->bulk_token(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SecureBulkLoadHFilesRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { + // optional bool assign_seq_num = 2; + if (has_assign_seq_num()) { + total_size += 1 + 1; + } + + // required .hbase.pb.DelegationToken fs_token = 3; + if (has_fs_token()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->fs_token()); + } + + // required string bulk_token = 4; + if (has_bulk_token()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->bulk_token()); + } + + } + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; + total_size += 1 * this->family_path_size(); + for (int i = 0; i < this->family_path_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->family_path(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SecureBulkLoadHFilesRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SecureBulkLoadHFilesRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SecureBulkLoadHFilesRequest::MergeFrom(const SecureBulkLoadHFilesRequest& from) { + GOOGLE_CHECK_NE(&from, this); + family_path_.MergeFrom(from.family_path_); + if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { + if (from.has_assign_seq_num()) { + set_assign_seq_num(from.assign_seq_num()); + } + if (from.has_fs_token()) { + mutable_fs_token()->::hbase::pb::DelegationToken::MergeFrom(from.fs_token()); + } + if (from.has_bulk_token()) { + set_bulk_token(from.bulk_token()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SecureBulkLoadHFilesRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SecureBulkLoadHFilesRequest::CopyFrom(const SecureBulkLoadHFilesRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SecureBulkLoadHFilesRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000c) != 0x0000000c) return false; + + for (int i = 0; i < family_path_size(); i++) { + if (!this->family_path(i).IsInitialized()) return false; + } + return true; +} + +void SecureBulkLoadHFilesRequest::Swap(SecureBulkLoadHFilesRequest* other) { + if (other != this) { + family_path_.Swap(&other->family_path_); + std::swap(assign_seq_num_, other->assign_seq_num_); + std::swap(fs_token_, other->fs_token_); + std::swap(bulk_token_, other->bulk_token_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SecureBulkLoadHFilesRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SecureBulkLoadHFilesRequest_descriptor_; + metadata.reflection = SecureBulkLoadHFilesRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SecureBulkLoadHFilesResponse::kLoadedFieldNumber; +#endif // !_MSC_VER + +SecureBulkLoadHFilesResponse::SecureBulkLoadHFilesResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SecureBulkLoadHFilesResponse::InitAsDefaultInstance() { +} + +SecureBulkLoadHFilesResponse::SecureBulkLoadHFilesResponse(const SecureBulkLoadHFilesResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SecureBulkLoadHFilesResponse::SharedCtor() { + _cached_size_ = 0; + loaded_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SecureBulkLoadHFilesResponse::~SecureBulkLoadHFilesResponse() { + SharedDtor(); +} + +void SecureBulkLoadHFilesResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void SecureBulkLoadHFilesResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SecureBulkLoadHFilesResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SecureBulkLoadHFilesResponse_descriptor_; +} + +const SecureBulkLoadHFilesResponse& SecureBulkLoadHFilesResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_SecureBulkLoad_2eproto(); + return *default_instance_; +} + +SecureBulkLoadHFilesResponse* SecureBulkLoadHFilesResponse::default_instance_ = NULL; + +SecureBulkLoadHFilesResponse* SecureBulkLoadHFilesResponse::New() const { + return new SecureBulkLoadHFilesResponse; +} + +void SecureBulkLoadHFilesResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + loaded_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SecureBulkLoadHFilesResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bool loaded = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &loaded_))); + set_has_loaded(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SecureBulkLoadHFilesResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bool loaded = 1; + if (has_loaded()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->loaded(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SecureBulkLoadHFilesResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bool loaded = 1; + if (has_loaded()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->loaded(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SecureBulkLoadHFilesResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bool loaded = 1; + if (has_loaded()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SecureBulkLoadHFilesResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SecureBulkLoadHFilesResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SecureBulkLoadHFilesResponse::MergeFrom(const SecureBulkLoadHFilesResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_loaded()) { + set_loaded(from.loaded()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SecureBulkLoadHFilesResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SecureBulkLoadHFilesResponse::CopyFrom(const SecureBulkLoadHFilesResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SecureBulkLoadHFilesResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SecureBulkLoadHFilesResponse::Swap(SecureBulkLoadHFilesResponse* other) { + if (other != this) { + std::swap(loaded_, other->loaded_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SecureBulkLoadHFilesResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SecureBulkLoadHFilesResponse_descriptor_; + metadata.reflection = SecureBulkLoadHFilesResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DelegationToken::kIdentifierFieldNumber; +const int DelegationToken::kPasswordFieldNumber; +const int DelegationToken::kKindFieldNumber; +const int DelegationToken::kServiceFieldNumber; +#endif // !_MSC_VER + +DelegationToken::DelegationToken() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DelegationToken::InitAsDefaultInstance() { +} + +DelegationToken::DelegationToken(const DelegationToken& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DelegationToken::SharedCtor() { + _cached_size_ = 0; + identifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + kind_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + service_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DelegationToken::~DelegationToken() { + SharedDtor(); +} + +void DelegationToken::SharedDtor() { + if (identifier_ != &::google::protobuf::internal::kEmptyString) { + delete identifier_; + } + if (password_ != &::google::protobuf::internal::kEmptyString) { + delete password_; + } + if (kind_ != &::google::protobuf::internal::kEmptyString) { + delete kind_; + } + if (service_ != &::google::protobuf::internal::kEmptyString) { + delete service_; + } + if (this != default_instance_) { + } +} + +void DelegationToken::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DelegationToken::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DelegationToken_descriptor_; +} + +const DelegationToken& DelegationToken::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_SecureBulkLoad_2eproto(); + return *default_instance_; +} + +DelegationToken* DelegationToken::default_instance_ = NULL; + +DelegationToken* DelegationToken::New() const { + return new DelegationToken; +} + +void DelegationToken::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_identifier()) { + if (identifier_ != &::google::protobuf::internal::kEmptyString) { + identifier_->clear(); + } + } + if (has_password()) { + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + } + if (has_kind()) { + if (kind_ != &::google::protobuf::internal::kEmptyString) { + kind_->clear(); + } + } + if (has_service()) { + if (service_ != &::google::protobuf::internal::kEmptyString) { + service_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DelegationToken::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bytes identifier = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_identifier())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_password; + break; + } + + // optional bytes password = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_password: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_password())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_kind; + break; + } + + // optional string kind = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_kind: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_kind())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->kind().data(), this->kind().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_service; + break; + } + + // optional string service = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_service: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_service())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service().data(), this->service().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DelegationToken::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bytes identifier = 1; + if (has_identifier()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->identifier(), output); + } + + // optional bytes password = 2; + if (has_password()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->password(), output); + } + + // optional string kind = 3; + if (has_kind()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->kind().data(), this->kind().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->kind(), output); + } + + // optional string service = 4; + if (has_service()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service().data(), this->service().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->service(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DelegationToken::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bytes identifier = 1; + if (has_identifier()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->identifier(), target); + } + + // optional bytes password = 2; + if (has_password()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->password(), target); + } + + // optional string kind = 3; + if (has_kind()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->kind().data(), this->kind().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->kind(), target); + } + + // optional string service = 4; + if (has_service()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->service().data(), this->service().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->service(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DelegationToken::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bytes identifier = 1; + if (has_identifier()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->identifier()); + } + + // optional bytes password = 2; + if (has_password()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->password()); + } + + // optional string kind = 3; + if (has_kind()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->kind()); + } + + // optional string service = 4; + if (has_service()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->service()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DelegationToken::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DelegationToken* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DelegationToken::MergeFrom(const DelegationToken& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_identifier()) { + set_identifier(from.identifier()); + } + if (from.has_password()) { + set_password(from.password()); + } + if (from.has_kind()) { + set_kind(from.kind()); + } + if (from.has_service()) { + set_service(from.service()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DelegationToken::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DelegationToken::CopyFrom(const DelegationToken& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DelegationToken::IsInitialized() const { + + return true; +} + +void DelegationToken::Swap(DelegationToken* other) { + if (other != this) { + std::swap(identifier_, other->identifier_); + std::swap(password_, other->password_); + std::swap(kind_, other->kind_); + std::swap(service_, other->service_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DelegationToken::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DelegationToken_descriptor_; + metadata.reflection = DelegationToken_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PrepareBulkLoadRequest::kTableNameFieldNumber; +#endif // !_MSC_VER + +PrepareBulkLoadRequest::PrepareBulkLoadRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PrepareBulkLoadRequest::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +PrepareBulkLoadRequest::PrepareBulkLoadRequest(const PrepareBulkLoadRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PrepareBulkLoadRequest::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PrepareBulkLoadRequest::~PrepareBulkLoadRequest() { + SharedDtor(); +} + +void PrepareBulkLoadRequest::SharedDtor() { + if (this != default_instance_) { + delete table_name_; + } +} + +void PrepareBulkLoadRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PrepareBulkLoadRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PrepareBulkLoadRequest_descriptor_; +} + +const PrepareBulkLoadRequest& PrepareBulkLoadRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_SecureBulkLoad_2eproto(); + return *default_instance_; +} + +PrepareBulkLoadRequest* PrepareBulkLoadRequest::default_instance_ = NULL; + +PrepareBulkLoadRequest* PrepareBulkLoadRequest::New() const { + return new PrepareBulkLoadRequest; +} + +void PrepareBulkLoadRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PrepareBulkLoadRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PrepareBulkLoadRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PrepareBulkLoadRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PrepareBulkLoadRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PrepareBulkLoadRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PrepareBulkLoadRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PrepareBulkLoadRequest::MergeFrom(const PrepareBulkLoadRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PrepareBulkLoadRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PrepareBulkLoadRequest::CopyFrom(const PrepareBulkLoadRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PrepareBulkLoadRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + return true; +} + +void PrepareBulkLoadRequest::Swap(PrepareBulkLoadRequest* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PrepareBulkLoadRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PrepareBulkLoadRequest_descriptor_; + metadata.reflection = PrepareBulkLoadRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PrepareBulkLoadResponse::kBulkTokenFieldNumber; +#endif // !_MSC_VER + +PrepareBulkLoadResponse::PrepareBulkLoadResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PrepareBulkLoadResponse::InitAsDefaultInstance() { +} + +PrepareBulkLoadResponse::PrepareBulkLoadResponse(const PrepareBulkLoadResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PrepareBulkLoadResponse::SharedCtor() { + _cached_size_ = 0; + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PrepareBulkLoadResponse::~PrepareBulkLoadResponse() { + SharedDtor(); +} + +void PrepareBulkLoadResponse::SharedDtor() { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + delete bulk_token_; + } + if (this != default_instance_) { + } +} + +void PrepareBulkLoadResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PrepareBulkLoadResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PrepareBulkLoadResponse_descriptor_; +} + +const PrepareBulkLoadResponse& PrepareBulkLoadResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_SecureBulkLoad_2eproto(); + return *default_instance_; +} + +PrepareBulkLoadResponse* PrepareBulkLoadResponse::default_instance_ = NULL; + +PrepareBulkLoadResponse* PrepareBulkLoadResponse::New() const { + return new PrepareBulkLoadResponse; +} + +void PrepareBulkLoadResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_bulk_token()) { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + bulk_token_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PrepareBulkLoadResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string bulk_token = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_bulk_token())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PrepareBulkLoadResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string bulk_token = 1; + if (has_bulk_token()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->bulk_token(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PrepareBulkLoadResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string bulk_token = 1; + if (has_bulk_token()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->bulk_token(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PrepareBulkLoadResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string bulk_token = 1; + if (has_bulk_token()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->bulk_token()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PrepareBulkLoadResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PrepareBulkLoadResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PrepareBulkLoadResponse::MergeFrom(const PrepareBulkLoadResponse& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_bulk_token()) { + set_bulk_token(from.bulk_token()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PrepareBulkLoadResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PrepareBulkLoadResponse::CopyFrom(const PrepareBulkLoadResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PrepareBulkLoadResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void PrepareBulkLoadResponse::Swap(PrepareBulkLoadResponse* other) { + if (other != this) { + std::swap(bulk_token_, other->bulk_token_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PrepareBulkLoadResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PrepareBulkLoadResponse_descriptor_; + metadata.reflection = PrepareBulkLoadResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CleanupBulkLoadRequest::kBulkTokenFieldNumber; +#endif // !_MSC_VER + +CleanupBulkLoadRequest::CleanupBulkLoadRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CleanupBulkLoadRequest::InitAsDefaultInstance() { +} + +CleanupBulkLoadRequest::CleanupBulkLoadRequest(const CleanupBulkLoadRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CleanupBulkLoadRequest::SharedCtor() { + _cached_size_ = 0; + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CleanupBulkLoadRequest::~CleanupBulkLoadRequest() { + SharedDtor(); +} + +void CleanupBulkLoadRequest::SharedDtor() { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + delete bulk_token_; + } + if (this != default_instance_) { + } +} + +void CleanupBulkLoadRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CleanupBulkLoadRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CleanupBulkLoadRequest_descriptor_; +} + +const CleanupBulkLoadRequest& CleanupBulkLoadRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_SecureBulkLoad_2eproto(); + return *default_instance_; +} + +CleanupBulkLoadRequest* CleanupBulkLoadRequest::default_instance_ = NULL; + +CleanupBulkLoadRequest* CleanupBulkLoadRequest::New() const { + return new CleanupBulkLoadRequest; +} + +void CleanupBulkLoadRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_bulk_token()) { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + bulk_token_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CleanupBulkLoadRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string bulk_token = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_bulk_token())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CleanupBulkLoadRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string bulk_token = 1; + if (has_bulk_token()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->bulk_token(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CleanupBulkLoadRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string bulk_token = 1; + if (has_bulk_token()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->bulk_token().data(), this->bulk_token().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->bulk_token(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CleanupBulkLoadRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string bulk_token = 1; + if (has_bulk_token()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->bulk_token()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CleanupBulkLoadRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CleanupBulkLoadRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CleanupBulkLoadRequest::MergeFrom(const CleanupBulkLoadRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_bulk_token()) { + set_bulk_token(from.bulk_token()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CleanupBulkLoadRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CleanupBulkLoadRequest::CopyFrom(const CleanupBulkLoadRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CleanupBulkLoadRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void CleanupBulkLoadRequest::Swap(CleanupBulkLoadRequest* other) { + if (other != this) { + std::swap(bulk_token_, other->bulk_token_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CleanupBulkLoadRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CleanupBulkLoadRequest_descriptor_; + metadata.reflection = CleanupBulkLoadRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +CleanupBulkLoadResponse::CleanupBulkLoadResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CleanupBulkLoadResponse::InitAsDefaultInstance() { +} + +CleanupBulkLoadResponse::CleanupBulkLoadResponse(const CleanupBulkLoadResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CleanupBulkLoadResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CleanupBulkLoadResponse::~CleanupBulkLoadResponse() { + SharedDtor(); +} + +void CleanupBulkLoadResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void CleanupBulkLoadResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CleanupBulkLoadResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CleanupBulkLoadResponse_descriptor_; +} + +const CleanupBulkLoadResponse& CleanupBulkLoadResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_SecureBulkLoad_2eproto(); + return *default_instance_; +} + +CleanupBulkLoadResponse* CleanupBulkLoadResponse::default_instance_ = NULL; + +CleanupBulkLoadResponse* CleanupBulkLoadResponse::New() const { + return new CleanupBulkLoadResponse; +} + +void CleanupBulkLoadResponse::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CleanupBulkLoadResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void CleanupBulkLoadResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CleanupBulkLoadResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CleanupBulkLoadResponse::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CleanupBulkLoadResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CleanupBulkLoadResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CleanupBulkLoadResponse::MergeFrom(const CleanupBulkLoadResponse& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CleanupBulkLoadResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CleanupBulkLoadResponse::CopyFrom(const CleanupBulkLoadResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CleanupBulkLoadResponse::IsInitialized() const { + + return true; +} + +void CleanupBulkLoadResponse::Swap(CleanupBulkLoadResponse* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CleanupBulkLoadResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CleanupBulkLoadResponse_descriptor_; + metadata.reflection = CleanupBulkLoadResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/SecureBulkLoad.pb.h b/hbase-native-client/src/rpc/generated/SecureBulkLoad.pb.h new file mode 100644 index 0000000..90d4dfc --- /dev/null +++ b/hbase-native-client/src/rpc/generated/SecureBulkLoad.pb.h @@ -0,0 +1,1396 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SecureBulkLoad.proto + +#ifndef PROTOBUF_SecureBulkLoad_2eproto__INCLUDED +#define PROTOBUF_SecureBulkLoad_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "Client.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_SecureBulkLoad_2eproto(); +void protobuf_AssignDesc_SecureBulkLoad_2eproto(); +void protobuf_ShutdownFile_SecureBulkLoad_2eproto(); + +class SecureBulkLoadHFilesRequest; +class SecureBulkLoadHFilesResponse; +class DelegationToken; +class PrepareBulkLoadRequest; +class PrepareBulkLoadResponse; +class CleanupBulkLoadRequest; +class CleanupBulkLoadResponse; + +// =================================================================== + +class SecureBulkLoadHFilesRequest : public ::google::protobuf::Message { + public: + SecureBulkLoadHFilesRequest(); + virtual ~SecureBulkLoadHFilesRequest(); + + SecureBulkLoadHFilesRequest(const SecureBulkLoadHFilesRequest& from); + + inline SecureBulkLoadHFilesRequest& operator=(const SecureBulkLoadHFilesRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SecureBulkLoadHFilesRequest& default_instance(); + + void Swap(SecureBulkLoadHFilesRequest* other); + + // implements Message ---------------------------------------------- + + SecureBulkLoadHFilesRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SecureBulkLoadHFilesRequest& from); + void MergeFrom(const SecureBulkLoadHFilesRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; + inline int family_path_size() const; + inline void clear_family_path(); + static const int kFamilyPathFieldNumber = 1; + inline const ::hbase::pb::BulkLoadHFileRequest_FamilyPath& family_path(int index) const; + inline ::hbase::pb::BulkLoadHFileRequest_FamilyPath* mutable_family_path(int index); + inline ::hbase::pb::BulkLoadHFileRequest_FamilyPath* add_family_path(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath >& + family_path() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath >* + mutable_family_path(); + + // optional bool assign_seq_num = 2; + inline bool has_assign_seq_num() const; + inline void clear_assign_seq_num(); + static const int kAssignSeqNumFieldNumber = 2; + inline bool assign_seq_num() const; + inline void set_assign_seq_num(bool value); + + // required .hbase.pb.DelegationToken fs_token = 3; + inline bool has_fs_token() const; + inline void clear_fs_token(); + static const int kFsTokenFieldNumber = 3; + inline const ::hbase::pb::DelegationToken& fs_token() const; + inline ::hbase::pb::DelegationToken* mutable_fs_token(); + inline ::hbase::pb::DelegationToken* release_fs_token(); + inline void set_allocated_fs_token(::hbase::pb::DelegationToken* fs_token); + + // required string bulk_token = 4; + inline bool has_bulk_token() const; + inline void clear_bulk_token(); + static const int kBulkTokenFieldNumber = 4; + inline const ::std::string& bulk_token() const; + inline void set_bulk_token(const ::std::string& value); + inline void set_bulk_token(const char* value); + inline void set_bulk_token(const char* value, size_t size); + inline ::std::string* mutable_bulk_token(); + inline ::std::string* release_bulk_token(); + inline void set_allocated_bulk_token(::std::string* bulk_token); + + // @@protoc_insertion_point(class_scope:hbase.pb.SecureBulkLoadHFilesRequest) + private: + inline void set_has_assign_seq_num(); + inline void clear_has_assign_seq_num(); + inline void set_has_fs_token(); + inline void clear_has_fs_token(); + inline void set_has_bulk_token(); + inline void clear_has_bulk_token(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath > family_path_; + ::hbase::pb::DelegationToken* fs_token_; + ::std::string* bulk_token_; + bool assign_seq_num_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_SecureBulkLoad_2eproto(); + friend void protobuf_AssignDesc_SecureBulkLoad_2eproto(); + friend void protobuf_ShutdownFile_SecureBulkLoad_2eproto(); + + void InitAsDefaultInstance(); + static SecureBulkLoadHFilesRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SecureBulkLoadHFilesResponse : public ::google::protobuf::Message { + public: + SecureBulkLoadHFilesResponse(); + virtual ~SecureBulkLoadHFilesResponse(); + + SecureBulkLoadHFilesResponse(const SecureBulkLoadHFilesResponse& from); + + inline SecureBulkLoadHFilesResponse& operator=(const SecureBulkLoadHFilesResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SecureBulkLoadHFilesResponse& default_instance(); + + void Swap(SecureBulkLoadHFilesResponse* other); + + // implements Message ---------------------------------------------- + + SecureBulkLoadHFilesResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SecureBulkLoadHFilesResponse& from); + void MergeFrom(const SecureBulkLoadHFilesResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bool loaded = 1; + inline bool has_loaded() const; + inline void clear_loaded(); + static const int kLoadedFieldNumber = 1; + inline bool loaded() const; + inline void set_loaded(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SecureBulkLoadHFilesResponse) + private: + inline void set_has_loaded(); + inline void clear_has_loaded(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool loaded_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_SecureBulkLoad_2eproto(); + friend void protobuf_AssignDesc_SecureBulkLoad_2eproto(); + friend void protobuf_ShutdownFile_SecureBulkLoad_2eproto(); + + void InitAsDefaultInstance(); + static SecureBulkLoadHFilesResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class DelegationToken : public ::google::protobuf::Message { + public: + DelegationToken(); + virtual ~DelegationToken(); + + DelegationToken(const DelegationToken& from); + + inline DelegationToken& operator=(const DelegationToken& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DelegationToken& default_instance(); + + void Swap(DelegationToken* other); + + // implements Message ---------------------------------------------- + + DelegationToken* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DelegationToken& from); + void MergeFrom(const DelegationToken& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bytes identifier = 1; + inline bool has_identifier() const; + inline void clear_identifier(); + static const int kIdentifierFieldNumber = 1; + inline const ::std::string& identifier() const; + inline void set_identifier(const ::std::string& value); + inline void set_identifier(const char* value); + inline void set_identifier(const void* value, size_t size); + inline ::std::string* mutable_identifier(); + inline ::std::string* release_identifier(); + inline void set_allocated_identifier(::std::string* identifier); + + // optional bytes password = 2; + inline bool has_password() const; + inline void clear_password(); + static const int kPasswordFieldNumber = 2; + inline const ::std::string& password() const; + inline void set_password(const ::std::string& value); + inline void set_password(const char* value); + inline void set_password(const void* value, size_t size); + inline ::std::string* mutable_password(); + inline ::std::string* release_password(); + inline void set_allocated_password(::std::string* password); + + // optional string kind = 3; + inline bool has_kind() const; + inline void clear_kind(); + static const int kKindFieldNumber = 3; + inline const ::std::string& kind() const; + inline void set_kind(const ::std::string& value); + inline void set_kind(const char* value); + inline void set_kind(const char* value, size_t size); + inline ::std::string* mutable_kind(); + inline ::std::string* release_kind(); + inline void set_allocated_kind(::std::string* kind); + + // optional string service = 4; + inline bool has_service() const; + inline void clear_service(); + static const int kServiceFieldNumber = 4; + inline const ::std::string& service() const; + inline void set_service(const ::std::string& value); + inline void set_service(const char* value); + inline void set_service(const char* value, size_t size); + inline ::std::string* mutable_service(); + inline ::std::string* release_service(); + inline void set_allocated_service(::std::string* service); + + // @@protoc_insertion_point(class_scope:hbase.pb.DelegationToken) + private: + inline void set_has_identifier(); + inline void clear_has_identifier(); + inline void set_has_password(); + inline void clear_has_password(); + inline void set_has_kind(); + inline void clear_has_kind(); + inline void set_has_service(); + inline void clear_has_service(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* identifier_; + ::std::string* password_; + ::std::string* kind_; + ::std::string* service_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_SecureBulkLoad_2eproto(); + friend void protobuf_AssignDesc_SecureBulkLoad_2eproto(); + friend void protobuf_ShutdownFile_SecureBulkLoad_2eproto(); + + void InitAsDefaultInstance(); + static DelegationToken* default_instance_; +}; +// ------------------------------------------------------------------- + +class PrepareBulkLoadRequest : public ::google::protobuf::Message { + public: + PrepareBulkLoadRequest(); + virtual ~PrepareBulkLoadRequest(); + + PrepareBulkLoadRequest(const PrepareBulkLoadRequest& from); + + inline PrepareBulkLoadRequest& operator=(const PrepareBulkLoadRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PrepareBulkLoadRequest& default_instance(); + + void Swap(PrepareBulkLoadRequest* other); + + // implements Message ---------------------------------------------- + + PrepareBulkLoadRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PrepareBulkLoadRequest& from); + void MergeFrom(const PrepareBulkLoadRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.PrepareBulkLoadRequest) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_SecureBulkLoad_2eproto(); + friend void protobuf_AssignDesc_SecureBulkLoad_2eproto(); + friend void protobuf_ShutdownFile_SecureBulkLoad_2eproto(); + + void InitAsDefaultInstance(); + static PrepareBulkLoadRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class PrepareBulkLoadResponse : public ::google::protobuf::Message { + public: + PrepareBulkLoadResponse(); + virtual ~PrepareBulkLoadResponse(); + + PrepareBulkLoadResponse(const PrepareBulkLoadResponse& from); + + inline PrepareBulkLoadResponse& operator=(const PrepareBulkLoadResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PrepareBulkLoadResponse& default_instance(); + + void Swap(PrepareBulkLoadResponse* other); + + // implements Message ---------------------------------------------- + + PrepareBulkLoadResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PrepareBulkLoadResponse& from); + void MergeFrom(const PrepareBulkLoadResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string bulk_token = 1; + inline bool has_bulk_token() const; + inline void clear_bulk_token(); + static const int kBulkTokenFieldNumber = 1; + inline const ::std::string& bulk_token() const; + inline void set_bulk_token(const ::std::string& value); + inline void set_bulk_token(const char* value); + inline void set_bulk_token(const char* value, size_t size); + inline ::std::string* mutable_bulk_token(); + inline ::std::string* release_bulk_token(); + inline void set_allocated_bulk_token(::std::string* bulk_token); + + // @@protoc_insertion_point(class_scope:hbase.pb.PrepareBulkLoadResponse) + private: + inline void set_has_bulk_token(); + inline void clear_has_bulk_token(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* bulk_token_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_SecureBulkLoad_2eproto(); + friend void protobuf_AssignDesc_SecureBulkLoad_2eproto(); + friend void protobuf_ShutdownFile_SecureBulkLoad_2eproto(); + + void InitAsDefaultInstance(); + static PrepareBulkLoadResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class CleanupBulkLoadRequest : public ::google::protobuf::Message { + public: + CleanupBulkLoadRequest(); + virtual ~CleanupBulkLoadRequest(); + + CleanupBulkLoadRequest(const CleanupBulkLoadRequest& from); + + inline CleanupBulkLoadRequest& operator=(const CleanupBulkLoadRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CleanupBulkLoadRequest& default_instance(); + + void Swap(CleanupBulkLoadRequest* other); + + // implements Message ---------------------------------------------- + + CleanupBulkLoadRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CleanupBulkLoadRequest& from); + void MergeFrom(const CleanupBulkLoadRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string bulk_token = 1; + inline bool has_bulk_token() const; + inline void clear_bulk_token(); + static const int kBulkTokenFieldNumber = 1; + inline const ::std::string& bulk_token() const; + inline void set_bulk_token(const ::std::string& value); + inline void set_bulk_token(const char* value); + inline void set_bulk_token(const char* value, size_t size); + inline ::std::string* mutable_bulk_token(); + inline ::std::string* release_bulk_token(); + inline void set_allocated_bulk_token(::std::string* bulk_token); + + // @@protoc_insertion_point(class_scope:hbase.pb.CleanupBulkLoadRequest) + private: + inline void set_has_bulk_token(); + inline void clear_has_bulk_token(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* bulk_token_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_SecureBulkLoad_2eproto(); + friend void protobuf_AssignDesc_SecureBulkLoad_2eproto(); + friend void protobuf_ShutdownFile_SecureBulkLoad_2eproto(); + + void InitAsDefaultInstance(); + static CleanupBulkLoadRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class CleanupBulkLoadResponse : public ::google::protobuf::Message { + public: + CleanupBulkLoadResponse(); + virtual ~CleanupBulkLoadResponse(); + + CleanupBulkLoadResponse(const CleanupBulkLoadResponse& from); + + inline CleanupBulkLoadResponse& operator=(const CleanupBulkLoadResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CleanupBulkLoadResponse& default_instance(); + + void Swap(CleanupBulkLoadResponse* other); + + // implements Message ---------------------------------------------- + + CleanupBulkLoadResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CleanupBulkLoadResponse& from); + void MergeFrom(const CleanupBulkLoadResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.CleanupBulkLoadResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_SecureBulkLoad_2eproto(); + friend void protobuf_AssignDesc_SecureBulkLoad_2eproto(); + friend void protobuf_ShutdownFile_SecureBulkLoad_2eproto(); + + void InitAsDefaultInstance(); + static CleanupBulkLoadResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// SecureBulkLoadHFilesRequest + +// repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; +inline int SecureBulkLoadHFilesRequest::family_path_size() const { + return family_path_.size(); +} +inline void SecureBulkLoadHFilesRequest::clear_family_path() { + family_path_.Clear(); +} +inline const ::hbase::pb::BulkLoadHFileRequest_FamilyPath& SecureBulkLoadHFilesRequest::family_path(int index) const { + return family_path_.Get(index); +} +inline ::hbase::pb::BulkLoadHFileRequest_FamilyPath* SecureBulkLoadHFilesRequest::mutable_family_path(int index) { + return family_path_.Mutable(index); +} +inline ::hbase::pb::BulkLoadHFileRequest_FamilyPath* SecureBulkLoadHFilesRequest::add_family_path() { + return family_path_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath >& +SecureBulkLoadHFilesRequest::family_path() const { + return family_path_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BulkLoadHFileRequest_FamilyPath >* +SecureBulkLoadHFilesRequest::mutable_family_path() { + return &family_path_; +} + +// optional bool assign_seq_num = 2; +inline bool SecureBulkLoadHFilesRequest::has_assign_seq_num() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SecureBulkLoadHFilesRequest::set_has_assign_seq_num() { + _has_bits_[0] |= 0x00000002u; +} +inline void SecureBulkLoadHFilesRequest::clear_has_assign_seq_num() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SecureBulkLoadHFilesRequest::clear_assign_seq_num() { + assign_seq_num_ = false; + clear_has_assign_seq_num(); +} +inline bool SecureBulkLoadHFilesRequest::assign_seq_num() const { + return assign_seq_num_; +} +inline void SecureBulkLoadHFilesRequest::set_assign_seq_num(bool value) { + set_has_assign_seq_num(); + assign_seq_num_ = value; +} + +// required .hbase.pb.DelegationToken fs_token = 3; +inline bool SecureBulkLoadHFilesRequest::has_fs_token() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SecureBulkLoadHFilesRequest::set_has_fs_token() { + _has_bits_[0] |= 0x00000004u; +} +inline void SecureBulkLoadHFilesRequest::clear_has_fs_token() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SecureBulkLoadHFilesRequest::clear_fs_token() { + if (fs_token_ != NULL) fs_token_->::hbase::pb::DelegationToken::Clear(); + clear_has_fs_token(); +} +inline const ::hbase::pb::DelegationToken& SecureBulkLoadHFilesRequest::fs_token() const { + return fs_token_ != NULL ? *fs_token_ : *default_instance_->fs_token_; +} +inline ::hbase::pb::DelegationToken* SecureBulkLoadHFilesRequest::mutable_fs_token() { + set_has_fs_token(); + if (fs_token_ == NULL) fs_token_ = new ::hbase::pb::DelegationToken; + return fs_token_; +} +inline ::hbase::pb::DelegationToken* SecureBulkLoadHFilesRequest::release_fs_token() { + clear_has_fs_token(); + ::hbase::pb::DelegationToken* temp = fs_token_; + fs_token_ = NULL; + return temp; +} +inline void SecureBulkLoadHFilesRequest::set_allocated_fs_token(::hbase::pb::DelegationToken* fs_token) { + delete fs_token_; + fs_token_ = fs_token; + if (fs_token) { + set_has_fs_token(); + } else { + clear_has_fs_token(); + } +} + +// required string bulk_token = 4; +inline bool SecureBulkLoadHFilesRequest::has_bulk_token() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void SecureBulkLoadHFilesRequest::set_has_bulk_token() { + _has_bits_[0] |= 0x00000008u; +} +inline void SecureBulkLoadHFilesRequest::clear_has_bulk_token() { + _has_bits_[0] &= ~0x00000008u; +} +inline void SecureBulkLoadHFilesRequest::clear_bulk_token() { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + bulk_token_->clear(); + } + clear_has_bulk_token(); +} +inline const ::std::string& SecureBulkLoadHFilesRequest::bulk_token() const { + return *bulk_token_; +} +inline void SecureBulkLoadHFilesRequest::set_bulk_token(const ::std::string& value) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(value); +} +inline void SecureBulkLoadHFilesRequest::set_bulk_token(const char* value) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(value); +} +inline void SecureBulkLoadHFilesRequest::set_bulk_token(const char* value, size_t size) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SecureBulkLoadHFilesRequest::mutable_bulk_token() { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + return bulk_token_; +} +inline ::std::string* SecureBulkLoadHFilesRequest::release_bulk_token() { + clear_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = bulk_token_; + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SecureBulkLoadHFilesRequest::set_allocated_bulk_token(::std::string* bulk_token) { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + delete bulk_token_; + } + if (bulk_token) { + set_has_bulk_token(); + bulk_token_ = bulk_token; + } else { + clear_has_bulk_token(); + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// SecureBulkLoadHFilesResponse + +// required bool loaded = 1; +inline bool SecureBulkLoadHFilesResponse::has_loaded() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SecureBulkLoadHFilesResponse::set_has_loaded() { + _has_bits_[0] |= 0x00000001u; +} +inline void SecureBulkLoadHFilesResponse::clear_has_loaded() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SecureBulkLoadHFilesResponse::clear_loaded() { + loaded_ = false; + clear_has_loaded(); +} +inline bool SecureBulkLoadHFilesResponse::loaded() const { + return loaded_; +} +inline void SecureBulkLoadHFilesResponse::set_loaded(bool value) { + set_has_loaded(); + loaded_ = value; +} + +// ------------------------------------------------------------------- + +// DelegationToken + +// optional bytes identifier = 1; +inline bool DelegationToken::has_identifier() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DelegationToken::set_has_identifier() { + _has_bits_[0] |= 0x00000001u; +} +inline void DelegationToken::clear_has_identifier() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DelegationToken::clear_identifier() { + if (identifier_ != &::google::protobuf::internal::kEmptyString) { + identifier_->clear(); + } + clear_has_identifier(); +} +inline const ::std::string& DelegationToken::identifier() const { + return *identifier_; +} +inline void DelegationToken::set_identifier(const ::std::string& value) { + set_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + identifier_ = new ::std::string; + } + identifier_->assign(value); +} +inline void DelegationToken::set_identifier(const char* value) { + set_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + identifier_ = new ::std::string; + } + identifier_->assign(value); +} +inline void DelegationToken::set_identifier(const void* value, size_t size) { + set_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + identifier_ = new ::std::string; + } + identifier_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DelegationToken::mutable_identifier() { + set_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + identifier_ = new ::std::string; + } + return identifier_; +} +inline ::std::string* DelegationToken::release_identifier() { + clear_has_identifier(); + if (identifier_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = identifier_; + identifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DelegationToken::set_allocated_identifier(::std::string* identifier) { + if (identifier_ != &::google::protobuf::internal::kEmptyString) { + delete identifier_; + } + if (identifier) { + set_has_identifier(); + identifier_ = identifier; + } else { + clear_has_identifier(); + identifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes password = 2; +inline bool DelegationToken::has_password() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DelegationToken::set_has_password() { + _has_bits_[0] |= 0x00000002u; +} +inline void DelegationToken::clear_has_password() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DelegationToken::clear_password() { + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + clear_has_password(); +} +inline const ::std::string& DelegationToken::password() const { + return *password_; +} +inline void DelegationToken::set_password(const ::std::string& value) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); +} +inline void DelegationToken::set_password(const char* value) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); +} +inline void DelegationToken::set_password(const void* value, size_t size) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DelegationToken::mutable_password() { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + return password_; +} +inline ::std::string* DelegationToken::release_password() { + clear_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = password_; + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DelegationToken::set_allocated_password(::std::string* password) { + if (password_ != &::google::protobuf::internal::kEmptyString) { + delete password_; + } + if (password) { + set_has_password(); + password_ = password; + } else { + clear_has_password(); + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string kind = 3; +inline bool DelegationToken::has_kind() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DelegationToken::set_has_kind() { + _has_bits_[0] |= 0x00000004u; +} +inline void DelegationToken::clear_has_kind() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DelegationToken::clear_kind() { + if (kind_ != &::google::protobuf::internal::kEmptyString) { + kind_->clear(); + } + clear_has_kind(); +} +inline const ::std::string& DelegationToken::kind() const { + return *kind_; +} +inline void DelegationToken::set_kind(const ::std::string& value) { + set_has_kind(); + if (kind_ == &::google::protobuf::internal::kEmptyString) { + kind_ = new ::std::string; + } + kind_->assign(value); +} +inline void DelegationToken::set_kind(const char* value) { + set_has_kind(); + if (kind_ == &::google::protobuf::internal::kEmptyString) { + kind_ = new ::std::string; + } + kind_->assign(value); +} +inline void DelegationToken::set_kind(const char* value, size_t size) { + set_has_kind(); + if (kind_ == &::google::protobuf::internal::kEmptyString) { + kind_ = new ::std::string; + } + kind_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DelegationToken::mutable_kind() { + set_has_kind(); + if (kind_ == &::google::protobuf::internal::kEmptyString) { + kind_ = new ::std::string; + } + return kind_; +} +inline ::std::string* DelegationToken::release_kind() { + clear_has_kind(); + if (kind_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = kind_; + kind_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DelegationToken::set_allocated_kind(::std::string* kind) { + if (kind_ != &::google::protobuf::internal::kEmptyString) { + delete kind_; + } + if (kind) { + set_has_kind(); + kind_ = kind; + } else { + clear_has_kind(); + kind_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string service = 4; +inline bool DelegationToken::has_service() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DelegationToken::set_has_service() { + _has_bits_[0] |= 0x00000008u; +} +inline void DelegationToken::clear_has_service() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DelegationToken::clear_service() { + if (service_ != &::google::protobuf::internal::kEmptyString) { + service_->clear(); + } + clear_has_service(); +} +inline const ::std::string& DelegationToken::service() const { + return *service_; +} +inline void DelegationToken::set_service(const ::std::string& value) { + set_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + service_ = new ::std::string; + } + service_->assign(value); +} +inline void DelegationToken::set_service(const char* value) { + set_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + service_ = new ::std::string; + } + service_->assign(value); +} +inline void DelegationToken::set_service(const char* value, size_t size) { + set_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + service_ = new ::std::string; + } + service_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DelegationToken::mutable_service() { + set_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + service_ = new ::std::string; + } + return service_; +} +inline ::std::string* DelegationToken::release_service() { + clear_has_service(); + if (service_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = service_; + service_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void DelegationToken::set_allocated_service(::std::string* service) { + if (service_ != &::google::protobuf::internal::kEmptyString) { + delete service_; + } + if (service) { + set_has_service(); + service_ = service; + } else { + clear_has_service(); + service_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// PrepareBulkLoadRequest + +// required .hbase.pb.TableName table_name = 1; +inline bool PrepareBulkLoadRequest::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PrepareBulkLoadRequest::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void PrepareBulkLoadRequest::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PrepareBulkLoadRequest::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& PrepareBulkLoadRequest::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* PrepareBulkLoadRequest::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* PrepareBulkLoadRequest::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void PrepareBulkLoadRequest::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// ------------------------------------------------------------------- + +// PrepareBulkLoadResponse + +// required string bulk_token = 1; +inline bool PrepareBulkLoadResponse::has_bulk_token() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PrepareBulkLoadResponse::set_has_bulk_token() { + _has_bits_[0] |= 0x00000001u; +} +inline void PrepareBulkLoadResponse::clear_has_bulk_token() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PrepareBulkLoadResponse::clear_bulk_token() { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + bulk_token_->clear(); + } + clear_has_bulk_token(); +} +inline const ::std::string& PrepareBulkLoadResponse::bulk_token() const { + return *bulk_token_; +} +inline void PrepareBulkLoadResponse::set_bulk_token(const ::std::string& value) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(value); +} +inline void PrepareBulkLoadResponse::set_bulk_token(const char* value) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(value); +} +inline void PrepareBulkLoadResponse::set_bulk_token(const char* value, size_t size) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(reinterpret_cast(value), size); +} +inline ::std::string* PrepareBulkLoadResponse::mutable_bulk_token() { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + return bulk_token_; +} +inline ::std::string* PrepareBulkLoadResponse::release_bulk_token() { + clear_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = bulk_token_; + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void PrepareBulkLoadResponse::set_allocated_bulk_token(::std::string* bulk_token) { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + delete bulk_token_; + } + if (bulk_token) { + set_has_bulk_token(); + bulk_token_ = bulk_token; + } else { + clear_has_bulk_token(); + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// CleanupBulkLoadRequest + +// required string bulk_token = 1; +inline bool CleanupBulkLoadRequest::has_bulk_token() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CleanupBulkLoadRequest::set_has_bulk_token() { + _has_bits_[0] |= 0x00000001u; +} +inline void CleanupBulkLoadRequest::clear_has_bulk_token() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CleanupBulkLoadRequest::clear_bulk_token() { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + bulk_token_->clear(); + } + clear_has_bulk_token(); +} +inline const ::std::string& CleanupBulkLoadRequest::bulk_token() const { + return *bulk_token_; +} +inline void CleanupBulkLoadRequest::set_bulk_token(const ::std::string& value) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(value); +} +inline void CleanupBulkLoadRequest::set_bulk_token(const char* value) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(value); +} +inline void CleanupBulkLoadRequest::set_bulk_token(const char* value, size_t size) { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + bulk_token_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CleanupBulkLoadRequest::mutable_bulk_token() { + set_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + bulk_token_ = new ::std::string; + } + return bulk_token_; +} +inline ::std::string* CleanupBulkLoadRequest::release_bulk_token() { + clear_has_bulk_token(); + if (bulk_token_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = bulk_token_; + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CleanupBulkLoadRequest::set_allocated_bulk_token(::std::string* bulk_token) { + if (bulk_token_ != &::google::protobuf::internal::kEmptyString) { + delete bulk_token_; + } + if (bulk_token) { + set_has_bulk_token(); + bulk_token_ = bulk_token; + } else { + clear_has_bulk_token(); + bulk_token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// CleanupBulkLoadResponse + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_SecureBulkLoad_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Snapshot.pb.cc b/hbase-native-client/src/rpc/generated/Snapshot.pb.cc new file mode 100644 index 0000000..d6308a8 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Snapshot.pb.cc @@ -0,0 +1,1770 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Snapshot.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Snapshot.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* SnapshotFileInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SnapshotFileInfo_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* SnapshotFileInfo_Type_descriptor_ = NULL; +const ::google::protobuf::Descriptor* SnapshotRegionManifest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SnapshotRegionManifest_reflection_ = NULL; +const ::google::protobuf::Descriptor* SnapshotRegionManifest_StoreFile_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SnapshotRegionManifest_StoreFile_reflection_ = NULL; +const ::google::protobuf::Descriptor* SnapshotRegionManifest_FamilyFiles_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SnapshotRegionManifest_FamilyFiles_reflection_ = NULL; +const ::google::protobuf::Descriptor* SnapshotDataManifest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SnapshotDataManifest_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Snapshot_2eproto() { + protobuf_AddDesc_Snapshot_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Snapshot.proto"); + GOOGLE_CHECK(file != NULL); + SnapshotFileInfo_descriptor_ = file->message_type(0); + static const int SnapshotFileInfo_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotFileInfo, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotFileInfo, hfile_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotFileInfo, wal_server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotFileInfo, wal_name_), + }; + SnapshotFileInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SnapshotFileInfo_descriptor_, + SnapshotFileInfo::default_instance_, + SnapshotFileInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotFileInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotFileInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SnapshotFileInfo)); + SnapshotFileInfo_Type_descriptor_ = SnapshotFileInfo_descriptor_->enum_type(0); + SnapshotRegionManifest_descriptor_ = file->message_type(1); + static const int SnapshotRegionManifest_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest, region_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest, family_files_), + }; + SnapshotRegionManifest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SnapshotRegionManifest_descriptor_, + SnapshotRegionManifest::default_instance_, + SnapshotRegionManifest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SnapshotRegionManifest)); + SnapshotRegionManifest_StoreFile_descriptor_ = SnapshotRegionManifest_descriptor_->nested_type(0); + static const int SnapshotRegionManifest_StoreFile_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_StoreFile, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_StoreFile, reference_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_StoreFile, file_size_), + }; + SnapshotRegionManifest_StoreFile_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SnapshotRegionManifest_StoreFile_descriptor_, + SnapshotRegionManifest_StoreFile::default_instance_, + SnapshotRegionManifest_StoreFile_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_StoreFile, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_StoreFile, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SnapshotRegionManifest_StoreFile)); + SnapshotRegionManifest_FamilyFiles_descriptor_ = SnapshotRegionManifest_descriptor_->nested_type(1); + static const int SnapshotRegionManifest_FamilyFiles_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_FamilyFiles, family_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_FamilyFiles, store_files_), + }; + SnapshotRegionManifest_FamilyFiles_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SnapshotRegionManifest_FamilyFiles_descriptor_, + SnapshotRegionManifest_FamilyFiles::default_instance_, + SnapshotRegionManifest_FamilyFiles_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_FamilyFiles, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotRegionManifest_FamilyFiles, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SnapshotRegionManifest_FamilyFiles)); + SnapshotDataManifest_descriptor_ = file->message_type(2); + static const int SnapshotDataManifest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDataManifest, table_schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDataManifest, region_manifests_), + }; + SnapshotDataManifest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SnapshotDataManifest_descriptor_, + SnapshotDataManifest::default_instance_, + SnapshotDataManifest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDataManifest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SnapshotDataManifest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SnapshotDataManifest)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Snapshot_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SnapshotFileInfo_descriptor_, &SnapshotFileInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SnapshotRegionManifest_descriptor_, &SnapshotRegionManifest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SnapshotRegionManifest_StoreFile_descriptor_, &SnapshotRegionManifest_StoreFile::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SnapshotRegionManifest_FamilyFiles_descriptor_, &SnapshotRegionManifest_FamilyFiles::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SnapshotDataManifest_descriptor_, &SnapshotDataManifest::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Snapshot_2eproto() { + delete SnapshotFileInfo::default_instance_; + delete SnapshotFileInfo_reflection_; + delete SnapshotRegionManifest::default_instance_; + delete SnapshotRegionManifest_reflection_; + delete SnapshotRegionManifest_StoreFile::default_instance_; + delete SnapshotRegionManifest_StoreFile_reflection_; + delete SnapshotRegionManifest_FamilyFiles::default_instance_; + delete SnapshotRegionManifest_FamilyFiles_reflection_; + delete SnapshotDataManifest::default_instance_; + delete SnapshotDataManifest_reflection_; +} + +void protobuf_AddDesc_Snapshot_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_FS_2eproto(); + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\016Snapshot.proto\022\010hbase.pb\032\010FS.proto\032\013HB" + "ase.proto\"\222\001\n\020SnapshotFileInfo\022-\n\004type\030\001" + " \002(\0162\037.hbase.pb.SnapshotFileInfo.Type\022\r\n" + "\005hfile\030\003 \001(\t\022\022\n\nwal_server\030\004 \001(\t\022\020\n\010wal_" + "name\030\005 \001(\t\"\032\n\004Type\022\t\n\005HFILE\020\001\022\007\n\003WAL\020\002\"\323" + "\002\n\026SnapshotRegionManifest\022\017\n\007version\030\001 \001" + "(\005\022)\n\013region_info\030\002 \002(\0132\024.hbase.pb.Regio" + "nInfo\022B\n\014family_files\030\003 \003(\0132,.hbase.pb.S" + "napshotRegionManifest.FamilyFiles\032T\n\tSto" + "reFile\022\014\n\004name\030\001 \002(\t\022&\n\treference\030\002 \001(\0132" + "\023.hbase.pb.Reference\022\021\n\tfile_size\030\003 \001(\004\032" + "c\n\013FamilyFiles\022\023\n\013family_name\030\001 \002(\014\022\?\n\013s" + "tore_files\030\002 \003(\0132*.hbase.pb.SnapshotRegi" + "onManifest.StoreFile\"\177\n\024SnapshotDataMani" + "fest\022+\n\014table_schema\030\001 \002(\0132\025.hbase.pb.Ta" + "bleSchema\022:\n\020region_manifests\030\002 \003(\0132 .hb" + "ase.pb.SnapshotRegionManifestBD\n*org.apa" + "che.hadoop.hbase.protobuf.generatedB\016Sna" + "pshotProtosH\001\210\001\001\240\001\001", 739); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Snapshot.proto", &protobuf_RegisterTypes); + SnapshotFileInfo::default_instance_ = new SnapshotFileInfo(); + SnapshotRegionManifest::default_instance_ = new SnapshotRegionManifest(); + SnapshotRegionManifest_StoreFile::default_instance_ = new SnapshotRegionManifest_StoreFile(); + SnapshotRegionManifest_FamilyFiles::default_instance_ = new SnapshotRegionManifest_FamilyFiles(); + SnapshotDataManifest::default_instance_ = new SnapshotDataManifest(); + SnapshotFileInfo::default_instance_->InitAsDefaultInstance(); + SnapshotRegionManifest::default_instance_->InitAsDefaultInstance(); + SnapshotRegionManifest_StoreFile::default_instance_->InitAsDefaultInstance(); + SnapshotRegionManifest_FamilyFiles::default_instance_->InitAsDefaultInstance(); + SnapshotDataManifest::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Snapshot_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Snapshot_2eproto { + StaticDescriptorInitializer_Snapshot_2eproto() { + protobuf_AddDesc_Snapshot_2eproto(); + } +} static_descriptor_initializer_Snapshot_2eproto_; + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* SnapshotFileInfo_Type_descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotFileInfo_Type_descriptor_; +} +bool SnapshotFileInfo_Type_IsValid(int value) { + switch(value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const SnapshotFileInfo_Type SnapshotFileInfo::HFILE; +const SnapshotFileInfo_Type SnapshotFileInfo::WAL; +const SnapshotFileInfo_Type SnapshotFileInfo::Type_MIN; +const SnapshotFileInfo_Type SnapshotFileInfo::Type_MAX; +const int SnapshotFileInfo::Type_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int SnapshotFileInfo::kTypeFieldNumber; +const int SnapshotFileInfo::kHfileFieldNumber; +const int SnapshotFileInfo::kWalServerFieldNumber; +const int SnapshotFileInfo::kWalNameFieldNumber; +#endif // !_MSC_VER + +SnapshotFileInfo::SnapshotFileInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SnapshotFileInfo::InitAsDefaultInstance() { +} + +SnapshotFileInfo::SnapshotFileInfo(const SnapshotFileInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SnapshotFileInfo::SharedCtor() { + _cached_size_ = 0; + type_ = 1; + hfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + wal_server_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + wal_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SnapshotFileInfo::~SnapshotFileInfo() { + SharedDtor(); +} + +void SnapshotFileInfo::SharedDtor() { + if (hfile_ != &::google::protobuf::internal::kEmptyString) { + delete hfile_; + } + if (wal_server_ != &::google::protobuf::internal::kEmptyString) { + delete wal_server_; + } + if (wal_name_ != &::google::protobuf::internal::kEmptyString) { + delete wal_name_; + } + if (this != default_instance_) { + } +} + +void SnapshotFileInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SnapshotFileInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotFileInfo_descriptor_; +} + +const SnapshotFileInfo& SnapshotFileInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Snapshot_2eproto(); + return *default_instance_; +} + +SnapshotFileInfo* SnapshotFileInfo::default_instance_ = NULL; + +SnapshotFileInfo* SnapshotFileInfo::New() const { + return new SnapshotFileInfo; +} + +void SnapshotFileInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + type_ = 1; + if (has_hfile()) { + if (hfile_ != &::google::protobuf::internal::kEmptyString) { + hfile_->clear(); + } + } + if (has_wal_server()) { + if (wal_server_ != &::google::protobuf::internal::kEmptyString) { + wal_server_->clear(); + } + } + if (has_wal_name()) { + if (wal_name_ != &::google::protobuf::internal::kEmptyString) { + wal_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SnapshotFileInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.SnapshotFileInfo.Type type = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::SnapshotFileInfo_Type_IsValid(value)) { + set_type(static_cast< ::hbase::pb::SnapshotFileInfo_Type >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_hfile; + break; + } + + // optional string hfile = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_hfile: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_hfile())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->hfile().data(), this->hfile().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_wal_server; + break; + } + + // optional string wal_server = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_wal_server: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_wal_server())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->wal_server().data(), this->wal_server().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_wal_name; + break; + } + + // optional string wal_name = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_wal_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_wal_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->wal_name().data(), this->wal_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SnapshotFileInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.SnapshotFileInfo.Type type = 1; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // optional string hfile = 3; + if (has_hfile()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->hfile().data(), this->hfile().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->hfile(), output); + } + + // optional string wal_server = 4; + if (has_wal_server()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->wal_server().data(), this->wal_server().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->wal_server(), output); + } + + // optional string wal_name = 5; + if (has_wal_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->wal_name().data(), this->wal_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->wal_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SnapshotFileInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.SnapshotFileInfo.Type type = 1; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // optional string hfile = 3; + if (has_hfile()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->hfile().data(), this->hfile().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->hfile(), target); + } + + // optional string wal_server = 4; + if (has_wal_server()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->wal_server().data(), this->wal_server().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->wal_server(), target); + } + + // optional string wal_name = 5; + if (has_wal_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->wal_name().data(), this->wal_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->wal_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SnapshotFileInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.SnapshotFileInfo.Type type = 1; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // optional string hfile = 3; + if (has_hfile()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->hfile()); + } + + // optional string wal_server = 4; + if (has_wal_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->wal_server()); + } + + // optional string wal_name = 5; + if (has_wal_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->wal_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SnapshotFileInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SnapshotFileInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SnapshotFileInfo::MergeFrom(const SnapshotFileInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_type()) { + set_type(from.type()); + } + if (from.has_hfile()) { + set_hfile(from.hfile()); + } + if (from.has_wal_server()) { + set_wal_server(from.wal_server()); + } + if (from.has_wal_name()) { + set_wal_name(from.wal_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SnapshotFileInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SnapshotFileInfo::CopyFrom(const SnapshotFileInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SnapshotFileInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SnapshotFileInfo::Swap(SnapshotFileInfo* other) { + if (other != this) { + std::swap(type_, other->type_); + std::swap(hfile_, other->hfile_); + std::swap(wal_server_, other->wal_server_); + std::swap(wal_name_, other->wal_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SnapshotFileInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SnapshotFileInfo_descriptor_; + metadata.reflection = SnapshotFileInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SnapshotRegionManifest_StoreFile::kNameFieldNumber; +const int SnapshotRegionManifest_StoreFile::kReferenceFieldNumber; +const int SnapshotRegionManifest_StoreFile::kFileSizeFieldNumber; +#endif // !_MSC_VER + +SnapshotRegionManifest_StoreFile::SnapshotRegionManifest_StoreFile() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SnapshotRegionManifest_StoreFile::InitAsDefaultInstance() { + reference_ = const_cast< ::hbase::pb::Reference*>(&::hbase::pb::Reference::default_instance()); +} + +SnapshotRegionManifest_StoreFile::SnapshotRegionManifest_StoreFile(const SnapshotRegionManifest_StoreFile& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SnapshotRegionManifest_StoreFile::SharedCtor() { + _cached_size_ = 0; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + reference_ = NULL; + file_size_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SnapshotRegionManifest_StoreFile::~SnapshotRegionManifest_StoreFile() { + SharedDtor(); +} + +void SnapshotRegionManifest_StoreFile::SharedDtor() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (this != default_instance_) { + delete reference_; + } +} + +void SnapshotRegionManifest_StoreFile::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SnapshotRegionManifest_StoreFile::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotRegionManifest_StoreFile_descriptor_; +} + +const SnapshotRegionManifest_StoreFile& SnapshotRegionManifest_StoreFile::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Snapshot_2eproto(); + return *default_instance_; +} + +SnapshotRegionManifest_StoreFile* SnapshotRegionManifest_StoreFile::default_instance_ = NULL; + +SnapshotRegionManifest_StoreFile* SnapshotRegionManifest_StoreFile::New() const { + return new SnapshotRegionManifest_StoreFile; +} + +void SnapshotRegionManifest_StoreFile::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_name()) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + } + if (has_reference()) { + if (reference_ != NULL) reference_->::hbase::pb::Reference::Clear(); + } + file_size_ = GOOGLE_ULONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SnapshotRegionManifest_StoreFile::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_reference; + break; + } + + // optional .hbase.pb.Reference reference = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_reference: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_reference())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_file_size; + break; + } + + // optional uint64 file_size = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_file_size: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &file_size_))); + set_has_file_size(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SnapshotRegionManifest_StoreFile::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->name(), output); + } + + // optional .hbase.pb.Reference reference = 2; + if (has_reference()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->reference(), output); + } + + // optional uint64 file_size = 3; + if (has_file_size()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->file_size(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SnapshotRegionManifest_StoreFile::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string name = 1; + if (has_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->name().data(), this->name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional .hbase.pb.Reference reference = 2; + if (has_reference()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->reference(), target); + } + + // optional uint64 file_size = 3; + if (has_file_size()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->file_size(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SnapshotRegionManifest_StoreFile::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional .hbase.pb.Reference reference = 2; + if (has_reference()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reference()); + } + + // optional uint64 file_size = 3; + if (has_file_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->file_size()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SnapshotRegionManifest_StoreFile::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SnapshotRegionManifest_StoreFile* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SnapshotRegionManifest_StoreFile::MergeFrom(const SnapshotRegionManifest_StoreFile& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_name()) { + set_name(from.name()); + } + if (from.has_reference()) { + mutable_reference()->::hbase::pb::Reference::MergeFrom(from.reference()); + } + if (from.has_file_size()) { + set_file_size(from.file_size()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SnapshotRegionManifest_StoreFile::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SnapshotRegionManifest_StoreFile::CopyFrom(const SnapshotRegionManifest_StoreFile& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SnapshotRegionManifest_StoreFile::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_reference()) { + if (!this->reference().IsInitialized()) return false; + } + return true; +} + +void SnapshotRegionManifest_StoreFile::Swap(SnapshotRegionManifest_StoreFile* other) { + if (other != this) { + std::swap(name_, other->name_); + std::swap(reference_, other->reference_); + std::swap(file_size_, other->file_size_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SnapshotRegionManifest_StoreFile::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SnapshotRegionManifest_StoreFile_descriptor_; + metadata.reflection = SnapshotRegionManifest_StoreFile_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int SnapshotRegionManifest_FamilyFiles::kFamilyNameFieldNumber; +const int SnapshotRegionManifest_FamilyFiles::kStoreFilesFieldNumber; +#endif // !_MSC_VER + +SnapshotRegionManifest_FamilyFiles::SnapshotRegionManifest_FamilyFiles() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SnapshotRegionManifest_FamilyFiles::InitAsDefaultInstance() { +} + +SnapshotRegionManifest_FamilyFiles::SnapshotRegionManifest_FamilyFiles(const SnapshotRegionManifest_FamilyFiles& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SnapshotRegionManifest_FamilyFiles::SharedCtor() { + _cached_size_ = 0; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SnapshotRegionManifest_FamilyFiles::~SnapshotRegionManifest_FamilyFiles() { + SharedDtor(); +} + +void SnapshotRegionManifest_FamilyFiles::SharedDtor() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (this != default_instance_) { + } +} + +void SnapshotRegionManifest_FamilyFiles::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SnapshotRegionManifest_FamilyFiles::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotRegionManifest_FamilyFiles_descriptor_; +} + +const SnapshotRegionManifest_FamilyFiles& SnapshotRegionManifest_FamilyFiles::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Snapshot_2eproto(); + return *default_instance_; +} + +SnapshotRegionManifest_FamilyFiles* SnapshotRegionManifest_FamilyFiles::default_instance_ = NULL; + +SnapshotRegionManifest_FamilyFiles* SnapshotRegionManifest_FamilyFiles::New() const { + return new SnapshotRegionManifest_FamilyFiles; +} + +void SnapshotRegionManifest_FamilyFiles::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_family_name()) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + } + } + store_files_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SnapshotRegionManifest_FamilyFiles::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes family_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_store_files; + break; + } + + // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_files: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_store_files())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_store_files; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SnapshotRegionManifest_FamilyFiles::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes family_name = 1; + if (has_family_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->family_name(), output); + } + + // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; + for (int i = 0; i < this->store_files_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->store_files(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SnapshotRegionManifest_FamilyFiles::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes family_name = 1; + if (has_family_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->family_name(), target); + } + + // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; + for (int i = 0; i < this->store_files_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->store_files(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SnapshotRegionManifest_FamilyFiles::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes family_name = 1; + if (has_family_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family_name()); + } + + } + // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; + total_size += 1 * this->store_files_size(); + for (int i = 0; i < this->store_files_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->store_files(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SnapshotRegionManifest_FamilyFiles::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SnapshotRegionManifest_FamilyFiles* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SnapshotRegionManifest_FamilyFiles::MergeFrom(const SnapshotRegionManifest_FamilyFiles& from) { + GOOGLE_CHECK_NE(&from, this); + store_files_.MergeFrom(from.store_files_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_family_name()) { + set_family_name(from.family_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SnapshotRegionManifest_FamilyFiles::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SnapshotRegionManifest_FamilyFiles::CopyFrom(const SnapshotRegionManifest_FamilyFiles& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SnapshotRegionManifest_FamilyFiles::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < store_files_size(); i++) { + if (!this->store_files(i).IsInitialized()) return false; + } + return true; +} + +void SnapshotRegionManifest_FamilyFiles::Swap(SnapshotRegionManifest_FamilyFiles* other) { + if (other != this) { + std::swap(family_name_, other->family_name_); + store_files_.Swap(&other->store_files_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SnapshotRegionManifest_FamilyFiles::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SnapshotRegionManifest_FamilyFiles_descriptor_; + metadata.reflection = SnapshotRegionManifest_FamilyFiles_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int SnapshotRegionManifest::kVersionFieldNumber; +const int SnapshotRegionManifest::kRegionInfoFieldNumber; +const int SnapshotRegionManifest::kFamilyFilesFieldNumber; +#endif // !_MSC_VER + +SnapshotRegionManifest::SnapshotRegionManifest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SnapshotRegionManifest::InitAsDefaultInstance() { + region_info_ = const_cast< ::hbase::pb::RegionInfo*>(&::hbase::pb::RegionInfo::default_instance()); +} + +SnapshotRegionManifest::SnapshotRegionManifest(const SnapshotRegionManifest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SnapshotRegionManifest::SharedCtor() { + _cached_size_ = 0; + version_ = 0; + region_info_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SnapshotRegionManifest::~SnapshotRegionManifest() { + SharedDtor(); +} + +void SnapshotRegionManifest::SharedDtor() { + if (this != default_instance_) { + delete region_info_; + } +} + +void SnapshotRegionManifest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SnapshotRegionManifest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotRegionManifest_descriptor_; +} + +const SnapshotRegionManifest& SnapshotRegionManifest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Snapshot_2eproto(); + return *default_instance_; +} + +SnapshotRegionManifest* SnapshotRegionManifest::default_instance_ = NULL; + +SnapshotRegionManifest* SnapshotRegionManifest::New() const { + return new SnapshotRegionManifest; +} + +void SnapshotRegionManifest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + version_ = 0; + if (has_region_info()) { + if (region_info_ != NULL) region_info_->::hbase::pb::RegionInfo::Clear(); + } + } + family_files_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SnapshotRegionManifest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 version = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &version_))); + set_has_version(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_region_info; + break; + } + + // required .hbase.pb.RegionInfo region_info = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_info: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_region_info())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_family_files; + break; + } + + // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family_files: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_family_files())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_family_files; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SnapshotRegionManifest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional int32 version = 1; + if (has_version()) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->version(), output); + } + + // required .hbase.pb.RegionInfo region_info = 2; + if (has_region_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->region_info(), output); + } + + // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; + for (int i = 0; i < this->family_files_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->family_files(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SnapshotRegionManifest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional int32 version = 1; + if (has_version()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target); + } + + // required .hbase.pb.RegionInfo region_info = 2; + if (has_region_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->region_info(), target); + } + + // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; + for (int i = 0; i < this->family_files_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->family_files(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SnapshotRegionManifest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional int32 version = 1; + if (has_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->version()); + } + + // required .hbase.pb.RegionInfo region_info = 2; + if (has_region_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_info()); + } + + } + // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; + total_size += 1 * this->family_files_size(); + for (int i = 0; i < this->family_files_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->family_files(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SnapshotRegionManifest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SnapshotRegionManifest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SnapshotRegionManifest::MergeFrom(const SnapshotRegionManifest& from) { + GOOGLE_CHECK_NE(&from, this); + family_files_.MergeFrom(from.family_files_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_version()) { + set_version(from.version()); + } + if (from.has_region_info()) { + mutable_region_info()->::hbase::pb::RegionInfo::MergeFrom(from.region_info()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SnapshotRegionManifest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SnapshotRegionManifest::CopyFrom(const SnapshotRegionManifest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SnapshotRegionManifest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; + + if (has_region_info()) { + if (!this->region_info().IsInitialized()) return false; + } + for (int i = 0; i < family_files_size(); i++) { + if (!this->family_files(i).IsInitialized()) return false; + } + return true; +} + +void SnapshotRegionManifest::Swap(SnapshotRegionManifest* other) { + if (other != this) { + std::swap(version_, other->version_); + std::swap(region_info_, other->region_info_); + family_files_.Swap(&other->family_files_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SnapshotRegionManifest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SnapshotRegionManifest_descriptor_; + metadata.reflection = SnapshotRegionManifest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SnapshotDataManifest::kTableSchemaFieldNumber; +const int SnapshotDataManifest::kRegionManifestsFieldNumber; +#endif // !_MSC_VER + +SnapshotDataManifest::SnapshotDataManifest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SnapshotDataManifest::InitAsDefaultInstance() { + table_schema_ = const_cast< ::hbase::pb::TableSchema*>(&::hbase::pb::TableSchema::default_instance()); +} + +SnapshotDataManifest::SnapshotDataManifest(const SnapshotDataManifest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SnapshotDataManifest::SharedCtor() { + _cached_size_ = 0; + table_schema_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SnapshotDataManifest::~SnapshotDataManifest() { + SharedDtor(); +} + +void SnapshotDataManifest::SharedDtor() { + if (this != default_instance_) { + delete table_schema_; + } +} + +void SnapshotDataManifest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SnapshotDataManifest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SnapshotDataManifest_descriptor_; +} + +const SnapshotDataManifest& SnapshotDataManifest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Snapshot_2eproto(); + return *default_instance_; +} + +SnapshotDataManifest* SnapshotDataManifest::default_instance_ = NULL; + +SnapshotDataManifest* SnapshotDataManifest::New() const { + return new SnapshotDataManifest; +} + +void SnapshotDataManifest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_schema()) { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + } + } + region_manifests_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SnapshotDataManifest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableSchema table_schema = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_schema())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_region_manifests; + break; + } + + // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_manifests: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_region_manifests())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_region_manifests; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SnapshotDataManifest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableSchema table_schema = 1; + if (has_table_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_schema(), output); + } + + // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; + for (int i = 0; i < this->region_manifests_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->region_manifests(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SnapshotDataManifest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableSchema table_schema = 1; + if (has_table_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_schema(), target); + } + + // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; + for (int i = 0; i < this->region_manifests_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->region_manifests(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SnapshotDataManifest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableSchema table_schema = 1; + if (has_table_schema()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_schema()); + } + + } + // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; + total_size += 1 * this->region_manifests_size(); + for (int i = 0; i < this->region_manifests_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->region_manifests(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SnapshotDataManifest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SnapshotDataManifest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SnapshotDataManifest::MergeFrom(const SnapshotDataManifest& from) { + GOOGLE_CHECK_NE(&from, this); + region_manifests_.MergeFrom(from.region_manifests_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_schema()) { + mutable_table_schema()->::hbase::pb::TableSchema::MergeFrom(from.table_schema()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SnapshotDataManifest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SnapshotDataManifest::CopyFrom(const SnapshotDataManifest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SnapshotDataManifest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_table_schema()) { + if (!this->table_schema().IsInitialized()) return false; + } + for (int i = 0; i < region_manifests_size(); i++) { + if (!this->region_manifests(i).IsInitialized()) return false; + } + return true; +} + +void SnapshotDataManifest::Swap(SnapshotDataManifest* other) { + if (other != this) { + std::swap(table_schema_, other->table_schema_); + region_manifests_.Swap(&other->region_manifests_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SnapshotDataManifest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SnapshotDataManifest_descriptor_; + metadata.reflection = SnapshotDataManifest_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Snapshot.pb.h b/hbase-native-client/src/rpc/generated/Snapshot.pb.h new file mode 100644 index 0000000..b5e8d9f --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Snapshot.pb.h @@ -0,0 +1,1282 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Snapshot.proto + +#ifndef PROTOBUF_Snapshot_2eproto__INCLUDED +#define PROTOBUF_Snapshot_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "FS.pb.h" +#include "HBase.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Snapshot_2eproto(); +void protobuf_AssignDesc_Snapshot_2eproto(); +void protobuf_ShutdownFile_Snapshot_2eproto(); + +class SnapshotFileInfo; +class SnapshotRegionManifest; +class SnapshotRegionManifest_StoreFile; +class SnapshotRegionManifest_FamilyFiles; +class SnapshotDataManifest; + +enum SnapshotFileInfo_Type { + SnapshotFileInfo_Type_HFILE = 1, + SnapshotFileInfo_Type_WAL = 2 +}; +bool SnapshotFileInfo_Type_IsValid(int value); +const SnapshotFileInfo_Type SnapshotFileInfo_Type_Type_MIN = SnapshotFileInfo_Type_HFILE; +const SnapshotFileInfo_Type SnapshotFileInfo_Type_Type_MAX = SnapshotFileInfo_Type_WAL; +const int SnapshotFileInfo_Type_Type_ARRAYSIZE = SnapshotFileInfo_Type_Type_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SnapshotFileInfo_Type_descriptor(); +inline const ::std::string& SnapshotFileInfo_Type_Name(SnapshotFileInfo_Type value) { + return ::google::protobuf::internal::NameOfEnum( + SnapshotFileInfo_Type_descriptor(), value); +} +inline bool SnapshotFileInfo_Type_Parse( + const ::std::string& name, SnapshotFileInfo_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SnapshotFileInfo_Type_descriptor(), name, value); +} +// =================================================================== + +class SnapshotFileInfo : public ::google::protobuf::Message { + public: + SnapshotFileInfo(); + virtual ~SnapshotFileInfo(); + + SnapshotFileInfo(const SnapshotFileInfo& from); + + inline SnapshotFileInfo& operator=(const SnapshotFileInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SnapshotFileInfo& default_instance(); + + void Swap(SnapshotFileInfo* other); + + // implements Message ---------------------------------------------- + + SnapshotFileInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SnapshotFileInfo& from); + void MergeFrom(const SnapshotFileInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef SnapshotFileInfo_Type Type; + static const Type HFILE = SnapshotFileInfo_Type_HFILE; + static const Type WAL = SnapshotFileInfo_Type_WAL; + static inline bool Type_IsValid(int value) { + return SnapshotFileInfo_Type_IsValid(value); + } + static const Type Type_MIN = + SnapshotFileInfo_Type_Type_MIN; + static const Type Type_MAX = + SnapshotFileInfo_Type_Type_MAX; + static const int Type_ARRAYSIZE = + SnapshotFileInfo_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Type_descriptor() { + return SnapshotFileInfo_Type_descriptor(); + } + static inline const ::std::string& Type_Name(Type value) { + return SnapshotFileInfo_Type_Name(value); + } + static inline bool Type_Parse(const ::std::string& name, + Type* value) { + return SnapshotFileInfo_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.SnapshotFileInfo.Type type = 1; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 1; + inline ::hbase::pb::SnapshotFileInfo_Type type() const; + inline void set_type(::hbase::pb::SnapshotFileInfo_Type value); + + // optional string hfile = 3; + inline bool has_hfile() const; + inline void clear_hfile(); + static const int kHfileFieldNumber = 3; + inline const ::std::string& hfile() const; + inline void set_hfile(const ::std::string& value); + inline void set_hfile(const char* value); + inline void set_hfile(const char* value, size_t size); + inline ::std::string* mutable_hfile(); + inline ::std::string* release_hfile(); + inline void set_allocated_hfile(::std::string* hfile); + + // optional string wal_server = 4; + inline bool has_wal_server() const; + inline void clear_wal_server(); + static const int kWalServerFieldNumber = 4; + inline const ::std::string& wal_server() const; + inline void set_wal_server(const ::std::string& value); + inline void set_wal_server(const char* value); + inline void set_wal_server(const char* value, size_t size); + inline ::std::string* mutable_wal_server(); + inline ::std::string* release_wal_server(); + inline void set_allocated_wal_server(::std::string* wal_server); + + // optional string wal_name = 5; + inline bool has_wal_name() const; + inline void clear_wal_name(); + static const int kWalNameFieldNumber = 5; + inline const ::std::string& wal_name() const; + inline void set_wal_name(const ::std::string& value); + inline void set_wal_name(const char* value); + inline void set_wal_name(const char* value, size_t size); + inline ::std::string* mutable_wal_name(); + inline ::std::string* release_wal_name(); + inline void set_allocated_wal_name(::std::string* wal_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotFileInfo) + private: + inline void set_has_type(); + inline void clear_has_type(); + inline void set_has_hfile(); + inline void clear_has_hfile(); + inline void set_has_wal_server(); + inline void clear_has_wal_server(); + inline void set_has_wal_name(); + inline void clear_has_wal_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* hfile_; + ::std::string* wal_server_; + ::std::string* wal_name_; + int type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_Snapshot_2eproto(); + friend void protobuf_AssignDesc_Snapshot_2eproto(); + friend void protobuf_ShutdownFile_Snapshot_2eproto(); + + void InitAsDefaultInstance(); + static SnapshotFileInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class SnapshotRegionManifest_StoreFile : public ::google::protobuf::Message { + public: + SnapshotRegionManifest_StoreFile(); + virtual ~SnapshotRegionManifest_StoreFile(); + + SnapshotRegionManifest_StoreFile(const SnapshotRegionManifest_StoreFile& from); + + inline SnapshotRegionManifest_StoreFile& operator=(const SnapshotRegionManifest_StoreFile& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SnapshotRegionManifest_StoreFile& default_instance(); + + void Swap(SnapshotRegionManifest_StoreFile* other); + + // implements Message ---------------------------------------------- + + SnapshotRegionManifest_StoreFile* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SnapshotRegionManifest_StoreFile& from); + void MergeFrom(const SnapshotRegionManifest_StoreFile& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string name = 1; + inline bool has_name() const; + inline void clear_name(); + static const int kNameFieldNumber = 1; + inline const ::std::string& name() const; + inline void set_name(const ::std::string& value); + inline void set_name(const char* value); + inline void set_name(const char* value, size_t size); + inline ::std::string* mutable_name(); + inline ::std::string* release_name(); + inline void set_allocated_name(::std::string* name); + + // optional .hbase.pb.Reference reference = 2; + inline bool has_reference() const; + inline void clear_reference(); + static const int kReferenceFieldNumber = 2; + inline const ::hbase::pb::Reference& reference() const; + inline ::hbase::pb::Reference* mutable_reference(); + inline ::hbase::pb::Reference* release_reference(); + inline void set_allocated_reference(::hbase::pb::Reference* reference); + + // optional uint64 file_size = 3; + inline bool has_file_size() const; + inline void clear_file_size(); + static const int kFileSizeFieldNumber = 3; + inline ::google::protobuf::uint64 file_size() const; + inline void set_file_size(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.StoreFile) + private: + inline void set_has_name(); + inline void clear_has_name(); + inline void set_has_reference(); + inline void clear_has_reference(); + inline void set_has_file_size(); + inline void clear_has_file_size(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* name_; + ::hbase::pb::Reference* reference_; + ::google::protobuf::uint64 file_size_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Snapshot_2eproto(); + friend void protobuf_AssignDesc_Snapshot_2eproto(); + friend void protobuf_ShutdownFile_Snapshot_2eproto(); + + void InitAsDefaultInstance(); + static SnapshotRegionManifest_StoreFile* default_instance_; +}; +// ------------------------------------------------------------------- + +class SnapshotRegionManifest_FamilyFiles : public ::google::protobuf::Message { + public: + SnapshotRegionManifest_FamilyFiles(); + virtual ~SnapshotRegionManifest_FamilyFiles(); + + SnapshotRegionManifest_FamilyFiles(const SnapshotRegionManifest_FamilyFiles& from); + + inline SnapshotRegionManifest_FamilyFiles& operator=(const SnapshotRegionManifest_FamilyFiles& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SnapshotRegionManifest_FamilyFiles& default_instance(); + + void Swap(SnapshotRegionManifest_FamilyFiles* other); + + // implements Message ---------------------------------------------- + + SnapshotRegionManifest_FamilyFiles* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SnapshotRegionManifest_FamilyFiles& from); + void MergeFrom(const SnapshotRegionManifest_FamilyFiles& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes family_name = 1; + inline bool has_family_name() const; + inline void clear_family_name(); + static const int kFamilyNameFieldNumber = 1; + inline const ::std::string& family_name() const; + inline void set_family_name(const ::std::string& value); + inline void set_family_name(const char* value); + inline void set_family_name(const void* value, size_t size); + inline ::std::string* mutable_family_name(); + inline ::std::string* release_family_name(); + inline void set_allocated_family_name(::std::string* family_name); + + // repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; + inline int store_files_size() const; + inline void clear_store_files(); + static const int kStoreFilesFieldNumber = 2; + inline const ::hbase::pb::SnapshotRegionManifest_StoreFile& store_files(int index) const; + inline ::hbase::pb::SnapshotRegionManifest_StoreFile* mutable_store_files(int index); + inline ::hbase::pb::SnapshotRegionManifest_StoreFile* add_store_files(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_StoreFile >& + store_files() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_StoreFile >* + mutable_store_files(); + + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest.FamilyFiles) + private: + inline void set_has_family_name(); + inline void clear_has_family_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* family_name_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_StoreFile > store_files_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Snapshot_2eproto(); + friend void protobuf_AssignDesc_Snapshot_2eproto(); + friend void protobuf_ShutdownFile_Snapshot_2eproto(); + + void InitAsDefaultInstance(); + static SnapshotRegionManifest_FamilyFiles* default_instance_; +}; +// ------------------------------------------------------------------- + +class SnapshotRegionManifest : public ::google::protobuf::Message { + public: + SnapshotRegionManifest(); + virtual ~SnapshotRegionManifest(); + + SnapshotRegionManifest(const SnapshotRegionManifest& from); + + inline SnapshotRegionManifest& operator=(const SnapshotRegionManifest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SnapshotRegionManifest& default_instance(); + + void Swap(SnapshotRegionManifest* other); + + // implements Message ---------------------------------------------- + + SnapshotRegionManifest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SnapshotRegionManifest& from); + void MergeFrom(const SnapshotRegionManifest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef SnapshotRegionManifest_StoreFile StoreFile; + typedef SnapshotRegionManifest_FamilyFiles FamilyFiles; + + // accessors ------------------------------------------------------- + + // optional int32 version = 1; + inline bool has_version() const; + inline void clear_version(); + static const int kVersionFieldNumber = 1; + inline ::google::protobuf::int32 version() const; + inline void set_version(::google::protobuf::int32 value); + + // required .hbase.pb.RegionInfo region_info = 2; + inline bool has_region_info() const; + inline void clear_region_info(); + static const int kRegionInfoFieldNumber = 2; + inline const ::hbase::pb::RegionInfo& region_info() const; + inline ::hbase::pb::RegionInfo* mutable_region_info(); + inline ::hbase::pb::RegionInfo* release_region_info(); + inline void set_allocated_region_info(::hbase::pb::RegionInfo* region_info); + + // repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; + inline int family_files_size() const; + inline void clear_family_files(); + static const int kFamilyFilesFieldNumber = 3; + inline const ::hbase::pb::SnapshotRegionManifest_FamilyFiles& family_files(int index) const; + inline ::hbase::pb::SnapshotRegionManifest_FamilyFiles* mutable_family_files(int index); + inline ::hbase::pb::SnapshotRegionManifest_FamilyFiles* add_family_files(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_FamilyFiles >& + family_files() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_FamilyFiles >* + mutable_family_files(); + + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotRegionManifest) + private: + inline void set_has_version(); + inline void clear_has_version(); + inline void set_has_region_info(); + inline void clear_has_region_info(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::RegionInfo* region_info_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_FamilyFiles > family_files_; + ::google::protobuf::int32 version_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_Snapshot_2eproto(); + friend void protobuf_AssignDesc_Snapshot_2eproto(); + friend void protobuf_ShutdownFile_Snapshot_2eproto(); + + void InitAsDefaultInstance(); + static SnapshotRegionManifest* default_instance_; +}; +// ------------------------------------------------------------------- + +class SnapshotDataManifest : public ::google::protobuf::Message { + public: + SnapshotDataManifest(); + virtual ~SnapshotDataManifest(); + + SnapshotDataManifest(const SnapshotDataManifest& from); + + inline SnapshotDataManifest& operator=(const SnapshotDataManifest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SnapshotDataManifest& default_instance(); + + void Swap(SnapshotDataManifest* other); + + // implements Message ---------------------------------------------- + + SnapshotDataManifest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SnapshotDataManifest& from); + void MergeFrom(const SnapshotDataManifest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableSchema table_schema = 1; + inline bool has_table_schema() const; + inline void clear_table_schema(); + static const int kTableSchemaFieldNumber = 1; + inline const ::hbase::pb::TableSchema& table_schema() const; + inline ::hbase::pb::TableSchema* mutable_table_schema(); + inline ::hbase::pb::TableSchema* release_table_schema(); + inline void set_allocated_table_schema(::hbase::pb::TableSchema* table_schema); + + // repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; + inline int region_manifests_size() const; + inline void clear_region_manifests(); + static const int kRegionManifestsFieldNumber = 2; + inline const ::hbase::pb::SnapshotRegionManifest& region_manifests(int index) const; + inline ::hbase::pb::SnapshotRegionManifest* mutable_region_manifests(int index); + inline ::hbase::pb::SnapshotRegionManifest* add_region_manifests(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest >& + region_manifests() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest >* + mutable_region_manifests(); + + // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotDataManifest) + private: + inline void set_has_table_schema(); + inline void clear_has_table_schema(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableSchema* table_schema_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest > region_manifests_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Snapshot_2eproto(); + friend void protobuf_AssignDesc_Snapshot_2eproto(); + friend void protobuf_ShutdownFile_Snapshot_2eproto(); + + void InitAsDefaultInstance(); + static SnapshotDataManifest* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// SnapshotFileInfo + +// required .hbase.pb.SnapshotFileInfo.Type type = 1; +inline bool SnapshotFileInfo::has_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SnapshotFileInfo::set_has_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void SnapshotFileInfo::clear_has_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SnapshotFileInfo::clear_type() { + type_ = 1; + clear_has_type(); +} +inline ::hbase::pb::SnapshotFileInfo_Type SnapshotFileInfo::type() const { + return static_cast< ::hbase::pb::SnapshotFileInfo_Type >(type_); +} +inline void SnapshotFileInfo::set_type(::hbase::pb::SnapshotFileInfo_Type value) { + assert(::hbase::pb::SnapshotFileInfo_Type_IsValid(value)); + set_has_type(); + type_ = value; +} + +// optional string hfile = 3; +inline bool SnapshotFileInfo::has_hfile() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SnapshotFileInfo::set_has_hfile() { + _has_bits_[0] |= 0x00000002u; +} +inline void SnapshotFileInfo::clear_has_hfile() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SnapshotFileInfo::clear_hfile() { + if (hfile_ != &::google::protobuf::internal::kEmptyString) { + hfile_->clear(); + } + clear_has_hfile(); +} +inline const ::std::string& SnapshotFileInfo::hfile() const { + return *hfile_; +} +inline void SnapshotFileInfo::set_hfile(const ::std::string& value) { + set_has_hfile(); + if (hfile_ == &::google::protobuf::internal::kEmptyString) { + hfile_ = new ::std::string; + } + hfile_->assign(value); +} +inline void SnapshotFileInfo::set_hfile(const char* value) { + set_has_hfile(); + if (hfile_ == &::google::protobuf::internal::kEmptyString) { + hfile_ = new ::std::string; + } + hfile_->assign(value); +} +inline void SnapshotFileInfo::set_hfile(const char* value, size_t size) { + set_has_hfile(); + if (hfile_ == &::google::protobuf::internal::kEmptyString) { + hfile_ = new ::std::string; + } + hfile_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SnapshotFileInfo::mutable_hfile() { + set_has_hfile(); + if (hfile_ == &::google::protobuf::internal::kEmptyString) { + hfile_ = new ::std::string; + } + return hfile_; +} +inline ::std::string* SnapshotFileInfo::release_hfile() { + clear_has_hfile(); + if (hfile_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = hfile_; + hfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SnapshotFileInfo::set_allocated_hfile(::std::string* hfile) { + if (hfile_ != &::google::protobuf::internal::kEmptyString) { + delete hfile_; + } + if (hfile) { + set_has_hfile(); + hfile_ = hfile; + } else { + clear_has_hfile(); + hfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string wal_server = 4; +inline bool SnapshotFileInfo::has_wal_server() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SnapshotFileInfo::set_has_wal_server() { + _has_bits_[0] |= 0x00000004u; +} +inline void SnapshotFileInfo::clear_has_wal_server() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SnapshotFileInfo::clear_wal_server() { + if (wal_server_ != &::google::protobuf::internal::kEmptyString) { + wal_server_->clear(); + } + clear_has_wal_server(); +} +inline const ::std::string& SnapshotFileInfo::wal_server() const { + return *wal_server_; +} +inline void SnapshotFileInfo::set_wal_server(const ::std::string& value) { + set_has_wal_server(); + if (wal_server_ == &::google::protobuf::internal::kEmptyString) { + wal_server_ = new ::std::string; + } + wal_server_->assign(value); +} +inline void SnapshotFileInfo::set_wal_server(const char* value) { + set_has_wal_server(); + if (wal_server_ == &::google::protobuf::internal::kEmptyString) { + wal_server_ = new ::std::string; + } + wal_server_->assign(value); +} +inline void SnapshotFileInfo::set_wal_server(const char* value, size_t size) { + set_has_wal_server(); + if (wal_server_ == &::google::protobuf::internal::kEmptyString) { + wal_server_ = new ::std::string; + } + wal_server_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SnapshotFileInfo::mutable_wal_server() { + set_has_wal_server(); + if (wal_server_ == &::google::protobuf::internal::kEmptyString) { + wal_server_ = new ::std::string; + } + return wal_server_; +} +inline ::std::string* SnapshotFileInfo::release_wal_server() { + clear_has_wal_server(); + if (wal_server_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = wal_server_; + wal_server_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SnapshotFileInfo::set_allocated_wal_server(::std::string* wal_server) { + if (wal_server_ != &::google::protobuf::internal::kEmptyString) { + delete wal_server_; + } + if (wal_server) { + set_has_wal_server(); + wal_server_ = wal_server; + } else { + clear_has_wal_server(); + wal_server_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string wal_name = 5; +inline bool SnapshotFileInfo::has_wal_name() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void SnapshotFileInfo::set_has_wal_name() { + _has_bits_[0] |= 0x00000008u; +} +inline void SnapshotFileInfo::clear_has_wal_name() { + _has_bits_[0] &= ~0x00000008u; +} +inline void SnapshotFileInfo::clear_wal_name() { + if (wal_name_ != &::google::protobuf::internal::kEmptyString) { + wal_name_->clear(); + } + clear_has_wal_name(); +} +inline const ::std::string& SnapshotFileInfo::wal_name() const { + return *wal_name_; +} +inline void SnapshotFileInfo::set_wal_name(const ::std::string& value) { + set_has_wal_name(); + if (wal_name_ == &::google::protobuf::internal::kEmptyString) { + wal_name_ = new ::std::string; + } + wal_name_->assign(value); +} +inline void SnapshotFileInfo::set_wal_name(const char* value) { + set_has_wal_name(); + if (wal_name_ == &::google::protobuf::internal::kEmptyString) { + wal_name_ = new ::std::string; + } + wal_name_->assign(value); +} +inline void SnapshotFileInfo::set_wal_name(const char* value, size_t size) { + set_has_wal_name(); + if (wal_name_ == &::google::protobuf::internal::kEmptyString) { + wal_name_ = new ::std::string; + } + wal_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SnapshotFileInfo::mutable_wal_name() { + set_has_wal_name(); + if (wal_name_ == &::google::protobuf::internal::kEmptyString) { + wal_name_ = new ::std::string; + } + return wal_name_; +} +inline ::std::string* SnapshotFileInfo::release_wal_name() { + clear_has_wal_name(); + if (wal_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = wal_name_; + wal_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SnapshotFileInfo::set_allocated_wal_name(::std::string* wal_name) { + if (wal_name_ != &::google::protobuf::internal::kEmptyString) { + delete wal_name_; + } + if (wal_name) { + set_has_wal_name(); + wal_name_ = wal_name; + } else { + clear_has_wal_name(); + wal_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// SnapshotRegionManifest_StoreFile + +// required string name = 1; +inline bool SnapshotRegionManifest_StoreFile::has_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SnapshotRegionManifest_StoreFile::set_has_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void SnapshotRegionManifest_StoreFile::clear_has_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SnapshotRegionManifest_StoreFile::clear_name() { + if (name_ != &::google::protobuf::internal::kEmptyString) { + name_->clear(); + } + clear_has_name(); +} +inline const ::std::string& SnapshotRegionManifest_StoreFile::name() const { + return *name_; +} +inline void SnapshotRegionManifest_StoreFile::set_name(const ::std::string& value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void SnapshotRegionManifest_StoreFile::set_name(const char* value) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(value); +} +inline void SnapshotRegionManifest_StoreFile::set_name(const char* value, size_t size) { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SnapshotRegionManifest_StoreFile::mutable_name() { + set_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + name_ = new ::std::string; + } + return name_; +} +inline ::std::string* SnapshotRegionManifest_StoreFile::release_name() { + clear_has_name(); + if (name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = name_; + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SnapshotRegionManifest_StoreFile::set_allocated_name(::std::string* name) { + if (name_ != &::google::protobuf::internal::kEmptyString) { + delete name_; + } + if (name) { + set_has_name(); + name_ = name; + } else { + clear_has_name(); + name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional .hbase.pb.Reference reference = 2; +inline bool SnapshotRegionManifest_StoreFile::has_reference() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SnapshotRegionManifest_StoreFile::set_has_reference() { + _has_bits_[0] |= 0x00000002u; +} +inline void SnapshotRegionManifest_StoreFile::clear_has_reference() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SnapshotRegionManifest_StoreFile::clear_reference() { + if (reference_ != NULL) reference_->::hbase::pb::Reference::Clear(); + clear_has_reference(); +} +inline const ::hbase::pb::Reference& SnapshotRegionManifest_StoreFile::reference() const { + return reference_ != NULL ? *reference_ : *default_instance_->reference_; +} +inline ::hbase::pb::Reference* SnapshotRegionManifest_StoreFile::mutable_reference() { + set_has_reference(); + if (reference_ == NULL) reference_ = new ::hbase::pb::Reference; + return reference_; +} +inline ::hbase::pb::Reference* SnapshotRegionManifest_StoreFile::release_reference() { + clear_has_reference(); + ::hbase::pb::Reference* temp = reference_; + reference_ = NULL; + return temp; +} +inline void SnapshotRegionManifest_StoreFile::set_allocated_reference(::hbase::pb::Reference* reference) { + delete reference_; + reference_ = reference; + if (reference) { + set_has_reference(); + } else { + clear_has_reference(); + } +} + +// optional uint64 file_size = 3; +inline bool SnapshotRegionManifest_StoreFile::has_file_size() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SnapshotRegionManifest_StoreFile::set_has_file_size() { + _has_bits_[0] |= 0x00000004u; +} +inline void SnapshotRegionManifest_StoreFile::clear_has_file_size() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SnapshotRegionManifest_StoreFile::clear_file_size() { + file_size_ = GOOGLE_ULONGLONG(0); + clear_has_file_size(); +} +inline ::google::protobuf::uint64 SnapshotRegionManifest_StoreFile::file_size() const { + return file_size_; +} +inline void SnapshotRegionManifest_StoreFile::set_file_size(::google::protobuf::uint64 value) { + set_has_file_size(); + file_size_ = value; +} + +// ------------------------------------------------------------------- + +// SnapshotRegionManifest_FamilyFiles + +// required bytes family_name = 1; +inline bool SnapshotRegionManifest_FamilyFiles::has_family_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SnapshotRegionManifest_FamilyFiles::set_has_family_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void SnapshotRegionManifest_FamilyFiles::clear_has_family_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SnapshotRegionManifest_FamilyFiles::clear_family_name() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + clear_has_family_name(); +} +inline const ::std::string& SnapshotRegionManifest_FamilyFiles::family_name() const { + return *family_name_; +} +inline void SnapshotRegionManifest_FamilyFiles::set_family_name(const ::std::string& value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void SnapshotRegionManifest_FamilyFiles::set_family_name(const char* value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void SnapshotRegionManifest_FamilyFiles::set_family_name(const void* value, size_t size) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SnapshotRegionManifest_FamilyFiles::mutable_family_name() { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + return family_name_; +} +inline ::std::string* SnapshotRegionManifest_FamilyFiles::release_family_name() { + clear_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_name_; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SnapshotRegionManifest_FamilyFiles::set_allocated_family_name(::std::string* family_name) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (family_name) { + set_has_family_name(); + family_name_ = family_name; + } else { + clear_has_family_name(); + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.SnapshotRegionManifest.StoreFile store_files = 2; +inline int SnapshotRegionManifest_FamilyFiles::store_files_size() const { + return store_files_.size(); +} +inline void SnapshotRegionManifest_FamilyFiles::clear_store_files() { + store_files_.Clear(); +} +inline const ::hbase::pb::SnapshotRegionManifest_StoreFile& SnapshotRegionManifest_FamilyFiles::store_files(int index) const { + return store_files_.Get(index); +} +inline ::hbase::pb::SnapshotRegionManifest_StoreFile* SnapshotRegionManifest_FamilyFiles::mutable_store_files(int index) { + return store_files_.Mutable(index); +} +inline ::hbase::pb::SnapshotRegionManifest_StoreFile* SnapshotRegionManifest_FamilyFiles::add_store_files() { + return store_files_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_StoreFile >& +SnapshotRegionManifest_FamilyFiles::store_files() const { + return store_files_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_StoreFile >* +SnapshotRegionManifest_FamilyFiles::mutable_store_files() { + return &store_files_; +} + +// ------------------------------------------------------------------- + +// SnapshotRegionManifest + +// optional int32 version = 1; +inline bool SnapshotRegionManifest::has_version() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SnapshotRegionManifest::set_has_version() { + _has_bits_[0] |= 0x00000001u; +} +inline void SnapshotRegionManifest::clear_has_version() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SnapshotRegionManifest::clear_version() { + version_ = 0; + clear_has_version(); +} +inline ::google::protobuf::int32 SnapshotRegionManifest::version() const { + return version_; +} +inline void SnapshotRegionManifest::set_version(::google::protobuf::int32 value) { + set_has_version(); + version_ = value; +} + +// required .hbase.pb.RegionInfo region_info = 2; +inline bool SnapshotRegionManifest::has_region_info() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SnapshotRegionManifest::set_has_region_info() { + _has_bits_[0] |= 0x00000002u; +} +inline void SnapshotRegionManifest::clear_has_region_info() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SnapshotRegionManifest::clear_region_info() { + if (region_info_ != NULL) region_info_->::hbase::pb::RegionInfo::Clear(); + clear_has_region_info(); +} +inline const ::hbase::pb::RegionInfo& SnapshotRegionManifest::region_info() const { + return region_info_ != NULL ? *region_info_ : *default_instance_->region_info_; +} +inline ::hbase::pb::RegionInfo* SnapshotRegionManifest::mutable_region_info() { + set_has_region_info(); + if (region_info_ == NULL) region_info_ = new ::hbase::pb::RegionInfo; + return region_info_; +} +inline ::hbase::pb::RegionInfo* SnapshotRegionManifest::release_region_info() { + clear_has_region_info(); + ::hbase::pb::RegionInfo* temp = region_info_; + region_info_ = NULL; + return temp; +} +inline void SnapshotRegionManifest::set_allocated_region_info(::hbase::pb::RegionInfo* region_info) { + delete region_info_; + region_info_ = region_info; + if (region_info) { + set_has_region_info(); + } else { + clear_has_region_info(); + } +} + +// repeated .hbase.pb.SnapshotRegionManifest.FamilyFiles family_files = 3; +inline int SnapshotRegionManifest::family_files_size() const { + return family_files_.size(); +} +inline void SnapshotRegionManifest::clear_family_files() { + family_files_.Clear(); +} +inline const ::hbase::pb::SnapshotRegionManifest_FamilyFiles& SnapshotRegionManifest::family_files(int index) const { + return family_files_.Get(index); +} +inline ::hbase::pb::SnapshotRegionManifest_FamilyFiles* SnapshotRegionManifest::mutable_family_files(int index) { + return family_files_.Mutable(index); +} +inline ::hbase::pb::SnapshotRegionManifest_FamilyFiles* SnapshotRegionManifest::add_family_files() { + return family_files_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_FamilyFiles >& +SnapshotRegionManifest::family_files() const { + return family_files_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest_FamilyFiles >* +SnapshotRegionManifest::mutable_family_files() { + return &family_files_; +} + +// ------------------------------------------------------------------- + +// SnapshotDataManifest + +// required .hbase.pb.TableSchema table_schema = 1; +inline bool SnapshotDataManifest::has_table_schema() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SnapshotDataManifest::set_has_table_schema() { + _has_bits_[0] |= 0x00000001u; +} +inline void SnapshotDataManifest::clear_has_table_schema() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SnapshotDataManifest::clear_table_schema() { + if (table_schema_ != NULL) table_schema_->::hbase::pb::TableSchema::Clear(); + clear_has_table_schema(); +} +inline const ::hbase::pb::TableSchema& SnapshotDataManifest::table_schema() const { + return table_schema_ != NULL ? *table_schema_ : *default_instance_->table_schema_; +} +inline ::hbase::pb::TableSchema* SnapshotDataManifest::mutable_table_schema() { + set_has_table_schema(); + if (table_schema_ == NULL) table_schema_ = new ::hbase::pb::TableSchema; + return table_schema_; +} +inline ::hbase::pb::TableSchema* SnapshotDataManifest::release_table_schema() { + clear_has_table_schema(); + ::hbase::pb::TableSchema* temp = table_schema_; + table_schema_ = NULL; + return temp; +} +inline void SnapshotDataManifest::set_allocated_table_schema(::hbase::pb::TableSchema* table_schema) { + delete table_schema_; + table_schema_ = table_schema; + if (table_schema) { + set_has_table_schema(); + } else { + clear_has_table_schema(); + } +} + +// repeated .hbase.pb.SnapshotRegionManifest region_manifests = 2; +inline int SnapshotDataManifest::region_manifests_size() const { + return region_manifests_.size(); +} +inline void SnapshotDataManifest::clear_region_manifests() { + region_manifests_.Clear(); +} +inline const ::hbase::pb::SnapshotRegionManifest& SnapshotDataManifest::region_manifests(int index) const { + return region_manifests_.Get(index); +} +inline ::hbase::pb::SnapshotRegionManifest* SnapshotDataManifest::mutable_region_manifests(int index) { + return region_manifests_.Mutable(index); +} +inline ::hbase::pb::SnapshotRegionManifest* SnapshotDataManifest::add_region_manifests() { + return region_manifests_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest >& +SnapshotDataManifest::region_manifests() const { + return region_manifests_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::SnapshotRegionManifest >* +SnapshotDataManifest::mutable_region_manifests() { + return ®ion_manifests_; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::SnapshotFileInfo_Type>() { + return ::hbase::pb::SnapshotFileInfo_Type_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Snapshot_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/Tracing.pb.cc b/hbase-native-client/src/rpc/generated/Tracing.pb.cc new file mode 100644 index 0000000..ebdfceb --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Tracing.pb.cc @@ -0,0 +1,354 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Tracing.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "Tracing.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* RPCTInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RPCTInfo_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_Tracing_2eproto() { + protobuf_AddDesc_Tracing_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "Tracing.proto"); + GOOGLE_CHECK(file != NULL); + RPCTInfo_descriptor_ = file->message_type(0); + static const int RPCTInfo_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RPCTInfo, trace_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RPCTInfo, parent_id_), + }; + RPCTInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RPCTInfo_descriptor_, + RPCTInfo::default_instance_, + RPCTInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RPCTInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RPCTInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RPCTInfo)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_Tracing_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RPCTInfo_descriptor_, &RPCTInfo::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_Tracing_2eproto() { + delete RPCTInfo::default_instance_; + delete RPCTInfo_reflection_; +} + +void protobuf_AddDesc_Tracing_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\rTracing.proto\022\010hbase.pb\"/\n\010RPCTInfo\022\020\n" + "\010trace_id\030\001 \001(\003\022\021\n\tparent_id\030\002 \001(\003B@\n*or" + "g.apache.hadoop.hbase.protobuf.generated" + "B\rTracingProtosH\001\240\001\001", 140); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Tracing.proto", &protobuf_RegisterTypes); + RPCTInfo::default_instance_ = new RPCTInfo(); + RPCTInfo::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Tracing_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_Tracing_2eproto { + StaticDescriptorInitializer_Tracing_2eproto() { + protobuf_AddDesc_Tracing_2eproto(); + } +} static_descriptor_initializer_Tracing_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int RPCTInfo::kTraceIdFieldNumber; +const int RPCTInfo::kParentIdFieldNumber; +#endif // !_MSC_VER + +RPCTInfo::RPCTInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RPCTInfo::InitAsDefaultInstance() { +} + +RPCTInfo::RPCTInfo(const RPCTInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RPCTInfo::SharedCtor() { + _cached_size_ = 0; + trace_id_ = GOOGLE_LONGLONG(0); + parent_id_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RPCTInfo::~RPCTInfo() { + SharedDtor(); +} + +void RPCTInfo::SharedDtor() { + if (this != default_instance_) { + } +} + +void RPCTInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RPCTInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RPCTInfo_descriptor_; +} + +const RPCTInfo& RPCTInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Tracing_2eproto(); + return *default_instance_; +} + +RPCTInfo* RPCTInfo::default_instance_ = NULL; + +RPCTInfo* RPCTInfo::New() const { + return new RPCTInfo; +} + +void RPCTInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + trace_id_ = GOOGLE_LONGLONG(0); + parent_id_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RPCTInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int64 trace_id = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &trace_id_))); + set_has_trace_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_parent_id; + break; + } + + // optional int64 parent_id = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_parent_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &parent_id_))); + set_has_parent_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RPCTInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional int64 trace_id = 1; + if (has_trace_id()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->trace_id(), output); + } + + // optional int64 parent_id = 2; + if (has_parent_id()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->parent_id(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RPCTInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional int64 trace_id = 1; + if (has_trace_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->trace_id(), target); + } + + // optional int64 parent_id = 2; + if (has_parent_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->parent_id(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RPCTInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional int64 trace_id = 1; + if (has_trace_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->trace_id()); + } + + // optional int64 parent_id = 2; + if (has_parent_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->parent_id()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RPCTInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RPCTInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RPCTInfo::MergeFrom(const RPCTInfo& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_trace_id()) { + set_trace_id(from.trace_id()); + } + if (from.has_parent_id()) { + set_parent_id(from.parent_id()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RPCTInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RPCTInfo::CopyFrom(const RPCTInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RPCTInfo::IsInitialized() const { + + return true; +} + +void RPCTInfo::Swap(RPCTInfo* other) { + if (other != this) { + std::swap(trace_id_, other->trace_id_); + std::swap(parent_id_, other->parent_id_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RPCTInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RPCTInfo_descriptor_; + metadata.reflection = RPCTInfo_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/Tracing.pb.h b/hbase-native-client/src/rpc/generated/Tracing.pb.h new file mode 100644 index 0000000..2509cc9 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/Tracing.pb.h @@ -0,0 +1,199 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Tracing.proto + +#ifndef PROTOBUF_Tracing_2eproto__INCLUDED +#define PROTOBUF_Tracing_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_Tracing_2eproto(); +void protobuf_AssignDesc_Tracing_2eproto(); +void protobuf_ShutdownFile_Tracing_2eproto(); + +class RPCTInfo; + +// =================================================================== + +class RPCTInfo : public ::google::protobuf::Message { + public: + RPCTInfo(); + virtual ~RPCTInfo(); + + RPCTInfo(const RPCTInfo& from); + + inline RPCTInfo& operator=(const RPCTInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RPCTInfo& default_instance(); + + void Swap(RPCTInfo* other); + + // implements Message ---------------------------------------------- + + RPCTInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RPCTInfo& from); + void MergeFrom(const RPCTInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional int64 trace_id = 1; + inline bool has_trace_id() const; + inline void clear_trace_id(); + static const int kTraceIdFieldNumber = 1; + inline ::google::protobuf::int64 trace_id() const; + inline void set_trace_id(::google::protobuf::int64 value); + + // optional int64 parent_id = 2; + inline bool has_parent_id() const; + inline void clear_parent_id(); + static const int kParentIdFieldNumber = 2; + inline ::google::protobuf::int64 parent_id() const; + inline void set_parent_id(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.RPCTInfo) + private: + inline void set_has_trace_id(); + inline void clear_has_trace_id(); + inline void set_has_parent_id(); + inline void clear_has_parent_id(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int64 trace_id_; + ::google::protobuf::int64 parent_id_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_Tracing_2eproto(); + friend void protobuf_AssignDesc_Tracing_2eproto(); + friend void protobuf_ShutdownFile_Tracing_2eproto(); + + void InitAsDefaultInstance(); + static RPCTInfo* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// RPCTInfo + +// optional int64 trace_id = 1; +inline bool RPCTInfo::has_trace_id() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RPCTInfo::set_has_trace_id() { + _has_bits_[0] |= 0x00000001u; +} +inline void RPCTInfo::clear_has_trace_id() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RPCTInfo::clear_trace_id() { + trace_id_ = GOOGLE_LONGLONG(0); + clear_has_trace_id(); +} +inline ::google::protobuf::int64 RPCTInfo::trace_id() const { + return trace_id_; +} +inline void RPCTInfo::set_trace_id(::google::protobuf::int64 value) { + set_has_trace_id(); + trace_id_ = value; +} + +// optional int64 parent_id = 2; +inline bool RPCTInfo::has_parent_id() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RPCTInfo::set_has_parent_id() { + _has_bits_[0] |= 0x00000002u; +} +inline void RPCTInfo::clear_has_parent_id() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RPCTInfo::clear_parent_id() { + parent_id_ = GOOGLE_LONGLONG(0); + clear_has_parent_id(); +} +inline ::google::protobuf::int64 RPCTInfo::parent_id() const { + return parent_id_; +} +inline void RPCTInfo::set_parent_id(::google::protobuf::int64 value) { + set_has_parent_id(); + parent_id_ = value; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_Tracing_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/VisibilityLabels.pb.cc b/hbase-native-client/src/rpc/generated/VisibilityLabels.pb.cc new file mode 100644 index 0000000..1484267 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/VisibilityLabels.pb.cc @@ -0,0 +1,2642 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VisibilityLabels.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "VisibilityLabels.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* VisibilityLabelsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + VisibilityLabelsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* VisibilityLabel_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + VisibilityLabel_reflection_ = NULL; +const ::google::protobuf::Descriptor* VisibilityLabelsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + VisibilityLabelsResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* SetAuthsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SetAuthsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* UserAuthorizations_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UserAuthorizations_reflection_ = NULL; +const ::google::protobuf::Descriptor* MultiUserAuthorizations_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MultiUserAuthorizations_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetAuthsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetAuthsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* GetAuthsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GetAuthsResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListLabelsRequest_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListLabelsRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* ListLabelsResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ListLabelsResponse_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_VisibilityLabels_2eproto() { + protobuf_AddDesc_VisibilityLabels_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "VisibilityLabels.proto"); + GOOGLE_CHECK(file != NULL); + VisibilityLabelsRequest_descriptor_ = file->message_type(0); + static const int VisibilityLabelsRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabelsRequest, vislabel_), + }; + VisibilityLabelsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + VisibilityLabelsRequest_descriptor_, + VisibilityLabelsRequest::default_instance_, + VisibilityLabelsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabelsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabelsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(VisibilityLabelsRequest)); + VisibilityLabel_descriptor_ = file->message_type(1); + static const int VisibilityLabel_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabel, label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabel, ordinal_), + }; + VisibilityLabel_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + VisibilityLabel_descriptor_, + VisibilityLabel::default_instance_, + VisibilityLabel_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabel, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabel, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(VisibilityLabel)); + VisibilityLabelsResponse_descriptor_ = file->message_type(2); + static const int VisibilityLabelsResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabelsResponse, result_), + }; + VisibilityLabelsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + VisibilityLabelsResponse_descriptor_, + VisibilityLabelsResponse::default_instance_, + VisibilityLabelsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabelsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VisibilityLabelsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(VisibilityLabelsResponse)); + SetAuthsRequest_descriptor_ = file->message_type(3); + static const int SetAuthsRequest_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetAuthsRequest, user_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetAuthsRequest, auth_), + }; + SetAuthsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SetAuthsRequest_descriptor_, + SetAuthsRequest::default_instance_, + SetAuthsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetAuthsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetAuthsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SetAuthsRequest)); + UserAuthorizations_descriptor_ = file->message_type(4); + static const int UserAuthorizations_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserAuthorizations, user_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserAuthorizations, auth_), + }; + UserAuthorizations_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UserAuthorizations_descriptor_, + UserAuthorizations::default_instance_, + UserAuthorizations_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserAuthorizations, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserAuthorizations, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UserAuthorizations)); + MultiUserAuthorizations_descriptor_ = file->message_type(5); + static const int MultiUserAuthorizations_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiUserAuthorizations, userauths_), + }; + MultiUserAuthorizations_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MultiUserAuthorizations_descriptor_, + MultiUserAuthorizations::default_instance_, + MultiUserAuthorizations_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiUserAuthorizations, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MultiUserAuthorizations, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MultiUserAuthorizations)); + GetAuthsRequest_descriptor_ = file->message_type(6); + static const int GetAuthsRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthsRequest, user_), + }; + GetAuthsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetAuthsRequest_descriptor_, + GetAuthsRequest::default_instance_, + GetAuthsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetAuthsRequest)); + GetAuthsResponse_descriptor_ = file->message_type(7); + static const int GetAuthsResponse_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthsResponse, user_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthsResponse, auth_), + }; + GetAuthsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GetAuthsResponse_descriptor_, + GetAuthsResponse::default_instance_, + GetAuthsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAuthsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GetAuthsResponse)); + ListLabelsRequest_descriptor_ = file->message_type(8); + static const int ListLabelsRequest_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListLabelsRequest, regex_), + }; + ListLabelsRequest_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListLabelsRequest_descriptor_, + ListLabelsRequest::default_instance_, + ListLabelsRequest_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListLabelsRequest, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListLabelsRequest, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListLabelsRequest)); + ListLabelsResponse_descriptor_ = file->message_type(9); + static const int ListLabelsResponse_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListLabelsResponse, label_), + }; + ListLabelsResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ListLabelsResponse_descriptor_, + ListLabelsResponse::default_instance_, + ListLabelsResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListLabelsResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListLabelsResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ListLabelsResponse)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_VisibilityLabels_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + VisibilityLabelsRequest_descriptor_, &VisibilityLabelsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + VisibilityLabel_descriptor_, &VisibilityLabel::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + VisibilityLabelsResponse_descriptor_, &VisibilityLabelsResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SetAuthsRequest_descriptor_, &SetAuthsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UserAuthorizations_descriptor_, &UserAuthorizations::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MultiUserAuthorizations_descriptor_, &MultiUserAuthorizations::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetAuthsRequest_descriptor_, &GetAuthsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GetAuthsResponse_descriptor_, &GetAuthsResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListLabelsRequest_descriptor_, &ListLabelsRequest::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ListLabelsResponse_descriptor_, &ListLabelsResponse::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_VisibilityLabels_2eproto() { + delete VisibilityLabelsRequest::default_instance_; + delete VisibilityLabelsRequest_reflection_; + delete VisibilityLabel::default_instance_; + delete VisibilityLabel_reflection_; + delete VisibilityLabelsResponse::default_instance_; + delete VisibilityLabelsResponse_reflection_; + delete SetAuthsRequest::default_instance_; + delete SetAuthsRequest_reflection_; + delete UserAuthorizations::default_instance_; + delete UserAuthorizations_reflection_; + delete MultiUserAuthorizations::default_instance_; + delete MultiUserAuthorizations_reflection_; + delete GetAuthsRequest::default_instance_; + delete GetAuthsRequest_reflection_; + delete GetAuthsResponse::default_instance_; + delete GetAuthsResponse_reflection_; + delete ListLabelsRequest::default_instance_; + delete ListLabelsRequest_reflection_; + delete ListLabelsResponse::default_instance_; + delete ListLabelsResponse_reflection_; +} + +void protobuf_AddDesc_VisibilityLabels_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_Client_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\026VisibilityLabels.proto\022\010hbase.pb\032\014Clie" + "nt.proto\"F\n\027VisibilityLabelsRequest\022+\n\010v" + "isLabel\030\001 \003(\0132\031.hbase.pb.VisibilityLabel" + "\"1\n\017VisibilityLabel\022\r\n\005label\030\001 \002(\014\022\017\n\007or" + "dinal\030\002 \001(\r\"H\n\030VisibilityLabelsResponse\022" + ",\n\006result\030\001 \003(\0132\034.hbase.pb.RegionActionR" + "esult\"-\n\017SetAuthsRequest\022\014\n\004user\030\001 \002(\014\022\014" + "\n\004auth\030\002 \003(\014\"0\n\022UserAuthorizations\022\014\n\004us" + "er\030\001 \002(\014\022\014\n\004auth\030\002 \003(\r\"J\n\027MultiUserAutho" + "rizations\022/\n\tuserAuths\030\001 \003(\0132\034.hbase.pb." + "UserAuthorizations\"\037\n\017GetAuthsRequest\022\014\n" + "\004user\030\001 \002(\014\".\n\020GetAuthsResponse\022\014\n\004user\030" + "\001 \002(\014\022\014\n\004auth\030\002 \003(\014\"\"\n\021ListLabelsRequest" + "\022\r\n\005regex\030\001 \001(\t\"#\n\022ListLabelsResponse\022\r\n" + "\005label\030\001 \003(\0142\221\003\n\027VisibilityLabelsService" + "\022R\n\taddLabels\022!.hbase.pb.VisibilityLabel" + "sRequest\032\".hbase.pb.VisibilityLabelsResp" + "onse\022I\n\010setAuths\022\031.hbase.pb.SetAuthsRequ" + "est\032\".hbase.pb.VisibilityLabelsResponse\022" + "K\n\nclearAuths\022\031.hbase.pb.SetAuthsRequest" + "\032\".hbase.pb.VisibilityLabelsResponse\022A\n\010" + "getAuths\022\031.hbase.pb.GetAuthsRequest\032\032.hb" + "ase.pb.GetAuthsResponse\022G\n\nlistLabels\022\033." + "hbase.pb.ListLabelsRequest\032\034.hbase.pb.Li" + "stLabelsResponseBL\n*org.apache.hadoop.hb" + "ase.protobuf.generatedB\026VisibilityLabels" + "ProtosH\001\210\001\001\240\001\001", 1054); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "VisibilityLabels.proto", &protobuf_RegisterTypes); + VisibilityLabelsRequest::default_instance_ = new VisibilityLabelsRequest(); + VisibilityLabel::default_instance_ = new VisibilityLabel(); + VisibilityLabelsResponse::default_instance_ = new VisibilityLabelsResponse(); + SetAuthsRequest::default_instance_ = new SetAuthsRequest(); + UserAuthorizations::default_instance_ = new UserAuthorizations(); + MultiUserAuthorizations::default_instance_ = new MultiUserAuthorizations(); + GetAuthsRequest::default_instance_ = new GetAuthsRequest(); + GetAuthsResponse::default_instance_ = new GetAuthsResponse(); + ListLabelsRequest::default_instance_ = new ListLabelsRequest(); + ListLabelsResponse::default_instance_ = new ListLabelsResponse(); + VisibilityLabelsRequest::default_instance_->InitAsDefaultInstance(); + VisibilityLabel::default_instance_->InitAsDefaultInstance(); + VisibilityLabelsResponse::default_instance_->InitAsDefaultInstance(); + SetAuthsRequest::default_instance_->InitAsDefaultInstance(); + UserAuthorizations::default_instance_->InitAsDefaultInstance(); + MultiUserAuthorizations::default_instance_->InitAsDefaultInstance(); + GetAuthsRequest::default_instance_->InitAsDefaultInstance(); + GetAuthsResponse::default_instance_->InitAsDefaultInstance(); + ListLabelsRequest::default_instance_->InitAsDefaultInstance(); + ListLabelsResponse::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_VisibilityLabels_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_VisibilityLabels_2eproto { + StaticDescriptorInitializer_VisibilityLabels_2eproto() { + protobuf_AddDesc_VisibilityLabels_2eproto(); + } +} static_descriptor_initializer_VisibilityLabels_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int VisibilityLabelsRequest::kVisLabelFieldNumber; +#endif // !_MSC_VER + +VisibilityLabelsRequest::VisibilityLabelsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void VisibilityLabelsRequest::InitAsDefaultInstance() { +} + +VisibilityLabelsRequest::VisibilityLabelsRequest(const VisibilityLabelsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void VisibilityLabelsRequest::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +VisibilityLabelsRequest::~VisibilityLabelsRequest() { + SharedDtor(); +} + +void VisibilityLabelsRequest::SharedDtor() { + if (this != default_instance_) { + } +} + +void VisibilityLabelsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VisibilityLabelsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return VisibilityLabelsRequest_descriptor_; +} + +const VisibilityLabelsRequest& VisibilityLabelsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +VisibilityLabelsRequest* VisibilityLabelsRequest::default_instance_ = NULL; + +VisibilityLabelsRequest* VisibilityLabelsRequest::New() const { + return new VisibilityLabelsRequest; +} + +void VisibilityLabelsRequest::Clear() { + vislabel_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool VisibilityLabelsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.VisibilityLabel visLabel = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_visLabel: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_vislabel())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_visLabel; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void VisibilityLabelsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.VisibilityLabel visLabel = 1; + for (int i = 0; i < this->vislabel_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->vislabel(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* VisibilityLabelsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.VisibilityLabel visLabel = 1; + for (int i = 0; i < this->vislabel_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->vislabel(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int VisibilityLabelsRequest::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.VisibilityLabel visLabel = 1; + total_size += 1 * this->vislabel_size(); + for (int i = 0; i < this->vislabel_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->vislabel(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void VisibilityLabelsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const VisibilityLabelsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void VisibilityLabelsRequest::MergeFrom(const VisibilityLabelsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + vislabel_.MergeFrom(from.vislabel_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void VisibilityLabelsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VisibilityLabelsRequest::CopyFrom(const VisibilityLabelsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VisibilityLabelsRequest::IsInitialized() const { + + for (int i = 0; i < vislabel_size(); i++) { + if (!this->vislabel(i).IsInitialized()) return false; + } + return true; +} + +void VisibilityLabelsRequest::Swap(VisibilityLabelsRequest* other) { + if (other != this) { + vislabel_.Swap(&other->vislabel_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata VisibilityLabelsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = VisibilityLabelsRequest_descriptor_; + metadata.reflection = VisibilityLabelsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int VisibilityLabel::kLabelFieldNumber; +const int VisibilityLabel::kOrdinalFieldNumber; +#endif // !_MSC_VER + +VisibilityLabel::VisibilityLabel() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void VisibilityLabel::InitAsDefaultInstance() { +} + +VisibilityLabel::VisibilityLabel(const VisibilityLabel& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void VisibilityLabel::SharedCtor() { + _cached_size_ = 0; + label_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ordinal_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +VisibilityLabel::~VisibilityLabel() { + SharedDtor(); +} + +void VisibilityLabel::SharedDtor() { + if (label_ != &::google::protobuf::internal::kEmptyString) { + delete label_; + } + if (this != default_instance_) { + } +} + +void VisibilityLabel::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VisibilityLabel::descriptor() { + protobuf_AssignDescriptorsOnce(); + return VisibilityLabel_descriptor_; +} + +const VisibilityLabel& VisibilityLabel::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +VisibilityLabel* VisibilityLabel::default_instance_ = NULL; + +VisibilityLabel* VisibilityLabel::New() const { + return new VisibilityLabel; +} + +void VisibilityLabel::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_label()) { + if (label_ != &::google::protobuf::internal::kEmptyString) { + label_->clear(); + } + } + ordinal_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool VisibilityLabel::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes label = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_label())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_ordinal; + break; + } + + // optional uint32 ordinal = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_ordinal: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &ordinal_))); + set_has_ordinal(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void VisibilityLabel::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes label = 1; + if (has_label()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->label(), output); + } + + // optional uint32 ordinal = 2; + if (has_ordinal()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->ordinal(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* VisibilityLabel::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes label = 1; + if (has_label()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->label(), target); + } + + // optional uint32 ordinal = 2; + if (has_ordinal()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->ordinal(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int VisibilityLabel::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes label = 1; + if (has_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->label()); + } + + // optional uint32 ordinal = 2; + if (has_ordinal()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->ordinal()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void VisibilityLabel::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const VisibilityLabel* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void VisibilityLabel::MergeFrom(const VisibilityLabel& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_label()) { + set_label(from.label()); + } + if (from.has_ordinal()) { + set_ordinal(from.ordinal()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void VisibilityLabel::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VisibilityLabel::CopyFrom(const VisibilityLabel& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VisibilityLabel::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void VisibilityLabel::Swap(VisibilityLabel* other) { + if (other != this) { + std::swap(label_, other->label_); + std::swap(ordinal_, other->ordinal_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata VisibilityLabel::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = VisibilityLabel_descriptor_; + metadata.reflection = VisibilityLabel_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int VisibilityLabelsResponse::kResultFieldNumber; +#endif // !_MSC_VER + +VisibilityLabelsResponse::VisibilityLabelsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void VisibilityLabelsResponse::InitAsDefaultInstance() { +} + +VisibilityLabelsResponse::VisibilityLabelsResponse(const VisibilityLabelsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void VisibilityLabelsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +VisibilityLabelsResponse::~VisibilityLabelsResponse() { + SharedDtor(); +} + +void VisibilityLabelsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void VisibilityLabelsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VisibilityLabelsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return VisibilityLabelsResponse_descriptor_; +} + +const VisibilityLabelsResponse& VisibilityLabelsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +VisibilityLabelsResponse* VisibilityLabelsResponse::default_instance_ = NULL; + +VisibilityLabelsResponse* VisibilityLabelsResponse::New() const { + return new VisibilityLabelsResponse; +} + +void VisibilityLabelsResponse::Clear() { + result_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool VisibilityLabelsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.RegionActionResult result = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_result: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_result())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_result; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void VisibilityLabelsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.RegionActionResult result = 1; + for (int i = 0; i < this->result_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->result(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* VisibilityLabelsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.RegionActionResult result = 1; + for (int i = 0; i < this->result_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->result(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int VisibilityLabelsResponse::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.RegionActionResult result = 1; + total_size += 1 * this->result_size(); + for (int i = 0; i < this->result_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->result(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void VisibilityLabelsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const VisibilityLabelsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void VisibilityLabelsResponse::MergeFrom(const VisibilityLabelsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + result_.MergeFrom(from.result_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void VisibilityLabelsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VisibilityLabelsResponse::CopyFrom(const VisibilityLabelsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VisibilityLabelsResponse::IsInitialized() const { + + for (int i = 0; i < result_size(); i++) { + if (!this->result(i).IsInitialized()) return false; + } + return true; +} + +void VisibilityLabelsResponse::Swap(VisibilityLabelsResponse* other) { + if (other != this) { + result_.Swap(&other->result_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata VisibilityLabelsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = VisibilityLabelsResponse_descriptor_; + metadata.reflection = VisibilityLabelsResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SetAuthsRequest::kUserFieldNumber; +const int SetAuthsRequest::kAuthFieldNumber; +#endif // !_MSC_VER + +SetAuthsRequest::SetAuthsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SetAuthsRequest::InitAsDefaultInstance() { +} + +SetAuthsRequest::SetAuthsRequest(const SetAuthsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SetAuthsRequest::SharedCtor() { + _cached_size_ = 0; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SetAuthsRequest::~SetAuthsRequest() { + SharedDtor(); +} + +void SetAuthsRequest::SharedDtor() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (this != default_instance_) { + } +} + +void SetAuthsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetAuthsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SetAuthsRequest_descriptor_; +} + +const SetAuthsRequest& SetAuthsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +SetAuthsRequest* SetAuthsRequest::default_instance_ = NULL; + +SetAuthsRequest* SetAuthsRequest::New() const { + return new SetAuthsRequest; +} + +void SetAuthsRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user()) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + } + } + auth_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SetAuthsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes user = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_user())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_auth; + break; + } + + // repeated bytes auth = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_auth: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_auth())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_auth; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SetAuthsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes user = 1; + if (has_user()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->user(), output); + } + + // repeated bytes auth = 2; + for (int i = 0; i < this->auth_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->auth(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SetAuthsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes user = 1; + if (has_user()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->user(), target); + } + + // repeated bytes auth = 2; + for (int i = 0; i < this->auth_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(2, this->auth(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SetAuthsRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes user = 1; + if (has_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->user()); + } + + } + // repeated bytes auth = 2; + total_size += 1 * this->auth_size(); + for (int i = 0; i < this->auth_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->auth(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SetAuthsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SetAuthsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SetAuthsRequest::MergeFrom(const SetAuthsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + auth_.MergeFrom(from.auth_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user()) { + set_user(from.user()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SetAuthsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SetAuthsRequest::CopyFrom(const SetAuthsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SetAuthsRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SetAuthsRequest::Swap(SetAuthsRequest* other) { + if (other != this) { + std::swap(user_, other->user_); + auth_.Swap(&other->auth_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SetAuthsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SetAuthsRequest_descriptor_; + metadata.reflection = SetAuthsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int UserAuthorizations::kUserFieldNumber; +const int UserAuthorizations::kAuthFieldNumber; +#endif // !_MSC_VER + +UserAuthorizations::UserAuthorizations() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UserAuthorizations::InitAsDefaultInstance() { +} + +UserAuthorizations::UserAuthorizations(const UserAuthorizations& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UserAuthorizations::SharedCtor() { + _cached_size_ = 0; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UserAuthorizations::~UserAuthorizations() { + SharedDtor(); +} + +void UserAuthorizations::SharedDtor() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (this != default_instance_) { + } +} + +void UserAuthorizations::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UserAuthorizations::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UserAuthorizations_descriptor_; +} + +const UserAuthorizations& UserAuthorizations::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +UserAuthorizations* UserAuthorizations::default_instance_ = NULL; + +UserAuthorizations* UserAuthorizations::New() const { + return new UserAuthorizations; +} + +void UserAuthorizations::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user()) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + } + } + auth_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UserAuthorizations::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes user = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_user())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_auth; + break; + } + + // repeated uint32 auth = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_auth: + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16, input, this->mutable_auth()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_auth()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_auth; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UserAuthorizations::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes user = 1; + if (has_user()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->user(), output); + } + + // repeated uint32 auth = 2; + for (int i = 0; i < this->auth_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->auth(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UserAuthorizations::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes user = 1; + if (has_user()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->user(), target); + } + + // repeated uint32 auth = 2; + for (int i = 0; i < this->auth_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->auth(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UserAuthorizations::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes user = 1; + if (has_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->user()); + } + + } + // repeated uint32 auth = 2; + { + int data_size = 0; + for (int i = 0; i < this->auth_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->auth(i)); + } + total_size += 1 * this->auth_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UserAuthorizations::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UserAuthorizations* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UserAuthorizations::MergeFrom(const UserAuthorizations& from) { + GOOGLE_CHECK_NE(&from, this); + auth_.MergeFrom(from.auth_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user()) { + set_user(from.user()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UserAuthorizations::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UserAuthorizations::CopyFrom(const UserAuthorizations& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UserAuthorizations::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void UserAuthorizations::Swap(UserAuthorizations* other) { + if (other != this) { + std::swap(user_, other->user_); + auth_.Swap(&other->auth_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UserAuthorizations::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UserAuthorizations_descriptor_; + metadata.reflection = UserAuthorizations_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MultiUserAuthorizations::kUserAuthsFieldNumber; +#endif // !_MSC_VER + +MultiUserAuthorizations::MultiUserAuthorizations() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MultiUserAuthorizations::InitAsDefaultInstance() { +} + +MultiUserAuthorizations::MultiUserAuthorizations(const MultiUserAuthorizations& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MultiUserAuthorizations::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MultiUserAuthorizations::~MultiUserAuthorizations() { + SharedDtor(); +} + +void MultiUserAuthorizations::SharedDtor() { + if (this != default_instance_) { + } +} + +void MultiUserAuthorizations::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MultiUserAuthorizations::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MultiUserAuthorizations_descriptor_; +} + +const MultiUserAuthorizations& MultiUserAuthorizations::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +MultiUserAuthorizations* MultiUserAuthorizations::default_instance_ = NULL; + +MultiUserAuthorizations* MultiUserAuthorizations::New() const { + return new MultiUserAuthorizations; +} + +void MultiUserAuthorizations::Clear() { + userauths_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MultiUserAuthorizations::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .hbase.pb.UserAuthorizations userAuths = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_userAuths: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_userauths())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_userAuths; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MultiUserAuthorizations::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .hbase.pb.UserAuthorizations userAuths = 1; + for (int i = 0; i < this->userauths_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->userauths(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MultiUserAuthorizations::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .hbase.pb.UserAuthorizations userAuths = 1; + for (int i = 0; i < this->userauths_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->userauths(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MultiUserAuthorizations::ByteSize() const { + int total_size = 0; + + // repeated .hbase.pb.UserAuthorizations userAuths = 1; + total_size += 1 * this->userauths_size(); + for (int i = 0; i < this->userauths_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->userauths(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MultiUserAuthorizations::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MultiUserAuthorizations* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MultiUserAuthorizations::MergeFrom(const MultiUserAuthorizations& from) { + GOOGLE_CHECK_NE(&from, this); + userauths_.MergeFrom(from.userauths_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MultiUserAuthorizations::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MultiUserAuthorizations::CopyFrom(const MultiUserAuthorizations& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MultiUserAuthorizations::IsInitialized() const { + + for (int i = 0; i < userauths_size(); i++) { + if (!this->userauths(i).IsInitialized()) return false; + } + return true; +} + +void MultiUserAuthorizations::Swap(MultiUserAuthorizations* other) { + if (other != this) { + userauths_.Swap(&other->userauths_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MultiUserAuthorizations::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MultiUserAuthorizations_descriptor_; + metadata.reflection = MultiUserAuthorizations_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetAuthsRequest::kUserFieldNumber; +#endif // !_MSC_VER + +GetAuthsRequest::GetAuthsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetAuthsRequest::InitAsDefaultInstance() { +} + +GetAuthsRequest::GetAuthsRequest(const GetAuthsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetAuthsRequest::SharedCtor() { + _cached_size_ = 0; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetAuthsRequest::~GetAuthsRequest() { + SharedDtor(); +} + +void GetAuthsRequest::SharedDtor() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (this != default_instance_) { + } +} + +void GetAuthsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetAuthsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetAuthsRequest_descriptor_; +} + +const GetAuthsRequest& GetAuthsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +GetAuthsRequest* GetAuthsRequest::default_instance_ = NULL; + +GetAuthsRequest* GetAuthsRequest::New() const { + return new GetAuthsRequest; +} + +void GetAuthsRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user()) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetAuthsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes user = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_user())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetAuthsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes user = 1; + if (has_user()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->user(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetAuthsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes user = 1; + if (has_user()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->user(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetAuthsRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes user = 1; + if (has_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->user()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetAuthsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetAuthsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetAuthsRequest::MergeFrom(const GetAuthsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user()) { + set_user(from.user()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetAuthsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetAuthsRequest::CopyFrom(const GetAuthsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAuthsRequest::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void GetAuthsRequest::Swap(GetAuthsRequest* other) { + if (other != this) { + std::swap(user_, other->user_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetAuthsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetAuthsRequest_descriptor_; + metadata.reflection = GetAuthsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GetAuthsResponse::kUserFieldNumber; +const int GetAuthsResponse::kAuthFieldNumber; +#endif // !_MSC_VER + +GetAuthsResponse::GetAuthsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GetAuthsResponse::InitAsDefaultInstance() { +} + +GetAuthsResponse::GetAuthsResponse(const GetAuthsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GetAuthsResponse::SharedCtor() { + _cached_size_ = 0; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GetAuthsResponse::~GetAuthsResponse() { + SharedDtor(); +} + +void GetAuthsResponse::SharedDtor() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (this != default_instance_) { + } +} + +void GetAuthsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetAuthsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GetAuthsResponse_descriptor_; +} + +const GetAuthsResponse& GetAuthsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +GetAuthsResponse* GetAuthsResponse::default_instance_ = NULL; + +GetAuthsResponse* GetAuthsResponse::New() const { + return new GetAuthsResponse; +} + +void GetAuthsResponse::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_user()) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + } + } + auth_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GetAuthsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes user = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_user())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_auth; + break; + } + + // repeated bytes auth = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_auth: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_auth())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_auth; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GetAuthsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes user = 1; + if (has_user()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->user(), output); + } + + // repeated bytes auth = 2; + for (int i = 0; i < this->auth_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->auth(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GetAuthsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes user = 1; + if (has_user()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->user(), target); + } + + // repeated bytes auth = 2; + for (int i = 0; i < this->auth_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(2, this->auth(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GetAuthsResponse::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes user = 1; + if (has_user()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->user()); + } + + } + // repeated bytes auth = 2; + total_size += 1 * this->auth_size(); + for (int i = 0; i < this->auth_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->auth(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GetAuthsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GetAuthsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GetAuthsResponse::MergeFrom(const GetAuthsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + auth_.MergeFrom(from.auth_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_user()) { + set_user(from.user()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GetAuthsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetAuthsResponse::CopyFrom(const GetAuthsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetAuthsResponse::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void GetAuthsResponse::Swap(GetAuthsResponse* other) { + if (other != this) { + std::swap(user_, other->user_); + auth_.Swap(&other->auth_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GetAuthsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GetAuthsResponse_descriptor_; + metadata.reflection = GetAuthsResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListLabelsRequest::kRegexFieldNumber; +#endif // !_MSC_VER + +ListLabelsRequest::ListLabelsRequest() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListLabelsRequest::InitAsDefaultInstance() { +} + +ListLabelsRequest::ListLabelsRequest(const ListLabelsRequest& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListLabelsRequest::SharedCtor() { + _cached_size_ = 0; + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListLabelsRequest::~ListLabelsRequest() { + SharedDtor(); +} + +void ListLabelsRequest::SharedDtor() { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + delete regex_; + } + if (this != default_instance_) { + } +} + +void ListLabelsRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListLabelsRequest::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListLabelsRequest_descriptor_; +} + +const ListLabelsRequest& ListLabelsRequest::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +ListLabelsRequest* ListLabelsRequest::default_instance_ = NULL; + +ListLabelsRequest* ListLabelsRequest::New() const { + return new ListLabelsRequest; +} + +void ListLabelsRequest::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_regex()) { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + regex_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListLabelsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string regex = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regex())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListLabelsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional string regex = 1; + if (has_regex()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->regex(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListLabelsRequest::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional string regex = 1; + if (has_regex()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->regex().data(), this->regex().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->regex(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListLabelsRequest::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional string regex = 1; + if (has_regex()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regex()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListLabelsRequest::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListLabelsRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListLabelsRequest::MergeFrom(const ListLabelsRequest& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_regex()) { + set_regex(from.regex()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListLabelsRequest::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListLabelsRequest::CopyFrom(const ListLabelsRequest& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListLabelsRequest::IsInitialized() const { + + return true; +} + +void ListLabelsRequest::Swap(ListLabelsRequest* other) { + if (other != this) { + std::swap(regex_, other->regex_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListLabelsRequest::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListLabelsRequest_descriptor_; + metadata.reflection = ListLabelsRequest_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ListLabelsResponse::kLabelFieldNumber; +#endif // !_MSC_VER + +ListLabelsResponse::ListLabelsResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ListLabelsResponse::InitAsDefaultInstance() { +} + +ListLabelsResponse::ListLabelsResponse(const ListLabelsResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ListLabelsResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ListLabelsResponse::~ListLabelsResponse() { + SharedDtor(); +} + +void ListLabelsResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ListLabelsResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListLabelsResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ListLabelsResponse_descriptor_; +} + +const ListLabelsResponse& ListLabelsResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_VisibilityLabels_2eproto(); + return *default_instance_; +} + +ListLabelsResponse* ListLabelsResponse::default_instance_ = NULL; + +ListLabelsResponse* ListLabelsResponse::New() const { + return new ListLabelsResponse; +} + +void ListLabelsResponse::Clear() { + label_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ListLabelsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated bytes label = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_label: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_label())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_label; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ListLabelsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated bytes label = 1; + for (int i = 0; i < this->label_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->label(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ListLabelsResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated bytes label = 1; + for (int i = 0; i < this->label_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->label(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ListLabelsResponse::ByteSize() const { + int total_size = 0; + + // repeated bytes label = 1; + total_size += 1 * this->label_size(); + for (int i = 0; i < this->label_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->label(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ListLabelsResponse::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ListLabelsResponse* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ListLabelsResponse::MergeFrom(const ListLabelsResponse& from) { + GOOGLE_CHECK_NE(&from, this); + label_.MergeFrom(from.label_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ListLabelsResponse::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListLabelsResponse::CopyFrom(const ListLabelsResponse& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListLabelsResponse::IsInitialized() const { + + return true; +} + +void ListLabelsResponse::Swap(ListLabelsResponse* other) { + if (other != this) { + label_.Swap(&other->label_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ListLabelsResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ListLabelsResponse_descriptor_; + metadata.reflection = ListLabelsResponse_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/VisibilityLabels.pb.h b/hbase-native-client/src/rpc/generated/VisibilityLabels.pb.h new file mode 100644 index 0000000..6896512 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/VisibilityLabels.pb.h @@ -0,0 +1,1706 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: VisibilityLabels.proto + +#ifndef PROTOBUF_VisibilityLabels_2eproto__INCLUDED +#define PROTOBUF_VisibilityLabels_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include "Client.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_VisibilityLabels_2eproto(); +void protobuf_AssignDesc_VisibilityLabels_2eproto(); +void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + +class VisibilityLabelsRequest; +class VisibilityLabel; +class VisibilityLabelsResponse; +class SetAuthsRequest; +class UserAuthorizations; +class MultiUserAuthorizations; +class GetAuthsRequest; +class GetAuthsResponse; +class ListLabelsRequest; +class ListLabelsResponse; + +// =================================================================== + +class VisibilityLabelsRequest : public ::google::protobuf::Message { + public: + VisibilityLabelsRequest(); + virtual ~VisibilityLabelsRequest(); + + VisibilityLabelsRequest(const VisibilityLabelsRequest& from); + + inline VisibilityLabelsRequest& operator=(const VisibilityLabelsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const VisibilityLabelsRequest& default_instance(); + + void Swap(VisibilityLabelsRequest* other); + + // implements Message ---------------------------------------------- + + VisibilityLabelsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const VisibilityLabelsRequest& from); + void MergeFrom(const VisibilityLabelsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.VisibilityLabel visLabel = 1; + inline int vislabel_size() const; + inline void clear_vislabel(); + static const int kVisLabelFieldNumber = 1; + inline const ::hbase::pb::VisibilityLabel& vislabel(int index) const; + inline ::hbase::pb::VisibilityLabel* mutable_vislabel(int index); + inline ::hbase::pb::VisibilityLabel* add_vislabel(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::VisibilityLabel >& + vislabel() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::VisibilityLabel >* + mutable_vislabel(); + + // @@protoc_insertion_point(class_scope:hbase.pb.VisibilityLabelsRequest) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::VisibilityLabel > vislabel_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static VisibilityLabelsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class VisibilityLabel : public ::google::protobuf::Message { + public: + VisibilityLabel(); + virtual ~VisibilityLabel(); + + VisibilityLabel(const VisibilityLabel& from); + + inline VisibilityLabel& operator=(const VisibilityLabel& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const VisibilityLabel& default_instance(); + + void Swap(VisibilityLabel* other); + + // implements Message ---------------------------------------------- + + VisibilityLabel* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const VisibilityLabel& from); + void MergeFrom(const VisibilityLabel& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes label = 1; + inline bool has_label() const; + inline void clear_label(); + static const int kLabelFieldNumber = 1; + inline const ::std::string& label() const; + inline void set_label(const ::std::string& value); + inline void set_label(const char* value); + inline void set_label(const void* value, size_t size); + inline ::std::string* mutable_label(); + inline ::std::string* release_label(); + inline void set_allocated_label(::std::string* label); + + // optional uint32 ordinal = 2; + inline bool has_ordinal() const; + inline void clear_ordinal(); + static const int kOrdinalFieldNumber = 2; + inline ::google::protobuf::uint32 ordinal() const; + inline void set_ordinal(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.VisibilityLabel) + private: + inline void set_has_label(); + inline void clear_has_label(); + inline void set_has_ordinal(); + inline void clear_has_ordinal(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* label_; + ::google::protobuf::uint32 ordinal_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static VisibilityLabel* default_instance_; +}; +// ------------------------------------------------------------------- + +class VisibilityLabelsResponse : public ::google::protobuf::Message { + public: + VisibilityLabelsResponse(); + virtual ~VisibilityLabelsResponse(); + + VisibilityLabelsResponse(const VisibilityLabelsResponse& from); + + inline VisibilityLabelsResponse& operator=(const VisibilityLabelsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const VisibilityLabelsResponse& default_instance(); + + void Swap(VisibilityLabelsResponse* other); + + // implements Message ---------------------------------------------- + + VisibilityLabelsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const VisibilityLabelsResponse& from); + void MergeFrom(const VisibilityLabelsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.RegionActionResult result = 1; + inline int result_size() const; + inline void clear_result(); + static const int kResultFieldNumber = 1; + inline const ::hbase::pb::RegionActionResult& result(int index) const; + inline ::hbase::pb::RegionActionResult* mutable_result(int index); + inline ::hbase::pb::RegionActionResult* add_result(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult >& + result() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult >* + mutable_result(); + + // @@protoc_insertion_point(class_scope:hbase.pb.VisibilityLabelsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult > result_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static VisibilityLabelsResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class SetAuthsRequest : public ::google::protobuf::Message { + public: + SetAuthsRequest(); + virtual ~SetAuthsRequest(); + + SetAuthsRequest(const SetAuthsRequest& from); + + inline SetAuthsRequest& operator=(const SetAuthsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SetAuthsRequest& default_instance(); + + void Swap(SetAuthsRequest* other); + + // implements Message ---------------------------------------------- + + SetAuthsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SetAuthsRequest& from); + void MergeFrom(const SetAuthsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes user = 1; + inline bool has_user() const; + inline void clear_user(); + static const int kUserFieldNumber = 1; + inline const ::std::string& user() const; + inline void set_user(const ::std::string& value); + inline void set_user(const char* value); + inline void set_user(const void* value, size_t size); + inline ::std::string* mutable_user(); + inline ::std::string* release_user(); + inline void set_allocated_user(::std::string* user); + + // repeated bytes auth = 2; + inline int auth_size() const; + inline void clear_auth(); + static const int kAuthFieldNumber = 2; + inline const ::std::string& auth(int index) const; + inline ::std::string* mutable_auth(int index); + inline void set_auth(int index, const ::std::string& value); + inline void set_auth(int index, const char* value); + inline void set_auth(int index, const void* value, size_t size); + inline ::std::string* add_auth(); + inline void add_auth(const ::std::string& value); + inline void add_auth(const char* value); + inline void add_auth(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& auth() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_auth(); + + // @@protoc_insertion_point(class_scope:hbase.pb.SetAuthsRequest) + private: + inline void set_has_user(); + inline void clear_has_user(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* user_; + ::google::protobuf::RepeatedPtrField< ::std::string> auth_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static SetAuthsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class UserAuthorizations : public ::google::protobuf::Message { + public: + UserAuthorizations(); + virtual ~UserAuthorizations(); + + UserAuthorizations(const UserAuthorizations& from); + + inline UserAuthorizations& operator=(const UserAuthorizations& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UserAuthorizations& default_instance(); + + void Swap(UserAuthorizations* other); + + // implements Message ---------------------------------------------- + + UserAuthorizations* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UserAuthorizations& from); + void MergeFrom(const UserAuthorizations& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes user = 1; + inline bool has_user() const; + inline void clear_user(); + static const int kUserFieldNumber = 1; + inline const ::std::string& user() const; + inline void set_user(const ::std::string& value); + inline void set_user(const char* value); + inline void set_user(const void* value, size_t size); + inline ::std::string* mutable_user(); + inline ::std::string* release_user(); + inline void set_allocated_user(::std::string* user); + + // repeated uint32 auth = 2; + inline int auth_size() const; + inline void clear_auth(); + static const int kAuthFieldNumber = 2; + inline ::google::protobuf::uint32 auth(int index) const; + inline void set_auth(int index, ::google::protobuf::uint32 value); + inline void add_auth(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + auth() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_auth(); + + // @@protoc_insertion_point(class_scope:hbase.pb.UserAuthorizations) + private: + inline void set_has_user(); + inline void clear_has_user(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* user_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > auth_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static UserAuthorizations* default_instance_; +}; +// ------------------------------------------------------------------- + +class MultiUserAuthorizations : public ::google::protobuf::Message { + public: + MultiUserAuthorizations(); + virtual ~MultiUserAuthorizations(); + + MultiUserAuthorizations(const MultiUserAuthorizations& from); + + inline MultiUserAuthorizations& operator=(const MultiUserAuthorizations& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MultiUserAuthorizations& default_instance(); + + void Swap(MultiUserAuthorizations* other); + + // implements Message ---------------------------------------------- + + MultiUserAuthorizations* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MultiUserAuthorizations& from); + void MergeFrom(const MultiUserAuthorizations& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .hbase.pb.UserAuthorizations userAuths = 1; + inline int userauths_size() const; + inline void clear_userauths(); + static const int kUserAuthsFieldNumber = 1; + inline const ::hbase::pb::UserAuthorizations& userauths(int index) const; + inline ::hbase::pb::UserAuthorizations* mutable_userauths(int index); + inline ::hbase::pb::UserAuthorizations* add_userauths(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserAuthorizations >& + userauths() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserAuthorizations >* + mutable_userauths(); + + // @@protoc_insertion_point(class_scope:hbase.pb.MultiUserAuthorizations) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserAuthorizations > userauths_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static MultiUserAuthorizations* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetAuthsRequest : public ::google::protobuf::Message { + public: + GetAuthsRequest(); + virtual ~GetAuthsRequest(); + + GetAuthsRequest(const GetAuthsRequest& from); + + inline GetAuthsRequest& operator=(const GetAuthsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetAuthsRequest& default_instance(); + + void Swap(GetAuthsRequest* other); + + // implements Message ---------------------------------------------- + + GetAuthsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetAuthsRequest& from); + void MergeFrom(const GetAuthsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes user = 1; + inline bool has_user() const; + inline void clear_user(); + static const int kUserFieldNumber = 1; + inline const ::std::string& user() const; + inline void set_user(const ::std::string& value); + inline void set_user(const char* value); + inline void set_user(const void* value, size_t size); + inline ::std::string* mutable_user(); + inline ::std::string* release_user(); + inline void set_allocated_user(::std::string* user); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetAuthsRequest) + private: + inline void set_has_user(); + inline void clear_has_user(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* user_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static GetAuthsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class GetAuthsResponse : public ::google::protobuf::Message { + public: + GetAuthsResponse(); + virtual ~GetAuthsResponse(); + + GetAuthsResponse(const GetAuthsResponse& from); + + inline GetAuthsResponse& operator=(const GetAuthsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GetAuthsResponse& default_instance(); + + void Swap(GetAuthsResponse* other); + + // implements Message ---------------------------------------------- + + GetAuthsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GetAuthsResponse& from); + void MergeFrom(const GetAuthsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes user = 1; + inline bool has_user() const; + inline void clear_user(); + static const int kUserFieldNumber = 1; + inline const ::std::string& user() const; + inline void set_user(const ::std::string& value); + inline void set_user(const char* value); + inline void set_user(const void* value, size_t size); + inline ::std::string* mutable_user(); + inline ::std::string* release_user(); + inline void set_allocated_user(::std::string* user); + + // repeated bytes auth = 2; + inline int auth_size() const; + inline void clear_auth(); + static const int kAuthFieldNumber = 2; + inline const ::std::string& auth(int index) const; + inline ::std::string* mutable_auth(int index); + inline void set_auth(int index, const ::std::string& value); + inline void set_auth(int index, const char* value); + inline void set_auth(int index, const void* value, size_t size); + inline ::std::string* add_auth(); + inline void add_auth(const ::std::string& value); + inline void add_auth(const char* value); + inline void add_auth(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& auth() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_auth(); + + // @@protoc_insertion_point(class_scope:hbase.pb.GetAuthsResponse) + private: + inline void set_has_user(); + inline void clear_has_user(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* user_; + ::google::protobuf::RepeatedPtrField< ::std::string> auth_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static GetAuthsResponse* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListLabelsRequest : public ::google::protobuf::Message { + public: + ListLabelsRequest(); + virtual ~ListLabelsRequest(); + + ListLabelsRequest(const ListLabelsRequest& from); + + inline ListLabelsRequest& operator=(const ListLabelsRequest& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListLabelsRequest& default_instance(); + + void Swap(ListLabelsRequest* other); + + // implements Message ---------------------------------------------- + + ListLabelsRequest* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListLabelsRequest& from); + void MergeFrom(const ListLabelsRequest& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional string regex = 1; + inline bool has_regex() const; + inline void clear_regex(); + static const int kRegexFieldNumber = 1; + inline const ::std::string& regex() const; + inline void set_regex(const ::std::string& value); + inline void set_regex(const char* value); + inline void set_regex(const char* value, size_t size); + inline ::std::string* mutable_regex(); + inline ::std::string* release_regex(); + inline void set_allocated_regex(::std::string* regex); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListLabelsRequest) + private: + inline void set_has_regex(); + inline void clear_has_regex(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* regex_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static ListLabelsRequest* default_instance_; +}; +// ------------------------------------------------------------------- + +class ListLabelsResponse : public ::google::protobuf::Message { + public: + ListLabelsResponse(); + virtual ~ListLabelsResponse(); + + ListLabelsResponse(const ListLabelsResponse& from); + + inline ListLabelsResponse& operator=(const ListLabelsResponse& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ListLabelsResponse& default_instance(); + + void Swap(ListLabelsResponse* other); + + // implements Message ---------------------------------------------- + + ListLabelsResponse* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ListLabelsResponse& from); + void MergeFrom(const ListLabelsResponse& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated bytes label = 1; + inline int label_size() const; + inline void clear_label(); + static const int kLabelFieldNumber = 1; + inline const ::std::string& label(int index) const; + inline ::std::string* mutable_label(int index); + inline void set_label(int index, const ::std::string& value); + inline void set_label(int index, const char* value); + inline void set_label(int index, const void* value, size_t size); + inline ::std::string* add_label(); + inline void add_label(const ::std::string& value); + inline void add_label(const char* value); + inline void add_label(const void* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& label() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_label(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ListLabelsResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::std::string> label_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_VisibilityLabels_2eproto(); + friend void protobuf_AssignDesc_VisibilityLabels_2eproto(); + friend void protobuf_ShutdownFile_VisibilityLabels_2eproto(); + + void InitAsDefaultInstance(); + static ListLabelsResponse* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// VisibilityLabelsRequest + +// repeated .hbase.pb.VisibilityLabel visLabel = 1; +inline int VisibilityLabelsRequest::vislabel_size() const { + return vislabel_.size(); +} +inline void VisibilityLabelsRequest::clear_vislabel() { + vislabel_.Clear(); +} +inline const ::hbase::pb::VisibilityLabel& VisibilityLabelsRequest::vislabel(int index) const { + return vislabel_.Get(index); +} +inline ::hbase::pb::VisibilityLabel* VisibilityLabelsRequest::mutable_vislabel(int index) { + return vislabel_.Mutable(index); +} +inline ::hbase::pb::VisibilityLabel* VisibilityLabelsRequest::add_vislabel() { + return vislabel_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::VisibilityLabel >& +VisibilityLabelsRequest::vislabel() const { + return vislabel_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::VisibilityLabel >* +VisibilityLabelsRequest::mutable_vislabel() { + return &vislabel_; +} + +// ------------------------------------------------------------------- + +// VisibilityLabel + +// required bytes label = 1; +inline bool VisibilityLabel::has_label() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void VisibilityLabel::set_has_label() { + _has_bits_[0] |= 0x00000001u; +} +inline void VisibilityLabel::clear_has_label() { + _has_bits_[0] &= ~0x00000001u; +} +inline void VisibilityLabel::clear_label() { + if (label_ != &::google::protobuf::internal::kEmptyString) { + label_->clear(); + } + clear_has_label(); +} +inline const ::std::string& VisibilityLabel::label() const { + return *label_; +} +inline void VisibilityLabel::set_label(const ::std::string& value) { + set_has_label(); + if (label_ == &::google::protobuf::internal::kEmptyString) { + label_ = new ::std::string; + } + label_->assign(value); +} +inline void VisibilityLabel::set_label(const char* value) { + set_has_label(); + if (label_ == &::google::protobuf::internal::kEmptyString) { + label_ = new ::std::string; + } + label_->assign(value); +} +inline void VisibilityLabel::set_label(const void* value, size_t size) { + set_has_label(); + if (label_ == &::google::protobuf::internal::kEmptyString) { + label_ = new ::std::string; + } + label_->assign(reinterpret_cast(value), size); +} +inline ::std::string* VisibilityLabel::mutable_label() { + set_has_label(); + if (label_ == &::google::protobuf::internal::kEmptyString) { + label_ = new ::std::string; + } + return label_; +} +inline ::std::string* VisibilityLabel::release_label() { + clear_has_label(); + if (label_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = label_; + label_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void VisibilityLabel::set_allocated_label(::std::string* label) { + if (label_ != &::google::protobuf::internal::kEmptyString) { + delete label_; + } + if (label) { + set_has_label(); + label_ = label; + } else { + clear_has_label(); + label_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint32 ordinal = 2; +inline bool VisibilityLabel::has_ordinal() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void VisibilityLabel::set_has_ordinal() { + _has_bits_[0] |= 0x00000002u; +} +inline void VisibilityLabel::clear_has_ordinal() { + _has_bits_[0] &= ~0x00000002u; +} +inline void VisibilityLabel::clear_ordinal() { + ordinal_ = 0u; + clear_has_ordinal(); +} +inline ::google::protobuf::uint32 VisibilityLabel::ordinal() const { + return ordinal_; +} +inline void VisibilityLabel::set_ordinal(::google::protobuf::uint32 value) { + set_has_ordinal(); + ordinal_ = value; +} + +// ------------------------------------------------------------------- + +// VisibilityLabelsResponse + +// repeated .hbase.pb.RegionActionResult result = 1; +inline int VisibilityLabelsResponse::result_size() const { + return result_.size(); +} +inline void VisibilityLabelsResponse::clear_result() { + result_.Clear(); +} +inline const ::hbase::pb::RegionActionResult& VisibilityLabelsResponse::result(int index) const { + return result_.Get(index); +} +inline ::hbase::pb::RegionActionResult* VisibilityLabelsResponse::mutable_result(int index) { + return result_.Mutable(index); +} +inline ::hbase::pb::RegionActionResult* VisibilityLabelsResponse::add_result() { + return result_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult >& +VisibilityLabelsResponse::result() const { + return result_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::RegionActionResult >* +VisibilityLabelsResponse::mutable_result() { + return &result_; +} + +// ------------------------------------------------------------------- + +// SetAuthsRequest + +// required bytes user = 1; +inline bool SetAuthsRequest::has_user() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SetAuthsRequest::set_has_user() { + _has_bits_[0] |= 0x00000001u; +} +inline void SetAuthsRequest::clear_has_user() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SetAuthsRequest::clear_user() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + clear_has_user(); +} +inline const ::std::string& SetAuthsRequest::user() const { + return *user_; +} +inline void SetAuthsRequest::set_user(const ::std::string& value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void SetAuthsRequest::set_user(const char* value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void SetAuthsRequest::set_user(const void* value, size_t size) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* SetAuthsRequest::mutable_user() { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + return user_; +} +inline ::std::string* SetAuthsRequest::release_user() { + clear_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void SetAuthsRequest::set_allocated_user(::std::string* user) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (user) { + set_has_user(); + user_ = user; + } else { + clear_has_user(); + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated bytes auth = 2; +inline int SetAuthsRequest::auth_size() const { + return auth_.size(); +} +inline void SetAuthsRequest::clear_auth() { + auth_.Clear(); +} +inline const ::std::string& SetAuthsRequest::auth(int index) const { + return auth_.Get(index); +} +inline ::std::string* SetAuthsRequest::mutable_auth(int index) { + return auth_.Mutable(index); +} +inline void SetAuthsRequest::set_auth(int index, const ::std::string& value) { + auth_.Mutable(index)->assign(value); +} +inline void SetAuthsRequest::set_auth(int index, const char* value) { + auth_.Mutable(index)->assign(value); +} +inline void SetAuthsRequest::set_auth(int index, const void* value, size_t size) { + auth_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* SetAuthsRequest::add_auth() { + return auth_.Add(); +} +inline void SetAuthsRequest::add_auth(const ::std::string& value) { + auth_.Add()->assign(value); +} +inline void SetAuthsRequest::add_auth(const char* value) { + auth_.Add()->assign(value); +} +inline void SetAuthsRequest::add_auth(const void* value, size_t size) { + auth_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +SetAuthsRequest::auth() const { + return auth_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +SetAuthsRequest::mutable_auth() { + return &auth_; +} + +// ------------------------------------------------------------------- + +// UserAuthorizations + +// required bytes user = 1; +inline bool UserAuthorizations::has_user() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UserAuthorizations::set_has_user() { + _has_bits_[0] |= 0x00000001u; +} +inline void UserAuthorizations::clear_has_user() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UserAuthorizations::clear_user() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + clear_has_user(); +} +inline const ::std::string& UserAuthorizations::user() const { + return *user_; +} +inline void UserAuthorizations::set_user(const ::std::string& value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void UserAuthorizations::set_user(const char* value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void UserAuthorizations::set_user(const void* value, size_t size) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* UserAuthorizations::mutable_user() { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + return user_; +} +inline ::std::string* UserAuthorizations::release_user() { + clear_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void UserAuthorizations::set_allocated_user(::std::string* user) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (user) { + set_has_user(); + user_ = user; + } else { + clear_has_user(); + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated uint32 auth = 2; +inline int UserAuthorizations::auth_size() const { + return auth_.size(); +} +inline void UserAuthorizations::clear_auth() { + auth_.Clear(); +} +inline ::google::protobuf::uint32 UserAuthorizations::auth(int index) const { + return auth_.Get(index); +} +inline void UserAuthorizations::set_auth(int index, ::google::protobuf::uint32 value) { + auth_.Set(index, value); +} +inline void UserAuthorizations::add_auth(::google::protobuf::uint32 value) { + auth_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +UserAuthorizations::auth() const { + return auth_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +UserAuthorizations::mutable_auth() { + return &auth_; +} + +// ------------------------------------------------------------------- + +// MultiUserAuthorizations + +// repeated .hbase.pb.UserAuthorizations userAuths = 1; +inline int MultiUserAuthorizations::userauths_size() const { + return userauths_.size(); +} +inline void MultiUserAuthorizations::clear_userauths() { + userauths_.Clear(); +} +inline const ::hbase::pb::UserAuthorizations& MultiUserAuthorizations::userauths(int index) const { + return userauths_.Get(index); +} +inline ::hbase::pb::UserAuthorizations* MultiUserAuthorizations::mutable_userauths(int index) { + return userauths_.Mutable(index); +} +inline ::hbase::pb::UserAuthorizations* MultiUserAuthorizations::add_userauths() { + return userauths_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserAuthorizations >& +MultiUserAuthorizations::userauths() const { + return userauths_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UserAuthorizations >* +MultiUserAuthorizations::mutable_userauths() { + return &userauths_; +} + +// ------------------------------------------------------------------- + +// GetAuthsRequest + +// required bytes user = 1; +inline bool GetAuthsRequest::has_user() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetAuthsRequest::set_has_user() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetAuthsRequest::clear_has_user() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetAuthsRequest::clear_user() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + clear_has_user(); +} +inline const ::std::string& GetAuthsRequest::user() const { + return *user_; +} +inline void GetAuthsRequest::set_user(const ::std::string& value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void GetAuthsRequest::set_user(const char* value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void GetAuthsRequest::set_user(const void* value, size_t size) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetAuthsRequest::mutable_user() { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + return user_; +} +inline ::std::string* GetAuthsRequest::release_user() { + clear_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetAuthsRequest::set_allocated_user(::std::string* user) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (user) { + set_has_user(); + user_ = user; + } else { + clear_has_user(); + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// GetAuthsResponse + +// required bytes user = 1; +inline bool GetAuthsResponse::has_user() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GetAuthsResponse::set_has_user() { + _has_bits_[0] |= 0x00000001u; +} +inline void GetAuthsResponse::clear_has_user() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GetAuthsResponse::clear_user() { + if (user_ != &::google::protobuf::internal::kEmptyString) { + user_->clear(); + } + clear_has_user(); +} +inline const ::std::string& GetAuthsResponse::user() const { + return *user_; +} +inline void GetAuthsResponse::set_user(const ::std::string& value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void GetAuthsResponse::set_user(const char* value) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(value); +} +inline void GetAuthsResponse::set_user(const void* value, size_t size) { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + user_->assign(reinterpret_cast(value), size); +} +inline ::std::string* GetAuthsResponse::mutable_user() { + set_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + user_ = new ::std::string; + } + return user_; +} +inline ::std::string* GetAuthsResponse::release_user() { + clear_has_user(); + if (user_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = user_; + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void GetAuthsResponse::set_allocated_user(::std::string* user) { + if (user_ != &::google::protobuf::internal::kEmptyString) { + delete user_; + } + if (user) { + set_has_user(); + user_ = user; + } else { + clear_has_user(); + user_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated bytes auth = 2; +inline int GetAuthsResponse::auth_size() const { + return auth_.size(); +} +inline void GetAuthsResponse::clear_auth() { + auth_.Clear(); +} +inline const ::std::string& GetAuthsResponse::auth(int index) const { + return auth_.Get(index); +} +inline ::std::string* GetAuthsResponse::mutable_auth(int index) { + return auth_.Mutable(index); +} +inline void GetAuthsResponse::set_auth(int index, const ::std::string& value) { + auth_.Mutable(index)->assign(value); +} +inline void GetAuthsResponse::set_auth(int index, const char* value) { + auth_.Mutable(index)->assign(value); +} +inline void GetAuthsResponse::set_auth(int index, const void* value, size_t size) { + auth_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* GetAuthsResponse::add_auth() { + return auth_.Add(); +} +inline void GetAuthsResponse::add_auth(const ::std::string& value) { + auth_.Add()->assign(value); +} +inline void GetAuthsResponse::add_auth(const char* value) { + auth_.Add()->assign(value); +} +inline void GetAuthsResponse::add_auth(const void* value, size_t size) { + auth_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +GetAuthsResponse::auth() const { + return auth_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +GetAuthsResponse::mutable_auth() { + return &auth_; +} + +// ------------------------------------------------------------------- + +// ListLabelsRequest + +// optional string regex = 1; +inline bool ListLabelsRequest::has_regex() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ListLabelsRequest::set_has_regex() { + _has_bits_[0] |= 0x00000001u; +} +inline void ListLabelsRequest::clear_has_regex() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ListLabelsRequest::clear_regex() { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + regex_->clear(); + } + clear_has_regex(); +} +inline const ::std::string& ListLabelsRequest::regex() const { + return *regex_; +} +inline void ListLabelsRequest::set_regex(const ::std::string& value) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(value); +} +inline void ListLabelsRequest::set_regex(const char* value) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(value); +} +inline void ListLabelsRequest::set_regex(const char* value, size_t size) { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + regex_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ListLabelsRequest::mutable_regex() { + set_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + regex_ = new ::std::string; + } + return regex_; +} +inline ::std::string* ListLabelsRequest::release_regex() { + clear_has_regex(); + if (regex_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = regex_; + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ListLabelsRequest::set_allocated_regex(::std::string* regex) { + if (regex_ != &::google::protobuf::internal::kEmptyString) { + delete regex_; + } + if (regex) { + set_has_regex(); + regex_ = regex; + } else { + clear_has_regex(); + regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// ListLabelsResponse + +// repeated bytes label = 1; +inline int ListLabelsResponse::label_size() const { + return label_.size(); +} +inline void ListLabelsResponse::clear_label() { + label_.Clear(); +} +inline const ::std::string& ListLabelsResponse::label(int index) const { + return label_.Get(index); +} +inline ::std::string* ListLabelsResponse::mutable_label(int index) { + return label_.Mutable(index); +} +inline void ListLabelsResponse::set_label(int index, const ::std::string& value) { + label_.Mutable(index)->assign(value); +} +inline void ListLabelsResponse::set_label(int index, const char* value) { + label_.Mutable(index)->assign(value); +} +inline void ListLabelsResponse::set_label(int index, const void* value, size_t size) { + label_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* ListLabelsResponse::add_label() { + return label_.Add(); +} +inline void ListLabelsResponse::add_label(const ::std::string& value) { + label_.Add()->assign(value); +} +inline void ListLabelsResponse::add_label(const char* value) { + label_.Add()->assign(value); +} +inline void ListLabelsResponse::add_label(const void* value, size_t size) { + label_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +ListLabelsResponse::label() const { + return label_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +ListLabelsResponse::mutable_label() { + return &label_; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_VisibilityLabels_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/WAL.pb.cc b/hbase-native-client/src/rpc/generated/WAL.pb.cc new file mode 100644 index 0000000..02e399b --- /dev/null +++ b/hbase-native-client/src/rpc/generated/WAL.pb.cc @@ -0,0 +1,4379 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: WAL.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "WAL.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* WALHeader_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WALHeader_reflection_ = NULL; +const ::google::protobuf::Descriptor* WALKey_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WALKey_reflection_ = NULL; +const ::google::protobuf::Descriptor* FamilyScope_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FamilyScope_reflection_ = NULL; +const ::google::protobuf::Descriptor* CompactionDescriptor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + CompactionDescriptor_reflection_ = NULL; +const ::google::protobuf::Descriptor* FlushDescriptor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FlushDescriptor_reflection_ = NULL; +const ::google::protobuf::Descriptor* FlushDescriptor_StoreFlushDescriptor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + FlushDescriptor_StoreFlushDescriptor_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* FlushDescriptor_FlushAction_descriptor_ = NULL; +const ::google::protobuf::Descriptor* StoreDescriptor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StoreDescriptor_reflection_ = NULL; +const ::google::protobuf::Descriptor* BulkLoadDescriptor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + BulkLoadDescriptor_reflection_ = NULL; +const ::google::protobuf::Descriptor* RegionEventDescriptor_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RegionEventDescriptor_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* RegionEventDescriptor_EventType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* WALTrailer_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + WALTrailer_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* ScopeType_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_WAL_2eproto() { + protobuf_AddDesc_WAL_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "WAL.proto"); + GOOGLE_CHECK(file != NULL); + WALHeader_descriptor_ = file->message_type(0); + static const int WALHeader_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALHeader, has_compression_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALHeader, encryption_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALHeader, has_tag_compression_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALHeader, writer_cls_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALHeader, cell_codec_cls_name_), + }; + WALHeader_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WALHeader_descriptor_, + WALHeader::default_instance_, + WALHeader_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALHeader, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALHeader, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WALHeader)); + WALKey_descriptor_ = file->message_type(1); + static const int WALKey_offsets_[11] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, encoded_region_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, log_sequence_number_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, write_time_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, cluster_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, scopes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, following_kv_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, cluster_ids_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, noncegroup_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, nonce_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, orig_sequence_number_), + }; + WALKey_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WALKey_descriptor_, + WALKey::default_instance_, + WALKey_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALKey, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WALKey)); + FamilyScope_descriptor_ = file->message_type(2); + static const int FamilyScope_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FamilyScope, family_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FamilyScope, scope_type_), + }; + FamilyScope_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FamilyScope_descriptor_, + FamilyScope::default_instance_, + FamilyScope_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FamilyScope, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FamilyScope, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FamilyScope)); + CompactionDescriptor_descriptor_ = file->message_type(3); + static const int CompactionDescriptor_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, encoded_region_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, family_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, compaction_input_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, compaction_output_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, store_home_dir_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, region_name_), + }; + CompactionDescriptor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + CompactionDescriptor_descriptor_, + CompactionDescriptor::default_instance_, + CompactionDescriptor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompactionDescriptor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(CompactionDescriptor)); + FlushDescriptor_descriptor_ = file->message_type(4); + static const int FlushDescriptor_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor, action_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor, encoded_region_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor, flush_sequence_number_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor, store_flushes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor, region_name_), + }; + FlushDescriptor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FlushDescriptor_descriptor_, + FlushDescriptor::default_instance_, + FlushDescriptor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FlushDescriptor)); + FlushDescriptor_StoreFlushDescriptor_descriptor_ = FlushDescriptor_descriptor_->nested_type(0); + static const int FlushDescriptor_StoreFlushDescriptor_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor_StoreFlushDescriptor, family_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor_StoreFlushDescriptor, store_home_dir_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor_StoreFlushDescriptor, flush_output_), + }; + FlushDescriptor_StoreFlushDescriptor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + FlushDescriptor_StoreFlushDescriptor_descriptor_, + FlushDescriptor_StoreFlushDescriptor::default_instance_, + FlushDescriptor_StoreFlushDescriptor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor_StoreFlushDescriptor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlushDescriptor_StoreFlushDescriptor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(FlushDescriptor_StoreFlushDescriptor)); + FlushDescriptor_FlushAction_descriptor_ = FlushDescriptor_descriptor_->enum_type(0); + StoreDescriptor_descriptor_ = file->message_type(5); + static const int StoreDescriptor_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDescriptor, family_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDescriptor, store_home_dir_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDescriptor, store_file_), + }; + StoreDescriptor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StoreDescriptor_descriptor_, + StoreDescriptor::default_instance_, + StoreDescriptor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDescriptor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDescriptor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StoreDescriptor)); + BulkLoadDescriptor_descriptor_ = file->message_type(6); + static const int BulkLoadDescriptor_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadDescriptor, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadDescriptor, encoded_region_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadDescriptor, stores_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadDescriptor, bulkload_seq_num_), + }; + BulkLoadDescriptor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + BulkLoadDescriptor_descriptor_, + BulkLoadDescriptor::default_instance_, + BulkLoadDescriptor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadDescriptor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BulkLoadDescriptor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(BulkLoadDescriptor)); + RegionEventDescriptor_descriptor_ = file->message_type(7); + static const int RegionEventDescriptor_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, event_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, encoded_region_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, log_sequence_number_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, stores_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, region_name_), + }; + RegionEventDescriptor_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RegionEventDescriptor_descriptor_, + RegionEventDescriptor::default_instance_, + RegionEventDescriptor_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RegionEventDescriptor, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RegionEventDescriptor)); + RegionEventDescriptor_EventType_descriptor_ = RegionEventDescriptor_descriptor_->enum_type(0); + WALTrailer_descriptor_ = file->message_type(8); + static const int WALTrailer_offsets_[1] = { + }; + WALTrailer_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + WALTrailer_descriptor_, + WALTrailer::default_instance_, + WALTrailer_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALTrailer, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WALTrailer, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(WALTrailer)); + ScopeType_descriptor_ = file->enum_type(0); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_WAL_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WALHeader_descriptor_, &WALHeader::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WALKey_descriptor_, &WALKey::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FamilyScope_descriptor_, &FamilyScope::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + CompactionDescriptor_descriptor_, &CompactionDescriptor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FlushDescriptor_descriptor_, &FlushDescriptor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + FlushDescriptor_StoreFlushDescriptor_descriptor_, &FlushDescriptor_StoreFlushDescriptor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StoreDescriptor_descriptor_, &StoreDescriptor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + BulkLoadDescriptor_descriptor_, &BulkLoadDescriptor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RegionEventDescriptor_descriptor_, &RegionEventDescriptor::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + WALTrailer_descriptor_, &WALTrailer::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_WAL_2eproto() { + delete WALHeader::default_instance_; + delete WALHeader_reflection_; + delete WALKey::default_instance_; + delete WALKey_reflection_; + delete FamilyScope::default_instance_; + delete FamilyScope_reflection_; + delete CompactionDescriptor::default_instance_; + delete CompactionDescriptor_reflection_; + delete FlushDescriptor::default_instance_; + delete FlushDescriptor_reflection_; + delete FlushDescriptor_StoreFlushDescriptor::default_instance_; + delete FlushDescriptor_StoreFlushDescriptor_reflection_; + delete StoreDescriptor::default_instance_; + delete StoreDescriptor_reflection_; + delete BulkLoadDescriptor::default_instance_; + delete BulkLoadDescriptor_reflection_; + delete RegionEventDescriptor::default_instance_; + delete RegionEventDescriptor_reflection_; + delete WALTrailer::default_instance_; + delete WALTrailer_reflection_; +} + +void protobuf_AddDesc_WAL_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_Client_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\tWAL.proto\022\010hbase.pb\032\013HBase.proto\032\014Clie" + "nt.proto\"\217\001\n\tWALHeader\022\027\n\017has_compressio" + "n\030\001 \001(\010\022\026\n\016encryption_key\030\002 \001(\014\022\033\n\023has_t" + "ag_compression\030\003 \001(\010\022\027\n\017writer_cls_name\030" + "\004 \001(\t\022\033\n\023cell_codec_cls_name\030\005 \001(\t\"\273\002\n\006W" + "ALKey\022\033\n\023encoded_region_name\030\001 \002(\014\022\022\n\nta" + "ble_name\030\002 \002(\014\022\033\n\023log_sequence_number\030\003 " + "\002(\004\022\022\n\nwrite_time\030\004 \002(\004\022&\n\ncluster_id\030\005 " + "\001(\0132\016.hbase.pb.UUIDB\002\030\001\022%\n\006scopes\030\006 \003(\0132" + "\025.hbase.pb.FamilyScope\022\032\n\022following_kv_c" + "ount\030\007 \001(\r\022#\n\013cluster_ids\030\010 \003(\0132\016.hbase." + "pb.UUID\022\022\n\nnonceGroup\030\t \001(\004\022\r\n\005nonce\030\n \001" + "(\004\022\034\n\024orig_sequence_number\030\013 \001(\004\"F\n\013Fami" + "lyScope\022\016\n\006family\030\001 \002(\014\022\'\n\nscope_type\030\002 " + "\002(\0162\023.hbase.pb.ScopeType\"\276\001\n\024CompactionD" + "escriptor\022\022\n\ntable_name\030\001 \002(\014\022\033\n\023encoded" + "_region_name\030\002 \002(\014\022\023\n\013family_name\030\003 \002(\014\022" + "\030\n\020compaction_input\030\004 \003(\t\022\031\n\021compaction_" + "output\030\005 \003(\t\022\026\n\016store_home_dir\030\006 \002(\t\022\023\n\013" + "region_name\030\007 \001(\014\"\244\003\n\017FlushDescriptor\0225\n" + "\006action\030\001 \002(\0162%.hbase.pb.FlushDescriptor" + ".FlushAction\022\022\n\ntable_name\030\002 \002(\014\022\033\n\023enco" + "ded_region_name\030\003 \002(\014\022\035\n\025flush_sequence_" + "number\030\004 \001(\004\022E\n\rstore_flushes\030\005 \003(\0132..hb" + "ase.pb.FlushDescriptor.StoreFlushDescrip" + "tor\022\023\n\013region_name\030\006 \001(\014\032Y\n\024StoreFlushDe" + "scriptor\022\023\n\013family_name\030\001 \002(\014\022\026\n\016store_h" + "ome_dir\030\002 \002(\t\022\024\n\014flush_output\030\003 \003(\t\"S\n\013F" + "lushAction\022\017\n\013START_FLUSH\020\000\022\020\n\014COMMIT_FL" + "USH\020\001\022\017\n\013ABORT_FLUSH\020\002\022\020\n\014CANNOT_FLUSH\020\003" + "\"R\n\017StoreDescriptor\022\023\n\013family_name\030\001 \002(\014" + "\022\026\n\016store_home_dir\030\002 \002(\t\022\022\n\nstore_file\030\003" + " \003(\t\"\237\001\n\022BulkLoadDescriptor\022\'\n\ntable_nam" + "e\030\001 \002(\0132\023.hbase.pb.TableName\022\033\n\023encoded_" + "region_name\030\002 \002(\014\022)\n\006stores\030\003 \003(\0132\031.hbas" + "e.pb.StoreDescriptor\022\030\n\020bulkload_seq_num" + "\030\004 \002(\003\"\272\002\n\025RegionEventDescriptor\022=\n\neven" + "t_type\030\001 \002(\0162).hbase.pb.RegionEventDescr" + "iptor.EventType\022\022\n\ntable_name\030\002 \002(\014\022\033\n\023e" + "ncoded_region_name\030\003 \002(\014\022\033\n\023log_sequence" + "_number\030\004 \001(\004\022)\n\006stores\030\005 \003(\0132\031.hbase.pb" + ".StoreDescriptor\022$\n\006server\030\006 \001(\0132\024.hbase" + ".pb.ServerName\022\023\n\013region_name\030\007 \001(\014\".\n\tE" + "ventType\022\017\n\013REGION_OPEN\020\000\022\020\n\014REGION_CLOS" + "E\020\001\"\014\n\nWALTrailer*F\n\tScopeType\022\033\n\027REPLIC" + "ATION_SCOPE_LOCAL\020\000\022\034\n\030REPLICATION_SCOPE" + "_GLOBAL\020\001B\?\n*org.apache.hadoop.hbase.pro" + "tobuf.generatedB\tWALProtosH\001\210\001\000\240\001\001", 1914); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "WAL.proto", &protobuf_RegisterTypes); + WALHeader::default_instance_ = new WALHeader(); + WALKey::default_instance_ = new WALKey(); + FamilyScope::default_instance_ = new FamilyScope(); + CompactionDescriptor::default_instance_ = new CompactionDescriptor(); + FlushDescriptor::default_instance_ = new FlushDescriptor(); + FlushDescriptor_StoreFlushDescriptor::default_instance_ = new FlushDescriptor_StoreFlushDescriptor(); + StoreDescriptor::default_instance_ = new StoreDescriptor(); + BulkLoadDescriptor::default_instance_ = new BulkLoadDescriptor(); + RegionEventDescriptor::default_instance_ = new RegionEventDescriptor(); + WALTrailer::default_instance_ = new WALTrailer(); + WALHeader::default_instance_->InitAsDefaultInstance(); + WALKey::default_instance_->InitAsDefaultInstance(); + FamilyScope::default_instance_->InitAsDefaultInstance(); + CompactionDescriptor::default_instance_->InitAsDefaultInstance(); + FlushDescriptor::default_instance_->InitAsDefaultInstance(); + FlushDescriptor_StoreFlushDescriptor::default_instance_->InitAsDefaultInstance(); + StoreDescriptor::default_instance_->InitAsDefaultInstance(); + BulkLoadDescriptor::default_instance_->InitAsDefaultInstance(); + RegionEventDescriptor::default_instance_->InitAsDefaultInstance(); + WALTrailer::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_WAL_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_WAL_2eproto { + StaticDescriptorInitializer_WAL_2eproto() { + protobuf_AddDesc_WAL_2eproto(); + } +} static_descriptor_initializer_WAL_2eproto_; +const ::google::protobuf::EnumDescriptor* ScopeType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ScopeType_descriptor_; +} +bool ScopeType_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +#ifndef _MSC_VER +const int WALHeader::kHasCompressionFieldNumber; +const int WALHeader::kEncryptionKeyFieldNumber; +const int WALHeader::kHasTagCompressionFieldNumber; +const int WALHeader::kWriterClsNameFieldNumber; +const int WALHeader::kCellCodecClsNameFieldNumber; +#endif // !_MSC_VER + +WALHeader::WALHeader() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WALHeader::InitAsDefaultInstance() { +} + +WALHeader::WALHeader(const WALHeader& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WALHeader::SharedCtor() { + _cached_size_ = 0; + has_compression_ = false; + encryption_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + has_tag_compression_ = false; + writer_cls_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + cell_codec_cls_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WALHeader::~WALHeader() { + SharedDtor(); +} + +void WALHeader::SharedDtor() { + if (encryption_key_ != &::google::protobuf::internal::kEmptyString) { + delete encryption_key_; + } + if (writer_cls_name_ != &::google::protobuf::internal::kEmptyString) { + delete writer_cls_name_; + } + if (cell_codec_cls_name_ != &::google::protobuf::internal::kEmptyString) { + delete cell_codec_cls_name_; + } + if (this != default_instance_) { + } +} + +void WALHeader::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WALHeader::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WALHeader_descriptor_; +} + +const WALHeader& WALHeader::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +WALHeader* WALHeader::default_instance_ = NULL; + +WALHeader* WALHeader::New() const { + return new WALHeader; +} + +void WALHeader::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + has_compression_ = false; + if (has_encryption_key()) { + if (encryption_key_ != &::google::protobuf::internal::kEmptyString) { + encryption_key_->clear(); + } + } + has_tag_compression_ = false; + if (has_writer_cls_name()) { + if (writer_cls_name_ != &::google::protobuf::internal::kEmptyString) { + writer_cls_name_->clear(); + } + } + if (has_cell_codec_cls_name()) { + if (cell_codec_cls_name_ != &::google::protobuf::internal::kEmptyString) { + cell_codec_cls_name_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WALHeader::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool has_compression = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &has_compression_))); + set_has_has_compression(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_encryption_key; + break; + } + + // optional bytes encryption_key = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_encryption_key: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encryption_key())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_has_tag_compression; + break; + } + + // optional bool has_tag_compression = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_has_tag_compression: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &has_tag_compression_))); + set_has_has_tag_compression(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_writer_cls_name; + break; + } + + // optional string writer_cls_name = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_writer_cls_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_writer_cls_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->writer_cls_name().data(), this->writer_cls_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_cell_codec_cls_name; + break; + } + + // optional string cell_codec_cls_name = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cell_codec_cls_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cell_codec_cls_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_codec_cls_name().data(), this->cell_codec_cls_name().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void WALHeader::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool has_compression = 1; + if (has_has_compression()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->has_compression(), output); + } + + // optional bytes encryption_key = 2; + if (has_encryption_key()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->encryption_key(), output); + } + + // optional bool has_tag_compression = 3; + if (has_has_tag_compression()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->has_tag_compression(), output); + } + + // optional string writer_cls_name = 4; + if (has_writer_cls_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->writer_cls_name().data(), this->writer_cls_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->writer_cls_name(), output); + } + + // optional string cell_codec_cls_name = 5; + if (has_cell_codec_cls_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_codec_cls_name().data(), this->cell_codec_cls_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->cell_codec_cls_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WALHeader::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool has_compression = 1; + if (has_has_compression()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->has_compression(), target); + } + + // optional bytes encryption_key = 2; + if (has_encryption_key()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->encryption_key(), target); + } + + // optional bool has_tag_compression = 3; + if (has_has_tag_compression()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->has_tag_compression(), target); + } + + // optional string writer_cls_name = 4; + if (has_writer_cls_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->writer_cls_name().data(), this->writer_cls_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->writer_cls_name(), target); + } + + // optional string cell_codec_cls_name = 5; + if (has_cell_codec_cls_name()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->cell_codec_cls_name().data(), this->cell_codec_cls_name().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->cell_codec_cls_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WALHeader::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool has_compression = 1; + if (has_has_compression()) { + total_size += 1 + 1; + } + + // optional bytes encryption_key = 2; + if (has_encryption_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encryption_key()); + } + + // optional bool has_tag_compression = 3; + if (has_has_tag_compression()) { + total_size += 1 + 1; + } + + // optional string writer_cls_name = 4; + if (has_writer_cls_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->writer_cls_name()); + } + + // optional string cell_codec_cls_name = 5; + if (has_cell_codec_cls_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cell_codec_cls_name()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WALHeader::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WALHeader* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WALHeader::MergeFrom(const WALHeader& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_has_compression()) { + set_has_compression(from.has_compression()); + } + if (from.has_encryption_key()) { + set_encryption_key(from.encryption_key()); + } + if (from.has_has_tag_compression()) { + set_has_tag_compression(from.has_tag_compression()); + } + if (from.has_writer_cls_name()) { + set_writer_cls_name(from.writer_cls_name()); + } + if (from.has_cell_codec_cls_name()) { + set_cell_codec_cls_name(from.cell_codec_cls_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WALHeader::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WALHeader::CopyFrom(const WALHeader& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WALHeader::IsInitialized() const { + + return true; +} + +void WALHeader::Swap(WALHeader* other) { + if (other != this) { + std::swap(has_compression_, other->has_compression_); + std::swap(encryption_key_, other->encryption_key_); + std::swap(has_tag_compression_, other->has_tag_compression_); + std::swap(writer_cls_name_, other->writer_cls_name_); + std::swap(cell_codec_cls_name_, other->cell_codec_cls_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WALHeader::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WALHeader_descriptor_; + metadata.reflection = WALHeader_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int WALKey::kEncodedRegionNameFieldNumber; +const int WALKey::kTableNameFieldNumber; +const int WALKey::kLogSequenceNumberFieldNumber; +const int WALKey::kWriteTimeFieldNumber; +const int WALKey::kClusterIdFieldNumber; +const int WALKey::kScopesFieldNumber; +const int WALKey::kFollowingKvCountFieldNumber; +const int WALKey::kClusterIdsFieldNumber; +const int WALKey::kNonceGroupFieldNumber; +const int WALKey::kNonceFieldNumber; +const int WALKey::kOrigSequenceNumberFieldNumber; +#endif // !_MSC_VER + +WALKey::WALKey() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WALKey::InitAsDefaultInstance() { + cluster_id_ = const_cast< ::hbase::pb::UUID*>(&::hbase::pb::UUID::default_instance()); +} + +WALKey::WALKey(const WALKey& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WALKey::SharedCtor() { + _cached_size_ = 0; + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + log_sequence_number_ = GOOGLE_ULONGLONG(0); + write_time_ = GOOGLE_ULONGLONG(0); + cluster_id_ = NULL; + following_kv_count_ = 0u; + noncegroup_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + orig_sequence_number_ = GOOGLE_ULONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WALKey::~WALKey() { + SharedDtor(); +} + +void WALKey::SharedDtor() { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + delete table_name_; + } + if (this != default_instance_) { + delete cluster_id_; + } +} + +void WALKey::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WALKey::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WALKey_descriptor_; +} + +const WALKey& WALKey::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +WALKey* WALKey::default_instance_ = NULL; + +WALKey* WALKey::New() const { + return new WALKey; +} + +void WALKey::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_encoded_region_name()) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + } + if (has_table_name()) { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + table_name_->clear(); + } + } + log_sequence_number_ = GOOGLE_ULONGLONG(0); + write_time_ = GOOGLE_ULONGLONG(0); + if (has_cluster_id()) { + if (cluster_id_ != NULL) cluster_id_->::hbase::pb::UUID::Clear(); + } + following_kv_count_ = 0u; + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + noncegroup_ = GOOGLE_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); + orig_sequence_number_ = GOOGLE_ULONGLONG(0); + } + scopes_.Clear(); + cluster_ids_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WALKey::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes encoded_region_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encoded_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required bytes table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_log_sequence_number; + break; + } + + // required uint64 log_sequence_number = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_log_sequence_number: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &log_sequence_number_))); + set_has_log_sequence_number(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_write_time; + break; + } + + // required uint64 write_time = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_write_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &write_time_))); + set_has_write_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_cluster_id; + break; + } + + // optional .hbase.pb.UUID cluster_id = 5 [deprecated = true]; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cluster_id: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_cluster_id())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_scopes; + break; + } + + // repeated .hbase.pb.FamilyScope scopes = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_scopes: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_scopes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_scopes; + if (input->ExpectTag(56)) goto parse_following_kv_count; + break; + } + + // optional uint32 following_kv_count = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_following_kv_count: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &following_kv_count_))); + set_has_following_kv_count(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(66)) goto parse_cluster_ids; + break; + } + + // repeated .hbase.pb.UUID cluster_ids = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_cluster_ids: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_cluster_ids())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(66)) goto parse_cluster_ids; + if (input->ExpectTag(72)) goto parse_nonceGroup; + break; + } + + // optional uint64 nonceGroup = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonceGroup: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &noncegroup_))); + set_has_noncegroup(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(80)) goto parse_nonce; + break; + } + + // optional uint64 nonce = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_nonce: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + set_has_nonce(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(88)) goto parse_orig_sequence_number; + break; + } + + // optional uint64 orig_sequence_number = 11; + case 11: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_orig_sequence_number: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &orig_sequence_number_))); + set_has_orig_sequence_number(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void WALKey::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes encoded_region_name = 1; + if (has_encoded_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->encoded_region_name(), output); + } + + // required bytes table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->table_name(), output); + } + + // required uint64 log_sequence_number = 3; + if (has_log_sequence_number()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->log_sequence_number(), output); + } + + // required uint64 write_time = 4; + if (has_write_time()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->write_time(), output); + } + + // optional .hbase.pb.UUID cluster_id = 5 [deprecated = true]; + if (has_cluster_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->cluster_id(), output); + } + + // repeated .hbase.pb.FamilyScope scopes = 6; + for (int i = 0; i < this->scopes_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->scopes(i), output); + } + + // optional uint32 following_kv_count = 7; + if (has_following_kv_count()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->following_kv_count(), output); + } + + // repeated .hbase.pb.UUID cluster_ids = 8; + for (int i = 0; i < this->cluster_ids_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, this->cluster_ids(i), output); + } + + // optional uint64 nonceGroup = 9; + if (has_noncegroup()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->noncegroup(), output); + } + + // optional uint64 nonce = 10; + if (has_nonce()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->nonce(), output); + } + + // optional uint64 orig_sequence_number = 11; + if (has_orig_sequence_number()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->orig_sequence_number(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WALKey::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes encoded_region_name = 1; + if (has_encoded_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->encoded_region_name(), target); + } + + // required bytes table_name = 2; + if (has_table_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->table_name(), target); + } + + // required uint64 log_sequence_number = 3; + if (has_log_sequence_number()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->log_sequence_number(), target); + } + + // required uint64 write_time = 4; + if (has_write_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->write_time(), target); + } + + // optional .hbase.pb.UUID cluster_id = 5 [deprecated = true]; + if (has_cluster_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->cluster_id(), target); + } + + // repeated .hbase.pb.FamilyScope scopes = 6; + for (int i = 0; i < this->scopes_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->scopes(i), target); + } + + // optional uint32 following_kv_count = 7; + if (has_following_kv_count()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->following_kv_count(), target); + } + + // repeated .hbase.pb.UUID cluster_ids = 8; + for (int i = 0; i < this->cluster_ids_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 8, this->cluster_ids(i), target); + } + + // optional uint64 nonceGroup = 9; + if (has_noncegroup()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->noncegroup(), target); + } + + // optional uint64 nonce = 10; + if (has_nonce()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->nonce(), target); + } + + // optional uint64 orig_sequence_number = 11; + if (has_orig_sequence_number()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->orig_sequence_number(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WALKey::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes encoded_region_name = 1; + if (has_encoded_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encoded_region_name()); + } + + // required bytes table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->table_name()); + } + + // required uint64 log_sequence_number = 3; + if (has_log_sequence_number()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->log_sequence_number()); + } + + // required uint64 write_time = 4; + if (has_write_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->write_time()); + } + + // optional .hbase.pb.UUID cluster_id = 5 [deprecated = true]; + if (has_cluster_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cluster_id()); + } + + // optional uint32 following_kv_count = 7; + if (has_following_kv_count()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->following_kv_count()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional uint64 nonceGroup = 9; + if (has_noncegroup()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->noncegroup()); + } + + // optional uint64 nonce = 10; + if (has_nonce()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); + } + + // optional uint64 orig_sequence_number = 11; + if (has_orig_sequence_number()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->orig_sequence_number()); + } + + } + // repeated .hbase.pb.FamilyScope scopes = 6; + total_size += 1 * this->scopes_size(); + for (int i = 0; i < this->scopes_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->scopes(i)); + } + + // repeated .hbase.pb.UUID cluster_ids = 8; + total_size += 1 * this->cluster_ids_size(); + for (int i = 0; i < this->cluster_ids_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cluster_ids(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WALKey::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WALKey* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WALKey::MergeFrom(const WALKey& from) { + GOOGLE_CHECK_NE(&from, this); + scopes_.MergeFrom(from.scopes_); + cluster_ids_.MergeFrom(from.cluster_ids_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_encoded_region_name()) { + set_encoded_region_name(from.encoded_region_name()); + } + if (from.has_table_name()) { + set_table_name(from.table_name()); + } + if (from.has_log_sequence_number()) { + set_log_sequence_number(from.log_sequence_number()); + } + if (from.has_write_time()) { + set_write_time(from.write_time()); + } + if (from.has_cluster_id()) { + mutable_cluster_id()->::hbase::pb::UUID::MergeFrom(from.cluster_id()); + } + if (from.has_following_kv_count()) { + set_following_kv_count(from.following_kv_count()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_noncegroup()) { + set_noncegroup(from.noncegroup()); + } + if (from.has_nonce()) { + set_nonce(from.nonce()); + } + if (from.has_orig_sequence_number()) { + set_orig_sequence_number(from.orig_sequence_number()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WALKey::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WALKey::CopyFrom(const WALKey& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WALKey::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; + + if (has_cluster_id()) { + if (!this->cluster_id().IsInitialized()) return false; + } + for (int i = 0; i < scopes_size(); i++) { + if (!this->scopes(i).IsInitialized()) return false; + } + for (int i = 0; i < cluster_ids_size(); i++) { + if (!this->cluster_ids(i).IsInitialized()) return false; + } + return true; +} + +void WALKey::Swap(WALKey* other) { + if (other != this) { + std::swap(encoded_region_name_, other->encoded_region_name_); + std::swap(table_name_, other->table_name_); + std::swap(log_sequence_number_, other->log_sequence_number_); + std::swap(write_time_, other->write_time_); + std::swap(cluster_id_, other->cluster_id_); + scopes_.Swap(&other->scopes_); + std::swap(following_kv_count_, other->following_kv_count_); + cluster_ids_.Swap(&other->cluster_ids_); + std::swap(noncegroup_, other->noncegroup_); + std::swap(nonce_, other->nonce_); + std::swap(orig_sequence_number_, other->orig_sequence_number_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WALKey::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WALKey_descriptor_; + metadata.reflection = WALKey_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int FamilyScope::kFamilyFieldNumber; +const int FamilyScope::kScopeTypeFieldNumber; +#endif // !_MSC_VER + +FamilyScope::FamilyScope() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FamilyScope::InitAsDefaultInstance() { +} + +FamilyScope::FamilyScope(const FamilyScope& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FamilyScope::SharedCtor() { + _cached_size_ = 0; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + scope_type_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FamilyScope::~FamilyScope() { + SharedDtor(); +} + +void FamilyScope::SharedDtor() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (this != default_instance_) { + } +} + +void FamilyScope::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FamilyScope::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FamilyScope_descriptor_; +} + +const FamilyScope& FamilyScope::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +FamilyScope* FamilyScope::default_instance_ = NULL; + +FamilyScope* FamilyScope::New() const { + return new FamilyScope; +} + +void FamilyScope::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_family()) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + } + scope_type_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FamilyScope::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes family = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_scope_type; + break; + } + + // required .hbase.pb.ScopeType scope_type = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_scope_type: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::ScopeType_IsValid(value)) { + set_scope_type(static_cast< ::hbase::pb::ScopeType >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FamilyScope::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes family = 1; + if (has_family()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->family(), output); + } + + // required .hbase.pb.ScopeType scope_type = 2; + if (has_scope_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->scope_type(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FamilyScope::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes family = 1; + if (has_family()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->family(), target); + } + + // required .hbase.pb.ScopeType scope_type = 2; + if (has_scope_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->scope_type(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FamilyScope::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes family = 1; + if (has_family()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family()); + } + + // required .hbase.pb.ScopeType scope_type = 2; + if (has_scope_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scope_type()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FamilyScope::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FamilyScope* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FamilyScope::MergeFrom(const FamilyScope& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_family()) { + set_family(from.family()); + } + if (from.has_scope_type()) { + set_scope_type(from.scope_type()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FamilyScope::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FamilyScope::CopyFrom(const FamilyScope& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FamilyScope::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void FamilyScope::Swap(FamilyScope* other) { + if (other != this) { + std::swap(family_, other->family_); + std::swap(scope_type_, other->scope_type_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FamilyScope::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FamilyScope_descriptor_; + metadata.reflection = FamilyScope_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int CompactionDescriptor::kTableNameFieldNumber; +const int CompactionDescriptor::kEncodedRegionNameFieldNumber; +const int CompactionDescriptor::kFamilyNameFieldNumber; +const int CompactionDescriptor::kCompactionInputFieldNumber; +const int CompactionDescriptor::kCompactionOutputFieldNumber; +const int CompactionDescriptor::kStoreHomeDirFieldNumber; +const int CompactionDescriptor::kRegionNameFieldNumber; +#endif // !_MSC_VER + +CompactionDescriptor::CompactionDescriptor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void CompactionDescriptor::InitAsDefaultInstance() { +} + +CompactionDescriptor::CompactionDescriptor(const CompactionDescriptor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void CompactionDescriptor::SharedCtor() { + _cached_size_ = 0; + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +CompactionDescriptor::~CompactionDescriptor() { + SharedDtor(); +} + +void CompactionDescriptor::SharedDtor() { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + delete table_name_; + } + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + delete store_home_dir_; + } + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + delete region_name_; + } + if (this != default_instance_) { + } +} + +void CompactionDescriptor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CompactionDescriptor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return CompactionDescriptor_descriptor_; +} + +const CompactionDescriptor& CompactionDescriptor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +CompactionDescriptor* CompactionDescriptor::default_instance_ = NULL; + +CompactionDescriptor* CompactionDescriptor::New() const { + return new CompactionDescriptor; +} + +void CompactionDescriptor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + table_name_->clear(); + } + } + if (has_encoded_region_name()) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + } + if (has_family_name()) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + } + if (has_store_home_dir()) { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + store_home_dir_->clear(); + } + } + if (has_region_name()) { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + region_name_->clear(); + } + } + } + compaction_input_.Clear(); + compaction_output_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool CompactionDescriptor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_encoded_region_name; + break; + } + + // required bytes encoded_region_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_encoded_region_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encoded_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_family_name; + break; + } + + // required bytes family_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_family_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_compaction_input; + break; + } + + // repeated string compaction_input = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_compaction_input: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_compaction_input())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->compaction_input(this->compaction_input_size() - 1).data(), + this->compaction_input(this->compaction_input_size() - 1).length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_compaction_input; + if (input->ExpectTag(42)) goto parse_compaction_output; + break; + } + + // repeated string compaction_output = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_compaction_output: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_compaction_output())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->compaction_output(this->compaction_output_size() - 1).data(), + this->compaction_output(this->compaction_output_size() - 1).length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_compaction_output; + if (input->ExpectTag(50)) goto parse_store_home_dir; + break; + } + + // required string store_home_dir = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_home_dir: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_store_home_dir())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(58)) goto parse_region_name; + break; + } + + // optional bytes region_name = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void CompactionDescriptor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->table_name(), output); + } + + // required bytes encoded_region_name = 2; + if (has_encoded_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->encoded_region_name(), output); + } + + // required bytes family_name = 3; + if (has_family_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->family_name(), output); + } + + // repeated string compaction_input = 4; + for (int i = 0; i < this->compaction_input_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->compaction_input(i).data(), this->compaction_input(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->compaction_input(i), output); + } + + // repeated string compaction_output = 5; + for (int i = 0; i < this->compaction_output_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->compaction_output(i).data(), this->compaction_output(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->compaction_output(i), output); + } + + // required string store_home_dir = 6; + if (has_store_home_dir()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 6, this->store_home_dir(), output); + } + + // optional bytes region_name = 7; + if (has_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 7, this->region_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* CompactionDescriptor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes table_name = 1; + if (has_table_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->table_name(), target); + } + + // required bytes encoded_region_name = 2; + if (has_encoded_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->encoded_region_name(), target); + } + + // required bytes family_name = 3; + if (has_family_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->family_name(), target); + } + + // repeated string compaction_input = 4; + for (int i = 0; i < this->compaction_input_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->compaction_input(i).data(), this->compaction_input(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(4, this->compaction_input(i), target); + } + + // repeated string compaction_output = 5; + for (int i = 0; i < this->compaction_output_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->compaction_output(i).data(), this->compaction_output(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(5, this->compaction_output(i), target); + } + + // required string store_home_dir = 6; + if (has_store_home_dir()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->store_home_dir(), target); + } + + // optional bytes region_name = 7; + if (has_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->region_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int CompactionDescriptor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->table_name()); + } + + // required bytes encoded_region_name = 2; + if (has_encoded_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encoded_region_name()); + } + + // required bytes family_name = 3; + if (has_family_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family_name()); + } + + // required string store_home_dir = 6; + if (has_store_home_dir()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_home_dir()); + } + + // optional bytes region_name = 7; + if (has_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->region_name()); + } + + } + // repeated string compaction_input = 4; + total_size += 1 * this->compaction_input_size(); + for (int i = 0; i < this->compaction_input_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->compaction_input(i)); + } + + // repeated string compaction_output = 5; + total_size += 1 * this->compaction_output_size(); + for (int i = 0; i < this->compaction_output_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->compaction_output(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CompactionDescriptor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const CompactionDescriptor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void CompactionDescriptor::MergeFrom(const CompactionDescriptor& from) { + GOOGLE_CHECK_NE(&from, this); + compaction_input_.MergeFrom(from.compaction_input_); + compaction_output_.MergeFrom(from.compaction_output_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + set_table_name(from.table_name()); + } + if (from.has_encoded_region_name()) { + set_encoded_region_name(from.encoded_region_name()); + } + if (from.has_family_name()) { + set_family_name(from.family_name()); + } + if (from.has_store_home_dir()) { + set_store_home_dir(from.store_home_dir()); + } + if (from.has_region_name()) { + set_region_name(from.region_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void CompactionDescriptor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompactionDescriptor::CopyFrom(const CompactionDescriptor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompactionDescriptor::IsInitialized() const { + if ((_has_bits_[0] & 0x00000027) != 0x00000027) return false; + + return true; +} + +void CompactionDescriptor::Swap(CompactionDescriptor* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(encoded_region_name_, other->encoded_region_name_); + std::swap(family_name_, other->family_name_); + compaction_input_.Swap(&other->compaction_input_); + compaction_output_.Swap(&other->compaction_output_); + std::swap(store_home_dir_, other->store_home_dir_); + std::swap(region_name_, other->region_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata CompactionDescriptor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = CompactionDescriptor_descriptor_; + metadata.reflection = CompactionDescriptor_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* FlushDescriptor_FlushAction_descriptor() { + protobuf_AssignDescriptorsOnce(); + return FlushDescriptor_FlushAction_descriptor_; +} +bool FlushDescriptor_FlushAction_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const FlushDescriptor_FlushAction FlushDescriptor::START_FLUSH; +const FlushDescriptor_FlushAction FlushDescriptor::COMMIT_FLUSH; +const FlushDescriptor_FlushAction FlushDescriptor::ABORT_FLUSH; +const FlushDescriptor_FlushAction FlushDescriptor::CANNOT_FLUSH; +const FlushDescriptor_FlushAction FlushDescriptor::FlushAction_MIN; +const FlushDescriptor_FlushAction FlushDescriptor::FlushAction_MAX; +const int FlushDescriptor::FlushAction_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int FlushDescriptor_StoreFlushDescriptor::kFamilyNameFieldNumber; +const int FlushDescriptor_StoreFlushDescriptor::kStoreHomeDirFieldNumber; +const int FlushDescriptor_StoreFlushDescriptor::kFlushOutputFieldNumber; +#endif // !_MSC_VER + +FlushDescriptor_StoreFlushDescriptor::FlushDescriptor_StoreFlushDescriptor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FlushDescriptor_StoreFlushDescriptor::InitAsDefaultInstance() { +} + +FlushDescriptor_StoreFlushDescriptor::FlushDescriptor_StoreFlushDescriptor(const FlushDescriptor_StoreFlushDescriptor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FlushDescriptor_StoreFlushDescriptor::SharedCtor() { + _cached_size_ = 0; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FlushDescriptor_StoreFlushDescriptor::~FlushDescriptor_StoreFlushDescriptor() { + SharedDtor(); +} + +void FlushDescriptor_StoreFlushDescriptor::SharedDtor() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + delete store_home_dir_; + } + if (this != default_instance_) { + } +} + +void FlushDescriptor_StoreFlushDescriptor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FlushDescriptor_StoreFlushDescriptor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FlushDescriptor_StoreFlushDescriptor_descriptor_; +} + +const FlushDescriptor_StoreFlushDescriptor& FlushDescriptor_StoreFlushDescriptor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +FlushDescriptor_StoreFlushDescriptor* FlushDescriptor_StoreFlushDescriptor::default_instance_ = NULL; + +FlushDescriptor_StoreFlushDescriptor* FlushDescriptor_StoreFlushDescriptor::New() const { + return new FlushDescriptor_StoreFlushDescriptor; +} + +void FlushDescriptor_StoreFlushDescriptor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_family_name()) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + } + if (has_store_home_dir()) { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + store_home_dir_->clear(); + } + } + } + flush_output_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FlushDescriptor_StoreFlushDescriptor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes family_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_store_home_dir; + break; + } + + // required string store_home_dir = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_home_dir: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_store_home_dir())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_flush_output; + break; + } + + // repeated string flush_output = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_flush_output: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_flush_output())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->flush_output(this->flush_output_size() - 1).data(), + this->flush_output(this->flush_output_size() - 1).length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_flush_output; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FlushDescriptor_StoreFlushDescriptor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes family_name = 1; + if (has_family_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->family_name(), output); + } + + // required string store_home_dir = 2; + if (has_store_home_dir()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->store_home_dir(), output); + } + + // repeated string flush_output = 3; + for (int i = 0; i < this->flush_output_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->flush_output(i).data(), this->flush_output(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->flush_output(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FlushDescriptor_StoreFlushDescriptor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes family_name = 1; + if (has_family_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->family_name(), target); + } + + // required string store_home_dir = 2; + if (has_store_home_dir()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->store_home_dir(), target); + } + + // repeated string flush_output = 3; + for (int i = 0; i < this->flush_output_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->flush_output(i).data(), this->flush_output(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->flush_output(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FlushDescriptor_StoreFlushDescriptor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes family_name = 1; + if (has_family_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family_name()); + } + + // required string store_home_dir = 2; + if (has_store_home_dir()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_home_dir()); + } + + } + // repeated string flush_output = 3; + total_size += 1 * this->flush_output_size(); + for (int i = 0; i < this->flush_output_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->flush_output(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FlushDescriptor_StoreFlushDescriptor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FlushDescriptor_StoreFlushDescriptor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FlushDescriptor_StoreFlushDescriptor::MergeFrom(const FlushDescriptor_StoreFlushDescriptor& from) { + GOOGLE_CHECK_NE(&from, this); + flush_output_.MergeFrom(from.flush_output_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_family_name()) { + set_family_name(from.family_name()); + } + if (from.has_store_home_dir()) { + set_store_home_dir(from.store_home_dir()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FlushDescriptor_StoreFlushDescriptor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FlushDescriptor_StoreFlushDescriptor::CopyFrom(const FlushDescriptor_StoreFlushDescriptor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlushDescriptor_StoreFlushDescriptor::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void FlushDescriptor_StoreFlushDescriptor::Swap(FlushDescriptor_StoreFlushDescriptor* other) { + if (other != this) { + std::swap(family_name_, other->family_name_); + std::swap(store_home_dir_, other->store_home_dir_); + flush_output_.Swap(&other->flush_output_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FlushDescriptor_StoreFlushDescriptor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FlushDescriptor_StoreFlushDescriptor_descriptor_; + metadata.reflection = FlushDescriptor_StoreFlushDescriptor_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int FlushDescriptor::kActionFieldNumber; +const int FlushDescriptor::kTableNameFieldNumber; +const int FlushDescriptor::kEncodedRegionNameFieldNumber; +const int FlushDescriptor::kFlushSequenceNumberFieldNumber; +const int FlushDescriptor::kStoreFlushesFieldNumber; +const int FlushDescriptor::kRegionNameFieldNumber; +#endif // !_MSC_VER + +FlushDescriptor::FlushDescriptor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void FlushDescriptor::InitAsDefaultInstance() { +} + +FlushDescriptor::FlushDescriptor(const FlushDescriptor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void FlushDescriptor::SharedCtor() { + _cached_size_ = 0; + action_ = 0; + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + flush_sequence_number_ = GOOGLE_ULONGLONG(0); + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +FlushDescriptor::~FlushDescriptor() { + SharedDtor(); +} + +void FlushDescriptor::SharedDtor() { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + delete table_name_; + } + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + delete region_name_; + } + if (this != default_instance_) { + } +} + +void FlushDescriptor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FlushDescriptor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return FlushDescriptor_descriptor_; +} + +const FlushDescriptor& FlushDescriptor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +FlushDescriptor* FlushDescriptor::default_instance_ = NULL; + +FlushDescriptor* FlushDescriptor::New() const { + return new FlushDescriptor; +} + +void FlushDescriptor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + action_ = 0; + if (has_table_name()) { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + table_name_->clear(); + } + } + if (has_encoded_region_name()) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + } + flush_sequence_number_ = GOOGLE_ULONGLONG(0); + if (has_region_name()) { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + region_name_->clear(); + } + } + } + store_flushes_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool FlushDescriptor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.FlushDescriptor.FlushAction action = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::FlushDescriptor_FlushAction_IsValid(value)) { + set_action(static_cast< ::hbase::pb::FlushDescriptor_FlushAction >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required bytes table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_encoded_region_name; + break; + } + + // required bytes encoded_region_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_encoded_region_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encoded_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_flush_sequence_number; + break; + } + + // optional uint64 flush_sequence_number = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_flush_sequence_number: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &flush_sequence_number_))); + set_has_flush_sequence_number(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_store_flushes; + break; + } + + // repeated .hbase.pb.FlushDescriptor.StoreFlushDescriptor store_flushes = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_flushes: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_store_flushes())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_store_flushes; + if (input->ExpectTag(50)) goto parse_region_name; + break; + } + + // optional bytes region_name = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void FlushDescriptor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.FlushDescriptor.FlushAction action = 1; + if (has_action()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->action(), output); + } + + // required bytes table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->table_name(), output); + } + + // required bytes encoded_region_name = 3; + if (has_encoded_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->encoded_region_name(), output); + } + + // optional uint64 flush_sequence_number = 4; + if (has_flush_sequence_number()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->flush_sequence_number(), output); + } + + // repeated .hbase.pb.FlushDescriptor.StoreFlushDescriptor store_flushes = 5; + for (int i = 0; i < this->store_flushes_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->store_flushes(i), output); + } + + // optional bytes region_name = 6; + if (has_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 6, this->region_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* FlushDescriptor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.FlushDescriptor.FlushAction action = 1; + if (has_action()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->action(), target); + } + + // required bytes table_name = 2; + if (has_table_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->table_name(), target); + } + + // required bytes encoded_region_name = 3; + if (has_encoded_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->encoded_region_name(), target); + } + + // optional uint64 flush_sequence_number = 4; + if (has_flush_sequence_number()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->flush_sequence_number(), target); + } + + // repeated .hbase.pb.FlushDescriptor.StoreFlushDescriptor store_flushes = 5; + for (int i = 0; i < this->store_flushes_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->store_flushes(i), target); + } + + // optional bytes region_name = 6; + if (has_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->region_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int FlushDescriptor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.FlushDescriptor.FlushAction action = 1; + if (has_action()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->action()); + } + + // required bytes table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->table_name()); + } + + // required bytes encoded_region_name = 3; + if (has_encoded_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encoded_region_name()); + } + + // optional uint64 flush_sequence_number = 4; + if (has_flush_sequence_number()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->flush_sequence_number()); + } + + // optional bytes region_name = 6; + if (has_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->region_name()); + } + + } + // repeated .hbase.pb.FlushDescriptor.StoreFlushDescriptor store_flushes = 5; + total_size += 1 * this->store_flushes_size(); + for (int i = 0; i < this->store_flushes_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->store_flushes(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FlushDescriptor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const FlushDescriptor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void FlushDescriptor::MergeFrom(const FlushDescriptor& from) { + GOOGLE_CHECK_NE(&from, this); + store_flushes_.MergeFrom(from.store_flushes_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_action()) { + set_action(from.action()); + } + if (from.has_table_name()) { + set_table_name(from.table_name()); + } + if (from.has_encoded_region_name()) { + set_encoded_region_name(from.encoded_region_name()); + } + if (from.has_flush_sequence_number()) { + set_flush_sequence_number(from.flush_sequence_number()); + } + if (from.has_region_name()) { + set_region_name(from.region_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void FlushDescriptor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FlushDescriptor::CopyFrom(const FlushDescriptor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlushDescriptor::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + for (int i = 0; i < store_flushes_size(); i++) { + if (!this->store_flushes(i).IsInitialized()) return false; + } + return true; +} + +void FlushDescriptor::Swap(FlushDescriptor* other) { + if (other != this) { + std::swap(action_, other->action_); + std::swap(table_name_, other->table_name_); + std::swap(encoded_region_name_, other->encoded_region_name_); + std::swap(flush_sequence_number_, other->flush_sequence_number_); + store_flushes_.Swap(&other->store_flushes_); + std::swap(region_name_, other->region_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata FlushDescriptor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = FlushDescriptor_descriptor_; + metadata.reflection = FlushDescriptor_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int StoreDescriptor::kFamilyNameFieldNumber; +const int StoreDescriptor::kStoreHomeDirFieldNumber; +const int StoreDescriptor::kStoreFileFieldNumber; +#endif // !_MSC_VER + +StoreDescriptor::StoreDescriptor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StoreDescriptor::InitAsDefaultInstance() { +} + +StoreDescriptor::StoreDescriptor(const StoreDescriptor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StoreDescriptor::SharedCtor() { + _cached_size_ = 0; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StoreDescriptor::~StoreDescriptor() { + SharedDtor(); +} + +void StoreDescriptor::SharedDtor() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + delete store_home_dir_; + } + if (this != default_instance_) { + } +} + +void StoreDescriptor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StoreDescriptor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StoreDescriptor_descriptor_; +} + +const StoreDescriptor& StoreDescriptor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +StoreDescriptor* StoreDescriptor::default_instance_ = NULL; + +StoreDescriptor* StoreDescriptor::New() const { + return new StoreDescriptor; +} + +void StoreDescriptor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_family_name()) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + } + if (has_store_home_dir()) { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + store_home_dir_->clear(); + } + } + } + store_file_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StoreDescriptor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes family_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_family_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_store_home_dir; + break; + } + + // required string store_home_dir = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_home_dir: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_store_home_dir())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_store_file; + break; + } + + // repeated string store_file = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_store_file: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_store_file())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_file(this->store_file_size() - 1).data(), + this->store_file(this->store_file_size() - 1).length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_store_file; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StoreDescriptor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes family_name = 1; + if (has_family_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->family_name(), output); + } + + // required string store_home_dir = 2; + if (has_store_home_dir()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->store_home_dir(), output); + } + + // repeated string store_file = 3; + for (int i = 0; i < this->store_file_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_file(i).data(), this->store_file(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->store_file(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StoreDescriptor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes family_name = 1; + if (has_family_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->family_name(), target); + } + + // required string store_home_dir = 2; + if (has_store_home_dir()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_home_dir().data(), this->store_home_dir().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->store_home_dir(), target); + } + + // repeated string store_file = 3; + for (int i = 0; i < this->store_file_size(); i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->store_file(i).data(), this->store_file(i).length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->store_file(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StoreDescriptor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes family_name = 1; + if (has_family_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->family_name()); + } + + // required string store_home_dir = 2; + if (has_store_home_dir()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_home_dir()); + } + + } + // repeated string store_file = 3; + total_size += 1 * this->store_file_size(); + for (int i = 0; i < this->store_file_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->store_file(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StoreDescriptor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StoreDescriptor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StoreDescriptor::MergeFrom(const StoreDescriptor& from) { + GOOGLE_CHECK_NE(&from, this); + store_file_.MergeFrom(from.store_file_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_family_name()) { + set_family_name(from.family_name()); + } + if (from.has_store_home_dir()) { + set_store_home_dir(from.store_home_dir()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StoreDescriptor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StoreDescriptor::CopyFrom(const StoreDescriptor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StoreDescriptor::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void StoreDescriptor::Swap(StoreDescriptor* other) { + if (other != this) { + std::swap(family_name_, other->family_name_); + std::swap(store_home_dir_, other->store_home_dir_); + store_file_.Swap(&other->store_file_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StoreDescriptor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StoreDescriptor_descriptor_; + metadata.reflection = StoreDescriptor_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int BulkLoadDescriptor::kTableNameFieldNumber; +const int BulkLoadDescriptor::kEncodedRegionNameFieldNumber; +const int BulkLoadDescriptor::kStoresFieldNumber; +const int BulkLoadDescriptor::kBulkloadSeqNumFieldNumber; +#endif // !_MSC_VER + +BulkLoadDescriptor::BulkLoadDescriptor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void BulkLoadDescriptor::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); +} + +BulkLoadDescriptor::BulkLoadDescriptor(const BulkLoadDescriptor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void BulkLoadDescriptor::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + bulkload_seq_num_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +BulkLoadDescriptor::~BulkLoadDescriptor() { + SharedDtor(); +} + +void BulkLoadDescriptor::SharedDtor() { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (this != default_instance_) { + delete table_name_; + } +} + +void BulkLoadDescriptor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BulkLoadDescriptor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return BulkLoadDescriptor_descriptor_; +} + +const BulkLoadDescriptor& BulkLoadDescriptor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +BulkLoadDescriptor* BulkLoadDescriptor::default_instance_ = NULL; + +BulkLoadDescriptor* BulkLoadDescriptor::New() const { + return new BulkLoadDescriptor; +} + +void BulkLoadDescriptor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_encoded_region_name()) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + } + bulkload_seq_num_ = GOOGLE_LONGLONG(0); + } + stores_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool BulkLoadDescriptor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_encoded_region_name; + break; + } + + // required bytes encoded_region_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_encoded_region_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encoded_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_stores; + break; + } + + // repeated .hbase.pb.StoreDescriptor stores = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_stores: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_stores())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_stores; + if (input->ExpectTag(32)) goto parse_bulkload_seq_num; + break; + } + + // required int64 bulkload_seq_num = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_bulkload_seq_num: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &bulkload_seq_num_))); + set_has_bulkload_seq_num(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void BulkLoadDescriptor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // required bytes encoded_region_name = 2; + if (has_encoded_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->encoded_region_name(), output); + } + + // repeated .hbase.pb.StoreDescriptor stores = 3; + for (int i = 0; i < this->stores_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->stores(i), output); + } + + // required int64 bulkload_seq_num = 4; + if (has_bulkload_seq_num()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->bulkload_seq_num(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* BulkLoadDescriptor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // required bytes encoded_region_name = 2; + if (has_encoded_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->encoded_region_name(), target); + } + + // repeated .hbase.pb.StoreDescriptor stores = 3; + for (int i = 0; i < this->stores_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->stores(i), target); + } + + // required int64 bulkload_seq_num = 4; + if (has_bulkload_seq_num()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->bulkload_seq_num(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int BulkLoadDescriptor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // required bytes encoded_region_name = 2; + if (has_encoded_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encoded_region_name()); + } + + // required int64 bulkload_seq_num = 4; + if (has_bulkload_seq_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->bulkload_seq_num()); + } + + } + // repeated .hbase.pb.StoreDescriptor stores = 3; + total_size += 1 * this->stores_size(); + for (int i = 0; i < this->stores_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->stores(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BulkLoadDescriptor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const BulkLoadDescriptor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void BulkLoadDescriptor::MergeFrom(const BulkLoadDescriptor& from) { + GOOGLE_CHECK_NE(&from, this); + stores_.MergeFrom(from.stores_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_encoded_region_name()) { + set_encoded_region_name(from.encoded_region_name()); + } + if (from.has_bulkload_seq_num()) { + set_bulkload_seq_num(from.bulkload_seq_num()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void BulkLoadDescriptor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BulkLoadDescriptor::CopyFrom(const BulkLoadDescriptor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BulkLoadDescriptor::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000b) != 0x0000000b) return false; + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + for (int i = 0; i < stores_size(); i++) { + if (!this->stores(i).IsInitialized()) return false; + } + return true; +} + +void BulkLoadDescriptor::Swap(BulkLoadDescriptor* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(encoded_region_name_, other->encoded_region_name_); + stores_.Swap(&other->stores_); + std::swap(bulkload_seq_num_, other->bulkload_seq_num_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata BulkLoadDescriptor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = BulkLoadDescriptor_descriptor_; + metadata.reflection = BulkLoadDescriptor_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* RegionEventDescriptor_EventType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionEventDescriptor_EventType_descriptor_; +} +bool RegionEventDescriptor_EventType_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const RegionEventDescriptor_EventType RegionEventDescriptor::REGION_OPEN; +const RegionEventDescriptor_EventType RegionEventDescriptor::REGION_CLOSE; +const RegionEventDescriptor_EventType RegionEventDescriptor::EventType_MIN; +const RegionEventDescriptor_EventType RegionEventDescriptor::EventType_MAX; +const int RegionEventDescriptor::EventType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int RegionEventDescriptor::kEventTypeFieldNumber; +const int RegionEventDescriptor::kTableNameFieldNumber; +const int RegionEventDescriptor::kEncodedRegionNameFieldNumber; +const int RegionEventDescriptor::kLogSequenceNumberFieldNumber; +const int RegionEventDescriptor::kStoresFieldNumber; +const int RegionEventDescriptor::kServerFieldNumber; +const int RegionEventDescriptor::kRegionNameFieldNumber; +#endif // !_MSC_VER + +RegionEventDescriptor::RegionEventDescriptor() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RegionEventDescriptor::InitAsDefaultInstance() { + server_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +RegionEventDescriptor::RegionEventDescriptor(const RegionEventDescriptor& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RegionEventDescriptor::SharedCtor() { + _cached_size_ = 0; + event_type_ = 0; + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + log_sequence_number_ = GOOGLE_ULONGLONG(0); + server_ = NULL; + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RegionEventDescriptor::~RegionEventDescriptor() { + SharedDtor(); +} + +void RegionEventDescriptor::SharedDtor() { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + delete table_name_; + } + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + delete region_name_; + } + if (this != default_instance_) { + delete server_; + } +} + +void RegionEventDescriptor::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RegionEventDescriptor::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RegionEventDescriptor_descriptor_; +} + +const RegionEventDescriptor& RegionEventDescriptor::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +RegionEventDescriptor* RegionEventDescriptor::default_instance_ = NULL; + +RegionEventDescriptor* RegionEventDescriptor::New() const { + return new RegionEventDescriptor; +} + +void RegionEventDescriptor::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + event_type_ = 0; + if (has_table_name()) { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + table_name_->clear(); + } + } + if (has_encoded_region_name()) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + } + log_sequence_number_ = GOOGLE_ULONGLONG(0); + if (has_server()) { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + } + if (has_region_name()) { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + region_name_->clear(); + } + } + } + stores_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RegionEventDescriptor::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.RegionEventDescriptor.EventType event_type = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::RegionEventDescriptor_EventType_IsValid(value)) { + set_event_type(static_cast< ::hbase::pb::RegionEventDescriptor_EventType >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_table_name; + break; + } + + // required bytes table_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_table_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_encoded_region_name; + break; + } + + // required bytes encoded_region_name = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_encoded_region_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encoded_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_log_sequence_number; + break; + } + + // optional uint64 log_sequence_number = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_log_sequence_number: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &log_sequence_number_))); + set_has_log_sequence_number(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_stores; + break; + } + + // repeated .hbase.pb.StoreDescriptor stores = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_stores: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_stores())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_stores; + if (input->ExpectTag(50)) goto parse_server; + break; + } + + // optional .hbase.pb.ServerName server = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_server: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(58)) goto parse_region_name; + break; + } + + // optional bytes region_name = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_region_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_region_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RegionEventDescriptor::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.RegionEventDescriptor.EventType event_type = 1; + if (has_event_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->event_type(), output); + } + + // required bytes table_name = 2; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->table_name(), output); + } + + // required bytes encoded_region_name = 3; + if (has_encoded_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->encoded_region_name(), output); + } + + // optional uint64 log_sequence_number = 4; + if (has_log_sequence_number()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->log_sequence_number(), output); + } + + // repeated .hbase.pb.StoreDescriptor stores = 5; + for (int i = 0; i < this->stores_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->stores(i), output); + } + + // optional .hbase.pb.ServerName server = 6; + if (has_server()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->server(), output); + } + + // optional bytes region_name = 7; + if (has_region_name()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 7, this->region_name(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RegionEventDescriptor::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.RegionEventDescriptor.EventType event_type = 1; + if (has_event_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->event_type(), target); + } + + // required bytes table_name = 2; + if (has_table_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->table_name(), target); + } + + // required bytes encoded_region_name = 3; + if (has_encoded_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->encoded_region_name(), target); + } + + // optional uint64 log_sequence_number = 4; + if (has_log_sequence_number()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->log_sequence_number(), target); + } + + // repeated .hbase.pb.StoreDescriptor stores = 5; + for (int i = 0; i < this->stores_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->stores(i), target); + } + + // optional .hbase.pb.ServerName server = 6; + if (has_server()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->server(), target); + } + + // optional bytes region_name = 7; + if (has_region_name()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->region_name(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RegionEventDescriptor::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.RegionEventDescriptor.EventType event_type = 1; + if (has_event_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->event_type()); + } + + // required bytes table_name = 2; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->table_name()); + } + + // required bytes encoded_region_name = 3; + if (has_encoded_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encoded_region_name()); + } + + // optional uint64 log_sequence_number = 4; + if (has_log_sequence_number()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->log_sequence_number()); + } + + // optional .hbase.pb.ServerName server = 6; + if (has_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server()); + } + + // optional bytes region_name = 7; + if (has_region_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->region_name()); + } + + } + // repeated .hbase.pb.StoreDescriptor stores = 5; + total_size += 1 * this->stores_size(); + for (int i = 0; i < this->stores_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->stores(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RegionEventDescriptor::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RegionEventDescriptor* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RegionEventDescriptor::MergeFrom(const RegionEventDescriptor& from) { + GOOGLE_CHECK_NE(&from, this); + stores_.MergeFrom(from.stores_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_event_type()) { + set_event_type(from.event_type()); + } + if (from.has_table_name()) { + set_table_name(from.table_name()); + } + if (from.has_encoded_region_name()) { + set_encoded_region_name(from.encoded_region_name()); + } + if (from.has_log_sequence_number()) { + set_log_sequence_number(from.log_sequence_number()); + } + if (from.has_server()) { + mutable_server()->::hbase::pb::ServerName::MergeFrom(from.server()); + } + if (from.has_region_name()) { + set_region_name(from.region_name()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RegionEventDescriptor::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RegionEventDescriptor::CopyFrom(const RegionEventDescriptor& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RegionEventDescriptor::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + for (int i = 0; i < stores_size(); i++) { + if (!this->stores(i).IsInitialized()) return false; + } + if (has_server()) { + if (!this->server().IsInitialized()) return false; + } + return true; +} + +void RegionEventDescriptor::Swap(RegionEventDescriptor* other) { + if (other != this) { + std::swap(event_type_, other->event_type_); + std::swap(table_name_, other->table_name_); + std::swap(encoded_region_name_, other->encoded_region_name_); + std::swap(log_sequence_number_, other->log_sequence_number_); + stores_.Swap(&other->stores_); + std::swap(server_, other->server_); + std::swap(region_name_, other->region_name_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RegionEventDescriptor::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RegionEventDescriptor_descriptor_; + metadata.reflection = RegionEventDescriptor_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +WALTrailer::WALTrailer() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void WALTrailer::InitAsDefaultInstance() { +} + +WALTrailer::WALTrailer(const WALTrailer& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void WALTrailer::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +WALTrailer::~WALTrailer() { + SharedDtor(); +} + +void WALTrailer::SharedDtor() { + if (this != default_instance_) { + } +} + +void WALTrailer::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WALTrailer::descriptor() { + protobuf_AssignDescriptorsOnce(); + return WALTrailer_descriptor_; +} + +const WALTrailer& WALTrailer::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_WAL_2eproto(); + return *default_instance_; +} + +WALTrailer* WALTrailer::default_instance_ = NULL; + +WALTrailer* WALTrailer::New() const { + return new WALTrailer; +} + +void WALTrailer::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool WALTrailer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void WALTrailer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* WALTrailer::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int WALTrailer::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WALTrailer::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const WALTrailer* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void WALTrailer::MergeFrom(const WALTrailer& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void WALTrailer::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WALTrailer::CopyFrom(const WALTrailer& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WALTrailer::IsInitialized() const { + + return true; +} + +void WALTrailer::Swap(WALTrailer* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata WALTrailer::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = WALTrailer_descriptor_; + metadata.reflection = WALTrailer_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/WAL.pb.h b/hbase-native-client/src/rpc/generated/WAL.pb.h new file mode 100644 index 0000000..d2109d9 --- /dev/null +++ b/hbase-native-client/src/rpc/generated/WAL.pb.h @@ -0,0 +1,3859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: WAL.proto + +#ifndef PROTOBUF_WAL_2eproto__INCLUDED +#define PROTOBUF_WAL_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "Client.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_WAL_2eproto(); +void protobuf_AssignDesc_WAL_2eproto(); +void protobuf_ShutdownFile_WAL_2eproto(); + +class WALHeader; +class WALKey; +class FamilyScope; +class CompactionDescriptor; +class FlushDescriptor; +class FlushDescriptor_StoreFlushDescriptor; +class StoreDescriptor; +class BulkLoadDescriptor; +class RegionEventDescriptor; +class WALTrailer; + +enum FlushDescriptor_FlushAction { + FlushDescriptor_FlushAction_START_FLUSH = 0, + FlushDescriptor_FlushAction_COMMIT_FLUSH = 1, + FlushDescriptor_FlushAction_ABORT_FLUSH = 2, + FlushDescriptor_FlushAction_CANNOT_FLUSH = 3 +}; +bool FlushDescriptor_FlushAction_IsValid(int value); +const FlushDescriptor_FlushAction FlushDescriptor_FlushAction_FlushAction_MIN = FlushDescriptor_FlushAction_START_FLUSH; +const FlushDescriptor_FlushAction FlushDescriptor_FlushAction_FlushAction_MAX = FlushDescriptor_FlushAction_CANNOT_FLUSH; +const int FlushDescriptor_FlushAction_FlushAction_ARRAYSIZE = FlushDescriptor_FlushAction_FlushAction_MAX + 1; + +const ::google::protobuf::EnumDescriptor* FlushDescriptor_FlushAction_descriptor(); +inline const ::std::string& FlushDescriptor_FlushAction_Name(FlushDescriptor_FlushAction value) { + return ::google::protobuf::internal::NameOfEnum( + FlushDescriptor_FlushAction_descriptor(), value); +} +inline bool FlushDescriptor_FlushAction_Parse( + const ::std::string& name, FlushDescriptor_FlushAction* value) { + return ::google::protobuf::internal::ParseNamedEnum( + FlushDescriptor_FlushAction_descriptor(), name, value); +} +enum RegionEventDescriptor_EventType { + RegionEventDescriptor_EventType_REGION_OPEN = 0, + RegionEventDescriptor_EventType_REGION_CLOSE = 1 +}; +bool RegionEventDescriptor_EventType_IsValid(int value); +const RegionEventDescriptor_EventType RegionEventDescriptor_EventType_EventType_MIN = RegionEventDescriptor_EventType_REGION_OPEN; +const RegionEventDescriptor_EventType RegionEventDescriptor_EventType_EventType_MAX = RegionEventDescriptor_EventType_REGION_CLOSE; +const int RegionEventDescriptor_EventType_EventType_ARRAYSIZE = RegionEventDescriptor_EventType_EventType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RegionEventDescriptor_EventType_descriptor(); +inline const ::std::string& RegionEventDescriptor_EventType_Name(RegionEventDescriptor_EventType value) { + return ::google::protobuf::internal::NameOfEnum( + RegionEventDescriptor_EventType_descriptor(), value); +} +inline bool RegionEventDescriptor_EventType_Parse( + const ::std::string& name, RegionEventDescriptor_EventType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RegionEventDescriptor_EventType_descriptor(), name, value); +} +enum ScopeType { + REPLICATION_SCOPE_LOCAL = 0, + REPLICATION_SCOPE_GLOBAL = 1 +}; +bool ScopeType_IsValid(int value); +const ScopeType ScopeType_MIN = REPLICATION_SCOPE_LOCAL; +const ScopeType ScopeType_MAX = REPLICATION_SCOPE_GLOBAL; +const int ScopeType_ARRAYSIZE = ScopeType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ScopeType_descriptor(); +inline const ::std::string& ScopeType_Name(ScopeType value) { + return ::google::protobuf::internal::NameOfEnum( + ScopeType_descriptor(), value); +} +inline bool ScopeType_Parse( + const ::std::string& name, ScopeType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ScopeType_descriptor(), name, value); +} +// =================================================================== + +class WALHeader : public ::google::protobuf::Message { + public: + WALHeader(); + virtual ~WALHeader(); + + WALHeader(const WALHeader& from); + + inline WALHeader& operator=(const WALHeader& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WALHeader& default_instance(); + + void Swap(WALHeader* other); + + // implements Message ---------------------------------------------- + + WALHeader* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WALHeader& from); + void MergeFrom(const WALHeader& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool has_compression = 1; + inline bool has_has_compression() const; + inline void clear_has_compression(); + static const int kHasCompressionFieldNumber = 1; + inline bool has_compression() const; + inline void set_has_compression(bool value); + + // optional bytes encryption_key = 2; + inline bool has_encryption_key() const; + inline void clear_encryption_key(); + static const int kEncryptionKeyFieldNumber = 2; + inline const ::std::string& encryption_key() const; + inline void set_encryption_key(const ::std::string& value); + inline void set_encryption_key(const char* value); + inline void set_encryption_key(const void* value, size_t size); + inline ::std::string* mutable_encryption_key(); + inline ::std::string* release_encryption_key(); + inline void set_allocated_encryption_key(::std::string* encryption_key); + + // optional bool has_tag_compression = 3; + inline bool has_has_tag_compression() const; + inline void clear_has_tag_compression(); + static const int kHasTagCompressionFieldNumber = 3; + inline bool has_tag_compression() const; + inline void set_has_tag_compression(bool value); + + // optional string writer_cls_name = 4; + inline bool has_writer_cls_name() const; + inline void clear_writer_cls_name(); + static const int kWriterClsNameFieldNumber = 4; + inline const ::std::string& writer_cls_name() const; + inline void set_writer_cls_name(const ::std::string& value); + inline void set_writer_cls_name(const char* value); + inline void set_writer_cls_name(const char* value, size_t size); + inline ::std::string* mutable_writer_cls_name(); + inline ::std::string* release_writer_cls_name(); + inline void set_allocated_writer_cls_name(::std::string* writer_cls_name); + + // optional string cell_codec_cls_name = 5; + inline bool has_cell_codec_cls_name() const; + inline void clear_cell_codec_cls_name(); + static const int kCellCodecClsNameFieldNumber = 5; + inline const ::std::string& cell_codec_cls_name() const; + inline void set_cell_codec_cls_name(const ::std::string& value); + inline void set_cell_codec_cls_name(const char* value); + inline void set_cell_codec_cls_name(const char* value, size_t size); + inline ::std::string* mutable_cell_codec_cls_name(); + inline ::std::string* release_cell_codec_cls_name(); + inline void set_allocated_cell_codec_cls_name(::std::string* cell_codec_cls_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.WALHeader) + private: + inline void set_has_has_compression(); + inline void clear_has_has_compression(); + inline void set_has_encryption_key(); + inline void clear_has_encryption_key(); + inline void set_has_has_tag_compression(); + inline void clear_has_has_tag_compression(); + inline void set_has_writer_cls_name(); + inline void clear_has_writer_cls_name(); + inline void set_has_cell_codec_cls_name(); + inline void clear_has_cell_codec_cls_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* encryption_key_; + ::std::string* writer_cls_name_; + ::std::string* cell_codec_cls_name_; + bool has_compression_; + bool has_tag_compression_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static WALHeader* default_instance_; +}; +// ------------------------------------------------------------------- + +class WALKey : public ::google::protobuf::Message { + public: + WALKey(); + virtual ~WALKey(); + + WALKey(const WALKey& from); + + inline WALKey& operator=(const WALKey& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WALKey& default_instance(); + + void Swap(WALKey* other); + + // implements Message ---------------------------------------------- + + WALKey* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WALKey& from); + void MergeFrom(const WALKey& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes encoded_region_name = 1; + inline bool has_encoded_region_name() const; + inline void clear_encoded_region_name(); + static const int kEncodedRegionNameFieldNumber = 1; + inline const ::std::string& encoded_region_name() const; + inline void set_encoded_region_name(const ::std::string& value); + inline void set_encoded_region_name(const char* value); + inline void set_encoded_region_name(const void* value, size_t size); + inline ::std::string* mutable_encoded_region_name(); + inline ::std::string* release_encoded_region_name(); + inline void set_allocated_encoded_region_name(::std::string* encoded_region_name); + + // required bytes table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::std::string& table_name() const; + inline void set_table_name(const ::std::string& value); + inline void set_table_name(const char* value); + inline void set_table_name(const void* value, size_t size); + inline ::std::string* mutable_table_name(); + inline ::std::string* release_table_name(); + inline void set_allocated_table_name(::std::string* table_name); + + // required uint64 log_sequence_number = 3; + inline bool has_log_sequence_number() const; + inline void clear_log_sequence_number(); + static const int kLogSequenceNumberFieldNumber = 3; + inline ::google::protobuf::uint64 log_sequence_number() const; + inline void set_log_sequence_number(::google::protobuf::uint64 value); + + // required uint64 write_time = 4; + inline bool has_write_time() const; + inline void clear_write_time(); + static const int kWriteTimeFieldNumber = 4; + inline ::google::protobuf::uint64 write_time() const; + inline void set_write_time(::google::protobuf::uint64 value); + + // optional .hbase.pb.UUID cluster_id = 5 [deprecated = true]; + inline bool has_cluster_id() const PROTOBUF_DEPRECATED; + inline void clear_cluster_id() PROTOBUF_DEPRECATED; + static const int kClusterIdFieldNumber = 5; + inline const ::hbase::pb::UUID& cluster_id() const PROTOBUF_DEPRECATED; + inline ::hbase::pb::UUID* mutable_cluster_id() PROTOBUF_DEPRECATED; + inline ::hbase::pb::UUID* release_cluster_id() PROTOBUF_DEPRECATED; + inline void set_allocated_cluster_id(::hbase::pb::UUID* cluster_id) PROTOBUF_DEPRECATED; + + // repeated .hbase.pb.FamilyScope scopes = 6; + inline int scopes_size() const; + inline void clear_scopes(); + static const int kScopesFieldNumber = 6; + inline const ::hbase::pb::FamilyScope& scopes(int index) const; + inline ::hbase::pb::FamilyScope* mutable_scopes(int index); + inline ::hbase::pb::FamilyScope* add_scopes(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::FamilyScope >& + scopes() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::FamilyScope >* + mutable_scopes(); + + // optional uint32 following_kv_count = 7; + inline bool has_following_kv_count() const; + inline void clear_following_kv_count(); + static const int kFollowingKvCountFieldNumber = 7; + inline ::google::protobuf::uint32 following_kv_count() const; + inline void set_following_kv_count(::google::protobuf::uint32 value); + + // repeated .hbase.pb.UUID cluster_ids = 8; + inline int cluster_ids_size() const; + inline void clear_cluster_ids(); + static const int kClusterIdsFieldNumber = 8; + inline const ::hbase::pb::UUID& cluster_ids(int index) const; + inline ::hbase::pb::UUID* mutable_cluster_ids(int index); + inline ::hbase::pb::UUID* add_cluster_ids(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UUID >& + cluster_ids() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UUID >* + mutable_cluster_ids(); + + // optional uint64 nonceGroup = 9; + inline bool has_noncegroup() const; + inline void clear_noncegroup(); + static const int kNonceGroupFieldNumber = 9; + inline ::google::protobuf::uint64 noncegroup() const; + inline void set_noncegroup(::google::protobuf::uint64 value); + + // optional uint64 nonce = 10; + inline bool has_nonce() const; + inline void clear_nonce(); + static const int kNonceFieldNumber = 10; + inline ::google::protobuf::uint64 nonce() const; + inline void set_nonce(::google::protobuf::uint64 value); + + // optional uint64 orig_sequence_number = 11; + inline bool has_orig_sequence_number() const; + inline void clear_orig_sequence_number(); + static const int kOrigSequenceNumberFieldNumber = 11; + inline ::google::protobuf::uint64 orig_sequence_number() const; + inline void set_orig_sequence_number(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.WALKey) + private: + inline void set_has_encoded_region_name(); + inline void clear_has_encoded_region_name(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_log_sequence_number(); + inline void clear_has_log_sequence_number(); + inline void set_has_write_time(); + inline void clear_has_write_time(); + inline void set_has_cluster_id(); + inline void clear_has_cluster_id(); + inline void set_has_following_kv_count(); + inline void clear_has_following_kv_count(); + inline void set_has_noncegroup(); + inline void clear_has_noncegroup(); + inline void set_has_nonce(); + inline void clear_has_nonce(); + inline void set_has_orig_sequence_number(); + inline void clear_has_orig_sequence_number(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* encoded_region_name_; + ::std::string* table_name_; + ::google::protobuf::uint64 log_sequence_number_; + ::google::protobuf::uint64 write_time_; + ::hbase::pb::UUID* cluster_id_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::FamilyScope > scopes_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::UUID > cluster_ids_; + ::google::protobuf::uint64 noncegroup_; + ::google::protobuf::uint64 nonce_; + ::google::protobuf::uint64 orig_sequence_number_; + ::google::protobuf::uint32 following_kv_count_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(11 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static WALKey* default_instance_; +}; +// ------------------------------------------------------------------- + +class FamilyScope : public ::google::protobuf::Message { + public: + FamilyScope(); + virtual ~FamilyScope(); + + FamilyScope(const FamilyScope& from); + + inline FamilyScope& operator=(const FamilyScope& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FamilyScope& default_instance(); + + void Swap(FamilyScope* other); + + // implements Message ---------------------------------------------- + + FamilyScope* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FamilyScope& from); + void MergeFrom(const FamilyScope& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes family = 1; + inline bool has_family() const; + inline void clear_family(); + static const int kFamilyFieldNumber = 1; + inline const ::std::string& family() const; + inline void set_family(const ::std::string& value); + inline void set_family(const char* value); + inline void set_family(const void* value, size_t size); + inline ::std::string* mutable_family(); + inline ::std::string* release_family(); + inline void set_allocated_family(::std::string* family); + + // required .hbase.pb.ScopeType scope_type = 2; + inline bool has_scope_type() const; + inline void clear_scope_type(); + static const int kScopeTypeFieldNumber = 2; + inline ::hbase::pb::ScopeType scope_type() const; + inline void set_scope_type(::hbase::pb::ScopeType value); + + // @@protoc_insertion_point(class_scope:hbase.pb.FamilyScope) + private: + inline void set_has_family(); + inline void clear_has_family(); + inline void set_has_scope_type(); + inline void clear_has_scope_type(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* family_; + int scope_type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static FamilyScope* default_instance_; +}; +// ------------------------------------------------------------------- + +class CompactionDescriptor : public ::google::protobuf::Message { + public: + CompactionDescriptor(); + virtual ~CompactionDescriptor(); + + CompactionDescriptor(const CompactionDescriptor& from); + + inline CompactionDescriptor& operator=(const CompactionDescriptor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const CompactionDescriptor& default_instance(); + + void Swap(CompactionDescriptor* other); + + // implements Message ---------------------------------------------- + + CompactionDescriptor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const CompactionDescriptor& from); + void MergeFrom(const CompactionDescriptor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::std::string& table_name() const; + inline void set_table_name(const ::std::string& value); + inline void set_table_name(const char* value); + inline void set_table_name(const void* value, size_t size); + inline ::std::string* mutable_table_name(); + inline ::std::string* release_table_name(); + inline void set_allocated_table_name(::std::string* table_name); + + // required bytes encoded_region_name = 2; + inline bool has_encoded_region_name() const; + inline void clear_encoded_region_name(); + static const int kEncodedRegionNameFieldNumber = 2; + inline const ::std::string& encoded_region_name() const; + inline void set_encoded_region_name(const ::std::string& value); + inline void set_encoded_region_name(const char* value); + inline void set_encoded_region_name(const void* value, size_t size); + inline ::std::string* mutable_encoded_region_name(); + inline ::std::string* release_encoded_region_name(); + inline void set_allocated_encoded_region_name(::std::string* encoded_region_name); + + // required bytes family_name = 3; + inline bool has_family_name() const; + inline void clear_family_name(); + static const int kFamilyNameFieldNumber = 3; + inline const ::std::string& family_name() const; + inline void set_family_name(const ::std::string& value); + inline void set_family_name(const char* value); + inline void set_family_name(const void* value, size_t size); + inline ::std::string* mutable_family_name(); + inline ::std::string* release_family_name(); + inline void set_allocated_family_name(::std::string* family_name); + + // repeated string compaction_input = 4; + inline int compaction_input_size() const; + inline void clear_compaction_input(); + static const int kCompactionInputFieldNumber = 4; + inline const ::std::string& compaction_input(int index) const; + inline ::std::string* mutable_compaction_input(int index); + inline void set_compaction_input(int index, const ::std::string& value); + inline void set_compaction_input(int index, const char* value); + inline void set_compaction_input(int index, const char* value, size_t size); + inline ::std::string* add_compaction_input(); + inline void add_compaction_input(const ::std::string& value); + inline void add_compaction_input(const char* value); + inline void add_compaction_input(const char* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& compaction_input() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_compaction_input(); + + // repeated string compaction_output = 5; + inline int compaction_output_size() const; + inline void clear_compaction_output(); + static const int kCompactionOutputFieldNumber = 5; + inline const ::std::string& compaction_output(int index) const; + inline ::std::string* mutable_compaction_output(int index); + inline void set_compaction_output(int index, const ::std::string& value); + inline void set_compaction_output(int index, const char* value); + inline void set_compaction_output(int index, const char* value, size_t size); + inline ::std::string* add_compaction_output(); + inline void add_compaction_output(const ::std::string& value); + inline void add_compaction_output(const char* value); + inline void add_compaction_output(const char* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& compaction_output() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_compaction_output(); + + // required string store_home_dir = 6; + inline bool has_store_home_dir() const; + inline void clear_store_home_dir(); + static const int kStoreHomeDirFieldNumber = 6; + inline const ::std::string& store_home_dir() const; + inline void set_store_home_dir(const ::std::string& value); + inline void set_store_home_dir(const char* value); + inline void set_store_home_dir(const char* value, size_t size); + inline ::std::string* mutable_store_home_dir(); + inline ::std::string* release_store_home_dir(); + inline void set_allocated_store_home_dir(::std::string* store_home_dir); + + // optional bytes region_name = 7; + inline bool has_region_name() const; + inline void clear_region_name(); + static const int kRegionNameFieldNumber = 7; + inline const ::std::string& region_name() const; + inline void set_region_name(const ::std::string& value); + inline void set_region_name(const char* value); + inline void set_region_name(const void* value, size_t size); + inline ::std::string* mutable_region_name(); + inline ::std::string* release_region_name(); + inline void set_allocated_region_name(::std::string* region_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.CompactionDescriptor) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_encoded_region_name(); + inline void clear_has_encoded_region_name(); + inline void set_has_family_name(); + inline void clear_has_family_name(); + inline void set_has_store_home_dir(); + inline void clear_has_store_home_dir(); + inline void set_has_region_name(); + inline void clear_has_region_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* table_name_; + ::std::string* encoded_region_name_; + ::std::string* family_name_; + ::google::protobuf::RepeatedPtrField< ::std::string> compaction_input_; + ::google::protobuf::RepeatedPtrField< ::std::string> compaction_output_; + ::std::string* store_home_dir_; + ::std::string* region_name_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static CompactionDescriptor* default_instance_; +}; +// ------------------------------------------------------------------- + +class FlushDescriptor_StoreFlushDescriptor : public ::google::protobuf::Message { + public: + FlushDescriptor_StoreFlushDescriptor(); + virtual ~FlushDescriptor_StoreFlushDescriptor(); + + FlushDescriptor_StoreFlushDescriptor(const FlushDescriptor_StoreFlushDescriptor& from); + + inline FlushDescriptor_StoreFlushDescriptor& operator=(const FlushDescriptor_StoreFlushDescriptor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FlushDescriptor_StoreFlushDescriptor& default_instance(); + + void Swap(FlushDescriptor_StoreFlushDescriptor* other); + + // implements Message ---------------------------------------------- + + FlushDescriptor_StoreFlushDescriptor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FlushDescriptor_StoreFlushDescriptor& from); + void MergeFrom(const FlushDescriptor_StoreFlushDescriptor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes family_name = 1; + inline bool has_family_name() const; + inline void clear_family_name(); + static const int kFamilyNameFieldNumber = 1; + inline const ::std::string& family_name() const; + inline void set_family_name(const ::std::string& value); + inline void set_family_name(const char* value); + inline void set_family_name(const void* value, size_t size); + inline ::std::string* mutable_family_name(); + inline ::std::string* release_family_name(); + inline void set_allocated_family_name(::std::string* family_name); + + // required string store_home_dir = 2; + inline bool has_store_home_dir() const; + inline void clear_store_home_dir(); + static const int kStoreHomeDirFieldNumber = 2; + inline const ::std::string& store_home_dir() const; + inline void set_store_home_dir(const ::std::string& value); + inline void set_store_home_dir(const char* value); + inline void set_store_home_dir(const char* value, size_t size); + inline ::std::string* mutable_store_home_dir(); + inline ::std::string* release_store_home_dir(); + inline void set_allocated_store_home_dir(::std::string* store_home_dir); + + // repeated string flush_output = 3; + inline int flush_output_size() const; + inline void clear_flush_output(); + static const int kFlushOutputFieldNumber = 3; + inline const ::std::string& flush_output(int index) const; + inline ::std::string* mutable_flush_output(int index); + inline void set_flush_output(int index, const ::std::string& value); + inline void set_flush_output(int index, const char* value); + inline void set_flush_output(int index, const char* value, size_t size); + inline ::std::string* add_flush_output(); + inline void add_flush_output(const ::std::string& value); + inline void add_flush_output(const char* value); + inline void add_flush_output(const char* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& flush_output() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_flush_output(); + + // @@protoc_insertion_point(class_scope:hbase.pb.FlushDescriptor.StoreFlushDescriptor) + private: + inline void set_has_family_name(); + inline void clear_has_family_name(); + inline void set_has_store_home_dir(); + inline void clear_has_store_home_dir(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* family_name_; + ::std::string* store_home_dir_; + ::google::protobuf::RepeatedPtrField< ::std::string> flush_output_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static FlushDescriptor_StoreFlushDescriptor* default_instance_; +}; +// ------------------------------------------------------------------- + +class FlushDescriptor : public ::google::protobuf::Message { + public: + FlushDescriptor(); + virtual ~FlushDescriptor(); + + FlushDescriptor(const FlushDescriptor& from); + + inline FlushDescriptor& operator=(const FlushDescriptor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const FlushDescriptor& default_instance(); + + void Swap(FlushDescriptor* other); + + // implements Message ---------------------------------------------- + + FlushDescriptor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const FlushDescriptor& from); + void MergeFrom(const FlushDescriptor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef FlushDescriptor_StoreFlushDescriptor StoreFlushDescriptor; + + typedef FlushDescriptor_FlushAction FlushAction; + static const FlushAction START_FLUSH = FlushDescriptor_FlushAction_START_FLUSH; + static const FlushAction COMMIT_FLUSH = FlushDescriptor_FlushAction_COMMIT_FLUSH; + static const FlushAction ABORT_FLUSH = FlushDescriptor_FlushAction_ABORT_FLUSH; + static const FlushAction CANNOT_FLUSH = FlushDescriptor_FlushAction_CANNOT_FLUSH; + static inline bool FlushAction_IsValid(int value) { + return FlushDescriptor_FlushAction_IsValid(value); + } + static const FlushAction FlushAction_MIN = + FlushDescriptor_FlushAction_FlushAction_MIN; + static const FlushAction FlushAction_MAX = + FlushDescriptor_FlushAction_FlushAction_MAX; + static const int FlushAction_ARRAYSIZE = + FlushDescriptor_FlushAction_FlushAction_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + FlushAction_descriptor() { + return FlushDescriptor_FlushAction_descriptor(); + } + static inline const ::std::string& FlushAction_Name(FlushAction value) { + return FlushDescriptor_FlushAction_Name(value); + } + static inline bool FlushAction_Parse(const ::std::string& name, + FlushAction* value) { + return FlushDescriptor_FlushAction_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.FlushDescriptor.FlushAction action = 1; + inline bool has_action() const; + inline void clear_action(); + static const int kActionFieldNumber = 1; + inline ::hbase::pb::FlushDescriptor_FlushAction action() const; + inline void set_action(::hbase::pb::FlushDescriptor_FlushAction value); + + // required bytes table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::std::string& table_name() const; + inline void set_table_name(const ::std::string& value); + inline void set_table_name(const char* value); + inline void set_table_name(const void* value, size_t size); + inline ::std::string* mutable_table_name(); + inline ::std::string* release_table_name(); + inline void set_allocated_table_name(::std::string* table_name); + + // required bytes encoded_region_name = 3; + inline bool has_encoded_region_name() const; + inline void clear_encoded_region_name(); + static const int kEncodedRegionNameFieldNumber = 3; + inline const ::std::string& encoded_region_name() const; + inline void set_encoded_region_name(const ::std::string& value); + inline void set_encoded_region_name(const char* value); + inline void set_encoded_region_name(const void* value, size_t size); + inline ::std::string* mutable_encoded_region_name(); + inline ::std::string* release_encoded_region_name(); + inline void set_allocated_encoded_region_name(::std::string* encoded_region_name); + + // optional uint64 flush_sequence_number = 4; + inline bool has_flush_sequence_number() const; + inline void clear_flush_sequence_number(); + static const int kFlushSequenceNumberFieldNumber = 4; + inline ::google::protobuf::uint64 flush_sequence_number() const; + inline void set_flush_sequence_number(::google::protobuf::uint64 value); + + // repeated .hbase.pb.FlushDescriptor.StoreFlushDescriptor store_flushes = 5; + inline int store_flushes_size() const; + inline void clear_store_flushes(); + static const int kStoreFlushesFieldNumber = 5; + inline const ::hbase::pb::FlushDescriptor_StoreFlushDescriptor& store_flushes(int index) const; + inline ::hbase::pb::FlushDescriptor_StoreFlushDescriptor* mutable_store_flushes(int index); + inline ::hbase::pb::FlushDescriptor_StoreFlushDescriptor* add_store_flushes(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::FlushDescriptor_StoreFlushDescriptor >& + store_flushes() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::FlushDescriptor_StoreFlushDescriptor >* + mutable_store_flushes(); + + // optional bytes region_name = 6; + inline bool has_region_name() const; + inline void clear_region_name(); + static const int kRegionNameFieldNumber = 6; + inline const ::std::string& region_name() const; + inline void set_region_name(const ::std::string& value); + inline void set_region_name(const char* value); + inline void set_region_name(const void* value, size_t size); + inline ::std::string* mutable_region_name(); + inline ::std::string* release_region_name(); + inline void set_allocated_region_name(::std::string* region_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.FlushDescriptor) + private: + inline void set_has_action(); + inline void clear_has_action(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_encoded_region_name(); + inline void clear_has_encoded_region_name(); + inline void set_has_flush_sequence_number(); + inline void clear_has_flush_sequence_number(); + inline void set_has_region_name(); + inline void clear_has_region_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* table_name_; + ::std::string* encoded_region_name_; + ::google::protobuf::uint64 flush_sequence_number_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::FlushDescriptor_StoreFlushDescriptor > store_flushes_; + ::std::string* region_name_; + int action_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static FlushDescriptor* default_instance_; +}; +// ------------------------------------------------------------------- + +class StoreDescriptor : public ::google::protobuf::Message { + public: + StoreDescriptor(); + virtual ~StoreDescriptor(); + + StoreDescriptor(const StoreDescriptor& from); + + inline StoreDescriptor& operator=(const StoreDescriptor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StoreDescriptor& default_instance(); + + void Swap(StoreDescriptor* other); + + // implements Message ---------------------------------------------- + + StoreDescriptor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StoreDescriptor& from); + void MergeFrom(const StoreDescriptor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes family_name = 1; + inline bool has_family_name() const; + inline void clear_family_name(); + static const int kFamilyNameFieldNumber = 1; + inline const ::std::string& family_name() const; + inline void set_family_name(const ::std::string& value); + inline void set_family_name(const char* value); + inline void set_family_name(const void* value, size_t size); + inline ::std::string* mutable_family_name(); + inline ::std::string* release_family_name(); + inline void set_allocated_family_name(::std::string* family_name); + + // required string store_home_dir = 2; + inline bool has_store_home_dir() const; + inline void clear_store_home_dir(); + static const int kStoreHomeDirFieldNumber = 2; + inline const ::std::string& store_home_dir() const; + inline void set_store_home_dir(const ::std::string& value); + inline void set_store_home_dir(const char* value); + inline void set_store_home_dir(const char* value, size_t size); + inline ::std::string* mutable_store_home_dir(); + inline ::std::string* release_store_home_dir(); + inline void set_allocated_store_home_dir(::std::string* store_home_dir); + + // repeated string store_file = 3; + inline int store_file_size() const; + inline void clear_store_file(); + static const int kStoreFileFieldNumber = 3; + inline const ::std::string& store_file(int index) const; + inline ::std::string* mutable_store_file(int index); + inline void set_store_file(int index, const ::std::string& value); + inline void set_store_file(int index, const char* value); + inline void set_store_file(int index, const char* value, size_t size); + inline ::std::string* add_store_file(); + inline void add_store_file(const ::std::string& value); + inline void add_store_file(const char* value); + inline void add_store_file(const char* value, size_t size); + inline const ::google::protobuf::RepeatedPtrField< ::std::string>& store_file() const; + inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_store_file(); + + // @@protoc_insertion_point(class_scope:hbase.pb.StoreDescriptor) + private: + inline void set_has_family_name(); + inline void clear_has_family_name(); + inline void set_has_store_home_dir(); + inline void clear_has_store_home_dir(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* family_name_; + ::std::string* store_home_dir_; + ::google::protobuf::RepeatedPtrField< ::std::string> store_file_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static StoreDescriptor* default_instance_; +}; +// ------------------------------------------------------------------- + +class BulkLoadDescriptor : public ::google::protobuf::Message { + public: + BulkLoadDescriptor(); + virtual ~BulkLoadDescriptor(); + + BulkLoadDescriptor(const BulkLoadDescriptor& from); + + inline BulkLoadDescriptor& operator=(const BulkLoadDescriptor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const BulkLoadDescriptor& default_instance(); + + void Swap(BulkLoadDescriptor* other); + + // implements Message ---------------------------------------------- + + BulkLoadDescriptor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const BulkLoadDescriptor& from); + void MergeFrom(const BulkLoadDescriptor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // required bytes encoded_region_name = 2; + inline bool has_encoded_region_name() const; + inline void clear_encoded_region_name(); + static const int kEncodedRegionNameFieldNumber = 2; + inline const ::std::string& encoded_region_name() const; + inline void set_encoded_region_name(const ::std::string& value); + inline void set_encoded_region_name(const char* value); + inline void set_encoded_region_name(const void* value, size_t size); + inline ::std::string* mutable_encoded_region_name(); + inline ::std::string* release_encoded_region_name(); + inline void set_allocated_encoded_region_name(::std::string* encoded_region_name); + + // repeated .hbase.pb.StoreDescriptor stores = 3; + inline int stores_size() const; + inline void clear_stores(); + static const int kStoresFieldNumber = 3; + inline const ::hbase::pb::StoreDescriptor& stores(int index) const; + inline ::hbase::pb::StoreDescriptor* mutable_stores(int index); + inline ::hbase::pb::StoreDescriptor* add_stores(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor >& + stores() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor >* + mutable_stores(); + + // required int64 bulkload_seq_num = 4; + inline bool has_bulkload_seq_num() const; + inline void clear_bulkload_seq_num(); + static const int kBulkloadSeqNumFieldNumber = 4; + inline ::google::protobuf::int64 bulkload_seq_num() const; + inline void set_bulkload_seq_num(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.BulkLoadDescriptor) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_encoded_region_name(); + inline void clear_has_encoded_region_name(); + inline void set_has_bulkload_seq_num(); + inline void clear_has_bulkload_seq_num(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::std::string* encoded_region_name_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor > stores_; + ::google::protobuf::int64 bulkload_seq_num_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static BulkLoadDescriptor* default_instance_; +}; +// ------------------------------------------------------------------- + +class RegionEventDescriptor : public ::google::protobuf::Message { + public: + RegionEventDescriptor(); + virtual ~RegionEventDescriptor(); + + RegionEventDescriptor(const RegionEventDescriptor& from); + + inline RegionEventDescriptor& operator=(const RegionEventDescriptor& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RegionEventDescriptor& default_instance(); + + void Swap(RegionEventDescriptor* other); + + // implements Message ---------------------------------------------- + + RegionEventDescriptor* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RegionEventDescriptor& from); + void MergeFrom(const RegionEventDescriptor& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef RegionEventDescriptor_EventType EventType; + static const EventType REGION_OPEN = RegionEventDescriptor_EventType_REGION_OPEN; + static const EventType REGION_CLOSE = RegionEventDescriptor_EventType_REGION_CLOSE; + static inline bool EventType_IsValid(int value) { + return RegionEventDescriptor_EventType_IsValid(value); + } + static const EventType EventType_MIN = + RegionEventDescriptor_EventType_EventType_MIN; + static const EventType EventType_MAX = + RegionEventDescriptor_EventType_EventType_MAX; + static const int EventType_ARRAYSIZE = + RegionEventDescriptor_EventType_EventType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + EventType_descriptor() { + return RegionEventDescriptor_EventType_descriptor(); + } + static inline const ::std::string& EventType_Name(EventType value) { + return RegionEventDescriptor_EventType_Name(value); + } + static inline bool EventType_Parse(const ::std::string& name, + EventType* value) { + return RegionEventDescriptor_EventType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.RegionEventDescriptor.EventType event_type = 1; + inline bool has_event_type() const; + inline void clear_event_type(); + static const int kEventTypeFieldNumber = 1; + inline ::hbase::pb::RegionEventDescriptor_EventType event_type() const; + inline void set_event_type(::hbase::pb::RegionEventDescriptor_EventType value); + + // required bytes table_name = 2; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 2; + inline const ::std::string& table_name() const; + inline void set_table_name(const ::std::string& value); + inline void set_table_name(const char* value); + inline void set_table_name(const void* value, size_t size); + inline ::std::string* mutable_table_name(); + inline ::std::string* release_table_name(); + inline void set_allocated_table_name(::std::string* table_name); + + // required bytes encoded_region_name = 3; + inline bool has_encoded_region_name() const; + inline void clear_encoded_region_name(); + static const int kEncodedRegionNameFieldNumber = 3; + inline const ::std::string& encoded_region_name() const; + inline void set_encoded_region_name(const ::std::string& value); + inline void set_encoded_region_name(const char* value); + inline void set_encoded_region_name(const void* value, size_t size); + inline ::std::string* mutable_encoded_region_name(); + inline ::std::string* release_encoded_region_name(); + inline void set_allocated_encoded_region_name(::std::string* encoded_region_name); + + // optional uint64 log_sequence_number = 4; + inline bool has_log_sequence_number() const; + inline void clear_log_sequence_number(); + static const int kLogSequenceNumberFieldNumber = 4; + inline ::google::protobuf::uint64 log_sequence_number() const; + inline void set_log_sequence_number(::google::protobuf::uint64 value); + + // repeated .hbase.pb.StoreDescriptor stores = 5; + inline int stores_size() const; + inline void clear_stores(); + static const int kStoresFieldNumber = 5; + inline const ::hbase::pb::StoreDescriptor& stores(int index) const; + inline ::hbase::pb::StoreDescriptor* mutable_stores(int index); + inline ::hbase::pb::StoreDescriptor* add_stores(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor >& + stores() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor >* + mutable_stores(); + + // optional .hbase.pb.ServerName server = 6; + inline bool has_server() const; + inline void clear_server(); + static const int kServerFieldNumber = 6; + inline const ::hbase::pb::ServerName& server() const; + inline ::hbase::pb::ServerName* mutable_server(); + inline ::hbase::pb::ServerName* release_server(); + inline void set_allocated_server(::hbase::pb::ServerName* server); + + // optional bytes region_name = 7; + inline bool has_region_name() const; + inline void clear_region_name(); + static const int kRegionNameFieldNumber = 7; + inline const ::std::string& region_name() const; + inline void set_region_name(const ::std::string& value); + inline void set_region_name(const char* value); + inline void set_region_name(const void* value, size_t size); + inline ::std::string* mutable_region_name(); + inline ::std::string* release_region_name(); + inline void set_allocated_region_name(::std::string* region_name); + + // @@protoc_insertion_point(class_scope:hbase.pb.RegionEventDescriptor) + private: + inline void set_has_event_type(); + inline void clear_has_event_type(); + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_encoded_region_name(); + inline void clear_has_encoded_region_name(); + inline void set_has_log_sequence_number(); + inline void clear_has_log_sequence_number(); + inline void set_has_server(); + inline void clear_has_server(); + inline void set_has_region_name(); + inline void clear_has_region_name(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* table_name_; + ::std::string* encoded_region_name_; + ::google::protobuf::uint64 log_sequence_number_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor > stores_; + ::hbase::pb::ServerName* server_; + ::std::string* region_name_; + int event_type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static RegionEventDescriptor* default_instance_; +}; +// ------------------------------------------------------------------- + +class WALTrailer : public ::google::protobuf::Message { + public: + WALTrailer(); + virtual ~WALTrailer(); + + WALTrailer(const WALTrailer& from); + + inline WALTrailer& operator=(const WALTrailer& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const WALTrailer& default_instance(); + + void Swap(WALTrailer* other); + + // implements Message ---------------------------------------------- + + WALTrailer* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const WALTrailer& from); + void MergeFrom(const WALTrailer& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:hbase.pb.WALTrailer) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_WAL_2eproto(); + friend void protobuf_AssignDesc_WAL_2eproto(); + friend void protobuf_ShutdownFile_WAL_2eproto(); + + void InitAsDefaultInstance(); + static WALTrailer* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// WALHeader + +// optional bool has_compression = 1; +inline bool WALHeader::has_has_compression() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WALHeader::set_has_has_compression() { + _has_bits_[0] |= 0x00000001u; +} +inline void WALHeader::clear_has_has_compression() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WALHeader::clear_has_compression() { + has_compression_ = false; + clear_has_has_compression(); +} +inline bool WALHeader::has_compression() const { + return has_compression_; +} +inline void WALHeader::set_has_compression(bool value) { + set_has_has_compression(); + has_compression_ = value; +} + +// optional bytes encryption_key = 2; +inline bool WALHeader::has_encryption_key() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void WALHeader::set_has_encryption_key() { + _has_bits_[0] |= 0x00000002u; +} +inline void WALHeader::clear_has_encryption_key() { + _has_bits_[0] &= ~0x00000002u; +} +inline void WALHeader::clear_encryption_key() { + if (encryption_key_ != &::google::protobuf::internal::kEmptyString) { + encryption_key_->clear(); + } + clear_has_encryption_key(); +} +inline const ::std::string& WALHeader::encryption_key() const { + return *encryption_key_; +} +inline void WALHeader::set_encryption_key(const ::std::string& value) { + set_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + encryption_key_ = new ::std::string; + } + encryption_key_->assign(value); +} +inline void WALHeader::set_encryption_key(const char* value) { + set_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + encryption_key_ = new ::std::string; + } + encryption_key_->assign(value); +} +inline void WALHeader::set_encryption_key(const void* value, size_t size) { + set_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + encryption_key_ = new ::std::string; + } + encryption_key_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WALHeader::mutable_encryption_key() { + set_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + encryption_key_ = new ::std::string; + } + return encryption_key_; +} +inline ::std::string* WALHeader::release_encryption_key() { + clear_has_encryption_key(); + if (encryption_key_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = encryption_key_; + encryption_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WALHeader::set_allocated_encryption_key(::std::string* encryption_key) { + if (encryption_key_ != &::google::protobuf::internal::kEmptyString) { + delete encryption_key_; + } + if (encryption_key) { + set_has_encryption_key(); + encryption_key_ = encryption_key; + } else { + clear_has_encryption_key(); + encryption_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bool has_tag_compression = 3; +inline bool WALHeader::has_has_tag_compression() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void WALHeader::set_has_has_tag_compression() { + _has_bits_[0] |= 0x00000004u; +} +inline void WALHeader::clear_has_has_tag_compression() { + _has_bits_[0] &= ~0x00000004u; +} +inline void WALHeader::clear_has_tag_compression() { + has_tag_compression_ = false; + clear_has_has_tag_compression(); +} +inline bool WALHeader::has_tag_compression() const { + return has_tag_compression_; +} +inline void WALHeader::set_has_tag_compression(bool value) { + set_has_has_tag_compression(); + has_tag_compression_ = value; +} + +// optional string writer_cls_name = 4; +inline bool WALHeader::has_writer_cls_name() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void WALHeader::set_has_writer_cls_name() { + _has_bits_[0] |= 0x00000008u; +} +inline void WALHeader::clear_has_writer_cls_name() { + _has_bits_[0] &= ~0x00000008u; +} +inline void WALHeader::clear_writer_cls_name() { + if (writer_cls_name_ != &::google::protobuf::internal::kEmptyString) { + writer_cls_name_->clear(); + } + clear_has_writer_cls_name(); +} +inline const ::std::string& WALHeader::writer_cls_name() const { + return *writer_cls_name_; +} +inline void WALHeader::set_writer_cls_name(const ::std::string& value) { + set_has_writer_cls_name(); + if (writer_cls_name_ == &::google::protobuf::internal::kEmptyString) { + writer_cls_name_ = new ::std::string; + } + writer_cls_name_->assign(value); +} +inline void WALHeader::set_writer_cls_name(const char* value) { + set_has_writer_cls_name(); + if (writer_cls_name_ == &::google::protobuf::internal::kEmptyString) { + writer_cls_name_ = new ::std::string; + } + writer_cls_name_->assign(value); +} +inline void WALHeader::set_writer_cls_name(const char* value, size_t size) { + set_has_writer_cls_name(); + if (writer_cls_name_ == &::google::protobuf::internal::kEmptyString) { + writer_cls_name_ = new ::std::string; + } + writer_cls_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WALHeader::mutable_writer_cls_name() { + set_has_writer_cls_name(); + if (writer_cls_name_ == &::google::protobuf::internal::kEmptyString) { + writer_cls_name_ = new ::std::string; + } + return writer_cls_name_; +} +inline ::std::string* WALHeader::release_writer_cls_name() { + clear_has_writer_cls_name(); + if (writer_cls_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = writer_cls_name_; + writer_cls_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WALHeader::set_allocated_writer_cls_name(::std::string* writer_cls_name) { + if (writer_cls_name_ != &::google::protobuf::internal::kEmptyString) { + delete writer_cls_name_; + } + if (writer_cls_name) { + set_has_writer_cls_name(); + writer_cls_name_ = writer_cls_name; + } else { + clear_has_writer_cls_name(); + writer_cls_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string cell_codec_cls_name = 5; +inline bool WALHeader::has_cell_codec_cls_name() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void WALHeader::set_has_cell_codec_cls_name() { + _has_bits_[0] |= 0x00000010u; +} +inline void WALHeader::clear_has_cell_codec_cls_name() { + _has_bits_[0] &= ~0x00000010u; +} +inline void WALHeader::clear_cell_codec_cls_name() { + if (cell_codec_cls_name_ != &::google::protobuf::internal::kEmptyString) { + cell_codec_cls_name_->clear(); + } + clear_has_cell_codec_cls_name(); +} +inline const ::std::string& WALHeader::cell_codec_cls_name() const { + return *cell_codec_cls_name_; +} +inline void WALHeader::set_cell_codec_cls_name(const ::std::string& value) { + set_has_cell_codec_cls_name(); + if (cell_codec_cls_name_ == &::google::protobuf::internal::kEmptyString) { + cell_codec_cls_name_ = new ::std::string; + } + cell_codec_cls_name_->assign(value); +} +inline void WALHeader::set_cell_codec_cls_name(const char* value) { + set_has_cell_codec_cls_name(); + if (cell_codec_cls_name_ == &::google::protobuf::internal::kEmptyString) { + cell_codec_cls_name_ = new ::std::string; + } + cell_codec_cls_name_->assign(value); +} +inline void WALHeader::set_cell_codec_cls_name(const char* value, size_t size) { + set_has_cell_codec_cls_name(); + if (cell_codec_cls_name_ == &::google::protobuf::internal::kEmptyString) { + cell_codec_cls_name_ = new ::std::string; + } + cell_codec_cls_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WALHeader::mutable_cell_codec_cls_name() { + set_has_cell_codec_cls_name(); + if (cell_codec_cls_name_ == &::google::protobuf::internal::kEmptyString) { + cell_codec_cls_name_ = new ::std::string; + } + return cell_codec_cls_name_; +} +inline ::std::string* WALHeader::release_cell_codec_cls_name() { + clear_has_cell_codec_cls_name(); + if (cell_codec_cls_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = cell_codec_cls_name_; + cell_codec_cls_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WALHeader::set_allocated_cell_codec_cls_name(::std::string* cell_codec_cls_name) { + if (cell_codec_cls_name_ != &::google::protobuf::internal::kEmptyString) { + delete cell_codec_cls_name_; + } + if (cell_codec_cls_name) { + set_has_cell_codec_cls_name(); + cell_codec_cls_name_ = cell_codec_cls_name; + } else { + clear_has_cell_codec_cls_name(); + cell_codec_cls_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// WALKey + +// required bytes encoded_region_name = 1; +inline bool WALKey::has_encoded_region_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void WALKey::set_has_encoded_region_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void WALKey::clear_has_encoded_region_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void WALKey::clear_encoded_region_name() { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + clear_has_encoded_region_name(); +} +inline const ::std::string& WALKey::encoded_region_name() const { + return *encoded_region_name_; +} +inline void WALKey::set_encoded_region_name(const ::std::string& value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void WALKey::set_encoded_region_name(const char* value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void WALKey::set_encoded_region_name(const void* value, size_t size) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WALKey::mutable_encoded_region_name() { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + return encoded_region_name_; +} +inline ::std::string* WALKey::release_encoded_region_name() { + clear_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = encoded_region_name_; + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WALKey::set_allocated_encoded_region_name(::std::string* encoded_region_name) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (encoded_region_name) { + set_has_encoded_region_name(); + encoded_region_name_ = encoded_region_name; + } else { + clear_has_encoded_region_name(); + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes table_name = 2; +inline bool WALKey::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void WALKey::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void WALKey::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void WALKey::clear_table_name() { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + table_name_->clear(); + } + clear_has_table_name(); +} +inline const ::std::string& WALKey::table_name() const { + return *table_name_; +} +inline void WALKey::set_table_name(const ::std::string& value) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(value); +} +inline void WALKey::set_table_name(const char* value) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(value); +} +inline void WALKey::set_table_name(const void* value, size_t size) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* WALKey::mutable_table_name() { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + return table_name_; +} +inline ::std::string* WALKey::release_table_name() { + clear_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = table_name_; + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void WALKey::set_allocated_table_name(::std::string* table_name) { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + delete table_name_; + } + if (table_name) { + set_has_table_name(); + table_name_ = table_name; + } else { + clear_has_table_name(); + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required uint64 log_sequence_number = 3; +inline bool WALKey::has_log_sequence_number() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void WALKey::set_has_log_sequence_number() { + _has_bits_[0] |= 0x00000004u; +} +inline void WALKey::clear_has_log_sequence_number() { + _has_bits_[0] &= ~0x00000004u; +} +inline void WALKey::clear_log_sequence_number() { + log_sequence_number_ = GOOGLE_ULONGLONG(0); + clear_has_log_sequence_number(); +} +inline ::google::protobuf::uint64 WALKey::log_sequence_number() const { + return log_sequence_number_; +} +inline void WALKey::set_log_sequence_number(::google::protobuf::uint64 value) { + set_has_log_sequence_number(); + log_sequence_number_ = value; +} + +// required uint64 write_time = 4; +inline bool WALKey::has_write_time() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void WALKey::set_has_write_time() { + _has_bits_[0] |= 0x00000008u; +} +inline void WALKey::clear_has_write_time() { + _has_bits_[0] &= ~0x00000008u; +} +inline void WALKey::clear_write_time() { + write_time_ = GOOGLE_ULONGLONG(0); + clear_has_write_time(); +} +inline ::google::protobuf::uint64 WALKey::write_time() const { + return write_time_; +} +inline void WALKey::set_write_time(::google::protobuf::uint64 value) { + set_has_write_time(); + write_time_ = value; +} + +// optional .hbase.pb.UUID cluster_id = 5 [deprecated = true]; +inline bool WALKey::has_cluster_id() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void WALKey::set_has_cluster_id() { + _has_bits_[0] |= 0x00000010u; +} +inline void WALKey::clear_has_cluster_id() { + _has_bits_[0] &= ~0x00000010u; +} +inline void WALKey::clear_cluster_id() { + if (cluster_id_ != NULL) cluster_id_->::hbase::pb::UUID::Clear(); + clear_has_cluster_id(); +} +inline const ::hbase::pb::UUID& WALKey::cluster_id() const { + return cluster_id_ != NULL ? *cluster_id_ : *default_instance_->cluster_id_; +} +inline ::hbase::pb::UUID* WALKey::mutable_cluster_id() { + set_has_cluster_id(); + if (cluster_id_ == NULL) cluster_id_ = new ::hbase::pb::UUID; + return cluster_id_; +} +inline ::hbase::pb::UUID* WALKey::release_cluster_id() { + clear_has_cluster_id(); + ::hbase::pb::UUID* temp = cluster_id_; + cluster_id_ = NULL; + return temp; +} +inline void WALKey::set_allocated_cluster_id(::hbase::pb::UUID* cluster_id) { + delete cluster_id_; + cluster_id_ = cluster_id; + if (cluster_id) { + set_has_cluster_id(); + } else { + clear_has_cluster_id(); + } +} + +// repeated .hbase.pb.FamilyScope scopes = 6; +inline int WALKey::scopes_size() const { + return scopes_.size(); +} +inline void WALKey::clear_scopes() { + scopes_.Clear(); +} +inline const ::hbase::pb::FamilyScope& WALKey::scopes(int index) const { + return scopes_.Get(index); +} +inline ::hbase::pb::FamilyScope* WALKey::mutable_scopes(int index) { + return scopes_.Mutable(index); +} +inline ::hbase::pb::FamilyScope* WALKey::add_scopes() { + return scopes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::FamilyScope >& +WALKey::scopes() const { + return scopes_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::FamilyScope >* +WALKey::mutable_scopes() { + return &scopes_; +} + +// optional uint32 following_kv_count = 7; +inline bool WALKey::has_following_kv_count() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void WALKey::set_has_following_kv_count() { + _has_bits_[0] |= 0x00000040u; +} +inline void WALKey::clear_has_following_kv_count() { + _has_bits_[0] &= ~0x00000040u; +} +inline void WALKey::clear_following_kv_count() { + following_kv_count_ = 0u; + clear_has_following_kv_count(); +} +inline ::google::protobuf::uint32 WALKey::following_kv_count() const { + return following_kv_count_; +} +inline void WALKey::set_following_kv_count(::google::protobuf::uint32 value) { + set_has_following_kv_count(); + following_kv_count_ = value; +} + +// repeated .hbase.pb.UUID cluster_ids = 8; +inline int WALKey::cluster_ids_size() const { + return cluster_ids_.size(); +} +inline void WALKey::clear_cluster_ids() { + cluster_ids_.Clear(); +} +inline const ::hbase::pb::UUID& WALKey::cluster_ids(int index) const { + return cluster_ids_.Get(index); +} +inline ::hbase::pb::UUID* WALKey::mutable_cluster_ids(int index) { + return cluster_ids_.Mutable(index); +} +inline ::hbase::pb::UUID* WALKey::add_cluster_ids() { + return cluster_ids_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::UUID >& +WALKey::cluster_ids() const { + return cluster_ids_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::UUID >* +WALKey::mutable_cluster_ids() { + return &cluster_ids_; +} + +// optional uint64 nonceGroup = 9; +inline bool WALKey::has_noncegroup() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void WALKey::set_has_noncegroup() { + _has_bits_[0] |= 0x00000100u; +} +inline void WALKey::clear_has_noncegroup() { + _has_bits_[0] &= ~0x00000100u; +} +inline void WALKey::clear_noncegroup() { + noncegroup_ = GOOGLE_ULONGLONG(0); + clear_has_noncegroup(); +} +inline ::google::protobuf::uint64 WALKey::noncegroup() const { + return noncegroup_; +} +inline void WALKey::set_noncegroup(::google::protobuf::uint64 value) { + set_has_noncegroup(); + noncegroup_ = value; +} + +// optional uint64 nonce = 10; +inline bool WALKey::has_nonce() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void WALKey::set_has_nonce() { + _has_bits_[0] |= 0x00000200u; +} +inline void WALKey::clear_has_nonce() { + _has_bits_[0] &= ~0x00000200u; +} +inline void WALKey::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); + clear_has_nonce(); +} +inline ::google::protobuf::uint64 WALKey::nonce() const { + return nonce_; +} +inline void WALKey::set_nonce(::google::protobuf::uint64 value) { + set_has_nonce(); + nonce_ = value; +} + +// optional uint64 orig_sequence_number = 11; +inline bool WALKey::has_orig_sequence_number() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void WALKey::set_has_orig_sequence_number() { + _has_bits_[0] |= 0x00000400u; +} +inline void WALKey::clear_has_orig_sequence_number() { + _has_bits_[0] &= ~0x00000400u; +} +inline void WALKey::clear_orig_sequence_number() { + orig_sequence_number_ = GOOGLE_ULONGLONG(0); + clear_has_orig_sequence_number(); +} +inline ::google::protobuf::uint64 WALKey::orig_sequence_number() const { + return orig_sequence_number_; +} +inline void WALKey::set_orig_sequence_number(::google::protobuf::uint64 value) { + set_has_orig_sequence_number(); + orig_sequence_number_ = value; +} + +// ------------------------------------------------------------------- + +// FamilyScope + +// required bytes family = 1; +inline bool FamilyScope::has_family() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FamilyScope::set_has_family() { + _has_bits_[0] |= 0x00000001u; +} +inline void FamilyScope::clear_has_family() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FamilyScope::clear_family() { + if (family_ != &::google::protobuf::internal::kEmptyString) { + family_->clear(); + } + clear_has_family(); +} +inline const ::std::string& FamilyScope::family() const { + return *family_; +} +inline void FamilyScope::set_family(const ::std::string& value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void FamilyScope::set_family(const char* value) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(value); +} +inline void FamilyScope::set_family(const void* value, size_t size) { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + family_->assign(reinterpret_cast(value), size); +} +inline ::std::string* FamilyScope::mutable_family() { + set_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + family_ = new ::std::string; + } + return family_; +} +inline ::std::string* FamilyScope::release_family() { + clear_has_family(); + if (family_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_; + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void FamilyScope::set_allocated_family(::std::string* family) { + if (family_ != &::google::protobuf::internal::kEmptyString) { + delete family_; + } + if (family) { + set_has_family(); + family_ = family; + } else { + clear_has_family(); + family_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required .hbase.pb.ScopeType scope_type = 2; +inline bool FamilyScope::has_scope_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void FamilyScope::set_has_scope_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void FamilyScope::clear_has_scope_type() { + _has_bits_[0] &= ~0x00000002u; +} +inline void FamilyScope::clear_scope_type() { + scope_type_ = 0; + clear_has_scope_type(); +} +inline ::hbase::pb::ScopeType FamilyScope::scope_type() const { + return static_cast< ::hbase::pb::ScopeType >(scope_type_); +} +inline void FamilyScope::set_scope_type(::hbase::pb::ScopeType value) { + assert(::hbase::pb::ScopeType_IsValid(value)); + set_has_scope_type(); + scope_type_ = value; +} + +// ------------------------------------------------------------------- + +// CompactionDescriptor + +// required bytes table_name = 1; +inline bool CompactionDescriptor::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void CompactionDescriptor::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void CompactionDescriptor::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void CompactionDescriptor::clear_table_name() { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + table_name_->clear(); + } + clear_has_table_name(); +} +inline const ::std::string& CompactionDescriptor::table_name() const { + return *table_name_; +} +inline void CompactionDescriptor::set_table_name(const ::std::string& value) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(value); +} +inline void CompactionDescriptor::set_table_name(const char* value) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(value); +} +inline void CompactionDescriptor::set_table_name(const void* value, size_t size) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CompactionDescriptor::mutable_table_name() { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + return table_name_; +} +inline ::std::string* CompactionDescriptor::release_table_name() { + clear_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = table_name_; + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CompactionDescriptor::set_allocated_table_name(::std::string* table_name) { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + delete table_name_; + } + if (table_name) { + set_has_table_name(); + table_name_ = table_name; + } else { + clear_has_table_name(); + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes encoded_region_name = 2; +inline bool CompactionDescriptor::has_encoded_region_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void CompactionDescriptor::set_has_encoded_region_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void CompactionDescriptor::clear_has_encoded_region_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void CompactionDescriptor::clear_encoded_region_name() { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + clear_has_encoded_region_name(); +} +inline const ::std::string& CompactionDescriptor::encoded_region_name() const { + return *encoded_region_name_; +} +inline void CompactionDescriptor::set_encoded_region_name(const ::std::string& value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void CompactionDescriptor::set_encoded_region_name(const char* value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void CompactionDescriptor::set_encoded_region_name(const void* value, size_t size) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CompactionDescriptor::mutable_encoded_region_name() { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + return encoded_region_name_; +} +inline ::std::string* CompactionDescriptor::release_encoded_region_name() { + clear_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = encoded_region_name_; + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CompactionDescriptor::set_allocated_encoded_region_name(::std::string* encoded_region_name) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (encoded_region_name) { + set_has_encoded_region_name(); + encoded_region_name_ = encoded_region_name; + } else { + clear_has_encoded_region_name(); + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes family_name = 3; +inline bool CompactionDescriptor::has_family_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void CompactionDescriptor::set_has_family_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void CompactionDescriptor::clear_has_family_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void CompactionDescriptor::clear_family_name() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + clear_has_family_name(); +} +inline const ::std::string& CompactionDescriptor::family_name() const { + return *family_name_; +} +inline void CompactionDescriptor::set_family_name(const ::std::string& value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void CompactionDescriptor::set_family_name(const char* value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void CompactionDescriptor::set_family_name(const void* value, size_t size) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CompactionDescriptor::mutable_family_name() { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + return family_name_; +} +inline ::std::string* CompactionDescriptor::release_family_name() { + clear_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_name_; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CompactionDescriptor::set_allocated_family_name(::std::string* family_name) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (family_name) { + set_has_family_name(); + family_name_ = family_name; + } else { + clear_has_family_name(); + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated string compaction_input = 4; +inline int CompactionDescriptor::compaction_input_size() const { + return compaction_input_.size(); +} +inline void CompactionDescriptor::clear_compaction_input() { + compaction_input_.Clear(); +} +inline const ::std::string& CompactionDescriptor::compaction_input(int index) const { + return compaction_input_.Get(index); +} +inline ::std::string* CompactionDescriptor::mutable_compaction_input(int index) { + return compaction_input_.Mutable(index); +} +inline void CompactionDescriptor::set_compaction_input(int index, const ::std::string& value) { + compaction_input_.Mutable(index)->assign(value); +} +inline void CompactionDescriptor::set_compaction_input(int index, const char* value) { + compaction_input_.Mutable(index)->assign(value); +} +inline void CompactionDescriptor::set_compaction_input(int index, const char* value, size_t size) { + compaction_input_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* CompactionDescriptor::add_compaction_input() { + return compaction_input_.Add(); +} +inline void CompactionDescriptor::add_compaction_input(const ::std::string& value) { + compaction_input_.Add()->assign(value); +} +inline void CompactionDescriptor::add_compaction_input(const char* value) { + compaction_input_.Add()->assign(value); +} +inline void CompactionDescriptor::add_compaction_input(const char* value, size_t size) { + compaction_input_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +CompactionDescriptor::compaction_input() const { + return compaction_input_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +CompactionDescriptor::mutable_compaction_input() { + return &compaction_input_; +} + +// repeated string compaction_output = 5; +inline int CompactionDescriptor::compaction_output_size() const { + return compaction_output_.size(); +} +inline void CompactionDescriptor::clear_compaction_output() { + compaction_output_.Clear(); +} +inline const ::std::string& CompactionDescriptor::compaction_output(int index) const { + return compaction_output_.Get(index); +} +inline ::std::string* CompactionDescriptor::mutable_compaction_output(int index) { + return compaction_output_.Mutable(index); +} +inline void CompactionDescriptor::set_compaction_output(int index, const ::std::string& value) { + compaction_output_.Mutable(index)->assign(value); +} +inline void CompactionDescriptor::set_compaction_output(int index, const char* value) { + compaction_output_.Mutable(index)->assign(value); +} +inline void CompactionDescriptor::set_compaction_output(int index, const char* value, size_t size) { + compaction_output_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* CompactionDescriptor::add_compaction_output() { + return compaction_output_.Add(); +} +inline void CompactionDescriptor::add_compaction_output(const ::std::string& value) { + compaction_output_.Add()->assign(value); +} +inline void CompactionDescriptor::add_compaction_output(const char* value) { + compaction_output_.Add()->assign(value); +} +inline void CompactionDescriptor::add_compaction_output(const char* value, size_t size) { + compaction_output_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +CompactionDescriptor::compaction_output() const { + return compaction_output_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +CompactionDescriptor::mutable_compaction_output() { + return &compaction_output_; +} + +// required string store_home_dir = 6; +inline bool CompactionDescriptor::has_store_home_dir() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void CompactionDescriptor::set_has_store_home_dir() { + _has_bits_[0] |= 0x00000020u; +} +inline void CompactionDescriptor::clear_has_store_home_dir() { + _has_bits_[0] &= ~0x00000020u; +} +inline void CompactionDescriptor::clear_store_home_dir() { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + store_home_dir_->clear(); + } + clear_has_store_home_dir(); +} +inline const ::std::string& CompactionDescriptor::store_home_dir() const { + return *store_home_dir_; +} +inline void CompactionDescriptor::set_store_home_dir(const ::std::string& value) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(value); +} +inline void CompactionDescriptor::set_store_home_dir(const char* value) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(value); +} +inline void CompactionDescriptor::set_store_home_dir(const char* value, size_t size) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CompactionDescriptor::mutable_store_home_dir() { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + return store_home_dir_; +} +inline ::std::string* CompactionDescriptor::release_store_home_dir() { + clear_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = store_home_dir_; + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CompactionDescriptor::set_allocated_store_home_dir(::std::string* store_home_dir) { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + delete store_home_dir_; + } + if (store_home_dir) { + set_has_store_home_dir(); + store_home_dir_ = store_home_dir; + } else { + clear_has_store_home_dir(); + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional bytes region_name = 7; +inline bool CompactionDescriptor::has_region_name() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void CompactionDescriptor::set_has_region_name() { + _has_bits_[0] |= 0x00000040u; +} +inline void CompactionDescriptor::clear_has_region_name() { + _has_bits_[0] &= ~0x00000040u; +} +inline void CompactionDescriptor::clear_region_name() { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + region_name_->clear(); + } + clear_has_region_name(); +} +inline const ::std::string& CompactionDescriptor::region_name() const { + return *region_name_; +} +inline void CompactionDescriptor::set_region_name(const ::std::string& value) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(value); +} +inline void CompactionDescriptor::set_region_name(const char* value) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(value); +} +inline void CompactionDescriptor::set_region_name(const void* value, size_t size) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* CompactionDescriptor::mutable_region_name() { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + return region_name_; +} +inline ::std::string* CompactionDescriptor::release_region_name() { + clear_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = region_name_; + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void CompactionDescriptor::set_allocated_region_name(::std::string* region_name) { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + delete region_name_; + } + if (region_name) { + set_has_region_name(); + region_name_ = region_name; + } else { + clear_has_region_name(); + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// FlushDescriptor_StoreFlushDescriptor + +// required bytes family_name = 1; +inline bool FlushDescriptor_StoreFlushDescriptor::has_family_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FlushDescriptor_StoreFlushDescriptor::set_has_family_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void FlushDescriptor_StoreFlushDescriptor::clear_has_family_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FlushDescriptor_StoreFlushDescriptor::clear_family_name() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + clear_has_family_name(); +} +inline const ::std::string& FlushDescriptor_StoreFlushDescriptor::family_name() const { + return *family_name_; +} +inline void FlushDescriptor_StoreFlushDescriptor::set_family_name(const ::std::string& value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void FlushDescriptor_StoreFlushDescriptor::set_family_name(const char* value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void FlushDescriptor_StoreFlushDescriptor::set_family_name(const void* value, size_t size) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* FlushDescriptor_StoreFlushDescriptor::mutable_family_name() { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + return family_name_; +} +inline ::std::string* FlushDescriptor_StoreFlushDescriptor::release_family_name() { + clear_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_name_; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void FlushDescriptor_StoreFlushDescriptor::set_allocated_family_name(::std::string* family_name) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (family_name) { + set_has_family_name(); + family_name_ = family_name; + } else { + clear_has_family_name(); + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string store_home_dir = 2; +inline bool FlushDescriptor_StoreFlushDescriptor::has_store_home_dir() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void FlushDescriptor_StoreFlushDescriptor::set_has_store_home_dir() { + _has_bits_[0] |= 0x00000002u; +} +inline void FlushDescriptor_StoreFlushDescriptor::clear_has_store_home_dir() { + _has_bits_[0] &= ~0x00000002u; +} +inline void FlushDescriptor_StoreFlushDescriptor::clear_store_home_dir() { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + store_home_dir_->clear(); + } + clear_has_store_home_dir(); +} +inline const ::std::string& FlushDescriptor_StoreFlushDescriptor::store_home_dir() const { + return *store_home_dir_; +} +inline void FlushDescriptor_StoreFlushDescriptor::set_store_home_dir(const ::std::string& value) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(value); +} +inline void FlushDescriptor_StoreFlushDescriptor::set_store_home_dir(const char* value) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(value); +} +inline void FlushDescriptor_StoreFlushDescriptor::set_store_home_dir(const char* value, size_t size) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(reinterpret_cast(value), size); +} +inline ::std::string* FlushDescriptor_StoreFlushDescriptor::mutable_store_home_dir() { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + return store_home_dir_; +} +inline ::std::string* FlushDescriptor_StoreFlushDescriptor::release_store_home_dir() { + clear_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = store_home_dir_; + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void FlushDescriptor_StoreFlushDescriptor::set_allocated_store_home_dir(::std::string* store_home_dir) { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + delete store_home_dir_; + } + if (store_home_dir) { + set_has_store_home_dir(); + store_home_dir_ = store_home_dir; + } else { + clear_has_store_home_dir(); + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated string flush_output = 3; +inline int FlushDescriptor_StoreFlushDescriptor::flush_output_size() const { + return flush_output_.size(); +} +inline void FlushDescriptor_StoreFlushDescriptor::clear_flush_output() { + flush_output_.Clear(); +} +inline const ::std::string& FlushDescriptor_StoreFlushDescriptor::flush_output(int index) const { + return flush_output_.Get(index); +} +inline ::std::string* FlushDescriptor_StoreFlushDescriptor::mutable_flush_output(int index) { + return flush_output_.Mutable(index); +} +inline void FlushDescriptor_StoreFlushDescriptor::set_flush_output(int index, const ::std::string& value) { + flush_output_.Mutable(index)->assign(value); +} +inline void FlushDescriptor_StoreFlushDescriptor::set_flush_output(int index, const char* value) { + flush_output_.Mutable(index)->assign(value); +} +inline void FlushDescriptor_StoreFlushDescriptor::set_flush_output(int index, const char* value, size_t size) { + flush_output_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* FlushDescriptor_StoreFlushDescriptor::add_flush_output() { + return flush_output_.Add(); +} +inline void FlushDescriptor_StoreFlushDescriptor::add_flush_output(const ::std::string& value) { + flush_output_.Add()->assign(value); +} +inline void FlushDescriptor_StoreFlushDescriptor::add_flush_output(const char* value) { + flush_output_.Add()->assign(value); +} +inline void FlushDescriptor_StoreFlushDescriptor::add_flush_output(const char* value, size_t size) { + flush_output_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +FlushDescriptor_StoreFlushDescriptor::flush_output() const { + return flush_output_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +FlushDescriptor_StoreFlushDescriptor::mutable_flush_output() { + return &flush_output_; +} + +// ------------------------------------------------------------------- + +// FlushDescriptor + +// required .hbase.pb.FlushDescriptor.FlushAction action = 1; +inline bool FlushDescriptor::has_action() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void FlushDescriptor::set_has_action() { + _has_bits_[0] |= 0x00000001u; +} +inline void FlushDescriptor::clear_has_action() { + _has_bits_[0] &= ~0x00000001u; +} +inline void FlushDescriptor::clear_action() { + action_ = 0; + clear_has_action(); +} +inline ::hbase::pb::FlushDescriptor_FlushAction FlushDescriptor::action() const { + return static_cast< ::hbase::pb::FlushDescriptor_FlushAction >(action_); +} +inline void FlushDescriptor::set_action(::hbase::pb::FlushDescriptor_FlushAction value) { + assert(::hbase::pb::FlushDescriptor_FlushAction_IsValid(value)); + set_has_action(); + action_ = value; +} + +// required bytes table_name = 2; +inline bool FlushDescriptor::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void FlushDescriptor::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void FlushDescriptor::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void FlushDescriptor::clear_table_name() { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + table_name_->clear(); + } + clear_has_table_name(); +} +inline const ::std::string& FlushDescriptor::table_name() const { + return *table_name_; +} +inline void FlushDescriptor::set_table_name(const ::std::string& value) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(value); +} +inline void FlushDescriptor::set_table_name(const char* value) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(value); +} +inline void FlushDescriptor::set_table_name(const void* value, size_t size) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* FlushDescriptor::mutable_table_name() { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + return table_name_; +} +inline ::std::string* FlushDescriptor::release_table_name() { + clear_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = table_name_; + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void FlushDescriptor::set_allocated_table_name(::std::string* table_name) { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + delete table_name_; + } + if (table_name) { + set_has_table_name(); + table_name_ = table_name; + } else { + clear_has_table_name(); + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes encoded_region_name = 3; +inline bool FlushDescriptor::has_encoded_region_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void FlushDescriptor::set_has_encoded_region_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void FlushDescriptor::clear_has_encoded_region_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void FlushDescriptor::clear_encoded_region_name() { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + clear_has_encoded_region_name(); +} +inline const ::std::string& FlushDescriptor::encoded_region_name() const { + return *encoded_region_name_; +} +inline void FlushDescriptor::set_encoded_region_name(const ::std::string& value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void FlushDescriptor::set_encoded_region_name(const char* value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void FlushDescriptor::set_encoded_region_name(const void* value, size_t size) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* FlushDescriptor::mutable_encoded_region_name() { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + return encoded_region_name_; +} +inline ::std::string* FlushDescriptor::release_encoded_region_name() { + clear_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = encoded_region_name_; + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void FlushDescriptor::set_allocated_encoded_region_name(::std::string* encoded_region_name) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (encoded_region_name) { + set_has_encoded_region_name(); + encoded_region_name_ = encoded_region_name; + } else { + clear_has_encoded_region_name(); + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 flush_sequence_number = 4; +inline bool FlushDescriptor::has_flush_sequence_number() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void FlushDescriptor::set_has_flush_sequence_number() { + _has_bits_[0] |= 0x00000008u; +} +inline void FlushDescriptor::clear_has_flush_sequence_number() { + _has_bits_[0] &= ~0x00000008u; +} +inline void FlushDescriptor::clear_flush_sequence_number() { + flush_sequence_number_ = GOOGLE_ULONGLONG(0); + clear_has_flush_sequence_number(); +} +inline ::google::protobuf::uint64 FlushDescriptor::flush_sequence_number() const { + return flush_sequence_number_; +} +inline void FlushDescriptor::set_flush_sequence_number(::google::protobuf::uint64 value) { + set_has_flush_sequence_number(); + flush_sequence_number_ = value; +} + +// repeated .hbase.pb.FlushDescriptor.StoreFlushDescriptor store_flushes = 5; +inline int FlushDescriptor::store_flushes_size() const { + return store_flushes_.size(); +} +inline void FlushDescriptor::clear_store_flushes() { + store_flushes_.Clear(); +} +inline const ::hbase::pb::FlushDescriptor_StoreFlushDescriptor& FlushDescriptor::store_flushes(int index) const { + return store_flushes_.Get(index); +} +inline ::hbase::pb::FlushDescriptor_StoreFlushDescriptor* FlushDescriptor::mutable_store_flushes(int index) { + return store_flushes_.Mutable(index); +} +inline ::hbase::pb::FlushDescriptor_StoreFlushDescriptor* FlushDescriptor::add_store_flushes() { + return store_flushes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::FlushDescriptor_StoreFlushDescriptor >& +FlushDescriptor::store_flushes() const { + return store_flushes_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::FlushDescriptor_StoreFlushDescriptor >* +FlushDescriptor::mutable_store_flushes() { + return &store_flushes_; +} + +// optional bytes region_name = 6; +inline bool FlushDescriptor::has_region_name() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void FlushDescriptor::set_has_region_name() { + _has_bits_[0] |= 0x00000020u; +} +inline void FlushDescriptor::clear_has_region_name() { + _has_bits_[0] &= ~0x00000020u; +} +inline void FlushDescriptor::clear_region_name() { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + region_name_->clear(); + } + clear_has_region_name(); +} +inline const ::std::string& FlushDescriptor::region_name() const { + return *region_name_; +} +inline void FlushDescriptor::set_region_name(const ::std::string& value) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(value); +} +inline void FlushDescriptor::set_region_name(const char* value) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(value); +} +inline void FlushDescriptor::set_region_name(const void* value, size_t size) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* FlushDescriptor::mutable_region_name() { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + return region_name_; +} +inline ::std::string* FlushDescriptor::release_region_name() { + clear_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = region_name_; + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void FlushDescriptor::set_allocated_region_name(::std::string* region_name) { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + delete region_name_; + } + if (region_name) { + set_has_region_name(); + region_name_ = region_name; + } else { + clear_has_region_name(); + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// StoreDescriptor + +// required bytes family_name = 1; +inline bool StoreDescriptor::has_family_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StoreDescriptor::set_has_family_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void StoreDescriptor::clear_has_family_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StoreDescriptor::clear_family_name() { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + family_name_->clear(); + } + clear_has_family_name(); +} +inline const ::std::string& StoreDescriptor::family_name() const { + return *family_name_; +} +inline void StoreDescriptor::set_family_name(const ::std::string& value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void StoreDescriptor::set_family_name(const char* value) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(value); +} +inline void StoreDescriptor::set_family_name(const void* value, size_t size) { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + family_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* StoreDescriptor::mutable_family_name() { + set_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + family_name_ = new ::std::string; + } + return family_name_; +} +inline ::std::string* StoreDescriptor::release_family_name() { + clear_has_family_name(); + if (family_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = family_name_; + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void StoreDescriptor::set_allocated_family_name(::std::string* family_name) { + if (family_name_ != &::google::protobuf::internal::kEmptyString) { + delete family_name_; + } + if (family_name) { + set_has_family_name(); + family_name_ = family_name; + } else { + clear_has_family_name(); + family_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required string store_home_dir = 2; +inline bool StoreDescriptor::has_store_home_dir() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StoreDescriptor::set_has_store_home_dir() { + _has_bits_[0] |= 0x00000002u; +} +inline void StoreDescriptor::clear_has_store_home_dir() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StoreDescriptor::clear_store_home_dir() { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + store_home_dir_->clear(); + } + clear_has_store_home_dir(); +} +inline const ::std::string& StoreDescriptor::store_home_dir() const { + return *store_home_dir_; +} +inline void StoreDescriptor::set_store_home_dir(const ::std::string& value) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(value); +} +inline void StoreDescriptor::set_store_home_dir(const char* value) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(value); +} +inline void StoreDescriptor::set_store_home_dir(const char* value, size_t size) { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + store_home_dir_->assign(reinterpret_cast(value), size); +} +inline ::std::string* StoreDescriptor::mutable_store_home_dir() { + set_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + store_home_dir_ = new ::std::string; + } + return store_home_dir_; +} +inline ::std::string* StoreDescriptor::release_store_home_dir() { + clear_has_store_home_dir(); + if (store_home_dir_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = store_home_dir_; + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void StoreDescriptor::set_allocated_store_home_dir(::std::string* store_home_dir) { + if (store_home_dir_ != &::google::protobuf::internal::kEmptyString) { + delete store_home_dir_; + } + if (store_home_dir) { + set_has_store_home_dir(); + store_home_dir_ = store_home_dir; + } else { + clear_has_store_home_dir(); + store_home_dir_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated string store_file = 3; +inline int StoreDescriptor::store_file_size() const { + return store_file_.size(); +} +inline void StoreDescriptor::clear_store_file() { + store_file_.Clear(); +} +inline const ::std::string& StoreDescriptor::store_file(int index) const { + return store_file_.Get(index); +} +inline ::std::string* StoreDescriptor::mutable_store_file(int index) { + return store_file_.Mutable(index); +} +inline void StoreDescriptor::set_store_file(int index, const ::std::string& value) { + store_file_.Mutable(index)->assign(value); +} +inline void StoreDescriptor::set_store_file(int index, const char* value) { + store_file_.Mutable(index)->assign(value); +} +inline void StoreDescriptor::set_store_file(int index, const char* value, size_t size) { + store_file_.Mutable(index)->assign( + reinterpret_cast(value), size); +} +inline ::std::string* StoreDescriptor::add_store_file() { + return store_file_.Add(); +} +inline void StoreDescriptor::add_store_file(const ::std::string& value) { + store_file_.Add()->assign(value); +} +inline void StoreDescriptor::add_store_file(const char* value) { + store_file_.Add()->assign(value); +} +inline void StoreDescriptor::add_store_file(const char* value, size_t size) { + store_file_.Add()->assign(reinterpret_cast(value), size); +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +StoreDescriptor::store_file() const { + return store_file_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +StoreDescriptor::mutable_store_file() { + return &store_file_; +} + +// ------------------------------------------------------------------- + +// BulkLoadDescriptor + +// required .hbase.pb.TableName table_name = 1; +inline bool BulkLoadDescriptor::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void BulkLoadDescriptor::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void BulkLoadDescriptor::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void BulkLoadDescriptor::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& BulkLoadDescriptor::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* BulkLoadDescriptor::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* BulkLoadDescriptor::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void BulkLoadDescriptor::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// required bytes encoded_region_name = 2; +inline bool BulkLoadDescriptor::has_encoded_region_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void BulkLoadDescriptor::set_has_encoded_region_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void BulkLoadDescriptor::clear_has_encoded_region_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void BulkLoadDescriptor::clear_encoded_region_name() { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + clear_has_encoded_region_name(); +} +inline const ::std::string& BulkLoadDescriptor::encoded_region_name() const { + return *encoded_region_name_; +} +inline void BulkLoadDescriptor::set_encoded_region_name(const ::std::string& value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void BulkLoadDescriptor::set_encoded_region_name(const char* value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void BulkLoadDescriptor::set_encoded_region_name(const void* value, size_t size) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* BulkLoadDescriptor::mutable_encoded_region_name() { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + return encoded_region_name_; +} +inline ::std::string* BulkLoadDescriptor::release_encoded_region_name() { + clear_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = encoded_region_name_; + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void BulkLoadDescriptor::set_allocated_encoded_region_name(::std::string* encoded_region_name) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (encoded_region_name) { + set_has_encoded_region_name(); + encoded_region_name_ = encoded_region_name; + } else { + clear_has_encoded_region_name(); + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.StoreDescriptor stores = 3; +inline int BulkLoadDescriptor::stores_size() const { + return stores_.size(); +} +inline void BulkLoadDescriptor::clear_stores() { + stores_.Clear(); +} +inline const ::hbase::pb::StoreDescriptor& BulkLoadDescriptor::stores(int index) const { + return stores_.Get(index); +} +inline ::hbase::pb::StoreDescriptor* BulkLoadDescriptor::mutable_stores(int index) { + return stores_.Mutable(index); +} +inline ::hbase::pb::StoreDescriptor* BulkLoadDescriptor::add_stores() { + return stores_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor >& +BulkLoadDescriptor::stores() const { + return stores_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor >* +BulkLoadDescriptor::mutable_stores() { + return &stores_; +} + +// required int64 bulkload_seq_num = 4; +inline bool BulkLoadDescriptor::has_bulkload_seq_num() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void BulkLoadDescriptor::set_has_bulkload_seq_num() { + _has_bits_[0] |= 0x00000008u; +} +inline void BulkLoadDescriptor::clear_has_bulkload_seq_num() { + _has_bits_[0] &= ~0x00000008u; +} +inline void BulkLoadDescriptor::clear_bulkload_seq_num() { + bulkload_seq_num_ = GOOGLE_LONGLONG(0); + clear_has_bulkload_seq_num(); +} +inline ::google::protobuf::int64 BulkLoadDescriptor::bulkload_seq_num() const { + return bulkload_seq_num_; +} +inline void BulkLoadDescriptor::set_bulkload_seq_num(::google::protobuf::int64 value) { + set_has_bulkload_seq_num(); + bulkload_seq_num_ = value; +} + +// ------------------------------------------------------------------- + +// RegionEventDescriptor + +// required .hbase.pb.RegionEventDescriptor.EventType event_type = 1; +inline bool RegionEventDescriptor::has_event_type() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RegionEventDescriptor::set_has_event_type() { + _has_bits_[0] |= 0x00000001u; +} +inline void RegionEventDescriptor::clear_has_event_type() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RegionEventDescriptor::clear_event_type() { + event_type_ = 0; + clear_has_event_type(); +} +inline ::hbase::pb::RegionEventDescriptor_EventType RegionEventDescriptor::event_type() const { + return static_cast< ::hbase::pb::RegionEventDescriptor_EventType >(event_type_); +} +inline void RegionEventDescriptor::set_event_type(::hbase::pb::RegionEventDescriptor_EventType value) { + assert(::hbase::pb::RegionEventDescriptor_EventType_IsValid(value)); + set_has_event_type(); + event_type_ = value; +} + +// required bytes table_name = 2; +inline bool RegionEventDescriptor::has_table_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RegionEventDescriptor::set_has_table_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void RegionEventDescriptor::clear_has_table_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RegionEventDescriptor::clear_table_name() { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + table_name_->clear(); + } + clear_has_table_name(); +} +inline const ::std::string& RegionEventDescriptor::table_name() const { + return *table_name_; +} +inline void RegionEventDescriptor::set_table_name(const ::std::string& value) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(value); +} +inline void RegionEventDescriptor::set_table_name(const char* value) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(value); +} +inline void RegionEventDescriptor::set_table_name(const void* value, size_t size) { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + table_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegionEventDescriptor::mutable_table_name() { + set_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + table_name_ = new ::std::string; + } + return table_name_; +} +inline ::std::string* RegionEventDescriptor::release_table_name() { + clear_has_table_name(); + if (table_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = table_name_; + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegionEventDescriptor::set_allocated_table_name(::std::string* table_name) { + if (table_name_ != &::google::protobuf::internal::kEmptyString) { + delete table_name_; + } + if (table_name) { + set_has_table_name(); + table_name_ = table_name; + } else { + clear_has_table_name(); + table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// required bytes encoded_region_name = 3; +inline bool RegionEventDescriptor::has_encoded_region_name() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RegionEventDescriptor::set_has_encoded_region_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void RegionEventDescriptor::clear_has_encoded_region_name() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RegionEventDescriptor::clear_encoded_region_name() { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + encoded_region_name_->clear(); + } + clear_has_encoded_region_name(); +} +inline const ::std::string& RegionEventDescriptor::encoded_region_name() const { + return *encoded_region_name_; +} +inline void RegionEventDescriptor::set_encoded_region_name(const ::std::string& value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void RegionEventDescriptor::set_encoded_region_name(const char* value) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(value); +} +inline void RegionEventDescriptor::set_encoded_region_name(const void* value, size_t size) { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + encoded_region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegionEventDescriptor::mutable_encoded_region_name() { + set_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + encoded_region_name_ = new ::std::string; + } + return encoded_region_name_; +} +inline ::std::string* RegionEventDescriptor::release_encoded_region_name() { + clear_has_encoded_region_name(); + if (encoded_region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = encoded_region_name_; + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegionEventDescriptor::set_allocated_encoded_region_name(::std::string* encoded_region_name) { + if (encoded_region_name_ != &::google::protobuf::internal::kEmptyString) { + delete encoded_region_name_; + } + if (encoded_region_name) { + set_has_encoded_region_name(); + encoded_region_name_ = encoded_region_name; + } else { + clear_has_encoded_region_name(); + encoded_region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional uint64 log_sequence_number = 4; +inline bool RegionEventDescriptor::has_log_sequence_number() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void RegionEventDescriptor::set_has_log_sequence_number() { + _has_bits_[0] |= 0x00000008u; +} +inline void RegionEventDescriptor::clear_has_log_sequence_number() { + _has_bits_[0] &= ~0x00000008u; +} +inline void RegionEventDescriptor::clear_log_sequence_number() { + log_sequence_number_ = GOOGLE_ULONGLONG(0); + clear_has_log_sequence_number(); +} +inline ::google::protobuf::uint64 RegionEventDescriptor::log_sequence_number() const { + return log_sequence_number_; +} +inline void RegionEventDescriptor::set_log_sequence_number(::google::protobuf::uint64 value) { + set_has_log_sequence_number(); + log_sequence_number_ = value; +} + +// repeated .hbase.pb.StoreDescriptor stores = 5; +inline int RegionEventDescriptor::stores_size() const { + return stores_.size(); +} +inline void RegionEventDescriptor::clear_stores() { + stores_.Clear(); +} +inline const ::hbase::pb::StoreDescriptor& RegionEventDescriptor::stores(int index) const { + return stores_.Get(index); +} +inline ::hbase::pb::StoreDescriptor* RegionEventDescriptor::mutable_stores(int index) { + return stores_.Mutable(index); +} +inline ::hbase::pb::StoreDescriptor* RegionEventDescriptor::add_stores() { + return stores_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor >& +RegionEventDescriptor::stores() const { + return stores_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::StoreDescriptor >* +RegionEventDescriptor::mutable_stores() { + return &stores_; +} + +// optional .hbase.pb.ServerName server = 6; +inline bool RegionEventDescriptor::has_server() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void RegionEventDescriptor::set_has_server() { + _has_bits_[0] |= 0x00000020u; +} +inline void RegionEventDescriptor::clear_has_server() { + _has_bits_[0] &= ~0x00000020u; +} +inline void RegionEventDescriptor::clear_server() { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + clear_has_server(); +} +inline const ::hbase::pb::ServerName& RegionEventDescriptor::server() const { + return server_ != NULL ? *server_ : *default_instance_->server_; +} +inline ::hbase::pb::ServerName* RegionEventDescriptor::mutable_server() { + set_has_server(); + if (server_ == NULL) server_ = new ::hbase::pb::ServerName; + return server_; +} +inline ::hbase::pb::ServerName* RegionEventDescriptor::release_server() { + clear_has_server(); + ::hbase::pb::ServerName* temp = server_; + server_ = NULL; + return temp; +} +inline void RegionEventDescriptor::set_allocated_server(::hbase::pb::ServerName* server) { + delete server_; + server_ = server; + if (server) { + set_has_server(); + } else { + clear_has_server(); + } +} + +// optional bytes region_name = 7; +inline bool RegionEventDescriptor::has_region_name() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void RegionEventDescriptor::set_has_region_name() { + _has_bits_[0] |= 0x00000040u; +} +inline void RegionEventDescriptor::clear_has_region_name() { + _has_bits_[0] &= ~0x00000040u; +} +inline void RegionEventDescriptor::clear_region_name() { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + region_name_->clear(); + } + clear_has_region_name(); +} +inline const ::std::string& RegionEventDescriptor::region_name() const { + return *region_name_; +} +inline void RegionEventDescriptor::set_region_name(const ::std::string& value) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(value); +} +inline void RegionEventDescriptor::set_region_name(const char* value) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(value); +} +inline void RegionEventDescriptor::set_region_name(const void* value, size_t size) { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + region_name_->assign(reinterpret_cast(value), size); +} +inline ::std::string* RegionEventDescriptor::mutable_region_name() { + set_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + region_name_ = new ::std::string; + } + return region_name_; +} +inline ::std::string* RegionEventDescriptor::release_region_name() { + clear_has_region_name(); + if (region_name_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = region_name_; + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void RegionEventDescriptor::set_allocated_region_name(::std::string* region_name) { + if (region_name_ != &::google::protobuf::internal::kEmptyString) { + delete region_name_; + } + if (region_name) { + set_has_region_name(); + region_name_ = region_name; + } else { + clear_has_region_name(); + region_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// WALTrailer + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::FlushDescriptor_FlushAction>() { + return ::hbase::pb::FlushDescriptor_FlushAction_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::RegionEventDescriptor_EventType>() { + return ::hbase::pb::RegionEventDescriptor_EventType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ScopeType>() { + return ::hbase::pb::ScopeType_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_WAL_2eproto__INCLUDED diff --git a/hbase-native-client/src/rpc/generated/ZooKeeper.pb.cc b/hbase-native-client/src/rpc/generated/ZooKeeper.pb.cc new file mode 100644 index 0000000..0015d3b --- /dev/null +++ b/hbase-native-client/src/rpc/generated/ZooKeeper.pb.cc @@ -0,0 +1,3510 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ZooKeeper.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "ZooKeeper.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +namespace { + +const ::google::protobuf::Descriptor* MetaRegionServer_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MetaRegionServer_reflection_ = NULL; +const ::google::protobuf::Descriptor* Master_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + Master_reflection_ = NULL; +const ::google::protobuf::Descriptor* ClusterUp_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ClusterUp_reflection_ = NULL; +const ::google::protobuf::Descriptor* SplitLogTask_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SplitLogTask_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* SplitLogTask_State_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* SplitLogTask_RecoveryMode_descriptor_ = NULL; +const ::google::protobuf::Descriptor* DeprecatedTableState_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DeprecatedTableState_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* DeprecatedTableState_State_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ReplicationPeer_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReplicationPeer_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReplicationState_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReplicationState_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* ReplicationState_State_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ReplicationHLogPosition_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReplicationHLogPosition_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReplicationLock_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReplicationLock_reflection_ = NULL; +const ::google::protobuf::Descriptor* TableLock_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TableLock_reflection_ = NULL; +const ::google::protobuf::Descriptor* SwitchState_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SwitchState_reflection_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_ZooKeeper_2eproto() { + protobuf_AddDesc_ZooKeeper_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "ZooKeeper.proto"); + GOOGLE_CHECK(file != NULL); + MetaRegionServer_descriptor_ = file->message_type(0); + static const int MetaRegionServer_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaRegionServer, server_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaRegionServer, rpc_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaRegionServer, state_), + }; + MetaRegionServer_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MetaRegionServer_descriptor_, + MetaRegionServer::default_instance_, + MetaRegionServer_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaRegionServer, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetaRegionServer, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MetaRegionServer)); + Master_descriptor_ = file->message_type(1); + static const int Master_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Master, master_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Master, rpc_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Master, info_port_), + }; + Master_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + Master_descriptor_, + Master::default_instance_, + Master_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Master, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Master, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(Master)); + ClusterUp_descriptor_ = file->message_type(2); + static const int ClusterUp_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterUp, start_date_), + }; + ClusterUp_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ClusterUp_descriptor_, + ClusterUp::default_instance_, + ClusterUp_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterUp, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClusterUp, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ClusterUp)); + SplitLogTask_descriptor_ = file->message_type(3); + static const int SplitLogTask_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitLogTask, state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitLogTask, server_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitLogTask, mode_), + }; + SplitLogTask_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SplitLogTask_descriptor_, + SplitLogTask::default_instance_, + SplitLogTask_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitLogTask, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SplitLogTask, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SplitLogTask)); + SplitLogTask_State_descriptor_ = SplitLogTask_descriptor_->enum_type(0); + SplitLogTask_RecoveryMode_descriptor_ = SplitLogTask_descriptor_->enum_type(1); + DeprecatedTableState_descriptor_ = file->message_type(4); + static const int DeprecatedTableState_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeprecatedTableState, state_), + }; + DeprecatedTableState_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DeprecatedTableState_descriptor_, + DeprecatedTableState::default_instance_, + DeprecatedTableState_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeprecatedTableState, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeprecatedTableState, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DeprecatedTableState)); + DeprecatedTableState_State_descriptor_ = DeprecatedTableState_descriptor_->enum_type(0); + ReplicationPeer_descriptor_ = file->message_type(5); + static const int ReplicationPeer_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationPeer, clusterkey_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationPeer, replicationendpointimpl_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationPeer, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationPeer, configuration_), + }; + ReplicationPeer_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReplicationPeer_descriptor_, + ReplicationPeer::default_instance_, + ReplicationPeer_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationPeer, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationPeer, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReplicationPeer)); + ReplicationState_descriptor_ = file->message_type(6); + static const int ReplicationState_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationState, state_), + }; + ReplicationState_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReplicationState_descriptor_, + ReplicationState::default_instance_, + ReplicationState_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationState, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationState, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReplicationState)); + ReplicationState_State_descriptor_ = ReplicationState_descriptor_->enum_type(0); + ReplicationHLogPosition_descriptor_ = file->message_type(7); + static const int ReplicationHLogPosition_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationHLogPosition, position_), + }; + ReplicationHLogPosition_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReplicationHLogPosition_descriptor_, + ReplicationHLogPosition::default_instance_, + ReplicationHLogPosition_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationHLogPosition, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationHLogPosition, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReplicationHLogPosition)); + ReplicationLock_descriptor_ = file->message_type(8); + static const int ReplicationLock_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLock, lock_owner_), + }; + ReplicationLock_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReplicationLock_descriptor_, + ReplicationLock::default_instance_, + ReplicationLock_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLock, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplicationLock, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReplicationLock)); + TableLock_descriptor_ = file->message_type(9); + static const int TableLock_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableLock, table_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableLock, lock_owner_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableLock, thread_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableLock, is_shared_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableLock, purpose_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableLock, create_time_), + }; + TableLock_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TableLock_descriptor_, + TableLock::default_instance_, + TableLock_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableLock, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableLock, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TableLock)); + SwitchState_descriptor_ = file->message_type(10); + static const int SwitchState_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SwitchState, enabled_), + }; + SwitchState_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SwitchState_descriptor_, + SwitchState::default_instance_, + SwitchState_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SwitchState, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SwitchState, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SwitchState)); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_ZooKeeper_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MetaRegionServer_descriptor_, &MetaRegionServer::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + Master_descriptor_, &Master::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ClusterUp_descriptor_, &ClusterUp::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SplitLogTask_descriptor_, &SplitLogTask::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DeprecatedTableState_descriptor_, &DeprecatedTableState::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReplicationPeer_descriptor_, &ReplicationPeer::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReplicationState_descriptor_, &ReplicationState::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReplicationHLogPosition_descriptor_, &ReplicationHLogPosition::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReplicationLock_descriptor_, &ReplicationLock::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TableLock_descriptor_, &TableLock::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SwitchState_descriptor_, &SwitchState::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_ZooKeeper_2eproto() { + delete MetaRegionServer::default_instance_; + delete MetaRegionServer_reflection_; + delete Master::default_instance_; + delete Master_reflection_; + delete ClusterUp::default_instance_; + delete ClusterUp_reflection_; + delete SplitLogTask::default_instance_; + delete SplitLogTask_reflection_; + delete DeprecatedTableState::default_instance_; + delete DeprecatedTableState_reflection_; + delete ReplicationPeer::default_instance_; + delete ReplicationPeer_reflection_; + delete ReplicationState::default_instance_; + delete ReplicationState_reflection_; + delete ReplicationHLogPosition::default_instance_; + delete ReplicationHLogPosition_reflection_; + delete ReplicationLock::default_instance_; + delete ReplicationLock_reflection_; + delete TableLock::default_instance_; + delete TableLock_reflection_; + delete SwitchState::default_instance_; + delete SwitchState_reflection_; +} + +void protobuf_AddDesc_ZooKeeper_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::hbase::pb::protobuf_AddDesc_HBase_2eproto(); + ::hbase::pb::protobuf_AddDesc_ClusterStatus_2eproto(); + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\017ZooKeeper.proto\022\010hbase.pb\032\013HBase.proto" + "\032\023ClusterStatus.proto\"y\n\020MetaRegionServe" + "r\022$\n\006server\030\001 \002(\0132\024.hbase.pb.ServerName\022" + "\023\n\013rpc_version\030\002 \001(\r\022*\n\005state\030\003 \001(\0162\033.hb" + "ase.pb.RegionState.State\"V\n\006Master\022$\n\006ma" + "ster\030\001 \002(\0132\024.hbase.pb.ServerName\022\023\n\013rpc_" + "version\030\002 \001(\r\022\021\n\tinfo_port\030\003 \001(\r\"\037\n\tClus" + "terUp\022\022\n\nstart_date\030\001 \002(\t\"\247\002\n\014SplitLogTa" + "sk\022+\n\005state\030\001 \002(\0162\034.hbase.pb.SplitLogTas" + "k.State\022)\n\013server_name\030\002 \002(\0132\024.hbase.pb." + "ServerName\022:\n\004mode\030\003 \001(\0162#.hbase.pb.Spli" + "tLogTask.RecoveryMode:\007UNKNOWN\"C\n\005State\022" + "\016\n\nUNASSIGNED\020\000\022\t\n\005OWNED\020\001\022\014\n\010RESIGNED\020\002" + "\022\010\n\004DONE\020\003\022\007\n\003ERR\020\004\">\n\014RecoveryMode\022\013\n\007U" + "NKNOWN\020\000\022\021\n\rLOG_SPLITTING\020\001\022\016\n\nLOG_REPLA" + "Y\020\002\"\225\001\n\024DeprecatedTableState\022<\n\005state\030\001 " + "\002(\0162$.hbase.pb.DeprecatedTableState.Stat" + "e:\007ENABLED\"\?\n\005State\022\013\n\007ENABLED\020\000\022\014\n\010DISA" + "BLED\020\001\022\r\n\tDISABLING\020\002\022\014\n\010ENABLING\020\003\"\237\001\n\017" + "ReplicationPeer\022\022\n\nclusterkey\030\001 \002(\t\022\037\n\027r" + "eplicationEndpointImpl\030\002 \001(\t\022&\n\004data\030\003 \003" + "(\0132\030.hbase.pb.BytesBytesPair\022/\n\rconfigur" + "ation\030\004 \003(\0132\030.hbase.pb.NameStringPair\"g\n" + "\020ReplicationState\022/\n\005state\030\001 \002(\0162 .hbase" + ".pb.ReplicationState.State\"\"\n\005State\022\013\n\007E" + "NABLED\020\000\022\014\n\010DISABLED\020\001\"+\n\027ReplicationHLo" + "gPosition\022\020\n\010position\030\001 \002(\003\"%\n\017Replicati" + "onLock\022\022\n\nlock_owner\030\001 \002(\t\"\252\001\n\tTableLock" + "\022\'\n\ntable_name\030\001 \001(\0132\023.hbase.pb.TableNam" + "e\022(\n\nlock_owner\030\002 \001(\0132\024.hbase.pb.ServerN" + "ame\022\021\n\tthread_id\030\003 \001(\003\022\021\n\tis_shared\030\004 \001(" + "\010\022\017\n\007purpose\030\005 \001(\t\022\023\n\013create_time\030\006 \001(\003\"" + "\036\n\013SwitchState\022\017\n\007enabled\030\001 \001(\010BE\n*org.a" + "pache.hadoop.hbase.protobuf.generatedB\017Z" + "ooKeeperProtosH\001\210\001\001\240\001\001", 1382); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "ZooKeeper.proto", &protobuf_RegisterTypes); + MetaRegionServer::default_instance_ = new MetaRegionServer(); + Master::default_instance_ = new Master(); + ClusterUp::default_instance_ = new ClusterUp(); + SplitLogTask::default_instance_ = new SplitLogTask(); + DeprecatedTableState::default_instance_ = new DeprecatedTableState(); + ReplicationPeer::default_instance_ = new ReplicationPeer(); + ReplicationState::default_instance_ = new ReplicationState(); + ReplicationHLogPosition::default_instance_ = new ReplicationHLogPosition(); + ReplicationLock::default_instance_ = new ReplicationLock(); + TableLock::default_instance_ = new TableLock(); + SwitchState::default_instance_ = new SwitchState(); + MetaRegionServer::default_instance_->InitAsDefaultInstance(); + Master::default_instance_->InitAsDefaultInstance(); + ClusterUp::default_instance_->InitAsDefaultInstance(); + SplitLogTask::default_instance_->InitAsDefaultInstance(); + DeprecatedTableState::default_instance_->InitAsDefaultInstance(); + ReplicationPeer::default_instance_->InitAsDefaultInstance(); + ReplicationState::default_instance_->InitAsDefaultInstance(); + ReplicationHLogPosition::default_instance_->InitAsDefaultInstance(); + ReplicationLock::default_instance_->InitAsDefaultInstance(); + TableLock::default_instance_->InitAsDefaultInstance(); + SwitchState::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ZooKeeper_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_ZooKeeper_2eproto { + StaticDescriptorInitializer_ZooKeeper_2eproto() { + protobuf_AddDesc_ZooKeeper_2eproto(); + } +} static_descriptor_initializer_ZooKeeper_2eproto_; + +// =================================================================== + +#ifndef _MSC_VER +const int MetaRegionServer::kServerFieldNumber; +const int MetaRegionServer::kRpcVersionFieldNumber; +const int MetaRegionServer::kStateFieldNumber; +#endif // !_MSC_VER + +MetaRegionServer::MetaRegionServer() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MetaRegionServer::InitAsDefaultInstance() { + server_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +MetaRegionServer::MetaRegionServer(const MetaRegionServer& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MetaRegionServer::SharedCtor() { + _cached_size_ = 0; + server_ = NULL; + rpc_version_ = 0u; + state_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MetaRegionServer::~MetaRegionServer() { + SharedDtor(); +} + +void MetaRegionServer::SharedDtor() { + if (this != default_instance_) { + delete server_; + } +} + +void MetaRegionServer::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MetaRegionServer::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MetaRegionServer_descriptor_; +} + +const MetaRegionServer& MetaRegionServer::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +MetaRegionServer* MetaRegionServer::default_instance_ = NULL; + +MetaRegionServer* MetaRegionServer::New() const { + return new MetaRegionServer; +} + +void MetaRegionServer::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_server()) { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + } + rpc_version_ = 0u; + state_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MetaRegionServer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName server = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_rpc_version; + break; + } + + // optional uint32 rpc_version = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_rpc_version: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &rpc_version_))); + set_has_rpc_version(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_state; + break; + } + + // optional .hbase.pb.RegionState.State state = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_state: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::RegionState_State_IsValid(value)) { + set_state(static_cast< ::hbase::pb::RegionState_State >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MetaRegionServer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->server(), output); + } + + // optional uint32 rpc_version = 2; + if (has_rpc_version()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->rpc_version(), output); + } + + // optional .hbase.pb.RegionState.State state = 3; + if (has_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->state(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MetaRegionServer::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->server(), target); + } + + // optional uint32 rpc_version = 2; + if (has_rpc_version()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->rpc_version(), target); + } + + // optional .hbase.pb.RegionState.State state = 3; + if (has_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->state(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MetaRegionServer::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName server = 1; + if (has_server()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server()); + } + + // optional uint32 rpc_version = 2; + if (has_rpc_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rpc_version()); + } + + // optional .hbase.pb.RegionState.State state = 3; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MetaRegionServer::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MetaRegionServer* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MetaRegionServer::MergeFrom(const MetaRegionServer& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_server()) { + mutable_server()->::hbase::pb::ServerName::MergeFrom(from.server()); + } + if (from.has_rpc_version()) { + set_rpc_version(from.rpc_version()); + } + if (from.has_state()) { + set_state(from.state()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MetaRegionServer::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MetaRegionServer::CopyFrom(const MetaRegionServer& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MetaRegionServer::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_server()) { + if (!this->server().IsInitialized()) return false; + } + return true; +} + +void MetaRegionServer::Swap(MetaRegionServer* other) { + if (other != this) { + std::swap(server_, other->server_); + std::swap(rpc_version_, other->rpc_version_); + std::swap(state_, other->state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MetaRegionServer::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MetaRegionServer_descriptor_; + metadata.reflection = MetaRegionServer_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int Master::kMasterFieldNumber; +const int Master::kRpcVersionFieldNumber; +const int Master::kInfoPortFieldNumber; +#endif // !_MSC_VER + +Master::Master() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void Master::InitAsDefaultInstance() { + master_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +Master::Master(const Master& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void Master::SharedCtor() { + _cached_size_ = 0; + master_ = NULL; + rpc_version_ = 0u; + info_port_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +Master::~Master() { + SharedDtor(); +} + +void Master::SharedDtor() { + if (this != default_instance_) { + delete master_; + } +} + +void Master::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Master::descriptor() { + protobuf_AssignDescriptorsOnce(); + return Master_descriptor_; +} + +const Master& Master::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +Master* Master::default_instance_ = NULL; + +Master* Master::New() const { + return new Master; +} + +void Master::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_master()) { + if (master_ != NULL) master_->::hbase::pb::ServerName::Clear(); + } + rpc_version_ = 0u; + info_port_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool Master::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ServerName master = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_master())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_rpc_version; + break; + } + + // optional uint32 rpc_version = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_rpc_version: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &rpc_version_))); + set_has_rpc_version(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_info_port; + break; + } + + // optional uint32 info_port = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_info_port: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &info_port_))); + set_has_info_port(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void Master::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ServerName master = 1; + if (has_master()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->master(), output); + } + + // optional uint32 rpc_version = 2; + if (has_rpc_version()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->rpc_version(), output); + } + + // optional uint32 info_port = 3; + if (has_info_port()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->info_port(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* Master::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ServerName master = 1; + if (has_master()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->master(), target); + } + + // optional uint32 rpc_version = 2; + if (has_rpc_version()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->rpc_version(), target); + } + + // optional uint32 info_port = 3; + if (has_info_port()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->info_port(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int Master::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ServerName master = 1; + if (has_master()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->master()); + } + + // optional uint32 rpc_version = 2; + if (has_rpc_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rpc_version()); + } + + // optional uint32 info_port = 3; + if (has_info_port()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->info_port()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Master::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const Master* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void Master::MergeFrom(const Master& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_master()) { + mutable_master()->::hbase::pb::ServerName::MergeFrom(from.master()); + } + if (from.has_rpc_version()) { + set_rpc_version(from.rpc_version()); + } + if (from.has_info_port()) { + set_info_port(from.info_port()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void Master::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Master::CopyFrom(const Master& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Master::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_master()) { + if (!this->master().IsInitialized()) return false; + } + return true; +} + +void Master::Swap(Master* other) { + if (other != this) { + std::swap(master_, other->master_); + std::swap(rpc_version_, other->rpc_version_); + std::swap(info_port_, other->info_port_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata Master::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = Master_descriptor_; + metadata.reflection = Master_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ClusterUp::kStartDateFieldNumber; +#endif // !_MSC_VER + +ClusterUp::ClusterUp() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ClusterUp::InitAsDefaultInstance() { +} + +ClusterUp::ClusterUp(const ClusterUp& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ClusterUp::SharedCtor() { + _cached_size_ = 0; + start_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ClusterUp::~ClusterUp() { + SharedDtor(); +} + +void ClusterUp::SharedDtor() { + if (start_date_ != &::google::protobuf::internal::kEmptyString) { + delete start_date_; + } + if (this != default_instance_) { + } +} + +void ClusterUp::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ClusterUp::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ClusterUp_descriptor_; +} + +const ClusterUp& ClusterUp::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +ClusterUp* ClusterUp::default_instance_ = NULL; + +ClusterUp* ClusterUp::New() const { + return new ClusterUp; +} + +void ClusterUp::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_start_date()) { + if (start_date_ != &::google::protobuf::internal::kEmptyString) { + start_date_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ClusterUp::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string start_date = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_start_date())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->start_date().data(), this->start_date().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ClusterUp::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string start_date = 1; + if (has_start_date()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->start_date().data(), this->start_date().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->start_date(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ClusterUp::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string start_date = 1; + if (has_start_date()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->start_date().data(), this->start_date().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->start_date(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ClusterUp::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string start_date = 1; + if (has_start_date()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->start_date()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ClusterUp::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ClusterUp* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ClusterUp::MergeFrom(const ClusterUp& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_start_date()) { + set_start_date(from.start_date()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ClusterUp::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ClusterUp::CopyFrom(const ClusterUp& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClusterUp::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ClusterUp::Swap(ClusterUp* other) { + if (other != this) { + std::swap(start_date_, other->start_date_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ClusterUp::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ClusterUp_descriptor_; + metadata.reflection = ClusterUp_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* SplitLogTask_State_descriptor() { + protobuf_AssignDescriptorsOnce(); + return SplitLogTask_State_descriptor_; +} +bool SplitLogTask_State_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const SplitLogTask_State SplitLogTask::UNASSIGNED; +const SplitLogTask_State SplitLogTask::OWNED; +const SplitLogTask_State SplitLogTask::RESIGNED; +const SplitLogTask_State SplitLogTask::DONE; +const SplitLogTask_State SplitLogTask::ERR; +const SplitLogTask_State SplitLogTask::State_MIN; +const SplitLogTask_State SplitLogTask::State_MAX; +const int SplitLogTask::State_ARRAYSIZE; +#endif // _MSC_VER +const ::google::protobuf::EnumDescriptor* SplitLogTask_RecoveryMode_descriptor() { + protobuf_AssignDescriptorsOnce(); + return SplitLogTask_RecoveryMode_descriptor_; +} +bool SplitLogTask_RecoveryMode_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const SplitLogTask_RecoveryMode SplitLogTask::UNKNOWN; +const SplitLogTask_RecoveryMode SplitLogTask::LOG_SPLITTING; +const SplitLogTask_RecoveryMode SplitLogTask::LOG_REPLAY; +const SplitLogTask_RecoveryMode SplitLogTask::RecoveryMode_MIN; +const SplitLogTask_RecoveryMode SplitLogTask::RecoveryMode_MAX; +const int SplitLogTask::RecoveryMode_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int SplitLogTask::kStateFieldNumber; +const int SplitLogTask::kServerNameFieldNumber; +const int SplitLogTask::kModeFieldNumber; +#endif // !_MSC_VER + +SplitLogTask::SplitLogTask() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SplitLogTask::InitAsDefaultInstance() { + server_name_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +SplitLogTask::SplitLogTask(const SplitLogTask& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SplitLogTask::SharedCtor() { + _cached_size_ = 0; + state_ = 0; + server_name_ = NULL; + mode_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SplitLogTask::~SplitLogTask() { + SharedDtor(); +} + +void SplitLogTask::SharedDtor() { + if (this != default_instance_) { + delete server_name_; + } +} + +void SplitLogTask::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SplitLogTask::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SplitLogTask_descriptor_; +} + +const SplitLogTask& SplitLogTask::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +SplitLogTask* SplitLogTask::default_instance_ = NULL; + +SplitLogTask* SplitLogTask::New() const { + return new SplitLogTask; +} + +void SplitLogTask::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + state_ = 0; + if (has_server_name()) { + if (server_name_ != NULL) server_name_->::hbase::pb::ServerName::Clear(); + } + mode_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SplitLogTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.SplitLogTask.State state = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::SplitLogTask_State_IsValid(value)) { + set_state(static_cast< ::hbase::pb::SplitLogTask_State >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_server_name; + break; + } + + // required .hbase.pb.ServerName server_name = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_server_name: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_server_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_mode; + break; + } + + // optional .hbase.pb.SplitLogTask.RecoveryMode mode = 3 [default = UNKNOWN]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_mode: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::SplitLogTask_RecoveryMode_IsValid(value)) { + set_mode(static_cast< ::hbase::pb::SplitLogTask_RecoveryMode >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SplitLogTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.SplitLogTask.State state = 1; + if (has_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // required .hbase.pb.ServerName server_name = 2; + if (has_server_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->server_name(), output); + } + + // optional .hbase.pb.SplitLogTask.RecoveryMode mode = 3 [default = UNKNOWN]; + if (has_mode()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->mode(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SplitLogTask::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.SplitLogTask.State state = 1; + if (has_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // required .hbase.pb.ServerName server_name = 2; + if (has_server_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->server_name(), target); + } + + // optional .hbase.pb.SplitLogTask.RecoveryMode mode = 3 [default = UNKNOWN]; + if (has_mode()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->mode(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SplitLogTask::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.SplitLogTask.State state = 1; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + // required .hbase.pb.ServerName server_name = 2; + if (has_server_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->server_name()); + } + + // optional .hbase.pb.SplitLogTask.RecoveryMode mode = 3 [default = UNKNOWN]; + if (has_mode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SplitLogTask::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SplitLogTask* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SplitLogTask::MergeFrom(const SplitLogTask& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_state()) { + set_state(from.state()); + } + if (from.has_server_name()) { + mutable_server_name()->::hbase::pb::ServerName::MergeFrom(from.server_name()); + } + if (from.has_mode()) { + set_mode(from.mode()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SplitLogTask::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SplitLogTask::CopyFrom(const SplitLogTask& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SplitLogTask::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + if (has_server_name()) { + if (!this->server_name().IsInitialized()) return false; + } + return true; +} + +void SplitLogTask::Swap(SplitLogTask* other) { + if (other != this) { + std::swap(state_, other->state_); + std::swap(server_name_, other->server_name_); + std::swap(mode_, other->mode_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SplitLogTask::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SplitLogTask_descriptor_; + metadata.reflection = SplitLogTask_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* DeprecatedTableState_State_descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeprecatedTableState_State_descriptor_; +} +bool DeprecatedTableState_State_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const DeprecatedTableState_State DeprecatedTableState::ENABLED; +const DeprecatedTableState_State DeprecatedTableState::DISABLED; +const DeprecatedTableState_State DeprecatedTableState::DISABLING; +const DeprecatedTableState_State DeprecatedTableState::ENABLING; +const DeprecatedTableState_State DeprecatedTableState::State_MIN; +const DeprecatedTableState_State DeprecatedTableState::State_MAX; +const int DeprecatedTableState::State_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int DeprecatedTableState::kStateFieldNumber; +#endif // !_MSC_VER + +DeprecatedTableState::DeprecatedTableState() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DeprecatedTableState::InitAsDefaultInstance() { +} + +DeprecatedTableState::DeprecatedTableState(const DeprecatedTableState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DeprecatedTableState::SharedCtor() { + _cached_size_ = 0; + state_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DeprecatedTableState::~DeprecatedTableState() { + SharedDtor(); +} + +void DeprecatedTableState::SharedDtor() { + if (this != default_instance_) { + } +} + +void DeprecatedTableState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeprecatedTableState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DeprecatedTableState_descriptor_; +} + +const DeprecatedTableState& DeprecatedTableState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +DeprecatedTableState* DeprecatedTableState::default_instance_ = NULL; + +DeprecatedTableState* DeprecatedTableState::New() const { + return new DeprecatedTableState; +} + +void DeprecatedTableState::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + state_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DeprecatedTableState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.DeprecatedTableState.State state = 1 [default = ENABLED]; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::DeprecatedTableState_State_IsValid(value)) { + set_state(static_cast< ::hbase::pb::DeprecatedTableState_State >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DeprecatedTableState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.DeprecatedTableState.State state = 1 [default = ENABLED]; + if (has_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DeprecatedTableState::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.DeprecatedTableState.State state = 1 [default = ENABLED]; + if (has_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DeprecatedTableState::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.DeprecatedTableState.State state = 1 [default = ENABLED]; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DeprecatedTableState::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DeprecatedTableState* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DeprecatedTableState::MergeFrom(const DeprecatedTableState& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_state()) { + set_state(from.state()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DeprecatedTableState::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeprecatedTableState::CopyFrom(const DeprecatedTableState& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeprecatedTableState::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void DeprecatedTableState::Swap(DeprecatedTableState* other) { + if (other != this) { + std::swap(state_, other->state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DeprecatedTableState::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DeprecatedTableState_descriptor_; + metadata.reflection = DeprecatedTableState_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReplicationPeer::kClusterkeyFieldNumber; +const int ReplicationPeer::kReplicationEndpointImplFieldNumber; +const int ReplicationPeer::kDataFieldNumber; +const int ReplicationPeer::kConfigurationFieldNumber; +#endif // !_MSC_VER + +ReplicationPeer::ReplicationPeer() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReplicationPeer::InitAsDefaultInstance() { +} + +ReplicationPeer::ReplicationPeer(const ReplicationPeer& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReplicationPeer::SharedCtor() { + _cached_size_ = 0; + clusterkey_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + replicationendpointimpl_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReplicationPeer::~ReplicationPeer() { + SharedDtor(); +} + +void ReplicationPeer::SharedDtor() { + if (clusterkey_ != &::google::protobuf::internal::kEmptyString) { + delete clusterkey_; + } + if (replicationendpointimpl_ != &::google::protobuf::internal::kEmptyString) { + delete replicationendpointimpl_; + } + if (this != default_instance_) { + } +} + +void ReplicationPeer::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReplicationPeer::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicationPeer_descriptor_; +} + +const ReplicationPeer& ReplicationPeer::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +ReplicationPeer* ReplicationPeer::default_instance_ = NULL; + +ReplicationPeer* ReplicationPeer::New() const { + return new ReplicationPeer; +} + +void ReplicationPeer::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_clusterkey()) { + if (clusterkey_ != &::google::protobuf::internal::kEmptyString) { + clusterkey_->clear(); + } + } + if (has_replicationendpointimpl()) { + if (replicationendpointimpl_ != &::google::protobuf::internal::kEmptyString) { + replicationendpointimpl_->clear(); + } + } + } + data_.Clear(); + configuration_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReplicationPeer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string clusterkey = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_clusterkey())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->clusterkey().data(), this->clusterkey().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_replicationEndpointImpl; + break; + } + + // optional string replicationEndpointImpl = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_replicationEndpointImpl: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_replicationendpointimpl())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->replicationendpointimpl().data(), this->replicationendpointimpl().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_data; + break; + } + + // repeated .hbase.pb.BytesBytesPair data = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_data: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_data())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_data; + if (input->ExpectTag(34)) goto parse_configuration; + break; + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_configuration: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_configuration())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_configuration; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReplicationPeer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string clusterkey = 1; + if (has_clusterkey()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->clusterkey().data(), this->clusterkey().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->clusterkey(), output); + } + + // optional string replicationEndpointImpl = 2; + if (has_replicationendpointimpl()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->replicationendpointimpl().data(), this->replicationendpointimpl().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->replicationendpointimpl(), output); + } + + // repeated .hbase.pb.BytesBytesPair data = 3; + for (int i = 0; i < this->data_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->data(i), output); + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + for (int i = 0; i < this->configuration_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->configuration(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReplicationPeer::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string clusterkey = 1; + if (has_clusterkey()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->clusterkey().data(), this->clusterkey().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->clusterkey(), target); + } + + // optional string replicationEndpointImpl = 2; + if (has_replicationendpointimpl()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->replicationendpointimpl().data(), this->replicationendpointimpl().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->replicationendpointimpl(), target); + } + + // repeated .hbase.pb.BytesBytesPair data = 3; + for (int i = 0; i < this->data_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->data(i), target); + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + for (int i = 0; i < this->configuration_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->configuration(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReplicationPeer::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string clusterkey = 1; + if (has_clusterkey()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->clusterkey()); + } + + // optional string replicationEndpointImpl = 2; + if (has_replicationendpointimpl()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->replicationendpointimpl()); + } + + } + // repeated .hbase.pb.BytesBytesPair data = 3; + total_size += 1 * this->data_size(); + for (int i = 0; i < this->data_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->data(i)); + } + + // repeated .hbase.pb.NameStringPair configuration = 4; + total_size += 1 * this->configuration_size(); + for (int i = 0; i < this->configuration_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->configuration(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReplicationPeer::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReplicationPeer* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReplicationPeer::MergeFrom(const ReplicationPeer& from) { + GOOGLE_CHECK_NE(&from, this); + data_.MergeFrom(from.data_); + configuration_.MergeFrom(from.configuration_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_clusterkey()) { + set_clusterkey(from.clusterkey()); + } + if (from.has_replicationendpointimpl()) { + set_replicationendpointimpl(from.replicationendpointimpl()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReplicationPeer::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReplicationPeer::CopyFrom(const ReplicationPeer& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReplicationPeer::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < data_size(); i++) { + if (!this->data(i).IsInitialized()) return false; + } + for (int i = 0; i < configuration_size(); i++) { + if (!this->configuration(i).IsInitialized()) return false; + } + return true; +} + +void ReplicationPeer::Swap(ReplicationPeer* other) { + if (other != this) { + std::swap(clusterkey_, other->clusterkey_); + std::swap(replicationendpointimpl_, other->replicationendpointimpl_); + data_.Swap(&other->data_); + configuration_.Swap(&other->configuration_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReplicationPeer::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReplicationPeer_descriptor_; + metadata.reflection = ReplicationPeer_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* ReplicationState_State_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicationState_State_descriptor_; +} +bool ReplicationState_State_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const ReplicationState_State ReplicationState::ENABLED; +const ReplicationState_State ReplicationState::DISABLED; +const ReplicationState_State ReplicationState::State_MIN; +const ReplicationState_State ReplicationState::State_MAX; +const int ReplicationState::State_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int ReplicationState::kStateFieldNumber; +#endif // !_MSC_VER + +ReplicationState::ReplicationState() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReplicationState::InitAsDefaultInstance() { +} + +ReplicationState::ReplicationState(const ReplicationState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReplicationState::SharedCtor() { + _cached_size_ = 0; + state_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReplicationState::~ReplicationState() { + SharedDtor(); +} + +void ReplicationState::SharedDtor() { + if (this != default_instance_) { + } +} + +void ReplicationState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReplicationState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicationState_descriptor_; +} + +const ReplicationState& ReplicationState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +ReplicationState* ReplicationState::default_instance_ = NULL; + +ReplicationState* ReplicationState::New() const { + return new ReplicationState; +} + +void ReplicationState::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + state_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReplicationState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .hbase.pb.ReplicationState.State state = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::hbase::pb::ReplicationState_State_IsValid(value)) { + set_state(static_cast< ::hbase::pb::ReplicationState_State >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReplicationState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .hbase.pb.ReplicationState.State state = 1; + if (has_state()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReplicationState::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .hbase.pb.ReplicationState.State state = 1; + if (has_state()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReplicationState::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .hbase.pb.ReplicationState.State state = 1; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReplicationState::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReplicationState* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReplicationState::MergeFrom(const ReplicationState& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_state()) { + set_state(from.state()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReplicationState::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReplicationState::CopyFrom(const ReplicationState& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReplicationState::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ReplicationState::Swap(ReplicationState* other) { + if (other != this) { + std::swap(state_, other->state_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReplicationState::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReplicationState_descriptor_; + metadata.reflection = ReplicationState_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReplicationHLogPosition::kPositionFieldNumber; +#endif // !_MSC_VER + +ReplicationHLogPosition::ReplicationHLogPosition() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReplicationHLogPosition::InitAsDefaultInstance() { +} + +ReplicationHLogPosition::ReplicationHLogPosition(const ReplicationHLogPosition& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReplicationHLogPosition::SharedCtor() { + _cached_size_ = 0; + position_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReplicationHLogPosition::~ReplicationHLogPosition() { + SharedDtor(); +} + +void ReplicationHLogPosition::SharedDtor() { + if (this != default_instance_) { + } +} + +void ReplicationHLogPosition::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReplicationHLogPosition::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicationHLogPosition_descriptor_; +} + +const ReplicationHLogPosition& ReplicationHLogPosition::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +ReplicationHLogPosition* ReplicationHLogPosition::default_instance_ = NULL; + +ReplicationHLogPosition* ReplicationHLogPosition::New() const { + return new ReplicationHLogPosition; +} + +void ReplicationHLogPosition::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + position_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReplicationHLogPosition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required int64 position = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &position_))); + set_has_position(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReplicationHLogPosition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required int64 position = 1; + if (has_position()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->position(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReplicationHLogPosition::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required int64 position = 1; + if (has_position()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->position(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReplicationHLogPosition::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required int64 position = 1; + if (has_position()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->position()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReplicationHLogPosition::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReplicationHLogPosition* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReplicationHLogPosition::MergeFrom(const ReplicationHLogPosition& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_position()) { + set_position(from.position()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReplicationHLogPosition::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReplicationHLogPosition::CopyFrom(const ReplicationHLogPosition& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReplicationHLogPosition::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ReplicationHLogPosition::Swap(ReplicationHLogPosition* other) { + if (other != this) { + std::swap(position_, other->position_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReplicationHLogPosition::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReplicationHLogPosition_descriptor_; + metadata.reflection = ReplicationHLogPosition_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReplicationLock::kLockOwnerFieldNumber; +#endif // !_MSC_VER + +ReplicationLock::ReplicationLock() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReplicationLock::InitAsDefaultInstance() { +} + +ReplicationLock::ReplicationLock(const ReplicationLock& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReplicationLock::SharedCtor() { + _cached_size_ = 0; + lock_owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReplicationLock::~ReplicationLock() { + SharedDtor(); +} + +void ReplicationLock::SharedDtor() { + if (lock_owner_ != &::google::protobuf::internal::kEmptyString) { + delete lock_owner_; + } + if (this != default_instance_) { + } +} + +void ReplicationLock::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReplicationLock::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReplicationLock_descriptor_; +} + +const ReplicationLock& ReplicationLock::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +ReplicationLock* ReplicationLock::default_instance_ = NULL; + +ReplicationLock* ReplicationLock::New() const { + return new ReplicationLock; +} + +void ReplicationLock::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_lock_owner()) { + if (lock_owner_ != &::google::protobuf::internal::kEmptyString) { + lock_owner_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReplicationLock::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string lock_owner = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_lock_owner())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->lock_owner().data(), this->lock_owner().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReplicationLock::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string lock_owner = 1; + if (has_lock_owner()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->lock_owner().data(), this->lock_owner().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->lock_owner(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReplicationLock::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string lock_owner = 1; + if (has_lock_owner()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->lock_owner().data(), this->lock_owner().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->lock_owner(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReplicationLock::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string lock_owner = 1; + if (has_lock_owner()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->lock_owner()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReplicationLock::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReplicationLock* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReplicationLock::MergeFrom(const ReplicationLock& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_lock_owner()) { + set_lock_owner(from.lock_owner()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReplicationLock::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReplicationLock::CopyFrom(const ReplicationLock& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReplicationLock::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ReplicationLock::Swap(ReplicationLock* other) { + if (other != this) { + std::swap(lock_owner_, other->lock_owner_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReplicationLock::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReplicationLock_descriptor_; + metadata.reflection = ReplicationLock_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int TableLock::kTableNameFieldNumber; +const int TableLock::kLockOwnerFieldNumber; +const int TableLock::kThreadIdFieldNumber; +const int TableLock::kIsSharedFieldNumber; +const int TableLock::kPurposeFieldNumber; +const int TableLock::kCreateTimeFieldNumber; +#endif // !_MSC_VER + +TableLock::TableLock() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TableLock::InitAsDefaultInstance() { + table_name_ = const_cast< ::hbase::pb::TableName*>(&::hbase::pb::TableName::default_instance()); + lock_owner_ = const_cast< ::hbase::pb::ServerName*>(&::hbase::pb::ServerName::default_instance()); +} + +TableLock::TableLock(const TableLock& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TableLock::SharedCtor() { + _cached_size_ = 0; + table_name_ = NULL; + lock_owner_ = NULL; + thread_id_ = GOOGLE_LONGLONG(0); + is_shared_ = false; + purpose_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + create_time_ = GOOGLE_LONGLONG(0); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TableLock::~TableLock() { + SharedDtor(); +} + +void TableLock::SharedDtor() { + if (purpose_ != &::google::protobuf::internal::kEmptyString) { + delete purpose_; + } + if (this != default_instance_) { + delete table_name_; + delete lock_owner_; + } +} + +void TableLock::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TableLock::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TableLock_descriptor_; +} + +const TableLock& TableLock::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +TableLock* TableLock::default_instance_ = NULL; + +TableLock* TableLock::New() const { + return new TableLock; +} + +void TableLock::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_table_name()) { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + } + if (has_lock_owner()) { + if (lock_owner_ != NULL) lock_owner_->::hbase::pb::ServerName::Clear(); + } + thread_id_ = GOOGLE_LONGLONG(0); + is_shared_ = false; + if (has_purpose()) { + if (purpose_ != &::google::protobuf::internal::kEmptyString) { + purpose_->clear(); + } + } + create_time_ = GOOGLE_LONGLONG(0); + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TableLock::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .hbase.pb.TableName table_name = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_table_name())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_lock_owner; + break; + } + + // optional .hbase.pb.ServerName lock_owner = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_lock_owner: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_lock_owner())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_thread_id; + break; + } + + // optional int64 thread_id = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_thread_id: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &thread_id_))); + set_has_thread_id(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_is_shared; + break; + } + + // optional bool is_shared = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_is_shared: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_shared_))); + set_has_is_shared(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_purpose; + break; + } + + // optional string purpose = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_purpose: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_purpose())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->purpose().data(), this->purpose().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_create_time; + break; + } + + // optional int64 create_time = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_create_time: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &create_time_))); + set_has_create_time(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TableLock::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->table_name(), output); + } + + // optional .hbase.pb.ServerName lock_owner = 2; + if (has_lock_owner()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->lock_owner(), output); + } + + // optional int64 thread_id = 3; + if (has_thread_id()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->thread_id(), output); + } + + // optional bool is_shared = 4; + if (has_is_shared()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_shared(), output); + } + + // optional string purpose = 5; + if (has_purpose()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->purpose().data(), this->purpose().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->purpose(), output); + } + + // optional int64 create_time = 6; + if (has_create_time()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->create_time(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TableLock::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->table_name(), target); + } + + // optional .hbase.pb.ServerName lock_owner = 2; + if (has_lock_owner()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->lock_owner(), target); + } + + // optional int64 thread_id = 3; + if (has_thread_id()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->thread_id(), target); + } + + // optional bool is_shared = 4; + if (has_is_shared()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_shared(), target); + } + + // optional string purpose = 5; + if (has_purpose()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->purpose().data(), this->purpose().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->purpose(), target); + } + + // optional int64 create_time = 6; + if (has_create_time()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->create_time(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TableLock::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional .hbase.pb.TableName table_name = 1; + if (has_table_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->table_name()); + } + + // optional .hbase.pb.ServerName lock_owner = 2; + if (has_lock_owner()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->lock_owner()); + } + + // optional int64 thread_id = 3; + if (has_thread_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->thread_id()); + } + + // optional bool is_shared = 4; + if (has_is_shared()) { + total_size += 1 + 1; + } + + // optional string purpose = 5; + if (has_purpose()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->purpose()); + } + + // optional int64 create_time = 6; + if (has_create_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->create_time()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TableLock::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TableLock* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TableLock::MergeFrom(const TableLock& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_table_name()) { + mutable_table_name()->::hbase::pb::TableName::MergeFrom(from.table_name()); + } + if (from.has_lock_owner()) { + mutable_lock_owner()->::hbase::pb::ServerName::MergeFrom(from.lock_owner()); + } + if (from.has_thread_id()) { + set_thread_id(from.thread_id()); + } + if (from.has_is_shared()) { + set_is_shared(from.is_shared()); + } + if (from.has_purpose()) { + set_purpose(from.purpose()); + } + if (from.has_create_time()) { + set_create_time(from.create_time()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TableLock::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TableLock::CopyFrom(const TableLock& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TableLock::IsInitialized() const { + + if (has_table_name()) { + if (!this->table_name().IsInitialized()) return false; + } + if (has_lock_owner()) { + if (!this->lock_owner().IsInitialized()) return false; + } + return true; +} + +void TableLock::Swap(TableLock* other) { + if (other != this) { + std::swap(table_name_, other->table_name_); + std::swap(lock_owner_, other->lock_owner_); + std::swap(thread_id_, other->thread_id_); + std::swap(is_shared_, other->is_shared_); + std::swap(purpose_, other->purpose_); + std::swap(create_time_, other->create_time_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TableLock::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TableLock_descriptor_; + metadata.reflection = TableLock_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int SwitchState::kEnabledFieldNumber; +#endif // !_MSC_VER + +SwitchState::SwitchState() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SwitchState::InitAsDefaultInstance() { +} + +SwitchState::SwitchState(const SwitchState& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SwitchState::SharedCtor() { + _cached_size_ = 0; + enabled_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SwitchState::~SwitchState() { + SharedDtor(); +} + +void SwitchState::SharedDtor() { + if (this != default_instance_) { + } +} + +void SwitchState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SwitchState::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SwitchState_descriptor_; +} + +const SwitchState& SwitchState::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_ZooKeeper_2eproto(); + return *default_instance_; +} + +SwitchState* SwitchState::default_instance_ = NULL; + +SwitchState* SwitchState::New() const { + return new SwitchState; +} + +void SwitchState::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + enabled_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SwitchState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool enabled = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enabled_))); + set_has_enabled(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SwitchState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional bool enabled = 1; + if (has_enabled()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enabled(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SwitchState::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional bool enabled = 1; + if (has_enabled()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enabled(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SwitchState::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional bool enabled = 1; + if (has_enabled()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SwitchState::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SwitchState* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SwitchState::MergeFrom(const SwitchState& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_enabled()) { + set_enabled(from.enabled()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SwitchState::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SwitchState::CopyFrom(const SwitchState& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SwitchState::IsInitialized() const { + + return true; +} + +void SwitchState::Swap(SwitchState* other) { + if (other != this) { + std::swap(enabled_, other->enabled_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SwitchState::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SwitchState_descriptor_; + metadata.reflection = SwitchState_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +// @@protoc_insertion_point(global_scope) diff --git a/hbase-native-client/src/rpc/generated/ZooKeeper.pb.h b/hbase-native-client/src/rpc/generated/ZooKeeper.pb.h new file mode 100644 index 0000000..5ca7a3d --- /dev/null +++ b/hbase-native-client/src/rpc/generated/ZooKeeper.pb.h @@ -0,0 +1,2280 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ZooKeeper.proto + +#ifndef PROTOBUF_ZooKeeper_2eproto__INCLUDED +#define PROTOBUF_ZooKeeper_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include "HBase.pb.h" +#include "ClusterStatus.pb.h" +// @@protoc_insertion_point(includes) + +namespace hbase { +namespace pb { + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_ZooKeeper_2eproto(); +void protobuf_AssignDesc_ZooKeeper_2eproto(); +void protobuf_ShutdownFile_ZooKeeper_2eproto(); + +class MetaRegionServer; +class Master; +class ClusterUp; +class SplitLogTask; +class DeprecatedTableState; +class ReplicationPeer; +class ReplicationState; +class ReplicationHLogPosition; +class ReplicationLock; +class TableLock; +class SwitchState; + +enum SplitLogTask_State { + SplitLogTask_State_UNASSIGNED = 0, + SplitLogTask_State_OWNED = 1, + SplitLogTask_State_RESIGNED = 2, + SplitLogTask_State_DONE = 3, + SplitLogTask_State_ERR = 4 +}; +bool SplitLogTask_State_IsValid(int value); +const SplitLogTask_State SplitLogTask_State_State_MIN = SplitLogTask_State_UNASSIGNED; +const SplitLogTask_State SplitLogTask_State_State_MAX = SplitLogTask_State_ERR; +const int SplitLogTask_State_State_ARRAYSIZE = SplitLogTask_State_State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SplitLogTask_State_descriptor(); +inline const ::std::string& SplitLogTask_State_Name(SplitLogTask_State value) { + return ::google::protobuf::internal::NameOfEnum( + SplitLogTask_State_descriptor(), value); +} +inline bool SplitLogTask_State_Parse( + const ::std::string& name, SplitLogTask_State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SplitLogTask_State_descriptor(), name, value); +} +enum SplitLogTask_RecoveryMode { + SplitLogTask_RecoveryMode_UNKNOWN = 0, + SplitLogTask_RecoveryMode_LOG_SPLITTING = 1, + SplitLogTask_RecoveryMode_LOG_REPLAY = 2 +}; +bool SplitLogTask_RecoveryMode_IsValid(int value); +const SplitLogTask_RecoveryMode SplitLogTask_RecoveryMode_RecoveryMode_MIN = SplitLogTask_RecoveryMode_UNKNOWN; +const SplitLogTask_RecoveryMode SplitLogTask_RecoveryMode_RecoveryMode_MAX = SplitLogTask_RecoveryMode_LOG_REPLAY; +const int SplitLogTask_RecoveryMode_RecoveryMode_ARRAYSIZE = SplitLogTask_RecoveryMode_RecoveryMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SplitLogTask_RecoveryMode_descriptor(); +inline const ::std::string& SplitLogTask_RecoveryMode_Name(SplitLogTask_RecoveryMode value) { + return ::google::protobuf::internal::NameOfEnum( + SplitLogTask_RecoveryMode_descriptor(), value); +} +inline bool SplitLogTask_RecoveryMode_Parse( + const ::std::string& name, SplitLogTask_RecoveryMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SplitLogTask_RecoveryMode_descriptor(), name, value); +} +enum DeprecatedTableState_State { + DeprecatedTableState_State_ENABLED = 0, + DeprecatedTableState_State_DISABLED = 1, + DeprecatedTableState_State_DISABLING = 2, + DeprecatedTableState_State_ENABLING = 3 +}; +bool DeprecatedTableState_State_IsValid(int value); +const DeprecatedTableState_State DeprecatedTableState_State_State_MIN = DeprecatedTableState_State_ENABLED; +const DeprecatedTableState_State DeprecatedTableState_State_State_MAX = DeprecatedTableState_State_ENABLING; +const int DeprecatedTableState_State_State_ARRAYSIZE = DeprecatedTableState_State_State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* DeprecatedTableState_State_descriptor(); +inline const ::std::string& DeprecatedTableState_State_Name(DeprecatedTableState_State value) { + return ::google::protobuf::internal::NameOfEnum( + DeprecatedTableState_State_descriptor(), value); +} +inline bool DeprecatedTableState_State_Parse( + const ::std::string& name, DeprecatedTableState_State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + DeprecatedTableState_State_descriptor(), name, value); +} +enum ReplicationState_State { + ReplicationState_State_ENABLED = 0, + ReplicationState_State_DISABLED = 1 +}; +bool ReplicationState_State_IsValid(int value); +const ReplicationState_State ReplicationState_State_State_MIN = ReplicationState_State_ENABLED; +const ReplicationState_State ReplicationState_State_State_MAX = ReplicationState_State_DISABLED; +const int ReplicationState_State_State_ARRAYSIZE = ReplicationState_State_State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ReplicationState_State_descriptor(); +inline const ::std::string& ReplicationState_State_Name(ReplicationState_State value) { + return ::google::protobuf::internal::NameOfEnum( + ReplicationState_State_descriptor(), value); +} +inline bool ReplicationState_State_Parse( + const ::std::string& name, ReplicationState_State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ReplicationState_State_descriptor(), name, value); +} +// =================================================================== + +class MetaRegionServer : public ::google::protobuf::Message { + public: + MetaRegionServer(); + virtual ~MetaRegionServer(); + + MetaRegionServer(const MetaRegionServer& from); + + inline MetaRegionServer& operator=(const MetaRegionServer& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MetaRegionServer& default_instance(); + + void Swap(MetaRegionServer* other); + + // implements Message ---------------------------------------------- + + MetaRegionServer* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MetaRegionServer& from); + void MergeFrom(const MetaRegionServer& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName server = 1; + inline bool has_server() const; + inline void clear_server(); + static const int kServerFieldNumber = 1; + inline const ::hbase::pb::ServerName& server() const; + inline ::hbase::pb::ServerName* mutable_server(); + inline ::hbase::pb::ServerName* release_server(); + inline void set_allocated_server(::hbase::pb::ServerName* server); + + // optional uint32 rpc_version = 2; + inline bool has_rpc_version() const; + inline void clear_rpc_version(); + static const int kRpcVersionFieldNumber = 2; + inline ::google::protobuf::uint32 rpc_version() const; + inline void set_rpc_version(::google::protobuf::uint32 value); + + // optional .hbase.pb.RegionState.State state = 3; + inline bool has_state() const; + inline void clear_state(); + static const int kStateFieldNumber = 3; + inline ::hbase::pb::RegionState_State state() const; + inline void set_state(::hbase::pb::RegionState_State value); + + // @@protoc_insertion_point(class_scope:hbase.pb.MetaRegionServer) + private: + inline void set_has_server(); + inline void clear_has_server(); + inline void set_has_rpc_version(); + inline void clear_has_rpc_version(); + inline void set_has_state(); + inline void clear_has_state(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_; + ::google::protobuf::uint32 rpc_version_; + int state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static MetaRegionServer* default_instance_; +}; +// ------------------------------------------------------------------- + +class Master : public ::google::protobuf::Message { + public: + Master(); + virtual ~Master(); + + Master(const Master& from); + + inline Master& operator=(const Master& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const Master& default_instance(); + + void Swap(Master* other); + + // implements Message ---------------------------------------------- + + Master* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const Master& from); + void MergeFrom(const Master& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ServerName master = 1; + inline bool has_master() const; + inline void clear_master(); + static const int kMasterFieldNumber = 1; + inline const ::hbase::pb::ServerName& master() const; + inline ::hbase::pb::ServerName* mutable_master(); + inline ::hbase::pb::ServerName* release_master(); + inline void set_allocated_master(::hbase::pb::ServerName* master); + + // optional uint32 rpc_version = 2; + inline bool has_rpc_version() const; + inline void clear_rpc_version(); + static const int kRpcVersionFieldNumber = 2; + inline ::google::protobuf::uint32 rpc_version() const; + inline void set_rpc_version(::google::protobuf::uint32 value); + + // optional uint32 info_port = 3; + inline bool has_info_port() const; + inline void clear_info_port(); + static const int kInfoPortFieldNumber = 3; + inline ::google::protobuf::uint32 info_port() const; + inline void set_info_port(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.Master) + private: + inline void set_has_master(); + inline void clear_has_master(); + inline void set_has_rpc_version(); + inline void clear_has_rpc_version(); + inline void set_has_info_port(); + inline void clear_has_info_port(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* master_; + ::google::protobuf::uint32 rpc_version_; + ::google::protobuf::uint32 info_port_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static Master* default_instance_; +}; +// ------------------------------------------------------------------- + +class ClusterUp : public ::google::protobuf::Message { + public: + ClusterUp(); + virtual ~ClusterUp(); + + ClusterUp(const ClusterUp& from); + + inline ClusterUp& operator=(const ClusterUp& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ClusterUp& default_instance(); + + void Swap(ClusterUp* other); + + // implements Message ---------------------------------------------- + + ClusterUp* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ClusterUp& from); + void MergeFrom(const ClusterUp& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string start_date = 1; + inline bool has_start_date() const; + inline void clear_start_date(); + static const int kStartDateFieldNumber = 1; + inline const ::std::string& start_date() const; + inline void set_start_date(const ::std::string& value); + inline void set_start_date(const char* value); + inline void set_start_date(const char* value, size_t size); + inline ::std::string* mutable_start_date(); + inline ::std::string* release_start_date(); + inline void set_allocated_start_date(::std::string* start_date); + + // @@protoc_insertion_point(class_scope:hbase.pb.ClusterUp) + private: + inline void set_has_start_date(); + inline void clear_has_start_date(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* start_date_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static ClusterUp* default_instance_; +}; +// ------------------------------------------------------------------- + +class SplitLogTask : public ::google::protobuf::Message { + public: + SplitLogTask(); + virtual ~SplitLogTask(); + + SplitLogTask(const SplitLogTask& from); + + inline SplitLogTask& operator=(const SplitLogTask& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SplitLogTask& default_instance(); + + void Swap(SplitLogTask* other); + + // implements Message ---------------------------------------------- + + SplitLogTask* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SplitLogTask& from); + void MergeFrom(const SplitLogTask& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef SplitLogTask_State State; + static const State UNASSIGNED = SplitLogTask_State_UNASSIGNED; + static const State OWNED = SplitLogTask_State_OWNED; + static const State RESIGNED = SplitLogTask_State_RESIGNED; + static const State DONE = SplitLogTask_State_DONE; + static const State ERR = SplitLogTask_State_ERR; + static inline bool State_IsValid(int value) { + return SplitLogTask_State_IsValid(value); + } + static const State State_MIN = + SplitLogTask_State_State_MIN; + static const State State_MAX = + SplitLogTask_State_State_MAX; + static const int State_ARRAYSIZE = + SplitLogTask_State_State_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + State_descriptor() { + return SplitLogTask_State_descriptor(); + } + static inline const ::std::string& State_Name(State value) { + return SplitLogTask_State_Name(value); + } + static inline bool State_Parse(const ::std::string& name, + State* value) { + return SplitLogTask_State_Parse(name, value); + } + + typedef SplitLogTask_RecoveryMode RecoveryMode; + static const RecoveryMode UNKNOWN = SplitLogTask_RecoveryMode_UNKNOWN; + static const RecoveryMode LOG_SPLITTING = SplitLogTask_RecoveryMode_LOG_SPLITTING; + static const RecoveryMode LOG_REPLAY = SplitLogTask_RecoveryMode_LOG_REPLAY; + static inline bool RecoveryMode_IsValid(int value) { + return SplitLogTask_RecoveryMode_IsValid(value); + } + static const RecoveryMode RecoveryMode_MIN = + SplitLogTask_RecoveryMode_RecoveryMode_MIN; + static const RecoveryMode RecoveryMode_MAX = + SplitLogTask_RecoveryMode_RecoveryMode_MAX; + static const int RecoveryMode_ARRAYSIZE = + SplitLogTask_RecoveryMode_RecoveryMode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RecoveryMode_descriptor() { + return SplitLogTask_RecoveryMode_descriptor(); + } + static inline const ::std::string& RecoveryMode_Name(RecoveryMode value) { + return SplitLogTask_RecoveryMode_Name(value); + } + static inline bool RecoveryMode_Parse(const ::std::string& name, + RecoveryMode* value) { + return SplitLogTask_RecoveryMode_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.SplitLogTask.State state = 1; + inline bool has_state() const; + inline void clear_state(); + static const int kStateFieldNumber = 1; + inline ::hbase::pb::SplitLogTask_State state() const; + inline void set_state(::hbase::pb::SplitLogTask_State value); + + // required .hbase.pb.ServerName server_name = 2; + inline bool has_server_name() const; + inline void clear_server_name(); + static const int kServerNameFieldNumber = 2; + inline const ::hbase::pb::ServerName& server_name() const; + inline ::hbase::pb::ServerName* mutable_server_name(); + inline ::hbase::pb::ServerName* release_server_name(); + inline void set_allocated_server_name(::hbase::pb::ServerName* server_name); + + // optional .hbase.pb.SplitLogTask.RecoveryMode mode = 3 [default = UNKNOWN]; + inline bool has_mode() const; + inline void clear_mode(); + static const int kModeFieldNumber = 3; + inline ::hbase::pb::SplitLogTask_RecoveryMode mode() const; + inline void set_mode(::hbase::pb::SplitLogTask_RecoveryMode value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SplitLogTask) + private: + inline void set_has_state(); + inline void clear_has_state(); + inline void set_has_server_name(); + inline void clear_has_server_name(); + inline void set_has_mode(); + inline void clear_has_mode(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::ServerName* server_name_; + int state_; + int mode_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static SplitLogTask* default_instance_; +}; +// ------------------------------------------------------------------- + +class DeprecatedTableState : public ::google::protobuf::Message { + public: + DeprecatedTableState(); + virtual ~DeprecatedTableState(); + + DeprecatedTableState(const DeprecatedTableState& from); + + inline DeprecatedTableState& operator=(const DeprecatedTableState& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DeprecatedTableState& default_instance(); + + void Swap(DeprecatedTableState* other); + + // implements Message ---------------------------------------------- + + DeprecatedTableState* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DeprecatedTableState& from); + void MergeFrom(const DeprecatedTableState& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef DeprecatedTableState_State State; + static const State ENABLED = DeprecatedTableState_State_ENABLED; + static const State DISABLED = DeprecatedTableState_State_DISABLED; + static const State DISABLING = DeprecatedTableState_State_DISABLING; + static const State ENABLING = DeprecatedTableState_State_ENABLING; + static inline bool State_IsValid(int value) { + return DeprecatedTableState_State_IsValid(value); + } + static const State State_MIN = + DeprecatedTableState_State_State_MIN; + static const State State_MAX = + DeprecatedTableState_State_State_MAX; + static const int State_ARRAYSIZE = + DeprecatedTableState_State_State_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + State_descriptor() { + return DeprecatedTableState_State_descriptor(); + } + static inline const ::std::string& State_Name(State value) { + return DeprecatedTableState_State_Name(value); + } + static inline bool State_Parse(const ::std::string& name, + State* value) { + return DeprecatedTableState_State_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.DeprecatedTableState.State state = 1 [default = ENABLED]; + inline bool has_state() const; + inline void clear_state(); + static const int kStateFieldNumber = 1; + inline ::hbase::pb::DeprecatedTableState_State state() const; + inline void set_state(::hbase::pb::DeprecatedTableState_State value); + + // @@protoc_insertion_point(class_scope:hbase.pb.DeprecatedTableState) + private: + inline void set_has_state(); + inline void clear_has_state(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + int state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static DeprecatedTableState* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReplicationPeer : public ::google::protobuf::Message { + public: + ReplicationPeer(); + virtual ~ReplicationPeer(); + + ReplicationPeer(const ReplicationPeer& from); + + inline ReplicationPeer& operator=(const ReplicationPeer& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReplicationPeer& default_instance(); + + void Swap(ReplicationPeer* other); + + // implements Message ---------------------------------------------- + + ReplicationPeer* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReplicationPeer& from); + void MergeFrom(const ReplicationPeer& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string clusterkey = 1; + inline bool has_clusterkey() const; + inline void clear_clusterkey(); + static const int kClusterkeyFieldNumber = 1; + inline const ::std::string& clusterkey() const; + inline void set_clusterkey(const ::std::string& value); + inline void set_clusterkey(const char* value); + inline void set_clusterkey(const char* value, size_t size); + inline ::std::string* mutable_clusterkey(); + inline ::std::string* release_clusterkey(); + inline void set_allocated_clusterkey(::std::string* clusterkey); + + // optional string replicationEndpointImpl = 2; + inline bool has_replicationendpointimpl() const; + inline void clear_replicationendpointimpl(); + static const int kReplicationEndpointImplFieldNumber = 2; + inline const ::std::string& replicationendpointimpl() const; + inline void set_replicationendpointimpl(const ::std::string& value); + inline void set_replicationendpointimpl(const char* value); + inline void set_replicationendpointimpl(const char* value, size_t size); + inline ::std::string* mutable_replicationendpointimpl(); + inline ::std::string* release_replicationendpointimpl(); + inline void set_allocated_replicationendpointimpl(::std::string* replicationendpointimpl); + + // repeated .hbase.pb.BytesBytesPair data = 3; + inline int data_size() const; + inline void clear_data(); + static const int kDataFieldNumber = 3; + inline const ::hbase::pb::BytesBytesPair& data(int index) const; + inline ::hbase::pb::BytesBytesPair* mutable_data(int index); + inline ::hbase::pb::BytesBytesPair* add_data(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& + data() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* + mutable_data(); + + // repeated .hbase.pb.NameStringPair configuration = 4; + inline int configuration_size() const; + inline void clear_configuration(); + static const int kConfigurationFieldNumber = 4; + inline const ::hbase::pb::NameStringPair& configuration(int index) const; + inline ::hbase::pb::NameStringPair* mutable_configuration(int index); + inline ::hbase::pb::NameStringPair* add_configuration(); + inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& + configuration() const; + inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* + mutable_configuration(); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReplicationPeer) + private: + inline void set_has_clusterkey(); + inline void clear_has_clusterkey(); + inline void set_has_replicationendpointimpl(); + inline void clear_has_replicationendpointimpl(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* clusterkey_; + ::std::string* replicationendpointimpl_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair > data_; + ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair > configuration_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static ReplicationPeer* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReplicationState : public ::google::protobuf::Message { + public: + ReplicationState(); + virtual ~ReplicationState(); + + ReplicationState(const ReplicationState& from); + + inline ReplicationState& operator=(const ReplicationState& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReplicationState& default_instance(); + + void Swap(ReplicationState* other); + + // implements Message ---------------------------------------------- + + ReplicationState* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReplicationState& from); + void MergeFrom(const ReplicationState& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef ReplicationState_State State; + static const State ENABLED = ReplicationState_State_ENABLED; + static const State DISABLED = ReplicationState_State_DISABLED; + static inline bool State_IsValid(int value) { + return ReplicationState_State_IsValid(value); + } + static const State State_MIN = + ReplicationState_State_State_MIN; + static const State State_MAX = + ReplicationState_State_State_MAX; + static const int State_ARRAYSIZE = + ReplicationState_State_State_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + State_descriptor() { + return ReplicationState_State_descriptor(); + } + static inline const ::std::string& State_Name(State value) { + return ReplicationState_State_Name(value); + } + static inline bool State_Parse(const ::std::string& name, + State* value) { + return ReplicationState_State_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .hbase.pb.ReplicationState.State state = 1; + inline bool has_state() const; + inline void clear_state(); + static const int kStateFieldNumber = 1; + inline ::hbase::pb::ReplicationState_State state() const; + inline void set_state(::hbase::pb::ReplicationState_State value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReplicationState) + private: + inline void set_has_state(); + inline void clear_has_state(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + int state_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static ReplicationState* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReplicationHLogPosition : public ::google::protobuf::Message { + public: + ReplicationHLogPosition(); + virtual ~ReplicationHLogPosition(); + + ReplicationHLogPosition(const ReplicationHLogPosition& from); + + inline ReplicationHLogPosition& operator=(const ReplicationHLogPosition& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReplicationHLogPosition& default_instance(); + + void Swap(ReplicationHLogPosition* other); + + // implements Message ---------------------------------------------- + + ReplicationHLogPosition* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReplicationHLogPosition& from); + void MergeFrom(const ReplicationHLogPosition& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required int64 position = 1; + inline bool has_position() const; + inline void clear_position(); + static const int kPositionFieldNumber = 1; + inline ::google::protobuf::int64 position() const; + inline void set_position(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReplicationHLogPosition) + private: + inline void set_has_position(); + inline void clear_has_position(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::int64 position_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static ReplicationHLogPosition* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReplicationLock : public ::google::protobuf::Message { + public: + ReplicationLock(); + virtual ~ReplicationLock(); + + ReplicationLock(const ReplicationLock& from); + + inline ReplicationLock& operator=(const ReplicationLock& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReplicationLock& default_instance(); + + void Swap(ReplicationLock* other); + + // implements Message ---------------------------------------------- + + ReplicationLock* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReplicationLock& from); + void MergeFrom(const ReplicationLock& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string lock_owner = 1; + inline bool has_lock_owner() const; + inline void clear_lock_owner(); + static const int kLockOwnerFieldNumber = 1; + inline const ::std::string& lock_owner() const; + inline void set_lock_owner(const ::std::string& value); + inline void set_lock_owner(const char* value); + inline void set_lock_owner(const char* value, size_t size); + inline ::std::string* mutable_lock_owner(); + inline ::std::string* release_lock_owner(); + inline void set_allocated_lock_owner(::std::string* lock_owner); + + // @@protoc_insertion_point(class_scope:hbase.pb.ReplicationLock) + private: + inline void set_has_lock_owner(); + inline void clear_has_lock_owner(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* lock_owner_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static ReplicationLock* default_instance_; +}; +// ------------------------------------------------------------------- + +class TableLock : public ::google::protobuf::Message { + public: + TableLock(); + virtual ~TableLock(); + + TableLock(const TableLock& from); + + inline TableLock& operator=(const TableLock& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TableLock& default_instance(); + + void Swap(TableLock* other); + + // implements Message ---------------------------------------------- + + TableLock* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TableLock& from); + void MergeFrom(const TableLock& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional .hbase.pb.TableName table_name = 1; + inline bool has_table_name() const; + inline void clear_table_name(); + static const int kTableNameFieldNumber = 1; + inline const ::hbase::pb::TableName& table_name() const; + inline ::hbase::pb::TableName* mutable_table_name(); + inline ::hbase::pb::TableName* release_table_name(); + inline void set_allocated_table_name(::hbase::pb::TableName* table_name); + + // optional .hbase.pb.ServerName lock_owner = 2; + inline bool has_lock_owner() const; + inline void clear_lock_owner(); + static const int kLockOwnerFieldNumber = 2; + inline const ::hbase::pb::ServerName& lock_owner() const; + inline ::hbase::pb::ServerName* mutable_lock_owner(); + inline ::hbase::pb::ServerName* release_lock_owner(); + inline void set_allocated_lock_owner(::hbase::pb::ServerName* lock_owner); + + // optional int64 thread_id = 3; + inline bool has_thread_id() const; + inline void clear_thread_id(); + static const int kThreadIdFieldNumber = 3; + inline ::google::protobuf::int64 thread_id() const; + inline void set_thread_id(::google::protobuf::int64 value); + + // optional bool is_shared = 4; + inline bool has_is_shared() const; + inline void clear_is_shared(); + static const int kIsSharedFieldNumber = 4; + inline bool is_shared() const; + inline void set_is_shared(bool value); + + // optional string purpose = 5; + inline bool has_purpose() const; + inline void clear_purpose(); + static const int kPurposeFieldNumber = 5; + inline const ::std::string& purpose() const; + inline void set_purpose(const ::std::string& value); + inline void set_purpose(const char* value); + inline void set_purpose(const char* value, size_t size); + inline ::std::string* mutable_purpose(); + inline ::std::string* release_purpose(); + inline void set_allocated_purpose(::std::string* purpose); + + // optional int64 create_time = 6; + inline bool has_create_time() const; + inline void clear_create_time(); + static const int kCreateTimeFieldNumber = 6; + inline ::google::protobuf::int64 create_time() const; + inline void set_create_time(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:hbase.pb.TableLock) + private: + inline void set_has_table_name(); + inline void clear_has_table_name(); + inline void set_has_lock_owner(); + inline void clear_has_lock_owner(); + inline void set_has_thread_id(); + inline void clear_has_thread_id(); + inline void set_has_is_shared(); + inline void clear_has_is_shared(); + inline void set_has_purpose(); + inline void clear_has_purpose(); + inline void set_has_create_time(); + inline void clear_has_create_time(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::hbase::pb::TableName* table_name_; + ::hbase::pb::ServerName* lock_owner_; + ::google::protobuf::int64 thread_id_; + ::std::string* purpose_; + ::google::protobuf::int64 create_time_; + bool is_shared_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static TableLock* default_instance_; +}; +// ------------------------------------------------------------------- + +class SwitchState : public ::google::protobuf::Message { + public: + SwitchState(); + virtual ~SwitchState(); + + SwitchState(const SwitchState& from); + + inline SwitchState& operator=(const SwitchState& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SwitchState& default_instance(); + + void Swap(SwitchState* other); + + // implements Message ---------------------------------------------- + + SwitchState* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SwitchState& from); + void MergeFrom(const SwitchState& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional bool enabled = 1; + inline bool has_enabled() const; + inline void clear_enabled(); + static const int kEnabledFieldNumber = 1; + inline bool enabled() const; + inline void set_enabled(bool value); + + // @@protoc_insertion_point(class_scope:hbase.pb.SwitchState) + private: + inline void set_has_enabled(); + inline void clear_has_enabled(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + bool enabled_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_ZooKeeper_2eproto(); + friend void protobuf_AssignDesc_ZooKeeper_2eproto(); + friend void protobuf_ShutdownFile_ZooKeeper_2eproto(); + + void InitAsDefaultInstance(); + static SwitchState* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// MetaRegionServer + +// required .hbase.pb.ServerName server = 1; +inline bool MetaRegionServer::has_server() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MetaRegionServer::set_has_server() { + _has_bits_[0] |= 0x00000001u; +} +inline void MetaRegionServer::clear_has_server() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MetaRegionServer::clear_server() { + if (server_ != NULL) server_->::hbase::pb::ServerName::Clear(); + clear_has_server(); +} +inline const ::hbase::pb::ServerName& MetaRegionServer::server() const { + return server_ != NULL ? *server_ : *default_instance_->server_; +} +inline ::hbase::pb::ServerName* MetaRegionServer::mutable_server() { + set_has_server(); + if (server_ == NULL) server_ = new ::hbase::pb::ServerName; + return server_; +} +inline ::hbase::pb::ServerName* MetaRegionServer::release_server() { + clear_has_server(); + ::hbase::pb::ServerName* temp = server_; + server_ = NULL; + return temp; +} +inline void MetaRegionServer::set_allocated_server(::hbase::pb::ServerName* server) { + delete server_; + server_ = server; + if (server) { + set_has_server(); + } else { + clear_has_server(); + } +} + +// optional uint32 rpc_version = 2; +inline bool MetaRegionServer::has_rpc_version() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MetaRegionServer::set_has_rpc_version() { + _has_bits_[0] |= 0x00000002u; +} +inline void MetaRegionServer::clear_has_rpc_version() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MetaRegionServer::clear_rpc_version() { + rpc_version_ = 0u; + clear_has_rpc_version(); +} +inline ::google::protobuf::uint32 MetaRegionServer::rpc_version() const { + return rpc_version_; +} +inline void MetaRegionServer::set_rpc_version(::google::protobuf::uint32 value) { + set_has_rpc_version(); + rpc_version_ = value; +} + +// optional .hbase.pb.RegionState.State state = 3; +inline bool MetaRegionServer::has_state() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MetaRegionServer::set_has_state() { + _has_bits_[0] |= 0x00000004u; +} +inline void MetaRegionServer::clear_has_state() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MetaRegionServer::clear_state() { + state_ = 0; + clear_has_state(); +} +inline ::hbase::pb::RegionState_State MetaRegionServer::state() const { + return static_cast< ::hbase::pb::RegionState_State >(state_); +} +inline void MetaRegionServer::set_state(::hbase::pb::RegionState_State value) { + assert(::hbase::pb::RegionState_State_IsValid(value)); + set_has_state(); + state_ = value; +} + +// ------------------------------------------------------------------- + +// Master + +// required .hbase.pb.ServerName master = 1; +inline bool Master::has_master() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void Master::set_has_master() { + _has_bits_[0] |= 0x00000001u; +} +inline void Master::clear_has_master() { + _has_bits_[0] &= ~0x00000001u; +} +inline void Master::clear_master() { + if (master_ != NULL) master_->::hbase::pb::ServerName::Clear(); + clear_has_master(); +} +inline const ::hbase::pb::ServerName& Master::master() const { + return master_ != NULL ? *master_ : *default_instance_->master_; +} +inline ::hbase::pb::ServerName* Master::mutable_master() { + set_has_master(); + if (master_ == NULL) master_ = new ::hbase::pb::ServerName; + return master_; +} +inline ::hbase::pb::ServerName* Master::release_master() { + clear_has_master(); + ::hbase::pb::ServerName* temp = master_; + master_ = NULL; + return temp; +} +inline void Master::set_allocated_master(::hbase::pb::ServerName* master) { + delete master_; + master_ = master; + if (master) { + set_has_master(); + } else { + clear_has_master(); + } +} + +// optional uint32 rpc_version = 2; +inline bool Master::has_rpc_version() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void Master::set_has_rpc_version() { + _has_bits_[0] |= 0x00000002u; +} +inline void Master::clear_has_rpc_version() { + _has_bits_[0] &= ~0x00000002u; +} +inline void Master::clear_rpc_version() { + rpc_version_ = 0u; + clear_has_rpc_version(); +} +inline ::google::protobuf::uint32 Master::rpc_version() const { + return rpc_version_; +} +inline void Master::set_rpc_version(::google::protobuf::uint32 value) { + set_has_rpc_version(); + rpc_version_ = value; +} + +// optional uint32 info_port = 3; +inline bool Master::has_info_port() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void Master::set_has_info_port() { + _has_bits_[0] |= 0x00000004u; +} +inline void Master::clear_has_info_port() { + _has_bits_[0] &= ~0x00000004u; +} +inline void Master::clear_info_port() { + info_port_ = 0u; + clear_has_info_port(); +} +inline ::google::protobuf::uint32 Master::info_port() const { + return info_port_; +} +inline void Master::set_info_port(::google::protobuf::uint32 value) { + set_has_info_port(); + info_port_ = value; +} + +// ------------------------------------------------------------------- + +// ClusterUp + +// required string start_date = 1; +inline bool ClusterUp::has_start_date() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ClusterUp::set_has_start_date() { + _has_bits_[0] |= 0x00000001u; +} +inline void ClusterUp::clear_has_start_date() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ClusterUp::clear_start_date() { + if (start_date_ != &::google::protobuf::internal::kEmptyString) { + start_date_->clear(); + } + clear_has_start_date(); +} +inline const ::std::string& ClusterUp::start_date() const { + return *start_date_; +} +inline void ClusterUp::set_start_date(const ::std::string& value) { + set_has_start_date(); + if (start_date_ == &::google::protobuf::internal::kEmptyString) { + start_date_ = new ::std::string; + } + start_date_->assign(value); +} +inline void ClusterUp::set_start_date(const char* value) { + set_has_start_date(); + if (start_date_ == &::google::protobuf::internal::kEmptyString) { + start_date_ = new ::std::string; + } + start_date_->assign(value); +} +inline void ClusterUp::set_start_date(const char* value, size_t size) { + set_has_start_date(); + if (start_date_ == &::google::protobuf::internal::kEmptyString) { + start_date_ = new ::std::string; + } + start_date_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ClusterUp::mutable_start_date() { + set_has_start_date(); + if (start_date_ == &::google::protobuf::internal::kEmptyString) { + start_date_ = new ::std::string; + } + return start_date_; +} +inline ::std::string* ClusterUp::release_start_date() { + clear_has_start_date(); + if (start_date_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = start_date_; + start_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ClusterUp::set_allocated_start_date(::std::string* start_date) { + if (start_date_ != &::google::protobuf::internal::kEmptyString) { + delete start_date_; + } + if (start_date) { + set_has_start_date(); + start_date_ = start_date; + } else { + clear_has_start_date(); + start_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// SplitLogTask + +// required .hbase.pb.SplitLogTask.State state = 1; +inline bool SplitLogTask::has_state() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SplitLogTask::set_has_state() { + _has_bits_[0] |= 0x00000001u; +} +inline void SplitLogTask::clear_has_state() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SplitLogTask::clear_state() { + state_ = 0; + clear_has_state(); +} +inline ::hbase::pb::SplitLogTask_State SplitLogTask::state() const { + return static_cast< ::hbase::pb::SplitLogTask_State >(state_); +} +inline void SplitLogTask::set_state(::hbase::pb::SplitLogTask_State value) { + assert(::hbase::pb::SplitLogTask_State_IsValid(value)); + set_has_state(); + state_ = value; +} + +// required .hbase.pb.ServerName server_name = 2; +inline bool SplitLogTask::has_server_name() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void SplitLogTask::set_has_server_name() { + _has_bits_[0] |= 0x00000002u; +} +inline void SplitLogTask::clear_has_server_name() { + _has_bits_[0] &= ~0x00000002u; +} +inline void SplitLogTask::clear_server_name() { + if (server_name_ != NULL) server_name_->::hbase::pb::ServerName::Clear(); + clear_has_server_name(); +} +inline const ::hbase::pb::ServerName& SplitLogTask::server_name() const { + return server_name_ != NULL ? *server_name_ : *default_instance_->server_name_; +} +inline ::hbase::pb::ServerName* SplitLogTask::mutable_server_name() { + set_has_server_name(); + if (server_name_ == NULL) server_name_ = new ::hbase::pb::ServerName; + return server_name_; +} +inline ::hbase::pb::ServerName* SplitLogTask::release_server_name() { + clear_has_server_name(); + ::hbase::pb::ServerName* temp = server_name_; + server_name_ = NULL; + return temp; +} +inline void SplitLogTask::set_allocated_server_name(::hbase::pb::ServerName* server_name) { + delete server_name_; + server_name_ = server_name; + if (server_name) { + set_has_server_name(); + } else { + clear_has_server_name(); + } +} + +// optional .hbase.pb.SplitLogTask.RecoveryMode mode = 3 [default = UNKNOWN]; +inline bool SplitLogTask::has_mode() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void SplitLogTask::set_has_mode() { + _has_bits_[0] |= 0x00000004u; +} +inline void SplitLogTask::clear_has_mode() { + _has_bits_[0] &= ~0x00000004u; +} +inline void SplitLogTask::clear_mode() { + mode_ = 0; + clear_has_mode(); +} +inline ::hbase::pb::SplitLogTask_RecoveryMode SplitLogTask::mode() const { + return static_cast< ::hbase::pb::SplitLogTask_RecoveryMode >(mode_); +} +inline void SplitLogTask::set_mode(::hbase::pb::SplitLogTask_RecoveryMode value) { + assert(::hbase::pb::SplitLogTask_RecoveryMode_IsValid(value)); + set_has_mode(); + mode_ = value; +} + +// ------------------------------------------------------------------- + +// DeprecatedTableState + +// required .hbase.pb.DeprecatedTableState.State state = 1 [default = ENABLED]; +inline bool DeprecatedTableState::has_state() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DeprecatedTableState::set_has_state() { + _has_bits_[0] |= 0x00000001u; +} +inline void DeprecatedTableState::clear_has_state() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DeprecatedTableState::clear_state() { + state_ = 0; + clear_has_state(); +} +inline ::hbase::pb::DeprecatedTableState_State DeprecatedTableState::state() const { + return static_cast< ::hbase::pb::DeprecatedTableState_State >(state_); +} +inline void DeprecatedTableState::set_state(::hbase::pb::DeprecatedTableState_State value) { + assert(::hbase::pb::DeprecatedTableState_State_IsValid(value)); + set_has_state(); + state_ = value; +} + +// ------------------------------------------------------------------- + +// ReplicationPeer + +// required string clusterkey = 1; +inline bool ReplicationPeer::has_clusterkey() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReplicationPeer::set_has_clusterkey() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReplicationPeer::clear_has_clusterkey() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReplicationPeer::clear_clusterkey() { + if (clusterkey_ != &::google::protobuf::internal::kEmptyString) { + clusterkey_->clear(); + } + clear_has_clusterkey(); +} +inline const ::std::string& ReplicationPeer::clusterkey() const { + return *clusterkey_; +} +inline void ReplicationPeer::set_clusterkey(const ::std::string& value) { + set_has_clusterkey(); + if (clusterkey_ == &::google::protobuf::internal::kEmptyString) { + clusterkey_ = new ::std::string; + } + clusterkey_->assign(value); +} +inline void ReplicationPeer::set_clusterkey(const char* value) { + set_has_clusterkey(); + if (clusterkey_ == &::google::protobuf::internal::kEmptyString) { + clusterkey_ = new ::std::string; + } + clusterkey_->assign(value); +} +inline void ReplicationPeer::set_clusterkey(const char* value, size_t size) { + set_has_clusterkey(); + if (clusterkey_ == &::google::protobuf::internal::kEmptyString) { + clusterkey_ = new ::std::string; + } + clusterkey_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReplicationPeer::mutable_clusterkey() { + set_has_clusterkey(); + if (clusterkey_ == &::google::protobuf::internal::kEmptyString) { + clusterkey_ = new ::std::string; + } + return clusterkey_; +} +inline ::std::string* ReplicationPeer::release_clusterkey() { + clear_has_clusterkey(); + if (clusterkey_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = clusterkey_; + clusterkey_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReplicationPeer::set_allocated_clusterkey(::std::string* clusterkey) { + if (clusterkey_ != &::google::protobuf::internal::kEmptyString) { + delete clusterkey_; + } + if (clusterkey) { + set_has_clusterkey(); + clusterkey_ = clusterkey; + } else { + clear_has_clusterkey(); + clusterkey_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional string replicationEndpointImpl = 2; +inline bool ReplicationPeer::has_replicationendpointimpl() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ReplicationPeer::set_has_replicationendpointimpl() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReplicationPeer::clear_has_replicationendpointimpl() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ReplicationPeer::clear_replicationendpointimpl() { + if (replicationendpointimpl_ != &::google::protobuf::internal::kEmptyString) { + replicationendpointimpl_->clear(); + } + clear_has_replicationendpointimpl(); +} +inline const ::std::string& ReplicationPeer::replicationendpointimpl() const { + return *replicationendpointimpl_; +} +inline void ReplicationPeer::set_replicationendpointimpl(const ::std::string& value) { + set_has_replicationendpointimpl(); + if (replicationendpointimpl_ == &::google::protobuf::internal::kEmptyString) { + replicationendpointimpl_ = new ::std::string; + } + replicationendpointimpl_->assign(value); +} +inline void ReplicationPeer::set_replicationendpointimpl(const char* value) { + set_has_replicationendpointimpl(); + if (replicationendpointimpl_ == &::google::protobuf::internal::kEmptyString) { + replicationendpointimpl_ = new ::std::string; + } + replicationendpointimpl_->assign(value); +} +inline void ReplicationPeer::set_replicationendpointimpl(const char* value, size_t size) { + set_has_replicationendpointimpl(); + if (replicationendpointimpl_ == &::google::protobuf::internal::kEmptyString) { + replicationendpointimpl_ = new ::std::string; + } + replicationendpointimpl_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReplicationPeer::mutable_replicationendpointimpl() { + set_has_replicationendpointimpl(); + if (replicationendpointimpl_ == &::google::protobuf::internal::kEmptyString) { + replicationendpointimpl_ = new ::std::string; + } + return replicationendpointimpl_; +} +inline ::std::string* ReplicationPeer::release_replicationendpointimpl() { + clear_has_replicationendpointimpl(); + if (replicationendpointimpl_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = replicationendpointimpl_; + replicationendpointimpl_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReplicationPeer::set_allocated_replicationendpointimpl(::std::string* replicationendpointimpl) { + if (replicationendpointimpl_ != &::google::protobuf::internal::kEmptyString) { + delete replicationendpointimpl_; + } + if (replicationendpointimpl) { + set_has_replicationendpointimpl(); + replicationendpointimpl_ = replicationendpointimpl; + } else { + clear_has_replicationendpointimpl(); + replicationendpointimpl_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// repeated .hbase.pb.BytesBytesPair data = 3; +inline int ReplicationPeer::data_size() const { + return data_.size(); +} +inline void ReplicationPeer::clear_data() { + data_.Clear(); +} +inline const ::hbase::pb::BytesBytesPair& ReplicationPeer::data(int index) const { + return data_.Get(index); +} +inline ::hbase::pb::BytesBytesPair* ReplicationPeer::mutable_data(int index) { + return data_.Mutable(index); +} +inline ::hbase::pb::BytesBytesPair* ReplicationPeer::add_data() { + return data_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >& +ReplicationPeer::data() const { + return data_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::BytesBytesPair >* +ReplicationPeer::mutable_data() { + return &data_; +} + +// repeated .hbase.pb.NameStringPair configuration = 4; +inline int ReplicationPeer::configuration_size() const { + return configuration_.size(); +} +inline void ReplicationPeer::clear_configuration() { + configuration_.Clear(); +} +inline const ::hbase::pb::NameStringPair& ReplicationPeer::configuration(int index) const { + return configuration_.Get(index); +} +inline ::hbase::pb::NameStringPair* ReplicationPeer::mutable_configuration(int index) { + return configuration_.Mutable(index); +} +inline ::hbase::pb::NameStringPair* ReplicationPeer::add_configuration() { + return configuration_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >& +ReplicationPeer::configuration() const { + return configuration_; +} +inline ::google::protobuf::RepeatedPtrField< ::hbase::pb::NameStringPair >* +ReplicationPeer::mutable_configuration() { + return &configuration_; +} + +// ------------------------------------------------------------------- + +// ReplicationState + +// required .hbase.pb.ReplicationState.State state = 1; +inline bool ReplicationState::has_state() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReplicationState::set_has_state() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReplicationState::clear_has_state() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReplicationState::clear_state() { + state_ = 0; + clear_has_state(); +} +inline ::hbase::pb::ReplicationState_State ReplicationState::state() const { + return static_cast< ::hbase::pb::ReplicationState_State >(state_); +} +inline void ReplicationState::set_state(::hbase::pb::ReplicationState_State value) { + assert(::hbase::pb::ReplicationState_State_IsValid(value)); + set_has_state(); + state_ = value; +} + +// ------------------------------------------------------------------- + +// ReplicationHLogPosition + +// required int64 position = 1; +inline bool ReplicationHLogPosition::has_position() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReplicationHLogPosition::set_has_position() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReplicationHLogPosition::clear_has_position() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReplicationHLogPosition::clear_position() { + position_ = GOOGLE_LONGLONG(0); + clear_has_position(); +} +inline ::google::protobuf::int64 ReplicationHLogPosition::position() const { + return position_; +} +inline void ReplicationHLogPosition::set_position(::google::protobuf::int64 value) { + set_has_position(); + position_ = value; +} + +// ------------------------------------------------------------------- + +// ReplicationLock + +// required string lock_owner = 1; +inline bool ReplicationLock::has_lock_owner() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReplicationLock::set_has_lock_owner() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReplicationLock::clear_has_lock_owner() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReplicationLock::clear_lock_owner() { + if (lock_owner_ != &::google::protobuf::internal::kEmptyString) { + lock_owner_->clear(); + } + clear_has_lock_owner(); +} +inline const ::std::string& ReplicationLock::lock_owner() const { + return *lock_owner_; +} +inline void ReplicationLock::set_lock_owner(const ::std::string& value) { + set_has_lock_owner(); + if (lock_owner_ == &::google::protobuf::internal::kEmptyString) { + lock_owner_ = new ::std::string; + } + lock_owner_->assign(value); +} +inline void ReplicationLock::set_lock_owner(const char* value) { + set_has_lock_owner(); + if (lock_owner_ == &::google::protobuf::internal::kEmptyString) { + lock_owner_ = new ::std::string; + } + lock_owner_->assign(value); +} +inline void ReplicationLock::set_lock_owner(const char* value, size_t size) { + set_has_lock_owner(); + if (lock_owner_ == &::google::protobuf::internal::kEmptyString) { + lock_owner_ = new ::std::string; + } + lock_owner_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReplicationLock::mutable_lock_owner() { + set_has_lock_owner(); + if (lock_owner_ == &::google::protobuf::internal::kEmptyString) { + lock_owner_ = new ::std::string; + } + return lock_owner_; +} +inline ::std::string* ReplicationLock::release_lock_owner() { + clear_has_lock_owner(); + if (lock_owner_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = lock_owner_; + lock_owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void ReplicationLock::set_allocated_lock_owner(::std::string* lock_owner) { + if (lock_owner_ != &::google::protobuf::internal::kEmptyString) { + delete lock_owner_; + } + if (lock_owner) { + set_has_lock_owner(); + lock_owner_ = lock_owner; + } else { + clear_has_lock_owner(); + lock_owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// ------------------------------------------------------------------- + +// TableLock + +// optional .hbase.pb.TableName table_name = 1; +inline bool TableLock::has_table_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TableLock::set_has_table_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void TableLock::clear_has_table_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TableLock::clear_table_name() { + if (table_name_ != NULL) table_name_->::hbase::pb::TableName::Clear(); + clear_has_table_name(); +} +inline const ::hbase::pb::TableName& TableLock::table_name() const { + return table_name_ != NULL ? *table_name_ : *default_instance_->table_name_; +} +inline ::hbase::pb::TableName* TableLock::mutable_table_name() { + set_has_table_name(); + if (table_name_ == NULL) table_name_ = new ::hbase::pb::TableName; + return table_name_; +} +inline ::hbase::pb::TableName* TableLock::release_table_name() { + clear_has_table_name(); + ::hbase::pb::TableName* temp = table_name_; + table_name_ = NULL; + return temp; +} +inline void TableLock::set_allocated_table_name(::hbase::pb::TableName* table_name) { + delete table_name_; + table_name_ = table_name; + if (table_name) { + set_has_table_name(); + } else { + clear_has_table_name(); + } +} + +// optional .hbase.pb.ServerName lock_owner = 2; +inline bool TableLock::has_lock_owner() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TableLock::set_has_lock_owner() { + _has_bits_[0] |= 0x00000002u; +} +inline void TableLock::clear_has_lock_owner() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TableLock::clear_lock_owner() { + if (lock_owner_ != NULL) lock_owner_->::hbase::pb::ServerName::Clear(); + clear_has_lock_owner(); +} +inline const ::hbase::pb::ServerName& TableLock::lock_owner() const { + return lock_owner_ != NULL ? *lock_owner_ : *default_instance_->lock_owner_; +} +inline ::hbase::pb::ServerName* TableLock::mutable_lock_owner() { + set_has_lock_owner(); + if (lock_owner_ == NULL) lock_owner_ = new ::hbase::pb::ServerName; + return lock_owner_; +} +inline ::hbase::pb::ServerName* TableLock::release_lock_owner() { + clear_has_lock_owner(); + ::hbase::pb::ServerName* temp = lock_owner_; + lock_owner_ = NULL; + return temp; +} +inline void TableLock::set_allocated_lock_owner(::hbase::pb::ServerName* lock_owner) { + delete lock_owner_; + lock_owner_ = lock_owner; + if (lock_owner) { + set_has_lock_owner(); + } else { + clear_has_lock_owner(); + } +} + +// optional int64 thread_id = 3; +inline bool TableLock::has_thread_id() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void TableLock::set_has_thread_id() { + _has_bits_[0] |= 0x00000004u; +} +inline void TableLock::clear_has_thread_id() { + _has_bits_[0] &= ~0x00000004u; +} +inline void TableLock::clear_thread_id() { + thread_id_ = GOOGLE_LONGLONG(0); + clear_has_thread_id(); +} +inline ::google::protobuf::int64 TableLock::thread_id() const { + return thread_id_; +} +inline void TableLock::set_thread_id(::google::protobuf::int64 value) { + set_has_thread_id(); + thread_id_ = value; +} + +// optional bool is_shared = 4; +inline bool TableLock::has_is_shared() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void TableLock::set_has_is_shared() { + _has_bits_[0] |= 0x00000008u; +} +inline void TableLock::clear_has_is_shared() { + _has_bits_[0] &= ~0x00000008u; +} +inline void TableLock::clear_is_shared() { + is_shared_ = false; + clear_has_is_shared(); +} +inline bool TableLock::is_shared() const { + return is_shared_; +} +inline void TableLock::set_is_shared(bool value) { + set_has_is_shared(); + is_shared_ = value; +} + +// optional string purpose = 5; +inline bool TableLock::has_purpose() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void TableLock::set_has_purpose() { + _has_bits_[0] |= 0x00000010u; +} +inline void TableLock::clear_has_purpose() { + _has_bits_[0] &= ~0x00000010u; +} +inline void TableLock::clear_purpose() { + if (purpose_ != &::google::protobuf::internal::kEmptyString) { + purpose_->clear(); + } + clear_has_purpose(); +} +inline const ::std::string& TableLock::purpose() const { + return *purpose_; +} +inline void TableLock::set_purpose(const ::std::string& value) { + set_has_purpose(); + if (purpose_ == &::google::protobuf::internal::kEmptyString) { + purpose_ = new ::std::string; + } + purpose_->assign(value); +} +inline void TableLock::set_purpose(const char* value) { + set_has_purpose(); + if (purpose_ == &::google::protobuf::internal::kEmptyString) { + purpose_ = new ::std::string; + } + purpose_->assign(value); +} +inline void TableLock::set_purpose(const char* value, size_t size) { + set_has_purpose(); + if (purpose_ == &::google::protobuf::internal::kEmptyString) { + purpose_ = new ::std::string; + } + purpose_->assign(reinterpret_cast(value), size); +} +inline ::std::string* TableLock::mutable_purpose() { + set_has_purpose(); + if (purpose_ == &::google::protobuf::internal::kEmptyString) { + purpose_ = new ::std::string; + } + return purpose_; +} +inline ::std::string* TableLock::release_purpose() { + clear_has_purpose(); + if (purpose_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = purpose_; + purpose_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} +inline void TableLock::set_allocated_purpose(::std::string* purpose) { + if (purpose_ != &::google::protobuf::internal::kEmptyString) { + delete purpose_; + } + if (purpose) { + set_has_purpose(); + purpose_ = purpose; + } else { + clear_has_purpose(); + purpose_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + } +} + +// optional int64 create_time = 6; +inline bool TableLock::has_create_time() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void TableLock::set_has_create_time() { + _has_bits_[0] |= 0x00000020u; +} +inline void TableLock::clear_has_create_time() { + _has_bits_[0] &= ~0x00000020u; +} +inline void TableLock::clear_create_time() { + create_time_ = GOOGLE_LONGLONG(0); + clear_has_create_time(); +} +inline ::google::protobuf::int64 TableLock::create_time() const { + return create_time_; +} +inline void TableLock::set_create_time(::google::protobuf::int64 value) { + set_has_create_time(); + create_time_ = value; +} + +// ------------------------------------------------------------------- + +// SwitchState + +// optional bool enabled = 1; +inline bool SwitchState::has_enabled() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SwitchState::set_has_enabled() { + _has_bits_[0] |= 0x00000001u; +} +inline void SwitchState::clear_has_enabled() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SwitchState::clear_enabled() { + enabled_ = false; + clear_has_enabled(); +} +inline bool SwitchState::enabled() const { + return enabled_; +} +inline void SwitchState::set_enabled(bool value) { + set_has_enabled(); + enabled_ = value; +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace pb +} // namespace hbase + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::SplitLogTask_State>() { + return ::hbase::pb::SplitLogTask_State_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::SplitLogTask_RecoveryMode>() { + return ::hbase::pb::SplitLogTask_RecoveryMode_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::DeprecatedTableState_State>() { + return ::hbase::pb::DeprecatedTableState_State_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::hbase::pb::ReplicationState_State>() { + return ::hbase::pb::ReplicationState_State_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_ZooKeeper_2eproto__INCLUDED diff --git a/hbase-native-client/src/sync/CMakeLists.txt b/hbase-native-client/src/sync/CMakeLists.txt deleted file mode 100644 index bfb7e6c..0000000 --- a/hbase-native-client/src/sync/CMakeLists.txt +++ /dev/null @@ -1,24 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set( SYNC_SRC - hbase_connection.cc - hbase_admin.cc -) - - -add_library(hsync OBJECT ${SYNC_SRC}) diff --git a/hbase-native-client/src/sync/hbase_admin.cc b/hbase-native-client/src/sync/hbase_admin.cc deleted file mode 100644 index d43c8ec..0000000 --- a/hbase-native-client/src/sync/hbase_admin.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "sync/hbase_admin.h" - -#include -#include - -#include "core/admin.h" - -int32_t hb_admin_create(hb_admin_t** admin_ptr) { - (*admin_ptr) = reinterpret_cast(new Admin()); - return 0; -} - -/* - * Disconnect the admin releasing any internal objects - * or connections created in the background. - */ -int32_t hb_admin_destroy(hb_admin_t * admin) { - Admin * adm = reinterpret_cast(admin); - delete adm; - return 0; -} - -/* - * See if a table exists. - */ -int32_t hb_admin_table_exists(hb_admin_t * admin, - char * name_space, size_t name_space_length, - char * table, size_t table_length, - bool * exists) { - *exists = true; - return 0; -} diff --git a/hbase-native-client/src/sync/hbase_admin.h b/hbase-native-client/src/sync/hbase_admin.h deleted file mode 100644 index 860bfba..0000000 --- a/hbase-native-client/src/sync/hbase_admin.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef SYNC_HBASE_ADMIN_H_ -#define SYNC_HBASE_ADMIN_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include - -#include "core/hbase_macros.h" -#include "core/hbase_types.h" -#include "sync/hbase_connection.h" - - -/** - * Create a new hb_admin. - * All fields are initialized to the defaults. If you want to set - * connection or other properties, set those before calling any - * RPC functions. - */ -HBASE_API int32_t hb_admin_create(hb_admin_t* admin_ptr, - hb_connection_t connection); - -/* - * Disconnect the admin releasing any internal objects - * or connections created in the background. - */ -HBASE_API int32_t hb_admin_destroy(hb_admin_t admin); - -/* - * See if a table exists. - */ -HBASE_API int32_t hb_admin_table_exists(hb_admin_t admin, - char * name_space, size_t name_space_length, - char * table, size_t table_length, bool * exists); - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // SYNC_HBASE_ADMIN_H_ diff --git a/hbase-native-client/src/sync/hbase_connection.cc b/hbase-native-client/src/sync/hbase_connection.cc deleted file mode 100644 index df05376..0000000 --- a/hbase-native-client/src/sync/hbase_connection.cc +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#include "sync/hbase_connection.h" - -#include "core/connection.h" -#include "core/hbase_types.h" - -extern "C" { -int32_t hb_connection_create(hb_connection_t * connection_ptr, - hb_connection_attr_t connection_attr) { - (*connection_ptr) = reinterpret_cast(new Connection()); - if ((*connection_ptr) == NULL) - return -1; - return 0; -} -int32_t hb_connection_destroy(hb_connection_t connection) { - free(connection); - return 0; -} -} // extern "C" diff --git a/hbase-native-client/src/sync/hbase_connection.h b/hbase-native-client/src/sync/hbase_connection.h deleted file mode 100644 index af9284d..0000000 --- a/hbase-native-client/src/sync/hbase_connection.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef SYNC_HBASE_CONNECTION_H_ -#define SYNC_HBASE_CONNECTION_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "core/hbase_macros.h" -#include "core/hbase_types.h" -#include "core/hbase_connection_attr.h" - -#include - -/** - * Create an hb_connection. - * - * if connection_attr is null everything will be left as default - */ -HBASE_API int32_t hb_connection_create(hb_connection_t * connection_ptr, - hb_connection_attr_t connection_attr); - -/** - * Destroy the connection and free all resources allocated at creation - * time. - */ -HBASE_API int32_t hb_connection_destroy(hb_connection_t connection); - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -#endif // SYNC_HBASE_CONNECTION_H_ - diff --git a/hbase-native-client/src/test/BuildTestClient.sh b/hbase-native-client/src/test/BuildTestClient.sh new file mode 100755 index 0000000..4269ef2 --- /dev/null +++ b/hbase-native-client/src/test/BuildTestClient.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +DEBUG_FLAGS= +# For sudo make install to work from eclipse; pls do the foll +# In /etc/sudoers change "Defaults requiretty" to "Defaults:[username] !requiretty"; Here change [username] to the actual user value +#cd ../../; make && sudo make install; cd -; + +export LD_LIBRARY_PATH=/usr/local/lib + +echo "LIB PATH = $LD_LIBRARY_PATH" + +`g++ ${DEBUG_FLAGS} -std=c++11 -o TestClient TestClient.cc -lHbaseClient -lPocoNet -lPocoFoundation` diff --git a/hbase-native-client/src/test/TestClient.cc b/hbase-native-client/src/test/TestClient.cc new file mode 100644 index 0000000..eb2f8f8 --- /dev/null +++ b/hbase-native-client/src/test/TestClient.cc @@ -0,0 +1,108 @@ +/* + * main application to perform the unit test + */ +#include +#include +#include + +#include +#include +#include + + +#include "TestClient.h" + +int main (int argc, char *argv[]){ + + Poco::Timestamp start_ts; + //TODO we can use this flags in test methods to execute a method or not + std::map api_enabled_status; + api_enabled_status["Test_Put"] = false; + api_enabled_status["Test_Get"] = false; + api_enabled_status["Test_Delete"] = false; + api_enabled_status["Test_EnableTable"] = false; + api_enabled_status["Test_DisableTable"] = false; + api_enabled_status["Test_CreateTable"] = false; + api_enabled_status["Test_ListTables"] = false; + + + try{ + if (argc < 2) { + std::cerr << "No hbase-site.xml specified" << std::endl; + return 255; + } + + std::string rowKey("row-1"); + std::string rowKey2("row-2"); + std::string delTableName("testns:testtable"); + delTableName += "."; + delTableName += Poco::NumberFormatter::format(getpid()); + delTableName += Poco::NumberFormatter::format(time(0)); + //std::cerr << "delTableName::" << delTableName << std::endl; + + Connection *conn = GetConnection(argv[1]); + Connection &connection = *conn; + + std::unique_ptr
table(connection.getTable(TableName::valueOf(delTableName))); + std::unique_ptradmin(connection.getAdmin()); + + BYTE_ARRAY row; + Bytes::ToBytes(rowKey, row); + + BYTE_ARRAY row2; + Bytes::ToBytes(rowKey2, row2); + + if(1){ + Test_ListTables(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_CreateTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_ListTables(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_Put(connection, table, row); + Test_Put(connection, table, row2); + + sleep(SLEEP_TIME); + + Test_Get(connection, table, row); + sleep(SLEEP_TIME); + + Test_Delete(connection, table, row); + sleep(SLEEP_TIME); + + Test_DisableTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_EnableTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_DisableTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_DeleteTable(connection, admin, delTableName); + sleep(SLEEP_TIME); + + Test_ListTables(connection, admin, delTableName); + sleep(SLEEP_TIME); + } + + table->close(); + + if(!conn->isClosed()) + conn->close(); + }catch(const char *err){ + std::cerr << "exception:- " << err << std::endl; + }catch(const std::string &err){ + std::cerr << "exception:- " << err << std::endl; + }catch(...){ + std::cerr << "Unknown exception" << std::endl; + } + Poco::Timestamp end_ts ; + std::cerr << " Total Time taken in secs:[" << (end_ts.raw()-start_ts.raw())/1000000 << "];" << std::endl; + + + +} diff --git a/hbase-native-client/src/test/TestClient.h b/hbase-native-client/src/test/TestClient.h new file mode 100644 index 0000000..4ee67a0 --- /dev/null +++ b/hbase-native-client/src/test/TestClient.h @@ -0,0 +1,19 @@ +#pragma once + + +#include "../../src/core/connection.h" + +//Connection& TestConnection(int argc, char *argv[]); +//int TestClient(Connection *con); + +const int SLEEP_TIME = 0; + +Connection* GetConnection(const char *xmlPath); +void Test_Put(Connection &connection, std::unique_ptr
&table, const BYTE_ARRAY &rowKey); +void Test_Get(Connection &connection, std::unique_ptr
&table, const BYTE_ARRAY &rowKey); +void Test_Delete(Connection &connection, std::unique_ptr
&table, const BYTE_ARRAY &rowKey); +void Test_EnableTable(Connection &connection, std::unique_ptr &admin, const std::string &tableName); +void Test_DisableTable(Connection &connection, std::unique_ptr &admin, const std::string &tableName); +void Test_CreateTable(Connection &connection, std::unique_ptr &admin, const std::string &tableName); +void Test_DeleteTable(Connection &connection, std::unique_ptr &admin, const std::string &tableName); +void Test_ListTables(Connection &connection, std::unique_ptr &admin, const std::string &tableName); diff --git a/hbase-native-client/src/util/Utils.cc b/hbase-native-client/src/util/Utils.cc new file mode 100644 index 0000000..455931b --- /dev/null +++ b/hbase-native-client/src/util/Utils.cc @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include "Utils.h" + +Utils::Utils() { + // TODO Auto-generated constructor stub + +} + +Utils::~Utils() { + // TODO Auto-generated destructor stub +} + +void Utils::swapByteOrder(unsigned int& ui) +{ + ui = (ui >> 24) | + ((ui<<8) & 0x00FF0000) | + ((ui>>8) & 0x0000FF00) | + (ui << 24); +} + +void Utils::swapByteOrder2Bytes(unsigned short & us) { + us = ( (((us) >> 8) & 0x00FF) | (((us) << 8) & 0xFF00) ); +} + diff --git a/hbase-native-client/src/util/Utils.h b/hbase-native-client/src/util/Utils.h new file mode 100644 index 0000000..5143c56 --- /dev/null +++ b/hbase-native-client/src/util/Utils.h @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +class Utils { +public: + Utils(); + virtual ~Utils(); + + static void swapByteOrder(unsigned int& ui); + static void swapByteOrder2Bytes(unsigned short & us); +}; diff --git a/hbase-native-client/src/zk/zookeeper.cc b/hbase-native-client/src/zk/zookeeper.cc new file mode 100644 index 0000000..2c9334e --- /dev/null +++ b/hbase-native-client/src/zk/zookeeper.cc @@ -0,0 +1,251 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include +#include +#include + +#include +#include +#include +#include + +#include "../util/Utils.h" +#include "../rpc/generated/ZooKeeper.pb.h" + +#include +#include + +#include "zookeeper.h" + +using namespace std; + + +char PB_MAGIC[4] = {'P', 'B', 'U', 'F'}; + +class ZookeeperImpl { +public: + ZookeeperImpl(string &serverlist):connected_(false), + zh_(NULL),reconnect_(false) { + serverList_ = serverlist; + } + +public: + + static void StaticWatcherCallbackFunction(zhandle_t *zh, int type, + int state, const char *path, void *watcherCtx) { + ZookeeperImpl *pImpl = (ZookeeperImpl *)watcherCtx; + pImpl->watcherCallbackFunction(zh, type, state, path, watcherCtx); + } + + void Init() { + clientid_t cid; + cid.client_id = 0; + + zh_ = zookeeper_init(serverList_.c_str(), + &ZookeeperImpl::StaticWatcherCallbackFunction, + 120000, &cid, (void*)this, 0); + if (NULL == zh_) { +// throw new std::exception("zookeeper_init failed with the code :"); + } + } + + void Cleanup() { + if (NULL == zh_) { + return; + } + + zookeeper_close(zh_); + zh_ = NULL; + } + + void watcherCallbackFunction(zhandle_t *zh, int type, + int state, const char *path,void *watcherCtx) { + if (type == ZOO_SESSION_EVENT) { + if (state == ZOO_CONNECTED_STATE) { + // Connected (initial or reconnect). + connected_ = true; + reconnect_ = false; + } else if (state == ZOO_CONNECTING_STATE) { + // The client library automatically reconnects, taking + // into account failed servers in the connection string, + // appropriately handling the "herd effect", etc. + + // TODO(benh): If this watcher gets reused then the next + // connected event will be perceived as a reconnect, but it + // should not. + reconnect_ = true; + } else if (state == ZOO_EXPIRED_SESSION_STATE) { + // If this watcher gets reused then the next connected + // event shouldn't be perceived as a reconnect. + reconnect_ = false; + } else { +// LOG(FATAL) << "Unhandled ZooKeeper state (" << state << ")" +// << " for ZOO_SESSION_EVENT"; +// throw new std::exception("Unhandled Zookeeper state"); + } + } else if (type == ZOO_CHILD_EVENT) { +// process::dispatch(pid, &T::updated, sessionId, path); + } else if (type == ZOO_CHANGED_EVENT) { +// process::dispatch(pid, &T::updated, sessionId, path); + } else if (type == ZOO_CREATED_EVENT) { +// process::dispatch(pid, &T::created, sessionId, path); + } else if (type == ZOO_DELETED_EVENT) { +// process::dispatch(pid, &T::deleted, sessionId, path); + } else { +// LOG(FATAL) << "Unhandled ZooKeeper event (" << type << ")" +// << " in state (" << state << ")"; + std::string message; +// message = "Unhandled ZooKeeper event (" + type + ")" + +// " in state (" + state + ")"; +// throw new std::exception(message); + } + } + +public: + std::string serverList_; + zhandle_t *zh_; + bool connected_; + bool reconnect_; +}; + +Zookeeper::Zookeeper(string &serverlist) { + zkImpl = new ZookeeperImpl(serverlist); +} + +Zookeeper::~Zookeeper() { + Disconnect(); +} + +void Zookeeper::Connect() { + zkImpl->Init(); +} + +void Zookeeper::Disconnect() { + if (NULL == zkImpl) { + return; + } + + zkImpl->Cleanup(); + zkImpl = NULL; +} + +/*void swapByteOrder(unsigned int& ui) +{ + ui = (ui >> 24) | + ((ui<<8) & 0x00FF0000) | + ((ui>>8) & 0x0000FF00) | + (ui << 24); +}*/ + +void Zookeeper::LocateHBaseMeta(std::string & serverName, int & port) { + + std::string meta_rs_node_name("/hbase-unsecure/meta-region-server"); + + int bufferLength = 512 * 1024 * 1024; + char *pBuffer = new char[bufferLength]; + + int status = zoo_get(zkImpl->zh_, meta_rs_node_name.c_str(), 0, pBuffer, &bufferLength, NULL); + if (status != ZOK) { + delete []pBuffer; + return; + } + + char *pCurrent = pBuffer; + char *pData = pBuffer; + if (*pCurrent != -1) { + pData = pCurrent; + } else { + pData++; + } + + unsigned int *pidLength = (unsigned int *)pData; + unsigned int idLength = *pidLength; + Utils::swapByteOrder(idLength); + int dataLength = bufferLength - 4 - idLength; + int dataOffset = 4 + idLength; + + int lengthOfPBMagic = sizeof(PB_MAGIC); + pData += dataOffset + lengthOfPBMagic; + + int bufferSize = bufferLength - (dataOffset + lengthOfPBMagic); + + google::protobuf::io::ArrayInputStream arr(pData, bufferSize); + google::protobuf::io::CodedInputStream input(&arr); + + hbase::pb::MetaRegionServer metaRegionServer; + bool success = metaRegionServer.ParseFromCodedStream(&input); + + hbase::pb::ServerName sName = metaRegionServer.server(); + serverName = sName.host_name(); + port = sName.port(); + + delete []pBuffer; +} + +void Zookeeper::LocateHBaseMaster(std::string & masterServerName, + int & port) { + std::string master_server_node_name("/hbase-unsecure/master"); + + int bufferLength = 512 * 1024 * 1024; + char *pBuffer = new char[bufferLength]; + + int status = zoo_get(zkImpl->zh_, + master_server_node_name.c_str(), 0, + pBuffer, &bufferLength, NULL); + if (status != ZOK) { + delete []pBuffer; + return; + } + + char *pCurrent = pBuffer; + char *pData = pBuffer; + if (*pCurrent != -1) { + pData = pCurrent; + } else { + pData++; + } + + unsigned int *pidLength = (unsigned int *)pData; + unsigned int idLength = *pidLength; + Utils::swapByteOrder(idLength); + int dataLength = bufferLength - 4 - idLength; + int dataOffset = 4 + idLength; + + int lengthOfPBMagic = sizeof(PB_MAGIC); + pData += dataOffset + lengthOfPBMagic; + + int bufferSize = bufferLength - (dataOffset + lengthOfPBMagic); + + google::protobuf::io::ArrayInputStream arr(pData, bufferSize); + google::protobuf::io::CodedInputStream input(&arr); + + hbase::pb::Master master; + bool success = master.ParseFromCodedStream(&input); + + const hbase::pb::ServerName & sName = master.master(); + masterServerName = sName.host_name(); + port = sName.port(); + + delete []pBuffer; +} + +bool Zookeeper::IsConnected() { + return zkImpl->connected_; +} diff --git a/hbase-native-client/src/zk/zookeeper.h b/hbase-native-client/src/zk/zookeeper.h new file mode 100644 index 0000000..87bfa96 --- /dev/null +++ b/hbase-native-client/src/zk/zookeeper.h @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +class ZookeeperImpl; + +class Zookeeper { +public: + + Zookeeper(std::string &serverlist); + ~Zookeeper(); + + bool IsConnected(); + void Connect(); + void Disconnect(); + void LocateHBaseMeta(std::string & metaRegionServerName, int & port); + void LocateHBaseMaster(std::string & masterServerName, int & port); + +private: + ZookeeperImpl *zkImpl; +}; diff --git a/hbase-native-client/src/zk/zookeeper2.cc b/hbase-native-client/src/zk/zookeeper2.cc new file mode 100644 index 0000000..45d7fa9 --- /dev/null +++ b/hbase-native-client/src/zk/zookeeper2.cc @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include +#include + +#include "zookeeper.h" + +using namespace std; + + + +//int main() { +// std::string zk_quorum("binary4.hashmap.net:2181,binary2.hashmap.net:2181,binary3.hashmap.net:2181"); +// Zookeeper *zk = new Zookeeper(zk_quorum); +// zk->Connect(); +// sleep(10); +// zk->LocateHBaseMeta(); +// delete zk; +// return 0; +//} -- 1.8.3.1